www.delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin-developers/1998/02/19/10:02:55

From: ian AT cygnus DOT com (Ian Lance Taylor)
Subject: Re: The alleged newlib/libc/stdio/fdopen.c bug
19 Feb 1998 10:02:55 -0800 :
Message-ID: <199802191602.LAA13947.cygnus.cygwin32.developers@subrogation.cygnus.com>
References: <01BD3D20 DOT 91E677D0 AT gater DOT krystalbank DOT msk DOT ru>
To: sos AT prospect DOT com DOT ru
Cc: cygwin32-developers AT cygnus DOT com, noer AT cygnus DOT com

   From: Sergey Okhapkin <sos AT prospect DOT com DOT ru>
   Date: Thu, 19 Feb 1998 10:24:32 +0300

   Geoffrey Noer wrote:
   > > I'm not sure. When O_APPEND is set, we have to seek to end of file on
   > > fdopen() call. When __SAPP is set, _every_ write call seeks to eof 
   before
   > > write! Is it a correct behavior for O_APPEND? BTW, where fdflags 
   variable
   > > is defined?
   >
   > -------------------------------- patch -----------------------------

   I have no time to check your patch now, but I have the only question - will 
   write() call seek to the end of file if O_APPEND is set on every write call 
   (incorrect behavior) or just on on the first call?

Just to clarify, as I just posted, seeking to the end of file on every
write call if O_APPEND is set is correct behaviour.

Ian

- Raw text -


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