C standards question

Ulrich Drepper drepper@cygnus.com
Sun Sep 27 13:20:00 GMT 1998


Zack Weinberg <zack@rabi.columbia.edu> writes:

> In other words, does an fpos_t cookie remain valid if the stream is
> closed and reopened (on the same file), even on systems where a file
> isn't an unstructured stream of bytes?

No.  There is no guarantee the files hasn't changed in between and the
fpos_t structure could also contain references to some data in the
FILE structure (if this would be desireable).

-- 
---------------.      drepper at gnu.org  ,-.   1325 Chesapeake Terrace
Ulrich Drepper  \    ,-------------------'   \  Sunnyvale, CA 94089 USA
Cygnus Solutions `--' drepper at cygnus.com   `------------------------



More information about the Libc-hacker mailing list