Yep. we compile with the "+DD64" option for ansi-c.

-Madhu

-----Original Message-----
From: Cliff Woolley [mailto:[EMAIL PROTECTED]
Sent: Thursday, June 27, 2002 10:49 AM
To: Jeff Trawick
Cc: MATHIHALLI,MADHUSUDAN (HP-Cupertino,ex1); '[email protected]'
Subject: Re: [PATCH] Regarding semun definition in proc_mutex.h


On 27 Jun 2002, Jeff Trawick wrote:

> So I guess sizeof(long) is 8 bytes on 64-bit HP-UX?  sizeof(long) is
> still 4 on 64-bit AIX.

----------------------------
$ uname -a
HP-UX nova126 B.11.00 U 9000/785 2010844465 unlimited-user license
$ cat test.c
#include <stdio.h>
int main()
{
    printf("%d\n",sizeof(long));
}
$ ./test
4
----------------------------
$ uname -a
HP-UX nova189 B.11.20 U ia64 2252765325 unlimited-user license
$ cat test.c
#include <stdio.h>
int main()
{
    printf("%d\n",sizeof(long));
}
$ ./test
4
----------------------------

So, nope.  Or maybe you have to compile in 64-bit mode?  How does one do
that with HP-UX's cc?

--Cliff

Reply via email to