netdb.h-data 3.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118
  1. #if !defined ISO && !defined ISO99 && !defined ISO11 && !defined ISO23 && !defined POSIX && !defined XPG4
  2. optional-type in_port_t
  3. optional-type in_addr_t
  4. type {struct hostent}
  5. element {struct hostent} {char*} h_name
  6. element {struct hostent} {char**} h_aliases
  7. element {struct hostent} int h_addrtype
  8. element {struct hostent} int h_length
  9. element {struct hostent} {char**} h_addr_list
  10. type {struct netent}
  11. element {struct netent} {char*} n_name
  12. element {struct netent} {char**} n_aliases
  13. element {struct netent} int n_addrtype
  14. // Bug 21260: n_net has wrong type.
  15. xfail[alpha-linux]-element {struct netent} uint32_t n_net
  16. type uint32_t
  17. type {struct protoent}
  18. element {struct protoent} {char*} p_name
  19. element {struct protoent} {char**} p_aliases
  20. element {struct protoent} int p_proto
  21. type {struct servent}
  22. element {struct servent} {char*} s_name
  23. element {struct servent} {char**} s_aliases
  24. element {struct servent} int s_port
  25. element {struct servent} {char*} s_proto
  26. macro IPPORT_RESERVED
  27. #if !defined XOPEN2K8 && !defined POSIX2008
  28. // variable int h_errno
  29. allow h_errno
  30. macro HOST_NOT_FOUND
  31. macro NO_DATA
  32. macro NO_RECOVERY
  33. macro TRY_AGAIN
  34. #endif
  35. #if !defined XPG42 && !defined UNIX98
  36. type {struct addrinfo}
  37. element {struct addrinfo} int ai_flags
  38. element {struct addrinfo} int ai_family
  39. element {struct addrinfo} int ai_socktype
  40. element {struct addrinfo} int ai_protocol
  41. element {struct addrinfo} socklen_t ai_addrlen
  42. element {struct addrinfo} {struct sockaddr*} ai_addr
  43. element {struct addrinfo} {char*} ai_canonname
  44. element {struct addrinfo} {struct addrinfo*} ai_next
  45. macro AI_PASSIVE
  46. macro AI_CANONNAME
  47. macro AI_NUMERICHOST
  48. macro AI_V4MAPPED
  49. macro AI_ALL
  50. macro AI_ADDRCONFIG
  51. macro AI_NUMERICSERV
  52. macro NI_NOFQDN
  53. macro NI_NUMERICHOST
  54. macro NI_NAMEREQD
  55. macro NI_NUMERICSERV
  56. macro NI_DGRAM
  57. macro EAI_AGAIN
  58. macro EAI_BADFLAGS
  59. macro EAI_FAIL
  60. macro EAI_FAMILY
  61. macro EAI_MEMORY
  62. macro EAI_NONAME
  63. macro EAI_SERVICE
  64. macro EAI_SOCKTYPE
  65. macro EAI_SYSTEM
  66. macro EAI_OVERFLOW
  67. #endif
  68. function void endhostent (void)
  69. function void endnetent (void)
  70. function void endprotoent (void)
  71. function void endservent (void)
  72. #if !defined XPG42 && !defined UNIX98
  73. function void freeaddrinfo (struct addrinfo*)
  74. function {const char*} gai_strerror (int)
  75. function int getaddrinfo (const char*, const char*, const struct addrinfo*, struct addrinfo**)
  76. #endif
  77. function {struct hostent*} gethostbyaddr (const void*, socklen_t, int)
  78. function {struct hostent*} gethostbyname (const char*)
  79. function {struct hostent*} gethostent (void)
  80. #if !defined XPG42 && !defined UNIX98
  81. function int getnameinfo (const struct sockaddr*, socklen_t, char*, socklen_t, char*, socklen_t, int)
  82. #endif
  83. function {struct netent*} getnetbyaddr (uint32_t, int)
  84. function {struct netent*} getnetbyname (const char*)
  85. function {struct netent*} getnetent (void)
  86. function {struct protoent*} getprotobyname (const char *)
  87. function {struct protoent*} getprotobynumber (int)
  88. function {struct protoent*} getprotoent (void)
  89. function {struct servent*} getservbyname (const char*, const char*)
  90. function {struct servent*} getservbyport (int, const char*)
  91. function {struct servent*} getservent (void)
  92. function void sethostent (int)
  93. function void setnetent (int)
  94. function void setprotoent (int)
  95. function void setservent (int)
  96. type socklen_t
  97. allow-header netinet/in.h
  98. allow-header inttypes.h
  99. #endif