58 .Fa "uint64_t netlonglong"
59 .Fc
60 .Ft uint16_t
61 .Fo ntohs
62 .Fa "uint16_t netshort"
63 .Fc
64 .Sh DESCRIPTION
65 These functions convert 16-bit, 32-bit, and 64-bit quantities between network
66 byte order and host byte order.
67 On some architectures these routines are defined as
68 .Dv NULL
69 macros in the include file
70 .In netinet/in.h .
71 On other architectures, the routines are functional when the host byte order is
72 different from network byte order.
73 .Pp
74 These functions are most often used in conjunction with Internet addresses and
75 ports as returned by
76 .Xr gethostent 3NSL
77 and
78 .Xr getservent 3NSL .
79 .Sh MT-LEVEL
80 .Sy Safe
81 .Sh SEE ALSO
82 .Xr inet.h 3HEAD ,
83 .Xr gethostent 3NSL ,
84 .Xr getservent 3NSL ,
85 .Xr attributes 5 ,
86 .Xr byteorder 5
|
58 .Fa "uint64_t netlonglong"
59 .Fc
60 .Ft uint16_t
61 .Fo ntohs
62 .Fa "uint16_t netshort"
63 .Fc
64 .Sh DESCRIPTION
65 These functions convert 16-bit, 32-bit, and 64-bit quantities between network
66 byte order and host byte order.
67 On some architectures these routines are defined as
68 .Dv NULL
69 macros in the include file
70 .In netinet/in.h .
71 On other architectures, the routines are functional when the host byte order is
72 different from network byte order.
73 .Pp
74 These functions are most often used in conjunction with Internet addresses and
75 ports as returned by
76 .Xr gethostent 3NSL
77 and
78 .Xr getservent 3SOCKET .
79 .Sh MT-LEVEL
80 .Sy Safe
81 .Sh SEE ALSO
82 .Xr inet.h 3HEAD ,
83 .Xr gethostent 3NSL ,
84 .Xr getservent 3SOCKET ,
85 .Xr attributes 5 ,
86 .Xr byteorder 5
|