delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp-workers/1999/06/07/18:03:11

Message-Id: <199906072202.WAA44782@out5.ibm.net>
From: "Mark E." <snowball3 AT bigfoot DOT com>
To: djgpp-workers AT delorie DOT com
Date: Mon, 7 Jun 1999 18:03:49 -0400
MIME-Version: 1.0
Subject: Re: enhancements to fcntl.c
References: <199906031836 DOT SAA75560 AT out1 DOT ibm DOT net>
In-reply-to: <Pine.SUN.3.91.990607091852.18114A@is>
X-mailer: Pegasus Mail for Win32 (v3.11)
Reply-To: djgpp-workers AT delorie DOT com

> > 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 -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019