Re: max file size (again)...

From: Carsten Hoeger (no email)
Date: Tue Sep 02 2003 - 03:57:57 EDT


On Mon, Sep 01, Wietse Venema wrote:

> Coming back to your proposed macro:
>
> #define FSIZE_MAX (off_t)1<<((sizeof(off_t)*8)-1)
>
> This macro assumes that bytes are 8 bits wide, but the C standard
> does not require this. Postfix runs on machines other than peecees
> and I would not like to lose those platforms. Fortunately, ANSI C
> defines the CHAR_BIT constant in <limits.h> for this exact purpose.

Well, that was a quick shot, as I wrote.
You hammered my arguments down before I could start to think twice.

-- 
With best regards,
Carsten Hoeger
SuSE, The Linux Experts, http://suse.com - http://unitedlinux.com









Hosted Email Solutions

Invaluement Anti-Spam DNSBLs



Powered By FreeBSD   Powered By FreeBSD