summaryrefslogtreecommitdiffstats
path: root/upstream/opensuse-tumbleweed/man2/_syscall.2
diff options
context:
space:
mode:
authorDaniel Baumann <daniel.baumann@progress-linux.org>2024-06-17 10:51:52 +0000
committerDaniel Baumann <daniel.baumann@progress-linux.org>2024-06-17 10:51:52 +0000
commit4ad94864781f48b1a4b77f9cfb934622bf756ba1 (patch)
tree3900955c1886e6d2570fea7125ee1f01bafe876d /upstream/opensuse-tumbleweed/man2/_syscall.2
parentAdding upstream version 4.22.0. (diff)
downloadmanpages-l10n-4ad94864781f48b1a4b77f9cfb934622bf756ba1.tar.xz
manpages-l10n-4ad94864781f48b1a4b77f9cfb934622bf756ba1.zip
Adding upstream version 4.23.0.upstream/4.23.0
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
Diffstat (limited to 'upstream/opensuse-tumbleweed/man2/_syscall.2')
-rw-r--r--upstream/opensuse-tumbleweed/man2/_syscall.218
1 files changed, 9 insertions, 9 deletions
diff --git a/upstream/opensuse-tumbleweed/man2/_syscall.2 b/upstream/opensuse-tumbleweed/man2/_syscall.2
index ef6542ff..f591bdcc 100644
--- a/upstream/opensuse-tumbleweed/man2/_syscall.2
+++ b/upstream/opensuse-tumbleweed/man2/_syscall.2
@@ -16,15 +16,15 @@
.\" 2007-10-23 mtk: created as a new page, by taking the content
.\" specific to the _syscall() macros from intro(2).
.\"
-.TH _syscall 2 2023-05-03 "Linux man-pages 6.05.01"
+.TH _syscall 2 2024-05-02 "Linux man-pages (unreleased)"
.SH NAME
_syscall \- invoking a system call without library support (OBSOLETE)
.SH SYNOPSIS
.nf
.B #include <linux/unistd.h>
-.PP
+.P
A _syscall macro
-.PP
+.P
desired system call
.fi
.SH DESCRIPTION
@@ -33,13 +33,13 @@ You need to know how many arguments, their types,
and the function return type.
There are seven macros that make the actual call into the system easier.
They have the form:
-.PP
+.P
.in +4n
.EX
.RI _syscall X ( type , name , type1 , arg1 , type2 , arg2 ,...)
.EE
.in
-.PP
+.P
where
.IP
.I X
@@ -57,7 +57,7 @@ is the Nth argument's type
.IP
.I argN
is the name of the Nth argument
-.PP
+.P
These macros create a function called
.I name
with the arguments you
@@ -85,7 +85,7 @@ The _syscall() macros
produce a prototype.
You may have to
create one, especially for C++ users.
-.PP
+.P
System calls are not required to return only positive or negative error
codes.
You need to read the source to be sure how it will return errors.
@@ -106,7 +106,7 @@ when
is negative.
For the error codes, see
.BR errno (3).
-.PP
+.P
When defining a system call, the argument types
.I must
be
@@ -123,7 +123,7 @@ passed by-value or by-pointer (for aggregates like structs).
.\" Otherwise, the use of a _syscall macro is required.
.\"
.SH EXAMPLES
-.\" [[deprecated]] SRC BEGIN (_syscall.c)
+.\" SRC BEGIN (_syscall.c)
.EX
#include <stdio.h>
#include <stdlib.h>