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 compatibility */
 
#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 /* Authoritative 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

◆ _PATH_HEQUIV

#define _PATH_HEQUIV   "/etc/hosts.equiv"

Definition at line 97 of file opensolaris_10_netdb.h.

◆ _PATH_HOSTS

#define _PATH_HOSTS   "/etc/hosts"

Definition at line 98 of file opensolaris_10_netdb.h.

◆ _PATH_IPNODES

#define _PATH_IPNODES   "/etc/inet/ipnodes"

Definition at line 99 of file opensolaris_10_netdb.h.

◆ _PATH_IPSECALGS

#define _PATH_IPSECALGS   "/etc/inet/ipsecalgs"

Definition at line 100 of file opensolaris_10_netdb.h.

◆ _PATH_NETMASKS

#define _PATH_NETMASKS   "/etc/netmasks"

Definition at line 101 of file opensolaris_10_netdb.h.

◆ _PATH_NETWORKS

#define _PATH_NETWORKS   "/etc/networks"

Definition at line 102 of file opensolaris_10_netdb.h.

◆ _PATH_PROTOCOLS

#define _PATH_PROTOCOLS   "/etc/protocols"

Definition at line 103 of file opensolaris_10_netdb.h.

◆ _PATH_SERVICES

#define _PATH_SERVICES   "/etc/services"

Definition at line 104 of file opensolaris_10_netdb.h.

◆ AI_ADDRCONFIG

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

Definition at line 144 of file opensolaris_10_netdb.h.

◆ AI_ALL

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

Definition at line 143 of file opensolaris_10_netdb.h.

◆ AI_CANONNAME

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

Definition at line 137 of file opensolaris_10_netdb.h.

◆ AI_DEFAULT

#define AI_DEFAULT   (AI_V4MAPPED | AI_ADDRCONFIG)

Definition at line 151 of file opensolaris_10_netdb.h.

◆ AI_NUMERICHOST

#define AI_NUMERICHOST   0x0020 /* use numeric node address string */

Definition at line 138 of file opensolaris_10_netdb.h.

◆ AI_NUMERICSERV

#define AI_NUMERICSERV   0x0040 /* servname is assumed numeric */

Definition at line 139 of file opensolaris_10_netdb.h.

◆ AI_PASSIVE

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

Definition at line 136 of file opensolaris_10_netdb.h.

◆ AI_V4MAPPED

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

Definition at line 142 of file opensolaris_10_netdb.h.

◆ EAI_ADDRFAMILY

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

Definition at line 154 of file opensolaris_10_netdb.h.

◆ EAI_AGAIN

#define EAI_AGAIN   2 /* DNS temporary failure */

Definition at line 157 of file opensolaris_10_netdb.h.

◆ EAI_BADFLAGS

#define EAI_BADFLAGS   3 /* invalid ai_flags */

Definition at line 158 of file opensolaris_10_netdb.h.

◆ EAI_FAIL

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

Definition at line 159 of file opensolaris_10_netdb.h.

◆ EAI_FAMILY

#define EAI_FAMILY   5 /* ai_family not supported */

Definition at line 160 of file opensolaris_10_netdb.h.

◆ EAI_MAX

#define EAI_MAX   14

Definition at line 168 of file opensolaris_10_netdb.h.

◆ EAI_MEMORY

#define EAI_MEMORY   6 /* memory allocation failure */

Definition at line 161 of file opensolaris_10_netdb.h.

◆ EAI_NODATA

#define EAI_NODATA   7 /* no address */

Definition at line 155 of file opensolaris_10_netdb.h.

◆ EAI_NONAME

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

Definition at line 162 of file opensolaris_10_netdb.h.

◆ EAI_OVERFLOW

#define EAI_OVERFLOW   12 /* argument buffer overflow */

Definition at line 166 of file opensolaris_10_netdb.h.

◆ EAI_PROTOCOL

#define EAI_PROTOCOL   13

Definition at line 167 of file opensolaris_10_netdb.h.

◆ EAI_SERVICE

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

Definition at line 163 of file opensolaris_10_netdb.h.

◆ EAI_SOCKTYPE

#define EAI_SOCKTYPE   10 /* ai_socktype not supported */

Definition at line 164 of file opensolaris_10_netdb.h.

◆ EAI_SYSTEM

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

Definition at line 165 of file opensolaris_10_netdb.h.

◆ h_addr

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

Definition at line 112 of file opensolaris_10_netdb.h.

◆ HOST_NOT_FOUND

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

Definition at line 464 of file opensolaris_10_netdb.h.

◆ IPSEC_PROTO_AH

#define IPSEC_PROTO_AH   2

Definition at line 212 of file opensolaris_10_netdb.h.

◆ IPSEC_PROTO_ESP

#define IPSEC_PROTO_ESP   3

Definition at line 213 of file opensolaris_10_netdb.h.

◆ MAXADDRS

#define MAXADDRS   35

Definition at line 480 of file opensolaris_10_netdb.h.

◆ MAXALIASES

#define MAXALIASES   35

Definition at line 479 of file opensolaris_10_netdb.h.

◆ MAXHOSTNAMELEN

#define MAXHOSTNAMELEN   256

Definition at line 477 of file opensolaris_10_netdb.h.

◆ NETDB_INTERNAL

#define NETDB_INTERNAL   -1 /* see errno */

Definition at line 473 of file opensolaris_10_netdb.h.

◆ NETDB_SUCCESS

#define NETDB_SUCCESS   0 /* no problem */

Definition at line 474 of file opensolaris_10_netdb.h.

◆ NI_DGRAM

#define NI_DGRAM   0x0010

Definition at line 175 of file opensolaris_10_netdb.h.

