statx.2: Add #define _GNU_SOURCE to synopsis
commitb4e163963df0b5f439f13f49757899ad98136d50
authorJakub Wilk <jwilk@jwilk.net>
Wed, 8 Jun 2022 22:43:36 +0000 (9 00:43 +0200)
committerAlejandro Colomar <alx.manpages@gmail.com>
Thu, 9 Jun 2022 08:59:20 +0000 (9 10:59 +0200)
treee018ea76082934749211e733ed641148fee04b79
parentecaaf12988b5565bb419857e49274eb05ca1a917
statx.2: Add #define _GNU_SOURCE to synopsis

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.

[alx:]
You can check yourself:

$ grepc -tfp statx
./io/bits/statx-generic.h:60:
int statx (int __dirfd, const char *__restrict __path, int __flags,
           unsigned int __mask, struct statx *__restrict __buf)
  __THROW __nonnull ((2, 5));

$ grep -rnC1 '<bits/statx-generic.h>' io/
io/bits/statx-generic.h-21-#ifndef _SYS_STAT_H
io/bits/statx-generic.h:22:# error Never include <bits/statx-generic.h> directly, include <sys/stat.h> instead.
io/bits/statx-generic.h-23-#endif
--
io/bits/statx.h-25-/* Use the generic definitions.  */
io/bits/statx.h:26:#include <bits/statx-generic.h>

$ grep -rnC1 '<bits/statx.h>' io/
io/bits/statx.h-21-#ifndef _SYS_STAT_H
io/bits/statx.h:22:# error Never include <bits/statx.h> directly, include <sys/stat.h> instead.
io/bits/statx.h-23-#endif
--
io/sys/stat.h-371-#ifdef __USE_GNU
io/sys/stat.h:372:# include <bits/statx.h>
io/sys/stat.h-373-#endif

Signed-off-by: Jakub Wilk <jwilk@jwilk.net>
Signed-off-by: Alejandro Colomar <alx.manpages@gmail.com>
man2/statx.2