Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files. =================================================================== RCS file: /ftp/cvs/cvsroot/src/lib/libc/gen/bswap.3,v retrieving revision 1.4 retrieving revision 1.4.6.2 diff -u -p -r1.4 -r1.4.6.2 --- src/lib/libc/gen/bswap.3 2000/05/15 06:26:42 1.4 +++ src/lib/libc/gen/bswap.3 2002/03/08 21:35:03 1.4.6.2 @@ -1,5 +1,4 @@ -.\" $NetBSD: bswap.3,v 1.4 2000/05/15 06:26:42 bouyer Exp $ -.\" +.\" $NetBSD: bswap.3,v 1.4.6.2 2002/03/08 21:35:03 nathanw Exp $ .\" .\" Copyright (c) 1998 Manuel Bouyer. .\" @@ -31,7 +30,7 @@ .\" THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. .\" .Dd March 17, 1998 -.Dt bswap 3 +.Dt BSWAP 3 .Os .Sh NAME .Nm bswap16 , @@ -41,8 +40,8 @@ .Sh LIBRARY .Lb libc .Sh SYNOPSIS -.Fd #include -.Fd #include +.Fd #include \*[Lt]sys/types.h\*[Gt] +.Fd #include \*[Lt]machine/bswap.h\*[Gt] .Ft u_int16_t .Fn bswap16 "u_int16_t" .Ft u_int32_t @@ -55,8 +54,8 @@ The .Fn bswap32 , and .Fn bswap64 -function return the value of their argument with the bytes inverted. -They can be used to convert 16, 32 or 64 bits intergers from little to big +functions return the value of their argument with the bytes inverted. +They can be used to convert 16, 32 or 64 bits integers from little to big endian, or vice-versa. .Sh SEE ALSO .Xr byteorder 3