www.delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp-workers/2001/03/14/13:22:08

Date: Wed, 14 Mar 2001 20:22:01 +0200
From: "Eli Zaretskii" <eliz AT is DOT elta DOT co DOT il>
Sender: halo1 AT zahav DOT net DOT il
To: djgpp-workers AT delorie DOT com
Message-Id: <2110-Wed14Mar2001202201+0200-eliz@is.elta.co.il>
X-Mailer: Emacs 20.6 (via feedmail 8.3.emacs20_6 I) and Blat ver 1.8.6
In-reply-to: <200103141429.JAA14360@envy.delorie.com> (message from DJ Delorie
on Wed, 14 Mar 2001 09:29:40 -0500)
Subject: Re: zero fill the eof gap (complete patch)
References: <Pine DOT SUN DOT 3 DOT 91 DOT 1010314093834 DOT 22222E-100000 AT is> <200103141429 DOT JAA14360 AT envy DOT delorie DOT com>
Reply-To: djgpp-workers AT delorie DOT com
Errors-To: nobody AT delorie DOT com
X-Mailing-List: djgpp-workers AT delorie DOT com
X-Unsubscribes-To: listserv AT delorie DOT com

> Date: Wed, 14 Mar 2001 09:29:40 -0500
> From: DJ Delorie <dj AT delorie DOT com>
> > 
> > I think you should simply return zero here: it doesn't make sense to
> > zero-fill gaps in writes to terminal devices.
> 
> The flag is only set if a non-beginning lseek *succeeds*.  Can that
> happen for non-real-files?

IIRC, an lseek on a terminal always succeeds (but does nothing).
(That's why fseeking stdin is one way of getting the effect of
emptying the buffered data, like Borland's fflush(stdin) does.)

- Raw text -


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