delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/1998/07/10/01:41:50

From: michael AT weiser DOT saale-net DOT de (Michael Weiser)
Subject: Re: read(), write() and ftell(), feof()
10 Jul 1998 01:41:50 -0700 :
Message-ID: <35a7eec1.2055385.cygnus.gnu-win32@mail>
References: <9807052007 DOT AA13171 AT jsekhon DOT ne DOT mediaone DOT net>
Mime-Version: 1.0
To: "ChazinD" <dchazin AT bighorn DOT dr DOT lucent DOT com>
Cc: gnu-win32 AT cygnus DOT com

Hi ChazinD,

You wrote:

>Under win32 (nad also linux) when reading/writing to a file using
>read()/write() does not update the file pointer information so that functions
>like ftell() and feof() do not work properly. These functions do update the
>file pointers properly under Solaris and Unixware. What gives?
I don't know for sure but because of the internal buffer of most
modern OSs ans clibs you might have to flush the buffer first using
fflush(3) or sync(2). But normally the clib should take care of this
internally... :-|

bye

Michael
-
For help on using this list (especially unsubscribing), send a message to
"gnu-win32-request AT cygnus DOT com" with one line of text: "help".

- Raw text -


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