opensolaris_10_netdb.h File Reference
#include <sys/types.h>
#include <netinet/in.h>
#include <sys/socket.h>
#include <sys/feature_tests.h>
Include dependency graph for opensolaris_10_netdb.h:

Go to the source code of this file.

Classes

struct  hostent
 
struct  addrinfo
 
struct  ipsecalgent
 
struct  netent
 
struct  protoent
 
struct  servent
 

Macros

#define _PATH_HEQUIV   "/etc/hosts.equiv"
 
#define _PATH_HOSTS   "/etc/hosts"
 
#define _PATH_IPNODES   "/etc/inet/ipnodes"
 
#define _PATH_IPSECALGS   "/etc/inet/ipsecalgs"
 
#define _PATH_NETMASKS   "/etc/netmasks"
 
#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 compatiblity */
 
#define AI_PASSIVE   0x0008 /* intended for bind() + listen() */
 
#define AI_CANONNAME   0x0010 /* return canonical version of host */
 
#define AI_NUMERICHOST   0x0020 /* use numeric node address string */
 
#define AI_NUMERICSERV   0x0040 /* servname is assumed numeric */
 
#define AI_V4MAPPED   0x0001 /* IPv4 mapped addresses if no IPv6 */
 
#define AI_ALL   0x0002 /* IPv6 and IPv4 mapped addresses */
 
#define AI_ADDRCONFIG   0x0004 /* AAAA or A records only if IPv6/IPv4 cnfg'd */
 
#define AI_DEFAULT   (AI_V4MAPPED | AI_ADDRCONFIG)
 
#define EAI_ADDRFAMILY   1 /* address family not supported */
 
#define EAI_NODATA   7 /* no address */
 
#define EAI_AGAIN   2 /* DNS temporary failure */
 
#define EAI_BADFLAGS   3 /* invalid ai_flags */
 
#define EAI_FAIL   4 /* DNS non-recoverable failure */
 
#define EAI_FAMILY   5 /* ai_family not supported */
 
#define EAI_MEMORY   6 /* memory allocation failure */
 
#define EAI_NONAME   8 /* host/servname not known */
 
#define EAI_SERVICE   9 /* servname not supported for ai_socktype */
 
#define EAI_SOCKTYPE   10 /* ai_socktype not supported */
 
#define EAI_SYSTEM   11 /* system error in errno */
 
#define EAI_OVERFLOW   12 /* argument buffer overflow */
 
#define EAI_PROTOCOL   13
 
#define EAI_MAX   14
 
#define NI_NOFQDN   0x0001
 
#define NI_NUMERICHOST   0x0002 /* return numeric form of address */
 
#define NI_NAMEREQD   0x0004 /* request DNS name */
 
#define NI_NUMERICSERV   0x0008
 
#define NI_DGRAM   0x0010
 
#define NI_WITHSCOPEID   0x0020
 
#define NI_NUMERICSCOPE   0x0040
 
#define NI_MAXHOST   1025
 
#define NI_MAXSERV   32
 
#define SCOPE_DELIMITER   '%'
 
#define IPSEC_PROTO_AH   2
 
#define IPSEC_PROTO_ESP   3
 
#define HOST_NOT_FOUND   1 /* Authoritive Answer Host not found */
 
#define TRY_AGAIN   2 /* Non-Authoritive 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 */
 
#define NETDB_INTERNAL   -1 /* see errno */
 
#define NETDB_SUCCESS   0 /* no problem */
 
#define MAXHOSTNAMELEN   256
 
#define MAXALIASES   35
 
#define MAXADDRS   35
 

Typedefs

typedef struct ipsecalgent ipsecalgent_t
 

Functions

struct hostentgethostbyname_r ()
 
struct hostentgethostbyaddr_r ()
 
struct hostentgetipnodebyname ()
 
struct hostentgetipnodebyaddr ()
 
void freehostent ()
 
struct hostentgethostent_r ()
 
