stat.2: wfix

Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
This commit is contained in:
Michael Kerrisk 2015-04-21 14:43:41 +02:00
parent f240296dee
commit 64639e9aa6
1 changed files with 5 additions and 4 deletions

View File

@ -175,19 +175,20 @@ that may be present between some fields on various architectures.
Consult the glibc and kernel source code
if you need to know the details.
\# Background: inode attributes are modified with i_mutex held, but
\# read by stat() without taking the mutex.
.\" Background: inode attributes are modified with i_mutex held, but
.\" read by stat() without taking the mutex.
.I Note:
For performance and simplicity reasons, different fields in the
.I stat
structure may contain state information from different moments
during the execution of the syscall. For example, if
during the execution of the system call.
For example, if
.IR st_mode ,
.IR st_uid
and
.IR st_gid
are changed by another process by calling
.BR chown (2) ,
.BR chown (2),
.BR stat ()
might return the old
.I st_mode