RTEMS CPU Kit with SuperCore
Data Structures | Macros | Typedefs | Functions | Variables
netdb.h File Reference
#include <sys/cdefs.h>
#include <rtems/bsdnet/_types.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
 

Macros

#define _SOCKLEN_T_DECLARED
 
#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 h_addr   h_addr_list[0] /* address, for backward compatibility */
 
#define NETDB_INTERNAL   -1 /* see errno */
 
#define NETDB_SUCCESS   0 /* no problem */
 
#define HOST_NOT_FOUND   1 /* Authoritative Answer Host not found */
 
#define TRY_AGAIN   2 /* Non-Authoritative Host not found, or SERVERFAIL */
 
#define NO_RECOVERY   3 /* Non recoverable errors, FORMERR, REFUSED, NOTIMP */
 
#define NO_DATA   4 /* Valid name, no data record of requested type */
 
#define NO_ADDRESS   NO_DATA /* no address, look for MX record */
 

Typedefs

typedef __socklen_t socklen_t
 

Functions

__BEGIN_DECLS void endhostent (void)
 
void endnetent (void)
 
void endprotoent (void)
 
void endservent (void)
 
struct hostentgethostbyaddr (const void *, socklen_t, int)
 
struct hostentgethostbyname (const char *)
 
struct hostentgethostbyname2 (const char *, int)
 
struct hostentgethostent (void)
 
struct netentgetnetbyaddr (uint32_t, int)
 
struct netentgetnetbyname (const char *)
 
struct netentgetnetent (void)
 
struct protoentgetprotobyname (const char *)
 
struct protoentgetprotobynumber (int)
 
struct protoentgetprotoent (void)
 
struct serventgetservbyname (const char *, const char *)
 
struct serventgetservbyport (int, const char *)
 
struct serventgetservent (void)
 
void herror (const char *)
 
__const char * hstrerror (int)
 
void sethostent (int)
 
void setnetent (int)
 
void setprotoent (int)
 
void setservent (int)
 
void _sethosthtent (int)
 
void _endhosthtent (void)
 
void _sethostdnsent (int)
 
void _endhostdnsent (void)
 
void _setnethtent (int)
 
void _endnethtent (void)
 
void _setnetdnsent (int)
 
void _endnetdnsent (void)
 
struct hostent_gethostbyhtname (const char *, int)
 
struct hostent_gethostbydnsname (const char *, int)
 
struct hostent_gethostbynisname (const char *, int)
 
struct hostent_gethostbyhtaddr (const char *, int, int)
 
struct hostent_gethostbydnsaddr (const char *, int, int)
 
struct hostent_gethostbynisaddr (const char *, int, int)
 
struct netent_getnetbyhtname (const char *)
 
struct netent_getnetbydnsname (const char *)
 
struct netent_getnetbynisname (const char *)
 
struct netent_getnetbyhtaddr (unsigned long, int)
 
struct netent_getnetbydnsaddr (unsigned long, int)
 
struct netent_getnetbynisaddr (unsigned long, int)
 
void _map_v4v6_address (const char *, char *)
 
void _map_v4v6_hostent (struct hostent *, char **, int *len)
 

Variables

int h_errno