struct serventgetservbyname_r ()
 
struct serventgetservbyport_r ()
 
struct serventgetservent_r ()
 
struct netentgetnetbyname_r ()
 
struct netentgetnetbyaddr_r ()
 
struct netentgetnetent_r ()
 
struct protoentgetprotobyname_r ()
 
struct protoentgetprotobynumber_r ()
 
struct protoentgetprotoent_r ()
 
int getnetgrent_r ()
 
int innetgr ()
 
struct hostentgethostbyname ()
 
struct hostentgethostbyaddr ()
 
struct hostentgethostent ()
 
struct netentgetnetbyname ()
 
struct netentgetnetbyaddr ()
 
struct netentgetnetent ()
 
struct serventgetservbyname ()
 
struct serventgetservbyport ()
 
struct serventgetservent ()
 
struct protoentgetprotobyname ()
 
struct protoentgetprotobynumber ()
 
struct protoentgetprotoent ()
 
int getnetgrent ()
 
int sethostent ()
 
int endhostent ()
 
int setnetent ()
 
int endnetent ()
 
int setservent ()
 
int endservent ()
 
int setprotoent ()
 
int endprotoent ()
 
int setnetgrent ()
 
int endnetgrent ()
 
int rcmd ()
 
int rcmd_af ()
 
int rexec ()
 
int rexec_af ()
 
int rresvport ()
 
int rresvport_af ()
 
int rresvport_addr ()
 
int ruserok ()
 
struct hostentgethostbyname2 ()
 
void herror ()
 
char * hstrerror ()
 
int getaddrinfo ()
 
void freeaddrinfo ()
 
const char * gai_strerror ()
 
int getnameinfo ()
 
struct ipsecalgentgetalgbyname ()
 
struct ipsecalgentgetalgbydoi ()
 
int getdoidomainbyname ()
 
const char * getdoidomainbynum ()
 
void freealgent ()
 

Variables

int h_errno
 

Macro Definition Documentation

#define _PATH_HEQUIV   "/etc/hosts.equiv"

Definition at line 97 of file opensolaris_10_netdb.h.

#define _PATH_HOSTS   "/etc/hosts"

Definition at line 98 of file opensolaris_10_netdb.h.

#define _PATH_IPNODES   "/etc/inet/ipnodes"

Definition at line 99 of file opensolaris_10_netdb.h.

#define _PATH_IPSECALGS   "/etc/inet/ipsecalgs"

Definition at line 100 of file opensolaris_10_netdb.h.

#define _PATH_NETMASKS   "/etc/netmasks"

Definition at line 101 of file opensolaris_10_netdb.h.

#define _PATH_NETWORKS   "/etc/networks"

Definition at line 102 of file opensolaris_10_netdb.h.

#define _PATH_PROTOCOLS   "/etc/protocols"

Definition at line 103 of file opensolaris_10_netdb.h.

#define _PATH_SERVICES   "/etc/services"

Definition at line 104 of file opensolaris_10_netdb.h.

#define AI_ADDRCONFIG   0x0004 /* AAAA or A records only if IPv6/IPv4 cnfg'd */

Definition at line 144 of file opensolaris_10_netdb.h.

#define AI_ALL   0x0002 /* IPv6 and IPv4 mapped addresses */

Definition at line 143 of file opensolaris_10_netdb.h.

#define AI_CANONNAME   0x0010 /* return canonical version of host */

Definition at line 137 of file opensolaris_10_netdb.h.

Referenced by getMyHostname(), and xgetaddrinfo().

#define AI_DEFAULT   (AI_V4MAPPED | AI_ADDRCONFIG)

Definition at line 151 of file opensolaris_10_netdb.h.

#define AI_NUMERICHOST   0x0020 /* use numeric node address string */
#define AI_NUMERICSERV   0x0040 /* servname is assumed numeric */

Definition at line 139 of file opensolaris_10_netdb.h.

Referenced by open_http_socket().

