]> git.ipfire.org Git - thirdparty/man-pages.git/commitdiff
statx.2: SYNOPSIS: Fix includes
authorAlejandro Colomar <alx.manpages@gmail.com>
Sat, 12 Jun 2021 08:31:25 +0000 (10:31 +0200)
committerMichael Kerrisk <mtk.manpages@gmail.com>
Sun, 20 Jun 2021 02:43:43 +0000 (14:43 +1200)
<unistd.h> doesn't seem to be needed:
  AT_* constants come from <fcntl.h>
  STATX_* constants come from <sys/stat.h>
  'struct statx' comes from <sys/stat.h>

Signed-off-by: Alejandro Colomar <alx.manpages@gmail.com>
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
man2/statx.2

index a14880630e7d15deee631c7cd4eb896d3e6c520c..62e86fb1b5d266c563492ca19f65e6089c4b6a9a 100644 (file)
@@ -32,9 +32,8 @@
 statx \- get file status (extended)
 .SH SYNOPSIS
 .nf
+.BR "#include <fcntl.h>           " "/* Definition of " AT_* " constants */"
 .B #include <sys/stat.h>
-.B #include <unistd.h>
-.BR "#include <fcntl.h>           " "/* Definition of AT_* constants */"
 .PP
 .BI "int statx(int " dirfd ", const char *restrict " pathname ", int " flags ,
 .BI "          unsigned int " mask ", struct statx *restrict " statxbuf );