OSDN Git Service

(split) LDP: Update original to LDP v3.64
[linuxjm/LDP_man-pages.git] / original / man2 / stat.2
index b4c853b..18e28a8 100644 (file)
@@ -37,7 +37,7 @@
 .\" 2007-06-08 mtk: Added example program
 .\" 2007-07-05 mtk: Added details on underlying system call interfaces
 .\"
-.TH STAT 2 2014-03-17 "Linux" "Linux Programmer's Manual"
+.TH STAT 2 2014-03-19 "Linux" "Linux Programmer's Manual"
 .SH NAME
 stat, fstat, lstat, fstatat \- get file status
 .SH SYNOPSIS
@@ -123,7 +123,7 @@ not the file that it refers to.
 .BR fstat ()
 is identical to
 .BR stat (),
-except that the file about which informat is to be retrieved
+except that the file about which information is to be retrieved
 is specified by the file descriptor
 .IR fd .
 .PP
@@ -316,7 +316,9 @@ S_IRWXG     00070   mask for group permissions
 S_IRGRP        00040   group has read permission
 S_IWGRP        00020   group has write permission
 S_IXGRP        00010   group has execute permission
-S_IRWXO        00007   mask for permissions for others (not in group)
+S_IRWXO        00007   T{
+mask for permissions for others (not in group)
+T}
 S_IROTH        00004   others have read permission
 S_IWOTH        00002   others have write permission
 S_IXOTH        00001   others have execute permission
@@ -393,6 +395,11 @@ is an empty string, operate on the file referred to by
 .BR open (2)
 .B O_PATH
 flag).
+If
+.I dirfd
+is
+.BR AT_FDCWD ,
+the call operates on the current working directory.
 In this case,
 .I dirfd
 can refer to any type of file, not just a directory.
@@ -845,3 +852,11 @@ main(int argc, char *argv[])
 .BR utime (2),
 .BR capabilities (7),
 .BR symlink (7)
+.SH COLOPHON
+This page is part of release 3.64 of the Linux
+.I man-pages
+project.
+A description of the project,
+and information about reporting bugs,
+can be found at
+\%http://www.kernel.org/doc/man\-pages/.