This is the mail archive of the libc-alpha@sources.redhat.com 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]

Re: mmap stdio breaks GNU ld


> 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>


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]