netdb.h File Reference

#include <ansi.h>

Include dependency graph for netdb.h:

This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Data Structures

struct  hostent
struct  netent
struct  servent
struct  protoent

Defines

#define _PATH_HEQUIV   "/etc/hosts.equiv"
#define _PATH_HOSTS   "/etc/hosts"
#define _PATH_NETWORKS   "/etc/networks"
#define _PATH_PROTOCOLS   "/etc/protocols"
#define _PATH_SERVICES   "/etc/services"
#define _PATH_SERVACCES   "/etc/serv.access"
#define h_addr   h_addr_list[0]
#define HOST_NOT_FOUND   1
#define TRY_AGAIN   2
#define NO_RECOVERY   3
#define NO_DATA   4
#define NO_ADDRESS   NO_DATA

Functions

void endhostent _ARGS ((void))
hostent *gethostbyaddr _ARGS ((const char *, int, int))
hostent *gethostbyname _ARGS ((const char *))
netent *getnetbyaddr _ARGS ((long, int))
protoent *getprotobynumber _ARGS ((int))
servent *getservbyname _ARGS ((const char *, const char *))
servent *getservbyport _ARGS ((int, const char *))

Variables

int h_errno


Define Documentation

#define _PATH_HEQUIV   "/etc/hosts.equiv"
 

Definition at line 39 of file netdb.h.

Referenced by iruserok().

#define _PATH_HOSTS   "/etc/hosts"
 

Definition at line 40 of file netdb.h.

#define _PATH_NETWORKS   "/etc/networks"
 

Definition at line 41 of file netdb.h.

Referenced by getnetent(), and setnetent().

#define _PATH_PROTOCOLS   "/etc/protocols"
 

Definition at line 42 of file netdb.h.

Referenced by getprotoent(), and setprotoent().

#define _PATH_SERVACCES   "/etc/serv.access"
 

Definition at line 44 of file netdb.h.

Referenced by main().

#define _PATH_SERVICES   "/etc/services"
 

Definition at line 43 of file netdb.h.

Referenced by getservent(), and setservent().

#define h_addr   h_addr_list[0]
 

Definition at line 57 of file netdb.h.

#define HOST_NOT_FOUND   1
 

Definition at line 90 of file netdb.h.

Referenced by getanswer(), gethostbyname(), hperror(), printinfo(), res_query(), and res_search().

#define NO_ADDRESS   NO_DATA
 

Definition at line 94 of file netdb.h.

Referenced by hperror().

#define NO_DATA   4
 

Definition at line 93 of file netdb.h.

#define NO_RECOVERY   3
 

Definition at line 92 of file netdb.h.

Referenced by getanswer(), getinfo(), hperror(), printinfo(), res_init(), and res_query().

#define TRY_AGAIN   2
 

Definition at line 91 of file netdb.h.

Referenced by getanswer(), getinfo(), hperror(), main(), printinfo(), res_query(), and res_search().


Function Documentation

struct servent* getservbyport _ARGS (int, const char *)   ) 
 

struct servent* getservbyname _ARGS (const char *, const char *)   ) 
 

void setservent _ARGS (int)   ) 
 

struct netent* getnetbyaddr _ARGS (long, int)   ) 
 

void herror _ARGS (const char *)   ) 
 

struct hostent* gethostbyaddr _ARGS (const char *, int, int)   ) 
 

void endhostent _ARGS (void)   ) 
 


Variable Documentation

int h_errno
 

Definition at line 69 of file res_query.c.


Generated on Fri Apr 14 23:10:47 2006 for minix by  doxygen 1.4.6