VSF Documented
Data Structures | Macros | Typedefs | Functions | Variables
netdb.h File Reference
#include "shell/sys/linux/vsf_linux_cfg.h"
#include "../sys/socket.h"

Go to the source code of this file.

Data Structures

struct  addrinfo
 
struct  hostent
 
struct  netent
 
struct  protoent
 
struct  servent
 
struct  vsf_linux_netdb_vplt_t
 

Macros

#define AI_PASSIVE   0x0001
 
#define AI_CANONNAME   0x0002
 
#define AI_NUMERICHOST   0x0004
 
#define AI_V4MAPPED   0x0008
 
#define AI_ALL   0x0010
 
#define AI_ADDRCONFIG   0x0020
 
#define AI_NUMERICSERV   0x0400
 
#define NI_MAXHOST   1025
 
#define NI_MAXSERV   32
 
#define h_addr   h_addr_list[0]
 
#define getnameinfo   VSF_LINUX_SOCKET_WRAPPER(getnameinfo)
 
#define gethostbyaddr   VSF_LINUX_SOCKET_WRAPPER(gethostbyaddr)
 
#define gai_strerror   VSF_LINUX_SOCKET_WRAPPER(gai_strerror)
 
#define gethostbyname   VSF_LINUX_SOCKET_WRAPPER(gethostbyname)
 
#define getaddrinfo   VSF_LINUX_SOCKET_WRAPPER(getaddrinfo)
 
#define freeaddrinfo   VSF_LINUX_SOCKET_WRAPPER(freeaddrinfo)
 
#define herror   VSF_LINUX_SOCKET_WRAPPER(herror)
 
#define hstrerror   VSF_LINUX_SOCKET_WRAPPER(hstrerror)
 
#define setservent   VSF_LINUX_SOCKET_WRAPPER(setservent)
 
#define endservent   VSF_LINUX_SOCKET_WRAPPER(endservent)
 
#define getservent   VSF_LINUX_SOCKET_WRAPPER(getservent)
 
#define getservbyname   VSF_LINUX_SOCKET_WRAPPER(getservbyname)
 
#define getservbyport   VSF_LINUX_SOCKET_WRAPPER(getservbyport)
 
#define h_errno   (*__vsf_linux_h_errno())
 
#define NI_NAMEREQD   (1 << 0)
 
#define NI_DGRAM   (1 << 1)
 
#define NI_NOFQDN   (1 << 2)
 
#define NI_NUMERICHOST   (1 << 3)
 
#define NI_NUMERICSERV   (1 << 4)
 
#define EAI_BADFLAGS   -1
 
#define EAI_NONAME   -2
 
#define EAI_AGAIN   -3
 
#define EAI_FAIL   -4
 
#define EAI_NODATA   -5
 
#define EAI_FAMILY   -6
 
#define EAI_SOCKTYPE   -7
 
#define EAI_SERVICE   -8
 
#define EAI_ADDRFAMILY   -9
 
#define EAI_MEMORY   -10
 
#define EAI_SYSTEM   -11
 
#define EAI_OVERFLOW   -12
 
#define EAI_INPROGRESS   -100
 
#define EAI_CANCELED   -101
 
#define EAI_NOTCANCELED   -102
 
#define EAI_ALLDONE   -103
 
#define EAI_INTR   -104
 
#define EAI_IDN_ENCODE   -105
 

Typedefs

typedef struct vsf_linux_netdb_vplt_t vsf_linux_netdb_vplt_t
 

Functions

int * __vsf_linux_h_errno (void)
 
struct hostentgethostbyaddr (const void *addr, socklen_t len, int type)
 
struct hostentgethostbyname (const char *name)
 
void setservent (int stayopen)
 
struct serventgetservbyname (const char *name, const char *proto)
 
struct serventgetservbyport (int port, const char *proto)
 
const char * gai_strerror (int errcode)
 
int getnameinfo (const struct sockaddr *addr, socklen_t addrlen, char *host, socklen_t hostlen, char *serv, socklen_t servlen, int flags)
 
int getaddrinfo (const char *name, const char *service, const struct addrinfo *hints, struct addrinfo **pai)
 
void freeaddrinfo (struct addrinfo *pai)
 
void herror (const char *s)
 
const char * hstrerror (int err)
 

Variables

__VSF_VPLT_DECORATOR__ vsf_linux_netdb_vplt_t vsf_linux_netdb_vplt
 

Macro Definition Documentation

◆ AI_PASSIVE

#define AI_PASSIVE   0x0001

◆ AI_CANONNAME

#define AI_CANONNAME   0x0002

◆ AI_NUMERICHOST

#define AI_NUMERICHOST   0x0004

◆ AI_V4MAPPED

#define AI_V4MAPPED   0x0008

◆ AI_ALL

#define AI_ALL   0x0010

◆ AI_ADDRCONFIG

#define AI_ADDRCONFIG   0x0020

◆ AI_NUMERICSERV

#define AI_NUMERICSERV   0x0400

◆ NI_MAXHOST

#define NI_MAXHOST   1025

