bug-hurd
[Top][All Lists]
Advanced

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

Re: Weird O_RDWR flag definition


From: Samuel Thibault
Subject: Re: Weird O_RDWR flag definition
Date: Sat, 1 Nov 2008 15:07:15 +0100
User-agent: Mutt/1.5.12-2006-07-14

Adam Tkac, le Fri 31 Oct 2008 23:56:27 +0100, a écrit :
> I think O_RDWR definition should be revised, isn't it?

See POSIX:

« In historical implementations the value of O_RDONLY is zero. Because
of that, it is not possible to detect the presence of O_RDONLY and
another option. Future implementations should encode O_RDONLY and
O_WRONLY as bit flags so that:

    O_RDONLY | O_WRONLY == O_RDWR
»

So please see the issue with the POSIX commitee first :)

Samuel




reply via email to

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