Mail Archives: djgpp-workers/1999/06/07/18:03:11
> > Note that changes to the access mode (O_RDONLY, O_WRONLY, O_RDWR)
> > are ignored to obey the online Unix spec.
>
> Yes, Posix says only O_APPEND and O_NONBLOCK can be
changed.
From looking over the source and the interrupt list, I don't think even
O_APPEND can be set with F_SETFL since it's only used when the file
is open and it isn't stored in the SFT. About the only thing I can see
doing when O_APPEND is given in the argument is to seek to EOF.
Mark
---
Mark Elbrecht, snowball3 AT bigfoot DOT com
http://snowball.frogspace.net/
- Raw text -