◆ NI_MAXSERV

#define NI_MAXSERV   32

◆ h_addr

#define h_addr   h_addr_list[0]

◆ getnameinfo

#define getnameinfo   VSF_LINUX_SOCKET_WRAPPER(getnameinfo)

◆ gethostbyaddr

#define gethostbyaddr   VSF_LINUX_SOCKET_WRAPPER(gethostbyaddr)

◆ gai_strerror

#define gai_strerror   VSF_LINUX_SOCKET_WRAPPER(gai_strerror)

◆ gethostbyname

#define gethostbyname   VSF_LINUX_SOCKET_WRAPPER(gethostbyname)

◆ getaddrinfo

#define getaddrinfo   VSF_LINUX_SOCKET_WRAPPER(getaddrinfo)

◆ freeaddrinfo

#define freeaddrinfo   VSF_LINUX_SOCKET_WRAPPER(freeaddrinfo)

◆ herror

#define herror   VSF_LINUX_SOCKET_WRAPPER(herror)

◆ hstrerror

#define hstrerror   VSF_LINUX_SOCKET_WRAPPER(hstrerror)

◆ setservent

#define setservent   VSF_LINUX_SOCKET_WRAPPER(setservent)

◆ endservent

void endservent   VSF_LINUX_SOCKET_WRAPPER(endservent)

◆ getservent

struct servent * getservent   VSF_LINUX_SOCKET_WRAPPER(getservent)

◆ getservbyname

#define getservbyname   VSF_LINUX_SOCKET_WRAPPER(getservbyname)

◆ getservbyport

#define getservbyport   VSF_LINUX_SOCKET_WRAPPER(getservbyport)

◆ h_errno

#define h_errno   (*__vsf_linux_h_errno())

◆ NI_NAMEREQD

#define NI_NAMEREQD   (1 << 0)

◆ NI_DGRAM

#define NI_DGRAM   (1 << 1)

◆ NI_NOFQDN

#define NI_NOFQDN   (1 << 2)

◆ NI_NUMERICHOST

#define NI_NUMERICHOST   (1 << 3)

◆ NI_NUMERICSERV

#define NI_NUMERICSERV   (1 << 4)

◆ EAI_BADFLAGS

#define EAI_BADFLAGS   -1

◆ EAI_NONAME

#define EAI_NONAME   -2

◆ EAI_AGAIN

#define EAI_AGAIN   -3

◆ EAI_FAIL

#define EAI_FAIL   -4

◆ EAI_NODATA

#define EAI_NODATA   -5

◆ EAI_FAMILY

#define EAI_FAMILY   -6

◆ EAI_SOCKTYPE

#define EAI_SOCKTYPE   -7

◆ EAI_SERVICE

#define EAI_SERVICE   -8

◆ EAI_ADDRFAMILY

#define EAI_ADDRFAMILY   -9

◆ EAI_MEMORY

#define EAI_MEMORY   -10

◆ EAI_SYSTEM

#define EAI_SYSTEM   -11

◆ EAI_OVERFLOW

#define EAI_OVERFLOW   -12

◆ EAI_INPROGRESS

#define EAI_INPROGRESS   -100

◆ EAI_CANCELED

#define EAI_CANCELED   -101

◆ EAI_NOTCANCELED

#define EAI_NOTCANCELED   -102

◆ EAI_ALLDONE

#define EAI_ALLDONE   -103

◆ EAI_INTR

#define EAI_INTR   -104

◆ EAI_IDN_ENCODE

#define EAI_IDN_ENCODE   -105

Typedef Documentation

◆ vsf_linux_netdb_vplt_t

Function Documentation

◆ __vsf_linux_h_errno()

int * __vsf_linux_h_errno ( void  )
extern

◆ gethostbyaddr()

struct hostent * gethostbyaddr ( const void *  addr,
socklen_t  len,
int  type 
)

◆ gethostbyname()

struct hostent * gethostbyname ( const char *  name)

◆ setservent()

void setservent ( int  stayopen)

◆ getservbyname()

struct servent * getservbyname ( const char *  name,
const char *  proto 
)

◆ getservbyport()

struct servent * getservbyport ( int  port,
const char *  proto 
)

◆ gai_strerror()

const char * gai_strerror ( int  errcode)

◆ getnameinfo()

int getnameinfo ( const struct sockaddr addr,
socklen_t  addrlen,
char *  host,
socklen_t  hostlen,
char *  serv,
socklen_t  servlen,
int  flags 
)

◆ getaddrinfo()

int getaddrinfo ( const char *  name,
const char *  service,
const struct addrinfo hints,
struct addrinfo **  pai 
)

◆ freeaddrinfo()

void freeaddrinfo ( struct addrinfo pai)

◆ herror()

void herror ( const char *  s)

◆ hstrerror()

const char * hstrerror ( int  err)

Variable Documentation

◆ vsf_linux_netdb_vplt

__VSF_VPLT_DECORATOR__ vsf_linux_netdb_vplt_t vsf_linux_netdb_vplt
extern