[PATCH] statx.2: Add #define _GNU_SOURCE to synopsis

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

 



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@xxxxxxxxx>
---
 man2/statx.2 | 10 +---------
 1 file changed, 1 insertion(+), 9 deletions(-)

diff --git a/man2/statx.2 b/man2/statx.2
index 04b3e5075..ca2cb75a2 100644
--- a/man2/statx.2
+++ b/man2/statx.2
@@ -32,6 +32,7 @@
 statx \- get file status (extended)
 .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
@@ -183,11 +184,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
 .BR AT_NO_AUTOMOUNT
 Don't automount the terminal ("basename") component of
@@ -200,10 +196,6 @@ to prevent mass-automounting of a directory of automount points.
 The
 .B AT_NO_AUTOMOUNT
 flag has no effect if the mount point has already been mounted over.
-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.0




[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