stat.2: SYNOPSIS: Fix includes

Remove <sys/types.h>; ffix too

<sys/types.h> is only needed for 'struct stat'.
That is better documented in system_data_types(7).

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:24 +02:00 committed by Michael Kerrisk
parent 841f16a21e
commit c8b91df19e
1 changed files with 1 additions and 2 deletions

View File

@ -41,7 +41,6 @@
stat, fstat, lstat, fstatat \- get file status
.SH SYNOPSIS
.nf
.B #include <sys/types.h>
.B #include <sys/stat.h>
.PP
.BI "int stat(const char *restrict " pathname ,
@ -50,7 +49,7 @@ stat, fstat, lstat, fstatat \- get file status
.BI "int lstat(const char *restrict " pathname ,
.BI " struct stat *restrict " statbuf );
.PP
.BR "#include <fcntl.h> " "/* Definition of AT_* constants */"
.BR "#include <fcntl.h> " "/* Definition of " AT_* " constants */"
.B #include <sys/stat.h>
.PP
.BI "int fstatat(int " dirfd ", const char *restrict " pathname ,