This is the mail archive of the libc-hacker@sourceware.cygnus.com mailing list for the glibc project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

Re: C standards question


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   `------------------------


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]