mirror of https://github.com/mkerrisk/man-pages
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:
parent
86970bf4d3
commit
73f2d2ba11
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue