Re: max file size (again)...

From: Kyle Dent (no email)
Date: Tue Sep 02 2003 - 09:30:52 EDT


Sorry, I hadn't enabled LP64 mode:

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

decimal output:

127
32767
2147483647
9223372036854775807
9223372036854775807

hex output:

0x7f
0x7fff
0x7fffffff
0x7fffffffffffffff
0x7fffffffffffffff

On Tue, 2 Sep 2003, Kyle Dent wrote:

> On Tue, 2 Sep 2003, Wietse Venema wrote:
>
> > Matthias Andree:
> > > -----BEGIN PGP SIGNED MESSAGE-----
> > >
> > > (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
>








Hosted Email Solutions

Invaluement Anti-Spam DNSBLs



Powered By FreeBSD   Powered By FreeBSD