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:
Michael Kerrisk 2017-04-27 14:28:08 +02:00
parent 15d1f5acb7
commit 9a38b2cece
1 changed files with 5 additions and 5 deletions

View File

@ -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 (),