cURL
Haxx ad
libcurl

curl's project page on SourceForge.net

Sponsors:
Haxx

cURL > Mailing List > Monthly Index > Single Mail

curl-library Mailing List Archives

Re: 64/32/16bit curl_off_t for DJGPP and WATCOMC

From: Dan Fandrich <dan_at_coneharvesters.com>
Date: Tue, 3 Jun 2008 11:59:39 -0700

On Tue, Jun 03, 2008 at 02:58:06PM +0200, Gisle Vanem wrote:
> "Jamie Lokier" <jamie_at_shareable.org> wrote:
>> Historically, before the invention of off_t, long was used for file
>> offsets not int. Is DOS lseek/fseek using int or long?
>
> True for lseek(). But 'long int' for fseek() on Watcom:
> _WCRTLINK extern int fseek( FILE *__fp, long int __offset, int __whence );
>
> and djgpp:
> int fseek(FILE *_stream, long _offset, int _mode);

Even Borland Turbo C 3.1 (20 years old) uses a long offset for both fseek
and lseek.

>>> Dan

-- 
http://www.MoveAnnouncer.com              The web change of address service
          Let webmasters know that your web site has moved
Received on 2008-06-03

These mail archives are generated by hypermail.

donate! Page updated November 12, 2010.
web site info

File upload with ASP.NET