mirror of https://github.com/mkerrisk/man-pages
stat.2: Give 'struct stat' argument a more meaningful name ('statbuf')
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
This commit is contained in:
parent
15d1f5acb7
commit
9a38b2cece
10
man2/stat.2
10
man2/stat.2
|
@ -48,17 +48,17 @@ stat, fstat, lstat, fstatat \- get file status
|
|||
.br
|
||||
.B #include <unistd.h>
|
||||
.sp
|
||||
.BI "int stat(const char *" pathname ", struct stat *" buf );
|
||||
.BI "int stat(const char *" pathname ", struct stat *" statbuf );
|
||||
.br
|
||||
.BI "int fstat(int " fd ", struct stat *" buf );
|
||||
.BI "int fstat(int " fd ", struct stat *" statbuf );
|
||||
.br
|
||||
.BI "int lstat(const char *" pathname ", struct stat *" buf );
|
||||
.BI "int lstat(const char *" pathname ", struct stat *" statbuf );
|
||||
.sp
|
||||
.BR "#include <fcntl.h> " "/* Definition of AT_* constants */"
|
||||
.B #include <sys/stat.h>
|
||||
.sp
|
||||
.BI "int fstatat(int " dirfd ", const char *" pathname ", struct stat *" \
|
||||
buf ,
|
||||
statbuf ,
|
||||
.BI " int " flags );
|
||||
.fi
|
||||
.sp
|
||||
|
@ -97,7 +97,7 @@ _ATFILE_SOURCE
|
|||
.SH DESCRIPTION
|
||||
.PP
|
||||
These functions return information about a file, in the buffer pointed to by
|
||||
.IR buf .
|
||||
.IR statbuf .
|
||||
No permissions are required on the file itself, but\(emin the case of
|
||||
.BR stat (),
|
||||
.BR fstatat (),
|
||||
|
|
Loading…
Reference in New Issue