.\" 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
.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
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
.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.
.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/.