exit_group.2: Use syscall(SYS_...); for system calls without a wrapper

<linux/unistd.h> is not needed.  We need <unistd.h> for syscall(),
and <sys/syscall.h> for SYS_exit_group.

Signed-off-by: Alejandro Colomar <alx.manpages@gmail.com>
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
This commit is contained in:
Alejandro Colomar 2021-04-04 13:58:29 +02:00 committed by Michael Kerrisk
parent 86970bf4d3
commit 73f2d2ba11
1 changed files with 3 additions and 2 deletions

View File

@ -27,9 +27,10 @@
exit_group \- exit all threads in a process
.SH SYNOPSIS
.nf
.B #include <linux/unistd.h>
.BR "#include <sys/syscall.h>" " /* Definition of " SYS_* " constants */"
.B #inlcude <unistd.h>
.PP
.BI "noreturn void exit_group(int " status );
.BI "noreturn void syscall(SYS_exit_group, int " status );
.fi
.SH DESCRIPTION
This system call is equivalent to