#define AI_PASSIVE   0x0008 /* intended for bind() + listen() */

Definition at line 136 of file opensolaris_10_netdb.h.

Referenced by xgetaddrinfo().

#define AI_V4MAPPED   0x0001 /* IPv4 mapped addresses if no IPv6 */

Definition at line 142 of file opensolaris_10_netdb.h.

#define EAI_ADDRFAMILY   1 /* address family not supported */

Definition at line 154 of file opensolaris_10_netdb.h.

#define EAI_AGAIN   2 /* DNS temporary failure */

Definition at line 157 of file opensolaris_10_netdb.h.

Referenced by xgetaddrinfo().

#define EAI_BADFLAGS   3 /* invalid ai_flags */

Definition at line 158 of file opensolaris_10_netdb.h.

#define EAI_FAIL   4 /* DNS non-recoverable failure */

Definition at line 159 of file opensolaris_10_netdb.h.

Referenced by xgetaddrinfo(), and xgetnameinfo().

#define EAI_FAMILY   5 /* ai_family not supported */

Definition at line 160 of file opensolaris_10_netdb.h.

Referenced by xgetaddrinfo(), and xgetnameinfo().

#define EAI_MAX   14

Definition at line 168 of file opensolaris_10_netdb.h.

#define EAI_MEMORY   6 /* memory allocation failure */

Definition at line 161 of file opensolaris_10_netdb.h.

Referenced by xgetaddrinfo().

#define EAI_NODATA   7 /* no address */

Definition at line 155 of file opensolaris_10_netdb.h.

Referenced by xgetaddrinfo().

#define EAI_NONAME   8 /* host/servname not known */

Definition at line 162 of file opensolaris_10_netdb.h.

Referenced by xgetaddrinfo(), and xgetnameinfo().

#define EAI_OVERFLOW   12 /* argument buffer overflow */

Definition at line 166 of file opensolaris_10_netdb.h.

#define EAI_PROTOCOL   13

Definition at line 167 of file opensolaris_10_netdb.h.

#define EAI_SERVICE   9 /* servname not supported for ai_socktype */

Definition at line 163 of file opensolaris_10_netdb.h.

Referenced by xgetaddrinfo().

#define EAI_SOCKTYPE   10 /* ai_socktype not supported */

Definition at line 164 of file opensolaris_10_netdb.h.

#define EAI_SYSTEM   11 /* system error in errno */

Definition at line 165 of file opensolaris_10_netdb.h.

#define h_addr   h_addr_list[0] /* address, for backward compatiblity */

Definition at line 112 of file opensolaris_10_netdb.h.

#define HOST_NOT_FOUND   1 /* Authoritive Answer Host not found */

Definition at line 464 of file opensolaris_10_netdb.h.

Referenced by xgetaddrinfo().

#define IPSEC_PROTO_AH   2

Definition at line 212 of file opensolaris_10_netdb.h.

#define IPSEC_PROTO_ESP   3

Definition at line 213 of file opensolaris_10_netdb.h.

#define MAXADDRS   35

Definition at line 480 of file opensolaris_10_netdb.h.

#define MAXALIASES   35

Definition at line 479 of file opensolaris_10_netdb.h.

#define MAXHOSTNAMELEN   256

Definition at line 477 of file opensolaris_10_netdb.h.

#define NETDB_INTERNAL   -1 /* see errno */

Definition at line 473 of file opensolaris_10_netdb.h.

#define NETDB_SUCCESS   0 /* no problem */

Definition at line 474 of file opensolaris_10_netdb.h.

#define NI_DGRAM   0x0010

Definition at line 175 of file opensolaris_10_netdb.h.

Referenced by xgetnameinfo().

#define NI_MAXHOST   1025

Definition at line 183 of file opensolaris_10_netdb.h.

#define NI_MAXSERV   32

Definition at line 184 of file opensolaris_10_netdb.h.

#define NI_NAMEREQD   0x0004 /* request DNS name */

