mmap stdio breaks GNU ld
Geoff Keating
geoffk@geoffk.org
Mon Jan 21 21:08:00 GMT 2002
> Date: Mon, 21 Jan 2002 15:06:36 -0600
> Cc: Bruno Haible <haible@ilog.fr>, libc-alpha@sources.redhat.com
> From: Mark Brown <bmark@us.ibm.com>
>
>
> On Friday, January 18, 2002, at 05:06 PM, Ulrich Drepper wrote:
>
> > Bruno Haible <haible@ilog.fr> 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 <geoffk@geoffk.org> <geoffk@redhat.com>
More information about the Libc-alpha
mailing list