This is the mail archive of the
mailing list for the glibc project.
Re: mmap stdio breaks GNU ld
- From: Geoff Keating <geoffk at geoffk dot org>
- To: bmark at us dot ibm dot com
- Cc: drepper at redhat dot com, haible at ilog dot fr, libc-alpha at sources dot redhat dot com
- Date: Mon, 21 Jan 2002 21:08:45 -0800
- Subject: Re: mmap stdio breaks GNU ld
- References: <C17D3BB6-0EB2-11D6-8321-0030657603C6@us.ibm.com>
- Reply-to: Geoff Keating <geoffk at redhat dot com>
> Date: Mon, 21 Jan 2002 15:06:36 -0600
> Cc: Bruno Haible <firstname.lastname@example.org>, email@example.com
> From: Mark Brown <firstname.lastname@example.org>
> On Friday, January 18, 2002, at 05:06 PM, Ulrich Drepper wrote:
> > Bruno Haible <email@example.com> writes:
> >> I.e. 'fileno' has become useless because the file pointer
> >> is positioned at the end of the file right after opening it.
> > It is wrong to assume anything about the position of the file
> > descriptor after fopen(). The standard dosn't guarantee anything.
> Here is a quote from ISO C 99:
I think you're confusing the stdio 'file position indicator', which
can be read with functions like ftell(), with the file descriptor's
file position, which is read with functions like lseek(). This
discussion is about when they can/should/may/do differ.
- Geoffrey Keating <firstname.lastname@example.org> <email@example.com>