|
Neohapsis is currently accepting applications for employment. For more information, please visit our website www.neohapsis.com or email hr@neohapsis.com |
From: Pavel Kankovsky (peak
argo.troja.mff.cuni.cz)
Date: Wed Nov 04 2009 - 14:29:23 CST
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
On Tue, 3 Nov 2009, Martin Rex wrote:
> I couldn't find anything in the the POSIX 1003.1-2004 Online Edition
> that _requires_ this to fail:
It is required to do nothing:
F_SETFL
Set the file status flags, defined in <fcntl.h>, for the file
description associated with fildes from the corresponding bits in the
third argument, arg, taken as type int. Bits corresponding to the file
access mode and the file creation flags, as defined in <fcntl.h>, that are
set in arg shall be ignored. If any bits in arg other than those mentioned
here are changed by the application, the result is unspecified.
(And curmode &= ~O_RDONLY is not correct, see the rationale for
open().)
--
Pavel Kankovsky aka Peak / Jeremiah 9:21 \
"For death is come up into our MS Windows(tm)..." \ 21st century edition /
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]