mirror of https://github.com/mkerrisk/man-pages
flock.2: Move NOTES text describing implementation of flock()
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
This commit is contained in:
parent
e449654fdb
commit
b1b70920af
30
man2/flock.2
30
man2/flock.2
|
@ -146,6 +146,21 @@ possibly implemented in terms of
|
|||
.BR fcntl (2),
|
||||
appears on most UNIX systems.
|
||||
.SH NOTES
|
||||
Since kernel 2.0,
|
||||
.BR flock ()
|
||||
is implemented as a system call in its own right rather
|
||||
than being emulated in the GNU C library as a call to
|
||||
.BR fcntl (2).
|
||||
This yields true BSD semantics:
|
||||
there is no interaction between the types of lock
|
||||
placed by
|
||||
.BR flock ()
|
||||
and
|
||||
.BR fcntl (2),
|
||||
and
|
||||
.BR flock ()
|
||||
does not detect deadlock.
|
||||
.PP
|
||||
In Linux kernels up to 2.6.11,
|
||||
.BR flock ()
|
||||
does not lock files over NFS
|
||||
|
@ -177,21 +192,6 @@ see the discussion of the
|
|||
option in
|
||||
.BR nfs (5).
|
||||
.PP
|
||||
Since kernel 2.0,
|
||||
.BR flock ()
|
||||
is implemented as a system call in its own right rather
|
||||
than being emulated in the GNU C library as a call to
|
||||
.BR fcntl (2).
|
||||
This yields true BSD semantics:
|
||||
there is no interaction between the types of lock
|
||||
placed by
|
||||
.BR flock ()
|
||||
and
|
||||
.BR fcntl (2),
|
||||
and
|
||||
.BR flock ()
|
||||
does not detect deadlock.
|
||||
.PP
|
||||
.BR flock ()
|
||||
places advisory locks only; given suitable permissions on a file,
|
||||
a process is free to ignore the use of
|
||||
|
|
Loading…
Reference in New Issue