RTEMS CPU Kit with SuperCore
Macros | Enumerations | Functions
gethostnamadr.c File Reference
#include <sys/param.h>
#include <sys/socket.h>
#include <netinet/in.h>
#include <arpa/inet.h>
#include <netdb.h>
#include <stdio.h>
#include <ctype.h>
#include <errno.h>
#include <string.h>
#include <arpa/nameser.h>
#include <resolv.h>
Include dependency graph for gethostnamadr.c:

Macros

#define _PATH_HOSTCONF   "/etc/host.conf"
 
#define SERVICE_MAX   SERVICE_NIS
 

Enumerations

enum  service_type {
  SERVICE_NONE = 0, SERVICE_BIND, SERVICE_HOSTS, SERVICE_NIS,
  SERVICE_NONE = 0, SERVICE_BIND, SERVICE_TABLE, SERVICE_NIS
}
 

Functions

struct hostentgethostbyname (const char *name)
 
struct hostentgethostbyname2 (const char *name, int type)
 
int gethostbyaddr_r (const void *addr, socklen_t len, int type, struct hostent *ret, char *buf, size_t buflen, struct hostent **result, int *h_errnop)
 
struct hostentgethostbyaddr (const void *addr, socklen_t len, int type)
 
void sethostent (int stayopen)
 
void endhostent (void)