diff mbox series

[v4,16/35] exit_group.2: Use syscall(SYS_...); for system calls without a wrapper

Message ID 20210403194026.102818-17-alx.manpages@gmail.com
State Not Applicable
Headers show
Series SYNOPSIS: Use syscall(SYS_...); and fix '#include's | expand

Commit Message

Alejandro Colomar \(man-pages\) April 3, 2021, 7:40 p.m. UTC
<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>
 man2/exit_group.2 | 5 +++--
 1 file changed, 3 insertions(+), 2 deletions(-)
diff mbox series


diff --git a/man2/exit_group.2 b/man2/exit_group.2
index 4fd314262..b512927d4 100644
--- a/man2/exit_group.2
+++ b/man2/exit_group.2
@@ -27,9 +27,10 @@ 
 exit_group \- exit all threads in a process
-.B #include <linux/unistd.h>
+.BR "#include <sys/syscall.h>" "       /* Definition of " SYS_* " constants */"
+.B #inlcude <unistd.h>
-.BI "noreturn void exit_group(int " status );
+.BI "noreturn void syscall(SYS_exit_group, int " status );
 This system call is equivalent to