On Tue, 14 Mar 2006, Tony Houghton <[EMAIL PROTECTED]> wrote:- <snip>
>In any case, it does imply that timeval can be relied on to be 2 * >32-bits (2 * long) in 32-bit architectures and something else in 64-bit >architectures - where long is 64-bit. Using the source below for a quick test on both a 32 and 64 bit SUSE system[0], I get a size of 8 bytes on the 32 bit system, which implies 2 * 32 bit, and 16 ( 2 * 64 bit) on the 64 bit system. <Source> /* quick, boring, and probably could do with a major cleanup but it should be fine */ #include <stdio.h> #include <stdlib.h> #include <time.h> #include <sys/time.h> int main(void) { int the_size=sizeof(struct timeval); printf("%u\n", the_size); exit(0); } </Source> [0] see .sig for details. Regards, David Bolt -- Member of Team Acorn checking nodes at 50 Mnodes/s: http://www.distributed.net/ AMD1800 1Gb WinXP/SUSE 9.3 | AMD2400 256Mb SuSE 9.0 | A3010 4Mb RISCOS 3.11 AMD2400(32) 768Mb SUSE 10.0 | RPC600 129Mb RISCOS 3.6 | Falcon 14Mb TOS 4.02 AMD2600(64) 512Mb SUSE 10.0 | A4000 4Mb RISCOS 3.11 | STE 4Mb TOS 1.62 -- http://mail.python.org/mailman/listinfo/python-list