Interoperation of flock(2), fcntl(2), and lockf(3)

Cyrille Lefevre clefevre-lists at 9online.fr
Sat May 15 04:00:17 PDT 2004


"Yar Tikhiy" <yar at comp.chem.msu.su> wrote:
[snip]
> Considering all the above, I'd like to add the following paragraph
> to the flock(2), lockf(3), and fcntl(2) man pages (replacing the
> sentence quoted from lockf(3)):
> 
> The flock(2), fcntl(2), and lockf(3) locks are compatible.
> Processes using different locking interfaces can cooperate
> over the same file safely.  However, only one of such
> interfaces should be used within a process.  If a file is

s/a process/the same process/ ?

> locked by a process through flock(2), any record within the
> file will be seen as locked from the viewpoint of another
> process using fcntl(2) or lockf(3), and vice versa.

Cyrille Lefevre.
-- 
home: mailto:cyrille.lefevre at laposte.net


More information about the freebsd-hackers mailing list