aboutsummaryrefslogtreecommitdiffstats
path: root/man2/syscall.2
diff options
context:
space:
mode:
authorMichael Kerrisk <mtk.manpages@gmail.com>2020-06-08 22:59:47 +0200
committerMichael Kerrisk <mtk.manpages@gmail.com>2020-06-08 23:09:36 +0200
commit02e701cde37e3d01bd9ba4d615e56784498b7ef6 (patch)
tree0f274ced0d0c39c98bfb222af3f1d8b708bd9e6d /man2/syscall.2
parentc5f7febc4f87f49a5d6aa73eb999516e76b74766 (diff)
downloadman-pages-02e701cde37e3d01bd9ba4d615e56784498b7ef6.tar.gz
syscall.2: Minor wording tweaks
Reported-by: Jonny Grant <jg@jguk.org> Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
Diffstat (limited to 'man2/syscall.2')
-rw-r--r--man2/syscall.27
1 files changed, 3 insertions, 4 deletions
diff --git a/man2/syscall.2 b/man2/syscall.2
index 2fd94db539..382c40b22a 100644
--- a/man2/syscall.2
+++ b/man2/syscall.2
@@ -82,9 +82,8 @@ when invoking a system call that has no wrapper function in the C library.
.BR syscall ()
saves CPU registers before making the system call,
restores the registers upon return from the system call,
-and stores any error code returned by the system call in
-.BR errno (3)
-if an error occurs.
+and stores any error returned by the system call in
+.BR errno (3).
.PP
Symbolic constants for system call numbers can be found in the header file
.IR <sys/syscall.h> .
@@ -92,7 +91,7 @@ Symbolic constants for system call numbers can be found in the header file
The return value is defined by the system call being invoked.
In general, a 0 return value indicates success.
A \-1 return value indicates an error,
-and an error code is stored in
+and an error number is stored in
.IR errno .
.SH NOTES
.BR syscall ()