read(), write() and ftell(), feof()

Michael Weiser michael@weiser.saale-net.de
Thu Jul 9 15:47:00 GMT 1998


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@cygnus.com" with one line of text: "help".



More information about the Cygwin mailing list