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