* [PATCH 1/1] syscall.2: Update Feature Test Macro Requirements
@ 2020-01-09 15:46 Petr Vorel
2020-01-10 20:13 ` Michael Kerrisk (man-pages)
0 siblings, 1 reply; 2+ messages in thread
From: Petr Vorel @ 2020-01-09 15:46 UTC (permalink / raw)
To: linux-man; +Cc: Petr Vorel, Michael Kerrisk, Li Wang, Cyril Hrubis
Reported-by: Cyril Hrubis <chrubis@suse.cz>
Signed-off-by: Petr Vorel <pvorel@suse.cz>
---
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
^ permalink raw reply related [flat|nested] 2+ messages in thread
* Re: [PATCH 1/1] syscall.2: Update Feature Test Macro Requirements
2020-01-09 15:46 [PATCH 1/1] syscall.2: Update Feature Test Macro Requirements Petr Vorel
@ 2020-01-10 20:13 ` Michael Kerrisk (man-pages)
0 siblings, 0 replies; 2+ messages in thread
From: Michael Kerrisk (man-pages) @ 2020-01-10 20:13 UTC (permalink / raw)
To: Petr Vorel, linux-man; +Cc: mtk.manpages, Li Wang, Cyril Hrubis
Hello Petr,
On 1/9/20 4:46 PM, Petr Vorel wrote:
> Reported-by: Cyril Hrubis <chrubis@suse.cz>
> Signed-off-by: Petr Vorel <pvorel@suse.cz>
Thanks. Patch applied.
Cheers,
Michael
> ---
> 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
>
--
Michael Kerrisk
Linux man-pages maintainer; http://www.kernel.org/doc/man-pages/
Linux/UNIX System Programming Training: http://man7.org/training/
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2020-01-10 20:13 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-01-09 15:46 [PATCH 1/1] syscall.2: Update Feature Test Macro Requirements Petr Vorel
2020-01-10 20:13 ` Michael Kerrisk (man-pages)
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).