[Top][All Lists]

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

Re: flock() LOCK_UN support on Hurd

From: Samuel Thibault
Subject: Re: flock() LOCK_UN support on Hurd
Date: Wed, 22 Nov 2017 17:35:11 +0100
User-agent: NeoMutt/20170113 (1.7.2)


Amos Jeffries, on jeu. 23 nov. 2017 04:51:24 +1300, wrote:
> 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.

The LOCK_UN macro is available through <sys/file.h>, just like on Linux.

The fact that fcntl.h happens to pull sys/file.h on Linux is just a side
effect. The document way really is <sys/file.h> on Linux too.


reply via email to

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