mirror of
https://gitlab.freedesktop.org/libbsd/libbsd.git
synced 2025-10-17 11:05:07 +02:00
man: Add missing man pages
This adds man pages for byteorder(3), errc(3) and fpurge(3), including all their aliases.
This commit is contained in:
83
man/byteorder.3bsd
Normal file
83
man/byteorder.3bsd
Normal file
@@ -0,0 +1,83 @@
|
||||
.\" Copyright (c) 2002 Mike Barcroft <mike@FreeBSD.org>
|
||||
.\" All rights reserved.
|
||||
.\"
|
||||
.\" Redistribution and use in source and binary forms, with or without
|
||||
.\" modification, are permitted provided that the following conditions
|
||||
.\" are met:
|
||||
.\" 1. Redistributions of source code must retain the above copyright
|
||||
.\" notice, this list of conditions and the following disclaimer.
|
||||
.\" 2. Redistributions in binary form must reproduce the above copyright
|
||||
.\" notice, this list of conditions and the following disclaimer in the
|
||||
.\" documentation and/or other materials provided with the distribution.
|
||||
.\"
|
||||
.\" THIS SOFTWARE IS PROVIDED BY THE AUTHOR AND CONTRIBUTORS ``AS IS'' AND
|
||||
.\" ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
|
||||
.\" IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
|
||||
.\" ARE DISCLAIMED. IN NO EVENT SHALL THE AUTHOR OR CONTRIBUTORS BE LIABLE
|
||||
.\" FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
|
||||
.\" DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
|
||||
.\" OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
|
||||
.\" HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
|
||||
.\" LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
|
||||
.\" OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
|
||||
.\" SUCH DAMAGE.
|
||||
.\"
|
||||
.\" $FreeBSD$
|
||||
.\"
|
||||
.Dd April 29, 2002
|
||||
.Dt BYTEORDER 3
|
||||
.Os
|
||||
.Sh NAME
|
||||
.Nm be16enc , be16dec , be32enc , be32dec , be64enc , be64dec ,
|
||||
.Nm le16enc , le16dec , le32enc , le32dec , le64enc , le64dec
|
||||
.Nd byte order operations
|
||||
.Sh SYNOPSIS
|
||||
.In sys/endian.h
|
||||
.Ft uint16_t
|
||||
.Fn be16dec "const void *"
|
||||
.Ft uint32_t
|
||||
.Fn be32dec "const void *"
|
||||
.Ft uint64_t
|
||||
.Fn be64dec "const void *"
|
||||
.Ft uint16_t
|
||||
.Fn le16dec "const void *"
|
||||
.Ft uint32_t
|
||||
.Fn le32dec "const void *"
|
||||
.Ft uint64_t
|
||||
.Fn le64dec "const void *"
|
||||
.Ft void
|
||||
.Fn be16enc "void *" uint16_t
|
||||
.Ft void
|
||||
.Fn be32enc "void *" uint32_t
|
||||
.Ft void
|
||||
.Fn be64enc "void *" uint64_t
|
||||
.Ft void
|
||||
.Fn le16enc "void *" uint16_t
|
||||
.Ft void
|
||||
.Fn le32enc "void *" uint32_t
|
||||
.Ft void
|
||||
.Fn le64enc "void *" uint64_t
|
||||
.Sh DESCRIPTION
|
||||
.Pp
|
||||
The
|
||||
.Fn be16enc ,
|
||||
.Fn be16dec ,
|
||||
.Fn be32enc ,
|
||||
.Fn be32dec ,
|
||||
.Fn be64enc ,
|
||||
.Fn be64dec ,
|
||||
.Fn le16enc ,
|
||||
.Fn le16dec ,
|
||||
.Fn le32enc ,
|
||||
.Fn le32dec ,
|
||||
.Fn le64enc ,
|
||||
and
|
||||
.Fn le64dec
|
||||
functions encode and decode integers to/from byte strings on any alignment
|
||||
in big/little endian format.
|
||||
.Sh SEE ALSO
|
||||
.Xr byteorder 3
|
||||
.Sh HISTORY
|
||||
.Pp
|
||||
The encode/decode functions first appeared in
|
||||
.Fx 5.1 .
|
Reference in New Issue
Block a user