statx.2: SYNOPSIS: Fix includes

<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>
This commit is contained in:
Alejandro Colomar 2021-06-12 10:31:25 +02:00 committed by Michael Kerrisk
parent c8b91df19e
commit c9f3f8494c
1 changed files with 1 additions and 2 deletions

View 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 );