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 hostent * gethostbyaddr (const void *, socklen_t, int)
 
struct hostent * gethostbyname (const char *)
 
struct hostent * gethostbyname2 (const char *, int)
 
struct hostent * gethostent (void)
 
struct netent * getnetbyaddr (uint32_t, int)
 
struct netent * getnetbyname (const char *)
 
struct netent * getnetent (void)
 
struct protoent * getprotobyname (const char *)
 
struct protoent * getprotobynumber (int)
 
struct protoent * getprotoent (void)
 
struct servent * getservbyname (const char *, const char *)
 
struct servent * getservbyport (int, const char *)
 
struct servent * getservent (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