cURL / Mailing Lists / curl-library / Single Mail

curl-library

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