◆ NI_MAXHOST

#define NI_MAXHOST   1025

Definition at line 183 of file opensolaris_10_netdb.h.

◆ NI_MAXSERV

#define NI_MAXSERV   32

Definition at line 184 of file opensolaris_10_netdb.h.

◆ NI_NAMEREQD

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

Definition at line 173 of file opensolaris_10_netdb.h.

◆ NI_NOFQDN

#define NI_NOFQDN   0x0001

Definition at line 171 of file opensolaris_10_netdb.h.

◆ NI_NUMERICHOST

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

Definition at line 172 of file opensolaris_10_netdb.h.

◆ NI_NUMERICSCOPE

#define NI_NUMERICSCOPE   0x0040

Definition at line 180 of file opensolaris_10_netdb.h.

◆ NI_NUMERICSERV

#define NI_NUMERICSERV   0x0008

Definition at line 174 of file opensolaris_10_netdb.h.

◆ NI_WITHSCOPEID

#define NI_WITHSCOPEID   0x0020

Definition at line 179 of file opensolaris_10_netdb.h.

◆ NO_ADDRESS

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

Definition at line 470 of file opensolaris_10_netdb.h.

◆ NO_DATA

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

Definition at line 467 of file opensolaris_10_netdb.h.

◆ NO_RECOVERY

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

Definition at line 466 of file opensolaris_10_netdb.h.

◆ SCOPE_DELIMITER

#define SCOPE_DELIMITER   '%'

Definition at line 191 of file opensolaris_10_netdb.h.

◆ TRY_AGAIN

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

Definition at line 465 of file opensolaris_10_netdb.h.

Typedef Documentation

◆ ipsecalgent_t

typedef struct ipsecalgent ipsecalgent_t

Function Documentation

◆ endhostent()

int endhostent ( )

◆ endnetent()

int endnetent ( )

◆ endnetgrent()

int endnetgrent ( )

◆ endprotoent()

int endprotoent ( )

◆ endservent()

int endservent ( )

◆ freeaddrinfo()

◆ freealgent()

void freealgent ( )

◆ freehostent()

void freehostent ( )

Referenced by xgetnameinfo().

◆ gai_strerror()

const char * gai_strerror ( )

◆ getaddrinfo()

◆ getalgbydoi()

struct ipsecalgent * getalgbydoi ( )

◆ getalgbyname()

struct ipsecalgent * getalgbyname ( )

◆ getdoidomainbyname()

int getdoidomainbyname ( )

◆ getdoidomainbynum()

const char * getdoidomainbynum ( )

◆ gethostbyaddr()

struct hostent * gethostbyaddr ( )

Referenced by xgetnameinfo().

◆ gethostbyaddr_r()

struct hostent * gethostbyaddr_r ( )

◆ gethostbyname()

◆ gethostbyname2()

struct hostent * gethostbyname2 ( )

◆ gethostbyname_r()

struct hostent * gethostbyname_r ( )

◆ gethostent()

struct hostent * gethostent ( )

◆ gethostent_r()

struct hostent * gethostent_r ( )

◆ getipnodebyaddr()

struct hostent * getipnodebyaddr ( )

Referenced by xgetnameinfo().

◆ getipnodebyname()

struct hostent * getipnodebyname ( )

◆ getnameinfo()

int getnameinfo ( )

Referenced by getMyHostname().

◆ getnetbyaddr()

struct netent * getnetbyaddr ( )

◆ getnetbyaddr_r()

struct netent * getnetbyaddr_r ( )

◆ getnetbyname()

struct netent * getnetbyname ( )

◆ getnetbyname_r()

struct netent * getnetbyname_r ( )

◆ getnetent()

struct netent * getnetent ( )

◆ getnetent_r()

struct netent * getnetent_r ( )

◆ getnetgrent()

int getnetgrent ( )

◆ getnetgrent_r()

int getnetgrent_r ( )

◆ getprotobyname()

struct protoent * getprotobyname ( )

◆ getprotobyname_r()

struct protoent * getprotobyname_r ( )

◆ getprotobynumber()

struct protoent * getprotobynumber ( )

◆ getprotobynumber_r()

struct protoent * getprotobynumber_r ( )

◆ getprotoent()

struct protoent * getprotoent ( )

◆ getprotoent_r()

struct protoent * getprotoent_r ( )

◆ getservbyname()

◆ getservbyname_r()

struct servent * getservbyname_r ( )

◆ getservbyport()

struct servent * getservbyport ( )

Referenced by xgetnameinfo().

◆ getservbyport_r()

struct servent * getservbyport_r ( )

◆ getservent()

struct servent * getservent ( )

◆ getservent_r()

struct servent * getservent_r ( )

◆ herror()

void herror ( )

◆ hstrerror()

char * hstrerror ( )

◆ innetgr()

int innetgr ( )

◆ rcmd()

int rcmd ( )

◆ rcmd_af()

int rcmd_af ( )

◆ rexec()

int rexec ( )

◆ rexec_af()

int rexec_af ( )

◆ rresvport()

int rresvport ( )

◆ rresvport_addr()

int rresvport_addr ( )

◆ rresvport_af()

int rresvport_af ( )

◆ ruserok()

int ruserok ( )

◆ sethostent()

int sethostent ( )

◆ setnetent()

int setnetent ( )

◆ setnetgrent()

int setnetgrent ( )

◆ setprotoent()

int setprotoent ( )

◆ setservent()

int setservent ( )

Variable Documentation

◆ h_errno

int h_errno
extern

Referenced by xgetaddrinfo().

 

Introduction

Documentation

Support

Miscellaneous

Web Site Translations

Mirrors