Andrey A. Chernov b0bf75c83c file == NULL:
Issue __sflush() before possible setting O_APPEND mode or ftruncate(),
write to wrong place may occurse oserwise.
Use simplified _sseek() to the start, if no O_APPEND is set, instead
of _fseeko() (_sseek() to the end, if O_APPEND, occurse later, as for
file != NULL).
Don't check seek error return, as original fopen() and freopen() never
does.

file != NULL:
Add missing _sseek() to the end.
2006-10-16 14:31:56 +00:00
..
2006-09-17 21:27:35 +00:00
2003-02-23 01:47:49 +00:00
2004-07-16 06:07:12 +00:00
2004-10-03 15:48:32 +00:00
2006-08-22 08:03:01 +00:00
2004-01-18 08:28:47 +00:00
2002-12-19 09:40:28 +00:00
2003-05-22 13:02:28 +00:00
2006-10-16 14:31:56 +00:00
2004-07-03 22:30:10 +00:00
2002-12-18 12:45:11 +00:00
2005-11-23 20:26:58 +00:00
2005-11-23 20:26:58 +00:00
2005-01-20 09:17:07 +00:00
2004-03-10 09:15:38 +00:00
2005-01-11 20:50:51 +00:00
2005-01-20 09:17:07 +00:00