Print this page
10229 Some man pages have incorrect cross-references
Split |
Close |
Expand all |
Collapse all |
--- old/usr/src/man/man3c/byteorder.3c.man.txt
+++ new/usr/src/man/man3c/byteorder.3c.man.txt
1 1 BYTEORDER(3C) Standard C Library Functions BYTEORDER(3C)
2 2
3 3 NAME
4 4 byteorder, htonl, htonll, htons, ntohl, ntohll, ntohs - convert values
5 5 between host and network byte order
6 6
7 7 LIBRARY
8 8 Standard C Library (libc, -lc)
9 9
10 10 SYNOPSIS
11 11 #include <sys/types.h>
12 12 #include <netinet/in.h>
13 13 #include <inttypes.h>
14 14
15 15 uint32_t
16 16 htonl(uint32_t hostlong);
17 17
18 18 uint64_t
19 19 htonll(uint64_t hostlonglong);
20 20
21 21 uint16_t
22 22 htons(uint16_t hostshort);
23 23
24 24 uint32_t
25 25 ntohl(uint32_t netlong);
26 26
27 27 uint64_t
28 28 ntohll(uint64_t netlonglong);
29 29
30 30 uint16_t
↓ open down ↓ |
30 lines elided |
↑ open up ↑ |
31 31 ntohs(uint16_t netshort);
32 32
33 33 DESCRIPTION
34 34 These functions convert 16-bit, 32-bit, and 64-bit quantities between
35 35 network byte order and host byte order. On some architectures these
36 36 routines are defined as NULL macros in the include file <netinet/in.h>.
37 37 On other architectures, the routines are functional when the host byte
38 38 order is different from network byte order.
39 39
40 40 These functions are most often used in conjunction with Internet
41 - addresses and ports as returned by gethostent(3NSL) and getservent(3NSL).
41 + addresses and ports as returned by gethostent(3NSL) and
42 + getservent(3SOCKET).
42 43
43 44 MT-LEVEL
44 45 Safe
45 46
46 47 SEE ALSO
47 - inet.h(3HEAD), gethostent(3NSL), getservent(3NSL), attributes(5),
48 + inet.h(3HEAD), gethostent(3NSL), getservent(3SOCKET), attributes(5),
48 49 byteorder(5)
49 50
50 51 illumos August 2, 2018 illumos
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX