diff options
author | mike <mike@FreeBSD.org> | 2001-08-30 00:04:19 +0000 |
---|---|---|
committer | mike <mike@FreeBSD.org> | 2001-08-30 00:04:19 +0000 |
commit | a45063618a1d6723c7f698850318bdd8b65f27a0 (patch) | |
tree | 2a398220f9e238744c0dfb240b714a2129e1c526 /lib/libc/net | |
parent | 77d67fb5682dc550f62559210baf33988ee0f890 (diff) | |
download | FreeBSD-src-a45063618a1d6723c7f698850318bdd8b65f27a0.zip FreeBSD-src-a45063618a1d6723c7f698850318bdd8b65f27a0.tar.gz |
o Remove some GCCisms in src/powerpc/include/endian.h.
o Unify <machine/endian.h>'s across all architectures.
o Make bswapXX() functions use a different spelling of u_int16_t and
friends to reduce namespace pollution. The bswapXX() functions
don't actually exist, but we'll probably import these at some
point. Atleast one driver (if_de) depends on bswapXX() for big
endian cases.
o Deprecate byteorder(3) prototypes from <sys/types.h>, these are
now prototyped indirectly in <arpa/inet.h>.
o Deprecate in_addr_t and in_port_t typedefs in <sys/types.h>, these
are now typedef'd in <arpa/inet.h>.
o Change byteorder(3) prototypes to use standards compliant uint32_t
(spelled __uint32_t to reduce namespace pollution).
o Document new preferred headers and standards compliance.
Discussed with: bde
PR: 29946
Reviewed by: bmilekic
Diffstat (limited to 'lib/libc/net')
-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 cae00a7..03c176b 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 |