stat.2: Use argument name 'pathname' throughout page

(Some APIs were using 'path' while others used 'pathname')

Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
This commit is contained in:
Michael Kerrisk 2014-02-21 12:23:26 +01:00
parent 9f3c96d3e6
commit 66cbeaf41b
1 changed files with 11 additions and 11 deletions

View File

@ -48,11 +48,11 @@ stat, fstat, lstat, fstatat \- get file status
.br
.B #include <unistd.h>
.sp
.BI "int stat(const char *" path ", struct stat *" buf );
.BI "int stat(const char *" pathname ", struct stat *" buf );
.br
.BI "int fstat(int " fd ", struct stat *" buf );
.br
.BI "int lstat(const char *" path ", struct stat *" buf );
.BI "int lstat(const char *" pathname ", struct stat *" buf );
.sp
.BR "#include <fcntl.h> " "/* Definition of AT_* constants */"
.B #include <sys/stat.h>
@ -99,14 +99,14 @@ No permissions are required on the file itself, but\(emin the case of
and
.BR lstat ()\(emexecute
(search) permission is required on all of the directories in
.I path
.I pathname
that lead to the file.
.PP
.BR stat ()
and
.BR fstatat ()
stat the file pointed to by
.I path
.I pathname
and fills in
.IR buf ;
the differences for
@ -117,7 +117,7 @@ are described below.
is identical to
.BR stat (),
except that if
.I path
.I pathname
is a symbolic link, then the link itself is stat-ed,
not the file that it refers to.
@ -431,7 +431,7 @@ is set appropriately.
.B EACCES
Search permission is denied for one of the directories
in the path prefix of
.IR path .
.IR pathname .
(See also
.BR path_resolution (7).)
.TP
@ -446,14 +446,14 @@ Bad address.
Too many symbolic links encountered while traversing the path.
.TP
.B ENAMETOOLONG
.I path
.I pathname
is too long.
.TP
.B ENOENT
A component of
.I path
.I pathname
does not exist, or
.I path
.I pathname
is an empty string.
.TP
.B ENOMEM
@ -461,11 +461,11 @@ Out of memory (i.e., kernel memory).
.TP
.B ENOTDIR
A component of the path prefix of
.I path
.I pathname
is not a directory.
.TP
.B EOVERFLOW
.I path
.I pathname
or
.I fd
refers to a file whose size, inode number,