mirror of https://github.com/mkerrisk/man-pages
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:
parent
841f16a21e
commit
c8b91df19e
|
@ -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 ,
|
||||
|
|
Loading…
Reference in New Issue