public inbox for linux-man@vger.kernel.org
 help / color / mirror / Atom feed
* [PATCH resend] statx.2: Add #define _GNU_SOURCE to synopsis
@ 2022-06-08 22:43 Jakub Wilk
  2022-06-09  9:07 ` Alejandro Colomar
  0 siblings, 1 reply; 2+ messages in thread
From: Jakub Wilk @ 2022-06-08 22:43 UTC (permalink / raw)
  To: Michael Kerrisk, Alejandro Colomar; +Cc: linux-man

The original text hinted that you need _GNU_SOURCE only for a few of the
AT_* constants; but actually you need it to get the statx() declaration.

Signed-off-by: Jakub Wilk <jwilk@jwilk.net>
---
 man2/statx.2 | 11 +----------
 1 file changed, 1 insertion(+), 10 deletions(-)

diff --git a/man2/statx.2 b/man2/statx.2
index 0b3f6747f..a8620be6f 100644
--- a/man2/statx.2
+++ b/man2/statx.2
@@ -15,6 +15,7 @@ Standard C library
 .RI ( libc ", " \-lc )
 .SH SYNOPSIS
 .nf
+.BR "#define _GNU_SOURCE          " "/* See feature_test_macros(7) */"
 .BR "#include <fcntl.h>           " "/* Definition of " AT_* " constants */"
 .B #include <sys/stat.h>
 .PP
@@ -166,11 +167,6 @@ If
 is
 .BR AT_FDCWD ,
 the call operates on the current working directory.
-.IP
-This flag is Linux-specific; define
-.B _GNU_SOURCE
-.\" Before glibc 2.16, defining _ATFILE_SOURCE sufficed
-to obtain its definition.
 .TP
 .B AT_NO_AUTOMOUNT
 Don't automount the terminal ("basename") component of
@@ -193,11 +189,6 @@ and
 act as though
 .B AT_NO_AUTOMOUNT
 was set.
-.IP
-This flag is Linux-specific; define
-.B _GNU_SOURCE
-.\" Before glibc 2.16, defining _ATFILE_SOURCE sufficed
-to obtain its definition.
 .TP
 .B AT_SYMLINK_NOFOLLOW
 If
-- 
2.36.1


^ permalink raw reply related	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2022-06-09  9:04 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2022-06-08 22:43 [PATCH resend] statx.2: Add #define _GNU_SOURCE to synopsis Jakub Wilk
2022-06-09  9:07 ` Alejandro Colomar

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox