cURL / Mailing Lists / curl-library / Single Mail


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

From: Gisle Vanem <>
Date: Tue, 03 Jun 2008 14:58:06 +0200

"Jamie Lokier" <> 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);

Received on 2008-06-03