delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/1998/07/11/13:48:20

From: DJ Delorie <dj AT delorie DOT com>
Subject: Re: lseek past EOF doesn't append zeros under Windows 95
11 Jul 1998 13:48:20 -0400 :
Message-ID: <35A7A564.167E@delorie.com>
References: <199807081923 DOT PAA05296 AT dejavu DOT spd DOT analog DOT com> <199807102242 DOT SAA14740 DOT cygnus DOT gnu-win32 AT dejavu DOT spd DOT analog DOT com>
Mime-Version: 1.0
X-Mailer: Mozilla 3.0 (X11; I; IRIX 5.3 IP22)

Vince Del Vecchio wrote:
> Could someone also briefly describe what the semantics will be in the
> next DLL?

The new version will only flag the file when you call lseek().  If you
then call write(), it will know that it followed an lseek(), and
will test to see if the current file pointer is beyond eof.  If
so, it seeks back to eof and writes out zeros to fill the gap.

- Raw text -


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