Unix Windows incompability (was Re: different heap usage between different Window OS)

Ronny Wichers Schreur ronny@cs.kun.nl
Thu, 31 Aug 2000 15:38:13 +0200


Eduardo Costa wrote (to the Clean Mailing List)

 > Under Windows, it produces the  right result, which is (56, 65536).
 > Under Linux, it produces instead of (-1, 65536).

The Solaris version behaves the same as the Linux version.

The difference is the result of the combinations of using the open
mode FAppendData and fseek. When you open a file in write/append mode
("a" in C) the fseeks are ignored if you write. The writes are always
to the end of the file.

We will fix this before the next release.


Cheers,

Ronny Wichers Schreur