xref: /freebsd/lib/libsysdecode/sysdecode_syscallnames.3 (revision 9289f547a2e9780d2a77a78e31b02b357b2ce810)
1a5f14abfSJohn Baldwin.\"
2a5f14abfSJohn Baldwin.\" Copyright (c) 2016 John Baldwin <jhb@FreeBSD.org>
3a5f14abfSJohn Baldwin.\" All rights reserved.
4a5f14abfSJohn Baldwin.\"
5a5f14abfSJohn Baldwin.\" Redistribution and use in source and binary forms, with or without
6a5f14abfSJohn Baldwin.\" modification, are permitted provided that the following conditions
7a5f14abfSJohn Baldwin.\" are met:
8a5f14abfSJohn Baldwin.\" 1. Redistributions of source code must retain the above copyright
9a5f14abfSJohn Baldwin.\"    notice, this list of conditions and the following disclaimer.
10a5f14abfSJohn Baldwin.\" 2. Redistributions in binary form must reproduce the above copyright
11a5f14abfSJohn Baldwin.\"    notice, this list of conditions and the following disclaimer in the
12a5f14abfSJohn Baldwin.\"    documentation and/or other materials provided with the distribution.
13a5f14abfSJohn Baldwin.\"
14a5f14abfSJohn Baldwin.\" THIS SOFTWARE IS PROVIDED BY THE AUTHOR AND CONTRIBUTORS ``AS IS'' AND
15a5f14abfSJohn Baldwin.\" ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
16a5f14abfSJohn Baldwin.\" IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
17a5f14abfSJohn Baldwin.\" ARE DISCLAIMED.  IN NO EVENT SHALL THE AUTHOR OR CONTRIBUTORS BE LIABLE
18a5f14abfSJohn Baldwin.\" FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
19a5f14abfSJohn Baldwin.\" DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
20a5f14abfSJohn Baldwin.\" OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
21a5f14abfSJohn Baldwin.\" HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
22a5f14abfSJohn Baldwin.\" LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
23a5f14abfSJohn Baldwin.\" OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
24a5f14abfSJohn Baldwin.\" SUCH DAMAGE.
25a5f14abfSJohn Baldwin.\"
26a5f14abfSJohn Baldwin.\" $FreeBSD$
27a5f14abfSJohn Baldwin.\"
28*9289f547SJohn Baldwin.Dd October 17, 2016
29a5f14abfSJohn Baldwin.Dt sysdecode_syscallnames 3
30a5f14abfSJohn Baldwin.Os
31a5f14abfSJohn Baldwin.Sh NAME
32a5f14abfSJohn Baldwin.Nm sysdecode_syscallnames
33a5f14abfSJohn Baldwin.Nd lookup name of system calls
34a5f14abfSJohn Baldwin.Sh LIBRARY
35a5f14abfSJohn Baldwin.Lb libsysdecode
36a5f14abfSJohn Baldwin.Sh SYNOPSIS
37*9289f547SJohn Baldwin.In sys/types.h
38*9289f547SJohn Baldwin.In stdbool.h
39*9289f547SJohn Baldwin.In sysdecode.h
40a5f14abfSJohn Baldwin.Ft const char *
41a5f14abfSJohn Baldwin.Fn sysdecode_syscallnames "enum sysdecode_abi abi" "unsigned int code"
42a5f14abfSJohn Baldwin.Sh DESCRIPTION
43a5f14abfSJohn BaldwinThis function returns a pointer to the name of a system call identified by
44a5f14abfSJohn Baldwin.Fa code
45a5f14abfSJohn Baldwinfor the process ABI
46a5f14abfSJohn Baldwin.Fa abi .
47a5f14abfSJohn BaldwinIf
48a5f14abfSJohn Baldwin.Fa code
49a5f14abfSJohn Baldwinspecifies an unknown system call or
50a5f14abfSJohn Baldwin.Fa abi
51a5f14abfSJohn Baldwinis an unsupported ABI,
52a5f14abfSJohn Baldwin.Nm
53a5f14abfSJohn Baldwinreturns
54a5f14abfSJohn Baldwin.Dv NULL .
55a5f14abfSJohn Baldwin.Pp
56a5f14abfSJohn BaldwinFor the list of supported ABIs,
57a5f14abfSJohn Baldwinsee
58a5f14abfSJohn Baldwin.Xr sysdecode 3 .
59a5f14abfSJohn Baldwin.Sh RETURN VALUES
60a5f14abfSJohn BaldwinThe
61a5f14abfSJohn Baldwin.Nm
62a5f14abfSJohn Baldwinfunction returns a pointer to a string on success or
63a5f14abfSJohn Baldwin.Dv NULL
64a5f14abfSJohn Baldwinif either
65a5f14abfSJohn Baldwin.Fa code
66a5f14abfSJohn Baldwinor
67a5f14abfSJohn Baldwin.Fa ABI
68a5f14abfSJohn Baldwinis invalid .
69a5f14abfSJohn Baldwin.Sh SEE ALSO
70287b96ddSJohn Baldwin.Xr sysdecode 3 ,
71287b96ddSJohn Baldwin.Xr sysdecode_abi_to_freebsd_errno 3
72