xref: /freebsd-src/lib/libsysdecode/sysdecode.3 (revision fa9896e082a1046ff4fbc75fcba4d18d1f2efc19)
1d6fb4894SJohn Baldwin.\"
2d6fb4894SJohn Baldwin.\" Copyright (c) 2015 John Baldwin <jhb@FreeBSD.org>
3d6fb4894SJohn Baldwin.\"
4d6fb4894SJohn Baldwin.\" Redistribution and use in source and binary forms, with or without
5d6fb4894SJohn Baldwin.\" modification, are permitted provided that the following conditions
6d6fb4894SJohn Baldwin.\" are met:
7d6fb4894SJohn Baldwin.\" 1. Redistributions of source code must retain the above copyright
8d6fb4894SJohn Baldwin.\"    notice, this list of conditions and the following disclaimer.
9d6fb4894SJohn Baldwin.\" 2. Redistributions in binary form must reproduce the above copyright
10d6fb4894SJohn Baldwin.\"    notice, this list of conditions and the following disclaimer in the
11d6fb4894SJohn Baldwin.\"    documentation and/or other materials provided with the distribution.
12d6fb4894SJohn Baldwin.\"
13d6fb4894SJohn Baldwin.\" THIS SOFTWARE IS PROVIDED BY THE AUTHOR AND CONTRIBUTORS ``AS IS'' AND
14d6fb4894SJohn Baldwin.\" ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
15d6fb4894SJohn Baldwin.\" IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
16d6fb4894SJohn Baldwin.\" ARE DISCLAIMED.  IN NO EVENT SHALL THE AUTHOR OR CONTRIBUTORS BE LIABLE
17d6fb4894SJohn Baldwin.\" FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
18d6fb4894SJohn Baldwin.\" DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
19d6fb4894SJohn Baldwin.\" OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
20d6fb4894SJohn Baldwin.\" HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
21d6fb4894SJohn Baldwin.\" LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
22d6fb4894SJohn Baldwin.\" OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
23d6fb4894SJohn Baldwin.\" SUCH DAMAGE.
24d6fb4894SJohn Baldwin.\"
25b5f90655SJohn Baldwin.Dd September 22, 2021
26d6fb4894SJohn Baldwin.Dt SYSDECODE 3
27d6fb4894SJohn Baldwin.Os
28d6fb4894SJohn Baldwin.Sh NAME
29d6fb4894SJohn Baldwin.Nm sysdecode
30d6fb4894SJohn Baldwin.Nd system argument decoding library
31d6fb4894SJohn Baldwin.Sh LIBRARY
32d6fb4894SJohn Baldwin.Lb libsysdecode
339289f547SJohn Baldwin.Sh SYNOPSIS
349289f547SJohn Baldwin.In sysdecode.h
35d6fb4894SJohn Baldwin.Sh DESCRIPTION
36d6fb4894SJohn BaldwinThe
37d6fb4894SJohn Baldwin.Nm
38d6fb4894SJohn Baldwinlibrary includes several functions that provide descriptive names of
39d6fb4894SJohn Baldwinvalues associated with system calls.
40a5f14abfSJohn Baldwin.Ss Supported ABIs
41a5f14abfSJohn BaldwinSome functions in this library provide ABI-specific descriptions.
42a5f14abfSJohn BaldwinThe supported ABIs are named by the
43a5f14abfSJohn Baldwin.Vt enum sysdecode_abi
44a5f14abfSJohn Baldwinenumeration.
45a5f14abfSJohn Baldwin.Pp
46b5f90655SJohn Baldwin.Bl -tag -width "Li SYSDECODE_ABI_FREEBSD32" -compact
475842bd68SJohn Baldwin.It Li SYSDECODE_ABI_FREEBSD
48a5f14abfSJohn BaldwinNative FreeBSD binaries.
49a5f14abfSJohn BaldwinSupported on all platforms.
505842bd68SJohn Baldwin.It Li SYSDECODE_ABI_FREEBSD32
51a5f14abfSJohn Baldwin32-bit FreeBSD binaries.
52*7968a06aSWarner LoshSupported on aarch64, amd64 and powerpc64.
535842bd68SJohn Baldwin.It Li SYSDECODE_ABI_LINUX
54a5f14abfSJohn BaldwinLinux binaries of the same platform.
55*7968a06aSWarner LoshSupported on amd64, i386, and aarch64.
565842bd68SJohn Baldwin.It Li SYSDECODE_ABI_LINUX32
57a5f14abfSJohn Baldwin32-bit Linux binaries.
58a5f14abfSJohn BaldwinSupported on amd64.
595842bd68SJohn Baldwin.It Li SYSDECODE_ABI_UNKNOWN
60a5f14abfSJohn BaldwinA placeholder for use when the ABI is not known.
61a5f14abfSJohn Baldwin.El
62d6fb4894SJohn Baldwin.Sh SEE ALSO
63287b96ddSJohn Baldwin.Xr sysdecode_abi_to_freebsd_errno 3 ,
649289f547SJohn Baldwin.Xr sysdecode_cap_rights 3 ,
65a826eb5aSMichael Tuexen.Xr sysdecode_cmsg_type 3 ,
669289f547SJohn Baldwin.Xr sysdecode_enum 3 ,
679289f547SJohn Baldwin.Xr sysdecode_fcntl_arg 3 ,
68265e5898SJohn Baldwin.Xr sysdecode_ioctlname 3 ,
69ffb66079SJohn Baldwin.Xr sysdecode_kevent 3 ,
709289f547SJohn Baldwin.Xr sysdecode_mask 3 ,
719289f547SJohn Baldwin.Xr sysdecode_quotactl_cmd 3 ,
721e6455d8SMichael Tuexen.Xr sysdecode_sctp_sinfo_flags 3 ,
739289f547SJohn Baldwin.Xr sysdecode_sigcode 3 ,
742bdd2e7eSJohn Baldwin.Xr sysdecode_socket_protocol 3 ,
759289f547SJohn Baldwin.Xr sysdecode_sockopt_name 3 ,
76a5f14abfSJohn Baldwin.Xr sysdecode_syscallnames 3 ,
77d6fb4894SJohn Baldwin.Xr sysdecode_utrace 3
78d6fb4894SJohn Baldwin.Sh HISTORY
79d6fb4894SJohn BaldwinThe
80d6fb4894SJohn Baldwin.Nm
81d6fb4894SJohn Baldwinlibrary first appeared in
82d6fb4894SJohn Baldwin.Fx 11.0 .
83