From mboxrd@z Thu Jan 1 00:00:00 1970 X-Google-Language: ENGLISH,ASCII X-Google-Thread: 1103af,e917323a5e41a78e X-Google-Attributes: gid1103af,public X-Google-Thread: 100159,f5b89bd3098eac9 X-Google-Attributes: gid100159,public X-Google-Thread: fcda7,f5b89bd3098eac9 X-Google-Attributes: gidfcda7,public X-Google-Thread: 115614,f5b89bd3098eac9 X-Google-Attributes: gid115614,public X-Google-Thread: fe1d2,f5b89bd3098eac9 X-Google-Attributes: gidfe1d2,public X-Google-Thread: 101faf,f5b89bd3098eac9 X-Google-Attributes: gid101faf,public X-Google-Thread: 1164f8,f5b89bd3098eac9 X-Google-Attributes: gid1164f8,public X-Google-Thread: 11035d,f5b89bd3098eac9 X-Google-Attributes: gid11035d,public From: js@cs.tu-berlin.de (Joerg Schilling) Subject: Re: 64-bit Unix Date: 1997/02/12 Message-ID: <5ds3qf$5iv$1@news.cs.tu-berlin.de>#1/1 X-Deja-AN: 218223687 Distribution: inet References: <5da4f4$8n$2@metro.atlanta.com> <5dcbep$7sp$1@news.cs.tu-berlin.de> Content-Type: text/plain; charset=iso-8859-1 Organization: Technical University of Berlin, Germany Mime-Version: 1.0 Newsgroups: comp.os.unix.misc,comp.unix.aix,comp.unix.sco.misc,comp.unix.solaris,comp.sys.hp.hpux,comp.sys.dec,comp.sys.sgi.misc,comp.os.linux.misc,comp.os.linux.development.apps In article , Eric Werme wrote: >js@cs.tu-berlin.de (Joerg Schilling) writes: > >>Is that the reason why linux (at least 2.x) has a broken sys/time.h ?? >>All Unixes except Linux define struct timeval to be two long's. >>Linux defines it to be two int's. > >Sorry. Digital UNIX: > >typedef int time_t; > >struct timeval { > time_t tv_sec; /* seconds */ > int tv_usec; /* microseconds */ > /* the type of the tv_usec field may be replaced by */ > /* useconds_t in the next rev of XPG4 based on waiver */ >}; Then Digital UNIX is the same way wrong as Linux (from my point of view) 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. Joerg -- EMail: joerg@schily.isdn.cs.tu-berlin.de (home) J�rg Schilling D-13353 Berlin js@cs.tu-berlin.de (uni) If you don't have iso-8859-1 jes@fokus.gmd.de (work) chars my name is URL: http://www.fokus.gmd.de/usr/schilling J"org Schilling