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