logo

oasis-root

Compiled tree of Oasis Linux based on own branch at <https://hacktivis.me/git/oasis/> git clone https://anongit.hacktivis.me/git/oasis-root.git

arpa_inet.h.0p (2958B)


  1. '\" et
  2. .TH arpa_inet.h "0P" 2017 "IEEE/The Open Group" "POSIX Programmer's Manual"
  3. .\"
  4. .SH PROLOG
  5. This manual page is part of the POSIX Programmer's Manual.
  6. The Linux implementation of this interface may differ (consult
  7. the corresponding Linux manual page for details of Linux behavior),
  8. or the interface may not be implemented on Linux.
  9. .\"
  10. .SH NAME
  11. arpa/inet.h
  12. \(em definitions for internet operations
  13. .SH SYNOPSIS
  14. .LP
  15. .nf
  16. #include <arpa/inet.h>
  17. .fi
  18. .SH DESCRIPTION
  19. The
  20. .IR <arpa/inet.h>
  21. header shall define the
  22. .BR in_port_t
  23. and
  24. .BR in_addr_t
  25. types as described in
  26. .IR <netinet/in.h> .
  27. .P
  28. The
  29. .IR <arpa/inet.h>
  30. header shall define the
  31. .BR in_addr
  32. structure as described in
  33. .IR <netinet/in.h> .
  34. .P
  35. The
  36. .IR <arpa/inet.h>
  37. header shall define the INET_ADDRSTRLEN
  38. and INET6_ADDRSTRLEN
  39. macros as described in
  40. .IR <netinet/in.h> .
  41. .P
  42. The following shall be declared as functions, or defined as macros,
  43. or both. If functions are declared, function prototypes shall be
  44. provided.
  45. .sp
  46. .RS 4
  47. .nf
  48. uint32_t htonl(uint32_t);
  49. uint16_t htons(uint16_t);
  50. uint32_t ntohl(uint32_t);
  51. uint16_t ntohs(uint16_t);
  52. .fi
  53. .P
  54. .RE
  55. .P
  56. The
  57. .IR <arpa/inet.h>
  58. header shall define the
  59. .BR uint32_t
  60. and
  61. .BR uint16_t
  62. types as described in
  63. .IR <inttypes.h> .
  64. .P
  65. The following shall be declared as functions and may also be defined as
  66. macros. Function prototypes shall be provided.
  67. .sp
  68. .RS 4
  69. .nf
  70. in_addr_t inet_addr(const char *);
  71. char *inet_ntoa(struct in_addr);
  72. const char *inet_ntop(int, const void *restrict, char *restrict,
  73. socklen_t);
  74. int inet_pton(int, const char *restrict, void *restrict);
  75. .fi
  76. .P
  77. .RE
  78. .P
  79. Inclusion of the
  80. .IR <arpa/inet.h>
  81. header may also make visible all symbols from
  82. .IR <netinet/in.h>
  83. and
  84. .IR <inttypes.h> .
  85. .LP
  86. .IR "The following sections are informative."
  87. .SH "APPLICATION USAGE"
  88. None.
  89. .SH "RATIONALE"
  90. None.
  91. .SH "FUTURE DIRECTIONS"
  92. None.
  93. .SH "SEE ALSO"
  94. .IR "\fB<inttypes.h>\fP",
  95. .IR "\fB<netinet_in.h>\fP"
  96. .P
  97. The System Interfaces volume of POSIX.1\(hy2017,
  98. .IR "\fIhtonl\fR\^(\|)",
  99. .IR "\fIinet_addr\fR\^(\|)",
  100. .IR "\fIinet_ntop\fR\^(\|)"
  101. .\"
  102. .SH COPYRIGHT
  103. Portions of this text are reprinted and reproduced in electronic form
  104. from IEEE Std 1003.1-2017, Standard for Information Technology
  105. -- Portable Operating System Interface (POSIX), The Open Group Base
  106. Specifications Issue 7, 2018 Edition,
  107. Copyright (C) 2018 by the Institute of
  108. Electrical and Electronics Engineers, Inc and The Open Group.
  109. In the event of any discrepancy between this version and the original IEEE and
  110. The Open Group Standard, the original IEEE and The Open Group Standard
  111. is the referee document. The original Standard can be obtained online at
  112. http://www.opengroup.org/unix/online.html .
  113. .PP
  114. Any typographical or formatting errors that appear
  115. in this page are most likely
  116. to have been introduced during the conversion of the source files to
  117. man page format. To report such errors, see
  118. https://www.kernel.org/doc/man-pages/reporting_bugs.html .