Subject: Re: xntpd under NetBSD/alpha: bug and fix
To: None <Mills@HUEY.UDEL.EDU>
From: None <Chris_G_Demetriou@NIAGARA.NECTAR.CS.CMU.EDU>
List: port-alpha
Date: 01/09/1996 18:31:05
> Lots of Alphae are running xntpd with OSF/1, there the kernel tick
> variable is in fact an int.

This is correct...

> But, note that an int on an Alpha is
> 64 bits.

but this isn't.  On the Alpha (running OSF/1 or NetBSD; i dunno about
NT or VMS 8-):

	short is 16 bits,
	int is 32 bits,
	long is 64 bits.

An example from an OSF/1 3.2 system:

175 [oban] tmp % cat > bar.c
main()
{
        printf("%d\n", sizeof(short));
        printf("%d\n", sizeof(int));
        printf("%d\n", sizeof(long));
}
176 [oban] tmp % uname -a
OSF1 oban.pdl.cs.cmu.edu V3.2 214 alpha
177 [oban] tmp % cc bar.c -o bar
178 [oban] tmp % ./bar
2
4
8



chris