|
Neohapsis is currently accepting applications for employment. For more information, please visit our website www.neohapsis.com or email hr@neohapsis.com |
Re: max file size (again)...
From: Carsten Hoeger (choeger
suse.de)
Date: Tue Sep 02 2003 - 02:57:57 CDT
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
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
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.2 (GNU/Linux)
iD8DBQE/VE2FeYi2qGaRyUoRAm6EAJwKjPboIsW3VwTGMU9/OMA7GBDlRACggpIw
hsGShn+aa5dhdpEjbwu/uCs=
=4k9R
-----END PGP SIGNATURE-----
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]