Message99492
Correction: when input is followed by output, the call needed to avoid undefined behaviour has to be to a "file positioning function" (fseek, fsetpos, or rewind, but not fflush). Since fileobject.c does not use wide I/O operations, it should be sufficient to use _portable_fseek(fp, 0, SEEK_SET).
(_portable_fseek may call some function that is not strictly defined to be a "file positioning function", e.g. fseeko() or fseek64(). However, it would be insane for a stdio implementation not to treat those as being file positioning functions as far as the intent of the C or POSIX standards is concerned.) |
|
Date |
User |
Action |
Args |
2010-02-18 01:36:40 | davidsarah | set | recipients:
+ davidsarah |
2010-02-18 01:36:40 | davidsarah | set | messageid: <1266457000.48.0.280791340247.issue7952@psf.upfronthosting.co.za> |
2010-02-18 01:36:38 | davidsarah | link | issue7952 messages |
2010-02-18 01:36:37 | davidsarah | create | |
|