Large files on newlib
Corinna Vinschen
vinschen@redhat.com
Tue May 11 17:32:00 GMT 2004
On May 10 17:12, Jeff Johnston wrote:
>
>
> Ram?n Solano wrote:
> >Hi all.
> >
> >I'm trying to port a C code that handle with files over 2 GB to Cygwin
> >using gcc.
> >
> >This code works fine on Linux (RedHat 9.0) using directly fopen64(),
> >ftello64() and fseeko64() with
> >-D_LARGEFILE_SOURCE and -D_LARGEFILE64_SOURCE gcc directives and
> >including sys/types.h and of course stdio.h, but in cygwin 1.5.7
> >(newlib) the system complains about the undefinition of off64_t. I can
> >correct this using _off64_t instead off64_t and compiles ok, but the
> >linker is unable to find the functions fopen64, etc..
> >
> >Any help would be appreciate..
> >
> >TIA
> >
> >//R. Solano
> >
>
> Ramon,
>
> You should post to the Cygwin mailing list. IIRC, Corinna Vinschen from
> the Cygwin team specifically hid the f*64 interfaces and set up Cygwin so
> the regular I/O calls handled 64-bit by default.
That's right. Cygwin has switched over to 64 bit file access entirely
beginning with Cygwin 1.5.0. That means, off_t is already 64 bit and
the normal functions fopen/ftello/fseeko and the underlying system
functions are 64 bit clean.
Corinna
--
Corinna Vinschen
Cygwin Co-Project Leader
Red Hat, Inc.
More information about the Newlib
mailing list