From mboxrd@z Thu Jan 1 00:00:00 1970 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 10c696,c7d9d5dc95fcf5ea,start X-Google-Attributes: gid10c696,public X-Google-Thread: 1103af,e917323a5e41a78e X-Google-Attributes: gid1103af,public X-Google-Thread: 1164f8,f5b89bd3098eac9 X-Google-Attributes: gid1164f8,public From: guy@netapp.com (Guy Harris) Subject: Re: 64-bit Unix Date: 1997/02/12 Message-ID: <5dtjij$396@tooting.netapp.com>#1/1 X-Deja-AN: 218369785 Distribution: inet References: <5dcbep$7sp$1@news.cs.tu-berlin.de> <5ds3qf$5iv$1@news.cs.tu-berlin.de> Organization: Network Appliance Newsgroups: comp.sys.dec,comp.os.linux.misc,comp.os.linux.development.apps Joerg Schilling wrote: >The struct timeval has always been: > >struct timeval { > long tv_secs; /* seconds */ > long tv_usecs; /* and microseconds */ >}; > >If someone changes this, he breaks portablility of applications. Which applications? Applications that do printf("Secs = %ld, usecs = %ld\n", tv.tv_secs, tv.tv_usecs); can obviously be fixed to work regardless of whether those fields are "int" or "long" by doing printf("Secs = %ld, usecs = %ld\n", (long)tv.tv_secs, (long)tv.tv_usecs); so presumably you're referring to some other problem....