syscall.2: Update feature test macro requirements

Reported-by: Cyril Hrubis <chrubis@suse.cz>
Signed-off-by: Petr Vorel <pvorel@suse.cz>
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
This commit is contained in:
Petr Vorel 2020-01-09 16:46:26 +01:00 committed by Michael Kerrisk
parent d1715bcd15
commit ce0f522790
1 changed files with 11 additions and 1 deletions

View File

@ -44,12 +44,22 @@
syscall \- indirect system call
.SH SYNOPSIS
.nf
.BR "#define _GNU_SOURCE" " /* See feature_test_macros(7) */"
.B #include <unistd.h>
.BR "#include <sys/syscall.h> " "/* For SYS_xxx definitions */"
.PP
.BI "long syscall(long " number ", ...);"
.fi
.PP
.in -4n
Feature Test Macro Requirements for glibc (see
.BR feature_test_macros (7)):
.in
.PP
.BR syscall ():
.ad l
/* Since glibc 2.19: */ _DEFAULT_SOURCE
/* Glibc versions <= 2.19: */ _BSD_SOURCE || _SVID_SOURCE
.ad
.SH DESCRIPTION
.BR syscall ()
is a small library function that invokes