NetBSD-Users archive

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

Re: struct stat

On Thu, Dec 18, 2008 at 03:22:56PM +0000, Patrick Welche wrote:
> This is probably a FAQ, but why is st_size in struct stat off_t and not
> size_t? (How can a file's size be negative?)

To support files larger than 4GB, and allow filesystems to be shared
between different archs ?

size_t definition is MD (32/64-bits) ... while off_t is MI (64-bit).

Nicolas Joly

Biological Software and Databanks.
Institut Pasteur, Paris.

Home | Main Index | Thread Index | Old Index