Menu

Commit [r241]  Maximize  Restore  History

- Changed how errors are detected, as returned by Write(), Read() and

Seek(). Seek() is particularly challenging because the value it
returns might be a valid file position and not an error.

- Replaced numeric function return codes of 0 and -1 with macros OK,
SEEK_ERROR/ERROR to clarify the respective purposes.

- Changed how ftell() and fseek() are used, double-checking the return
value and the errno code.

obarthel 2005-04-24

changed /trunk/library/changes
changed /trunk/library/fcntl_lseek.c
changed /trunk/library/stdio_dropiobreadbuffer.c
changed /trunk/library/stdio_fdhookentry.c
changed /trunk/library/stdio_fgetpos.c
changed /trunk/library/stdio_fseek.c
changed /trunk/library/stdio_fsetpos.c
changed /trunk/library/stdio_ftell.c
changed /trunk/library/stdio_grow_file.c
changed /trunk/library/stdio_record_locking.c
changed /trunk/library/stdio_rename.c
changed /trunk/library/unistd_ftruncate.c
/trunk/library/changes Diff Switch to side-by-side view
Loading...
/trunk/library/fcntl_lseek.c Diff Switch to side-by-side view
Loading...
/trunk/library/stdio_dropiobreadbuffer.c Diff Switch to side-by-side view
Loading...
/trunk/library/stdio_fdhookentry.c Diff Switch to side-by-side view
Loading...
/trunk/library/stdio_fgetpos.c Diff Switch to side-by-side view
Loading...
/trunk/library/stdio_fseek.c Diff Switch to side-by-side view
Loading...
/trunk/library/stdio_fsetpos.c Diff Switch to side-by-side view
Loading...
/trunk/library/stdio_ftell.c Diff Switch to side-by-side view
Loading...
/trunk/library/stdio_grow_file.c Diff Switch to side-by-side view
Loading...
/trunk/library/stdio_record_locking.c Diff Switch to side-by-side view
Loading...
/trunk/library/stdio_rename.c Diff Switch to side-by-side view
Loading...
/trunk/library/unistd_ftruncate.c Diff Switch to side-by-side view
Loading...
Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.