[PATCH 1/1] syscall.2: Update Feature Test Macro Requirements

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Reported-by: Cyril Hrubis <chrubis@xxxxxxx>
Signed-off-by: Petr Vorel <pvorel@xxxxxxx>
---
 man2/syscall.2 | 12 +++++++++++-
 1 file changed, 11 insertions(+), 1 deletion(-)

diff --git a/man2/syscall.2 b/man2/syscall.2
index 9091b34bb..3fc32cb7a 100644
--- a/man2/syscall.2
+++ b/man2/syscall.2
@@ -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
-- 
2.24.1




[Index of Archives]     [Kernel Documentation]     [Netdev]     [Linux Ethernet Bridging]     [Linux Wireless]     [Kernel Newbies]     [Security]     [Linux for Hams]     [Netfilter]     [Bugtraq]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux RAID]     [Linux Admin]     [Samba]

  Powered by Linux