This is the mail archive of the
cygwin@sourceware.cygnus.com
mailing list for the Cygwin project.
Re: lseek past EOF doesn't append zeros under Windows 95
- To: gnu-win32 at cygnus dot com
- Subject: Re: lseek past EOF doesn't append zeros under Windows 95
- From: DJ Delorie <dj at delorie dot com>
- Date: Sat, 11 Jul 1998 13:48:20 -0400
- Newsgroups: cygnus.gnu-win32
- Organization: delorie software
- References: <199807081923.PAA05296@dejavu.spd.analog.com>, <199807102242.SAA14740.cygnus.gnu-win32@dejavu.spd.analog.com>
- Stamped: newsgate-cygnus
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.
-
For help on using this list (especially unsubscribing), send a message to
"gnu-win32-request@cygnus.com" with one line of text: "help".