diff options
| author | Mike Barcroft <mike@FreeBSD.org> | 2001-08-30 00:04:19 +0000 |
|---|---|---|
| committer | Mike Barcroft <mike@FreeBSD.org> | 2001-08-30 00:04:19 +0000 |
| commit | 03516cfeb01dd63a72e120acc0ad027bd5bde63a (patch) | |
| tree | 2a398220f9e238744c0dfb240b714a2129e1c526 /lib/libc | |
| parent | e7e2b8018452c041381375b0236a226c8ccb352a (diff) | |
Notes
Diffstat (limited to 'lib/libc')
| -rw-r--r-- | lib/libc/net/byteorder.3 | 23 |
1 files changed, 14 insertions, 9 deletions
diff --git a/lib/libc/net/byteorder.3 b/lib/libc/net/byteorder.3 index cae00a76f061..03c176b55cd1 100644 --- a/lib/libc/net/byteorder.3 +++ b/lib/libc/net/byteorder.3 @@ -44,15 +44,15 @@ .Sh LIBRARY .Lb libc .Sh SYNOPSIS -.Fd #include <sys/param.h> -.Ft u_long -.Fn htonl "u_long hostlong" -.Ft u_short -.Fn htons "u_short hostshort" -.Ft u_long -.Fn ntohl "u_long netlong" -.Ft u_short -.Fn ntohs "u_short netshort" +.Fd #include <arpa/inet.h> +.Ft uint32_t +.Fn htonl "uint32_t hostlong" +.Ft uint16_t +.Fn htons "uint16_t hostshort" +.Ft uint32_t +.Fn ntohl "uint32_t netlong" +.Ft uint16_t +.Fn ntohs "uint16_t netshort" .Sh DESCRIPTION These routines convert 16 and 32 bit quantities between network byte order and host byte order. @@ -67,6 +67,11 @@ and .Sh SEE ALSO .Xr gethostbyname 3 , .Xr getservent 3 +.Sh STANDARDS +The +.Nm byteorder +functions are expected to conform with IEEE Std POSIX.1-200x +.Pq Dq POSIX.1 . .Sh HISTORY The .Nm byteorder |
