diff options
| -rw-r--r-- | src/lib/libc/net/byteorder.3 | 16 |
1 files changed, 13 insertions, 3 deletions
diff --git a/src/lib/libc/net/byteorder.3 b/src/lib/libc/net/byteorder.3 index e3b7972160..19be4d2228 100644 --- a/src/lib/libc/net/byteorder.3 +++ b/src/lib/libc/net/byteorder.3 | |||
| @@ -1,4 +1,4 @@ | |||
| 1 | .\" $OpenBSD: byteorder.3,v 1.11 2003/09/21 18:11:27 fgsch Exp $ | 1 | .\" $OpenBSD: byteorder.3,v 1.12 2003/09/26 16:50:14 millert Exp $ |
| 2 | .\" | 2 | .\" |
| 3 | .\" Copyright (c) 1983, 1991, 1993 | 3 | .\" Copyright (c) 1983, 1991, 1993 |
| 4 | .\" The Regents of the University of California. All rights reserved. | 4 | .\" The Regents of the University of California. All rights reserved. |
| @@ -48,7 +48,6 @@ | |||
| 48 | .Nd convert values between different byte orderings | 48 | .Nd convert values between different byte orderings |
| 49 | .Sh SYNOPSIS | 49 | .Sh SYNOPSIS |
| 50 | .Fd #include <sys/types.h> | 50 | .Fd #include <sys/types.h> |
| 51 | .Fd #include <machine/endian.h> | ||
| 52 | .Ft u_int32_t | 51 | .Ft u_int32_t |
| 53 | .Fn htonl "u_int32_t host32" | 52 | .Fn htonl "u_int32_t host32" |
| 54 | .Ft u_int16_t | 53 | .Ft u_int16_t |
| @@ -168,12 +167,23 @@ and | |||
| 168 | .Sh SEE ALSO | 167 | .Sh SEE ALSO |
| 169 | .Xr gethostbyname 3 , | 168 | .Xr gethostbyname 3 , |
| 170 | .Xr getservent 3 | 169 | .Xr getservent 3 |
| 170 | .Sh STANDARDS | ||
| 171 | The | ||
| 172 | .Fn htonl , | ||
| 173 | .Fn htons , | ||
| 174 | .Fn ntohl , | ||
| 175 | and | ||
| 176 | .Fn ntohs | ||
| 177 | functions conform to | ||
| 178 | .St -p1003.1 . | ||
| 179 | The other functions are extensions that should not be used when portability | ||
| 180 | is required. | ||
| 171 | .Sh HISTORY | 181 | .Sh HISTORY |
| 172 | The | 182 | The |
| 173 | .Nm byteorder | 183 | .Nm byteorder |
| 174 | functions appeared in | 184 | functions appeared in |
| 175 | .Bx 4.2 . | 185 | .Bx 4.2 . |
| 176 | .Sh BUGS | 186 | .Sh BUGS |
| 177 | On the vax, alpha, i386, and so far mips, | 187 | On the vax, alpha, i386, and some mips architectures, |
| 178 | bytes are handled backwards from most everyone else in the world. | 188 | bytes are handled backwards from most everyone else in the world. |
| 179 | This is not expected to be fixed in the near future. | 189 | This is not expected to be fixed in the near future. |
