This is the mail archive of the
mailing list for the glibc project.
Re: mmap stdio breaks GNU ld
- From: Ulrich Drepper <drepper at redhat dot com>
- To: Mark Brown <bmark at us dot ibm dot com>
- Cc: libc-alpha at sources dot redhat dot com
- Date: 22 Jan 2002 00:44:16 -0800
- Subject: Re: mmap stdio breaks GNU ld
- References: <EC2980C0-0F0F-11D6-8963-0030657603C6@us.ibm.com>
- Reply-to: drepper at redhat dot com (Ulrich Drepper)
Mark Brown <email@example.com> writes:
> And here is the relevant text. Note that C talks about associating a
> stream with a file (and thus the file position indicator must be at
> the start) while POSIX talks about associating a stream with a
> file descriptor. Yes, POSIX doesn't make clear that "the position
> indicated by the file offset" could be anywhere". But you can see where
> the expectation comes from. This sounds like a minor documentation
I hope you mean adding "the position indicated by the file offset"
could be anywhere" to the fopen() man page by "documentation issue".
To this I agree. Changing the requirements to say that the file
position should be zero after fopen() would mean possibly breaking
ABIs (in any case it potentially prevents optimizations) and therefore
shouldn't even be considered.
---------------. ,-. 1325 Chesapeake Terrace
Ulrich Drepper \ ,-------------------' \ Sunnyvale, CA 94089 USA
Red Hat `--' drepper at redhat.com `------------------------