This is the mail archive of the libc-alpha@sourceware.org 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] |
| Other format: | [Raw text] | |
On Tue, Feb 18, 2014 at 11:27:35AM -0500, Rich Felker wrote:
> Having the flush/seek sync the offset is not valid, since it's
> permissible to switch to using a different active handle (e.g. the
> underlying fd or a copy of the FILE in a forked child) at this point
> and adjust the offset before switching back to this FILE. Instead,
> explicit flush/seek operations need to reset the offset status to
> "unknown" so that future ftell operations will query it again like
> they did the first time. Implicit flush from the buffer filling up
> does not need to do this.
Then this would be wrong in existing code anyway. Could you file a
bug so that I can take a look at it as a separate problem?
Also, does the fix look OK? It's OK if you don't want to give an ack
for the patch, but I'd like your opinion on it since you had pointed
out problems with the earlier fix.
Thanks,
Siddhesh
PS: I think I wrote a Reply-to header instead of an In-Reply-To header
in my email earlier. Sorry about that.Attachment:
pgpf5xt6vf_SR.pgp
Description: PGP signature
| Index Nav: | [Date Index] [Subject Index] [Author Index] [Thread Index] | |
|---|---|---|
| Message Nav: | [Date Prev] [Date Next] | [Thread Prev] [Thread Next] |