Back to index

glibc  2.9
Classes | Defines | Functions
netdb.h File Reference
#include <features.h>
#include <netinet/in.h>
#include <stdint.h>
#include <bits/netdb.h>
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

struct  hostent
struct  servent
struct  protoent

Defines

#define _PATH_HEQUIV   "/etc/hosts.equiv"
#define _PATH_HOSTS   "/etc/hosts"
#define _PATH_NETWORKS   "/etc/networks"
#define _PATH_NSSWITCH_CONF   "/etc/nsswitch.conf"
#define _PATH_PROTOCOLS   "/etc/protocols"
#define _PATH_SERVICES   "/etc/services"
#define h_errno   (*__h_errno_location ())
#define HOST_NOT_FOUND   1 /* Authoritative Answer Host not found. */
#define TRY_AGAIN
#define NO_RECOVERY
#define NO_DATA

Functions

int__h_errno_location (void) __THROW __attribute__((__const__))
void sethostent (int __stay_open)
void endhostent (void)
struct hostentgethostent (void)
struct hostentgethostbyaddr (__const void *__addr, __socklen_t __len, int __type)
struct hostentgethostbyname (__const char *__name)
void setnetent (int __stay_open)
void endnetent (void)
struct netentgetnetent (void)
struct netentgetnetbyaddr (uint32_t __net, int __type)
struct netentgetnetbyname (__const char *__name)
void setservent (int __stay_open)
void endservent (void)
struct serventgetservent (void)
struct serventgetservbyname (__const char *__name, __const char *__proto)
struct serventgetservbyport (int __port, __const char *__proto)
void setprotoent (int __stay_open)
void endprotoent (void)
struct protoentgetprotoent (void)
struct protoentgetprotobyname (__const char *__name)
struct protoentgetprotobynumber (int __proto)

Class Documentation

struct hostent

Definition at line 96 of file netdb.h.

Class Members
char ** h_addr_list
int h_addrtype
char ** h_aliases
int h_length
char * h_name
struct servent

Definition at line 253 of file netdb.h.

Class Members
char ** s_aliases
char * s_name
int s_port
char * s_proto
struct protoent

Definition at line 323 of file netdb.h.

Class Members
char ** p_aliases
char * p_name
int p_proto

Define Documentation

#define _PATH_HEQUIV   "/etc/hosts.equiv"

Definition at line 46 of file netdb.h.

#define _PATH_HOSTS   "/etc/hosts"

Definition at line 47 of file netdb.h.

#define _PATH_NETWORKS   "/etc/networks"

Definition at line 48 of file netdb.h.

#define _PATH_NSSWITCH_CONF   "/etc/nsswitch.conf"

Definition at line 49 of file netdb.h.

#define _PATH_PROTOCOLS   "/etc/protocols"

Definition at line 50 of file netdb.h.

#define _PATH_SERVICES   "/etc/services"

Definition at line 51 of file netdb.h.

#define h_errno   (*__h_errno_location ())

Definition at line 58 of file netdb.h.

#define HOST_NOT_FOUND   1 /* Authoritative Answer Host not found. */

Definition at line 65 of file netdb.h.

#define NO_DATA
Value:
4      /* Valid name, no data record of requested
                               type.  */

Definition at line 68 of file netdb.h.

#define NO_RECOVERY
Value:
3      /* Non recoverable errors, FORMERR, REFUSED,
                               NOTIMP.  */

Definition at line 67 of file netdb.h.

#define TRY_AGAIN
Value:
2      /* Non-Authoritative Host not found,
                               or SERVERFAIL.  */

Definition at line 66 of file netdb.h.


Function Documentation

int* __h_errno_location ( void  ) const

Definition at line 30 of file herrno-loc.c.

{
  return &h_errno;
}
void endhostent ( void  )

Here is the caller graph for this function:

void endnetent ( void  )

Here is the caller graph for this function:

void endprotoent ( void  )

Here is the caller graph for this function:

void endservent ( void  )

Here is the caller graph for this function:

struct hostent* gethostbyaddr ( __const void *  __addr,
__socklen_t  __len,
int  __type 
) [read]

Here is the caller graph for this function:

struct hostent* gethostbyname ( __const char *  __name) [read]

Here is the caller graph for this function:

struct hostent* gethostent ( void  ) [read]

Here is the caller graph for this function:

struct netent* getnetbyaddr ( uint32_t  __net,
int  __type 
) [read]

Here is the caller graph for this function:

struct netent* getnetbyname ( __const char *  __name) [read]

Here is the caller graph for this function:

struct netent* getnetent ( void  ) [read]

Here is the caller graph for this function:

struct protoent* getprotobyname ( __const char *  __name) [read]

Here is the caller graph for this function:

struct protoent* getprotobynumber ( int  __proto) [read]

Here is the caller graph for this function:

struct protoent* getprotoent ( void  ) [read]

Here is the caller graph for this function:

struct servent* getservbyname ( __const char *  __name,
__const char *  __proto 
) [read]

Here is the caller graph for this function:

struct servent* getservbyport ( int  __port,
__const char *  __proto 
) [read]

Here is the caller graph for this function:

struct servent* getservent ( void  ) [read]

Here is the caller graph for this function:

void sethostent ( int  __stay_open)

Here is the caller graph for this function:

void setnetent ( int  __stay_open)

Here is the caller graph for this function:

void setprotoent ( int  __stay_open)

Here is the caller graph for this function:

void setservent ( int  __stay_open)

Here is the caller graph for this function: