[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Lynx-dev] File size limitation problem.

From: gilmap
Subject: Re: [Lynx-dev] File size limitation problem.
Date: Fri, 14 Jan 2005 01:07:05 -0700 (MST)

In a recent note, David Woolley said:

> Date: Fri, 14 Jan 2005 07:31:09 +0000 (GMT)
> Most operating systems have a file size limit of 2GB.  That's certainly
> true of the Linux versions that I have used.  It comes from using
> signed integers for the lseek function, etc.
Macintosh OS X, OTOH, got it right from the start:

    506 $ grep fpos_t /usr/include/stdio.h                 
    typedef off_t fpos_t;
    typedef int64_t fpos_t;

> Nowadays, they often have a special mode in which file positions are given
> in blocks, rather than bytes, but that requires special I/O systems calls
Of course, this means that special mode is probably not portable to OS X.
And I had trouble trying to build GNU findutils on OS X because that code
sometimes moves an off_t temporarily through a 32-bit integer.

-- gil

reply via email to

[Prev in Thread] Current Thread [Next in Thread]