diff options
Diffstat (limited to 'src/lib/libc/net/byteorder.3')
| -rw-r--r-- | src/lib/libc/net/byteorder.3 | 15 |
1 files changed, 9 insertions, 6 deletions
diff --git a/src/lib/libc/net/byteorder.3 b/src/lib/libc/net/byteorder.3 index 64a13d47ba..9d8fa7221f 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.7 1999/07/05 04:40:59 aaron Exp $ | 1 | .\" $OpenBSD: byteorder.3,v 1.8 2000/04/18 03:01:30 aaron 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. |
| @@ -83,7 +83,8 @@ | |||
| 83 | .Fn swap16 "u_int16_t val16" | 83 | .Fn swap16 "u_int16_t val16" |
| 84 | .Sh DESCRIPTION | 84 | .Sh DESCRIPTION |
| 85 | These routines convert 16- and 32-bit quantities between different | 85 | These routines convert 16- and 32-bit quantities between different |
| 86 | byte orderings. The | 86 | byte orderings. |
| 87 | The | ||
| 87 | .Dq swap | 88 | .Dq swap |
| 88 | functions reverse the byte ordering of | 89 | functions reverse the byte ordering of |
| 89 | the given quantity, the others converts either from/to the native | 90 | the given quantity, the others converts either from/to the native |
| @@ -127,7 +128,8 @@ The swap functions are of the form: swap{size}. | |||
| 127 | Names involving | 128 | Names involving |
| 128 | .Sq n | 129 | .Sq n |
| 129 | convert quantities between network | 130 | convert quantities between network |
| 130 | byte order and host byte order. The last letter | 131 | byte order and host byte order. |
| 132 | The last letter | ||
| 131 | .Pf ( Sq s | 133 | .Pf ( Sq s |
| 132 | or | 134 | or |
| 133 | .Sq l ) | 135 | .Sq l ) |
| @@ -136,7 +138,8 @@ for the traditional names for such quantities, | |||
| 136 | .Li short | 138 | .Li short |
| 137 | and | 139 | and |
| 138 | .Li long , | 140 | .Li long , |
| 139 | respectively. Today, the C concept of | 141 | respectively. |
| 142 | Today, the C concept of | ||
| 140 | .Li short | 143 | .Li short |
| 141 | and | 144 | and |
| 142 | .Li long | 145 | .Li long |
| @@ -176,5 +179,5 @@ functions appeared in | |||
| 176 | .Bx 4.2 . | 179 | .Bx 4.2 . |
| 177 | .Sh BUGS | 180 | .Sh BUGS |
| 178 | On the vax, alpha, i386, and so far mips, | 181 | On the vax, alpha, i386, and so far mips, |
| 179 | bytes are handled backwards from most everyone else in | 182 | bytes are handled backwards from most everyone else in the world. |
| 180 | the world. This is not expected to be fixed in the near future. | 183 | This is not expected to be fixed in the near future. |
