This is the mail archive of the cygwin@sourceware.cygnus.com mailing list for the Cygwin project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

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


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".


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]