.\" FIXME: Maybe document LOCK_MAND, LOCK_RW, LOCK_READ, LOCK_WRITE
.\" which only have effect for SAMBA.
.\"
-.TH FLOCK 2 2013-02-11 "Linux" "Linux Programmer's Manual"
+.TH FLOCK 2 2014-04-22 "Linux" "Linux Programmer's Manual"
.SH NAME
flock \- apply or remove an advisory lock on an open file
.SH SYNOPSIS
Locks created by
.BR flock ()
-are associated with an open file table entry.
+are associated with an open file description (see
+.BR open (2)).
This means that duplicate file descriptors (created by, for example,
.BR fork (2)
or
may be denied by a lock that the calling process has
already placed via another descriptor.
-A process may only hold one type of lock (shared or exclusive)
+A process may hold only one type of lock (shared or exclusive)
on a file.
Subsequent
.BR flock ()
.BR open (2),
.BR lockf (3)
-.I Documentation/filesystem/locks.txt
+.I Documentation/filesystems/locks.txt
in the Linux kernel source tree
.RI ( Documentation/locks.txt
in older kernels)
+.SH COLOPHON
+This page is part of release 3.68 of the Linux
+.I man-pages
+project.
+A description of the project,
+information about reporting bugs,
+and the latest version of this page,
+can be found at
+\%http://www.kernel.org/doc/man\-pages/.