Definition at line 173 of file opensolaris_10_netdb.h.

Referenced by getMyHostname(), and xgetnameinfo().

#define NI_NOFQDN   0x0001

Definition at line 171 of file opensolaris_10_netdb.h.

Referenced by xgetnameinfo().

#define NI_NUMERICHOST   0x0002 /* return numeric form of address */

Definition at line 172 of file opensolaris_10_netdb.h.

Referenced by xgetnameinfo().

#define NI_NUMERICSCOPE   0x0040

Definition at line 180 of file opensolaris_10_netdb.h.

#define NI_NUMERICSERV   0x0008

Definition at line 174 of file opensolaris_10_netdb.h.

Referenced by xgetnameinfo().

#define NI_WITHSCOPEID   0x0020

Definition at line 179 of file opensolaris_10_netdb.h.

#define NO_ADDRESS   NO_DATA /* no address, look for MX record */

Definition at line 470 of file opensolaris_10_netdb.h.

Referenced by xgetaddrinfo().

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

Definition at line 467 of file opensolaris_10_netdb.h.

Referenced by xgetaddrinfo().

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

Definition at line 466 of file opensolaris_10_netdb.h.

Referenced by xgetaddrinfo().

#define SCOPE_DELIMITER   '%'

Definition at line 191 of file opensolaris_10_netdb.h.

#define TRY_AGAIN   2 /* Non-Authoritive Host not found, or SERVERFAIL */

Definition at line 465 of file opensolaris_10_netdb.h.

Referenced by xgetaddrinfo().

Typedef Documentation

typedef struct ipsecalgent ipsecalgent_t

Function Documentation

int endhostent ( )
int endnetent ( )
int endnetgrent ( )
int endprotoent ( )
int endservent ( )
void freealgent ( )
void freehostent ( )

Referenced by xgetnameinfo().

const char* gai_strerror ( )
struct ipsecalgent* getalgbydoi ( )
struct ipsecalgent* getalgbyname ( )
int getdoidomainbyname ( )
const char* getdoidomainbynum ( )
struct hostent* gethostbyaddr ( )

Referenced by main(), and xgetnameinfo().

struct hostent* gethostbyaddr_r ( )
struct hostent* gethostbyname2 ( )
struct hostent* gethostbyname_r ( )
struct hostent* gethostent ( )
struct hostent* gethostent_r ( )
struct hostent* getipnodebyaddr ( )

Referenced by xgetnameinfo().

struct hostent* getipnodebyname ( )
int getnameinfo ( )

Referenced by getMyHostname().

struct netent* getnetbyaddr ( )
struct netent* getnetbyaddr_r ( )
struct netent* getnetbyname ( )
struct netent* getnetbyname_r ( )
struct netent* getnetent ( )
struct netent* getnetent_r ( )
int getnetgrent ( )
int getnetgrent_r ( )
struct protoent* getprotobyname ( )
struct protoent* getprotobyname_r ( )
struct protoent* getprotobynumber ( )
struct protoent* getprotobynumber_r ( )
struct protoent* getprotoent ( )
struct protoent* getprotoent_r ( )
struct servent* getservbyname_r ( )
struct servent* getservbyport ( )

Referenced by xgetnameinfo().

struct servent* getservbyport_r ( )
struct servent* getservent ( )
struct servent* getservent_r ( )
void herror ( )
char* hstrerror ( )
int innetgr ( )
int rcmd ( )
int rcmd_af ( )
int rexec ( )
int rexec_af ( )
int rresvport ( )
int rresvport_addr ( )
int rresvport_af ( )
int ruserok ( )
int sethostent ( )
int setnetent ( )
int setnetgrent ( )
int setprotoent ( )
int setservent ( )

Variable Documentation

int h_errno

Referenced by xgetaddrinfo(), and xgetnameinfo().

 

Introduction

Documentation

Support

Miscellaneous

Web Site Translations

Mirrors