This is the mail archive of the
newlib@sources.redhat.com
mailing list for the newlib project.
Re: (fhandler_base::lseek): Include high order bits in return.
- From: Corinna Vinschen <cygwin-patches at cygwin dot com>
- To: cygwin-patches at cygwin dot com, newlib at sources dot redhat dot com
- Date: Mon, 17 Nov 2003 23:15:09 +0100
- Subject: Re: (fhandler_base::lseek): Include high order bits in return.
- References: <Pine.GSO.4.56.0311171454590.922@eos> <Pine.GSO.4.56.0311171538130.922@eos>
On Mon, Nov 17, 2003 at 03:40:46PM -0600, Brian Ford wrote:
> On Mon, 17 Nov 2003, Brian Ford wrote:
>
> > This bug fix got our app past its first problem with > 2 Gig files, but
> > then it tripped over ftello. I'm still trying to figure that one out.
> >
> > It looks like it got a 32 bit sign extended value somewhere. Any help would
> > be appreciated. Thanks.
> >
> Well, that somewhere is ftello64.c line 111. fp->_offset has a 32 bit
> sign extended value. Anybody know how it got there?
That can't be it. fp is of type FILE which is actually mapped to
__sFILE64 in 64 bit case. See newlib/libc/include/sys/reent.h.
_offset is of type _off64_t there.
Corinna
--
Corinna Vinschen Please, send mails regarding Cygwin to
Cygwin Developer mailto:cygwin@cygwin.com
Red Hat, Inc.