This is the mail archive of the
libc-hacker@sourceware.cygnus.com
mailing list for the glibc project.
Re: C standards question
- To: Zack Weinberg <zack@rabi.columbia.edu>
- Subject: Re: C standards question
- From: Ulrich Drepper <drepper@cygnus.com>
- Date: 27 Sep 1998 13:19:11 -0700
- Cc: libc-hacker@cygnus.com
- References: <199809270511.BAA13349@rabi.phys.columbia.edu>
- Reply-To: drepper@cygnus.com (Ulrich Drepper)
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 `------------------------