Print this page
9842 man page typos and spelling

Split Close
Expand all
Collapse all
          --- old/usr/src/man/man5/byteorder.5
          +++ new/usr/src/man/man5/byteorder.5
↓ open down ↓ 245 lines elided ↑ open up ↑
 246  246  .Sy htobe .
 247  247  When working with little-endian data, the prefixes
 248  248  .Sy letoh
 249  249  and
 250  250  .Sy htole
 251  251  convert little-endian data to the host's endianness and from the host's
 252  252  to little-endian respectively.
 253  253  .Pp
 254  254  These functions are not standardized and the header they appear in varies
 255  255  between the BSDs and GNU/Linux.
 256      -Applications that wish to be portable, shoulda instead use the
      256 +Applications that wish to be portable, should instead use the
 257  257  .Xr byteorder 3C
 258  258  functions.
 259  259  .Pp
 260  260  All of these functions in both families simply return their input when
 261  261  the host's native byte order is the same as the desired order.
 262  262  For example, when calling
 263  263  .Xr htonl 3C
 264  264  on a big-endian system the original data is returned with no conversion
 265  265  or modification.
 266  266  .Sh SEE ALSO
 267  267  .Xr byteorder 3C ,
 268  268  .Xr endian 3C ,
 269  269  .Xr endian.h 3HEAD ,
 270  270  .Xr inet 3HEAD
    
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX