bug-hurd
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

flock() LOCK_UN support on Hurd


From: Amos Jeffries
Subject: flock() LOCK_UN support on Hurd
Date: Thu, 23 Nov 2017 04:51:24 +1300
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:52.0) Gecko/20100101 Thunderbird/52.4.0

I am facing a small portability issue on Hurd. Specifically missing definition of LOCK_UN for use as flock() parameter when compiling
 <http://bazaar.launchpad.net/~squid/squid/4/view/head:/src/base/File.h>

There seems to be work from 2001/2002 and a GSoC from 2014 making patches, but these do not appear to be in the current Hurd build on Debian through the expected fcntl.h include.

We need the flock() semantic of reliable atomic locking on files for multi-process shared file access between otherwise independent processes.

Am I missing something as simple as an include?
or, are there any alternatives available on Hurd?


Amos Jeffries



reply via email to

[Prev in Thread] Current Thread [Next in Thread]