diff --git a/man2/stat.2 b/man2/stat.2 index fa75751d2..471dfafb3 100644 --- a/man2/stat.2 +++ b/man2/stat.2 @@ -48,11 +48,11 @@ stat, fstat, lstat, fstatat \- get file status .br .B #include .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 " "/* Definition of AT_* constants */" .B #include @@ -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,