OSEC

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: Kyle Dent (kdentseaglass.com)
Date: Tue Sep 02 2003 - 08:18:20 CDT


On Tue, 2 Sep 2003, Wietse Venema wrote:

> Matthias Andree:
> > -----BEGIN PGP SIGNED MESSAGE-----
> >
> > wietseporcupine.org (Wietse Venema) writes:
> >
> > > Here's something that appears to work better:
> >
> > I'm afraid that it's broken here:
> >
> > > printf("%lld\n", MAXINT(off_t));
> >
> > this call assumes that off_t is a long long, but that's not true.
>
> This is a test program; I would not printf the result in Postfix.
>
> Can we focus on the question, which is does the macro work?
>
> [results for SPARC/64 and Intel/32]
>
> Thanks. No surprises on common platforms; now on to
> the UNIX-on-mainframe platforms.

[results for HP-UX B.11.20 U ia64]

decimal output:

127
32767
2147483647
2147483647
2147483647

hex output:

0x7f
0x7fff
0x7fffffff
0x7fffffff
0x7fffffff