From 3eb05be2c30c7160386a503f026620177a12a967 Mon Sep 17 00:00:00 2001 From: "Todd C. Miller" Date: Fri, 26 Sep 2003 16:50:15 +0000 Subject: No need to include non-standard machine/endian.h header since sys/types does that for us. Add a STANDARDS section that says what is and is not standard. OK fgsch@ --- lib/libc/net/byteorder.3 | 16 +++++++++++++--- 1 file changed, 13 insertions(+), 3 deletions(-) (limited to 'lib') diff --git a/lib/libc/net/byteorder.3 b/lib/libc/net/byteorder.3 index e3b7972160f..19be4d22285 100644 --- a/lib/libc/net/byteorder.3 +++ b/lib/libc/net/byteorder.3 @@ -1,4 +1,4 @@ -.\" $OpenBSD: byteorder.3,v 1.11 2003/09/21 18:11:27 fgsch Exp $ +.\" $OpenBSD: byteorder.3,v 1.12 2003/09/26 16:50:14 millert Exp $ .\" .\" Copyright (c) 1983, 1991, 1993 .\" The Regents of the University of California. All rights reserved. @@ -48,7 +48,6 @@ .Nd convert values between different byte orderings .Sh SYNOPSIS .Fd #include -.Fd #include .Ft u_int32_t .Fn htonl "u_int32_t host32" .Ft u_int16_t @@ -168,12 +167,23 @@ and .Sh SEE ALSO .Xr gethostbyname 3 , .Xr getservent 3 +.Sh STANDARDS +The +.Fn htonl , +.Fn htons , +.Fn ntohl , +and +.Fn ntohs +functions conform to +.St -p1003.1 . +The other functions are extensions that should not be used when portability +is required. .Sh HISTORY The .Nm byteorder functions appeared in .Bx 4.2 . .Sh BUGS -On the vax, alpha, i386, and so far mips, +On the vax, alpha, i386, and some mips architectures, bytes are handled backwards from most everyone else in the world. This is not expected to be fixed in the near future. -- cgit v1.2.3