From mboxrd@z Thu Jan 1 00:00:00 1970 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 100159,f5b89bd3098eac9 X-Google-Attributes: gid100159,public X-Google-Thread: 1103af,e917323a5e41a78e X-Google-Attributes: gid1103af,public X-Google-Thread: fcda7,f5b89bd3098eac9 X-Google-Attributes: gidfcda7,public X-Google-Thread: fe1d2,f5b89bd3098eac9 X-Google-Attributes: gidfe1d2,public X-Google-Thread: 115614,f5b89bd3098eac9 X-Google-Attributes: gid115614,public X-Google-Thread: 1164f8,f5b89bd3098eac9 X-Google-Attributes: gid1164f8,public X-Google-Thread: 11035d,f5b89bd3098eac9 X-Google-Attributes: gid11035d,public X-Google-Thread: 101faf,f5b89bd3098eac9 X-Google-Attributes: gid101faf,public From: doug@eng.auburn.edu (Doug Hughes) Subject: Re: 64-bit Unix Date: 1997/02/13 Message-ID: <1997Feb13.091619@netman.eng.auburn.edu>#1/1 X-Deja-AN: 218532574 Distribution: inet Sender: doug@netman.eng.auburn.edu (Doug Hughes) References: <5da4f4$8n$2@metro.atlanta.com> <5dcbep$7sp$1@news.cs.tu-berlin.de> <5ds3qf$5iv$1@news.cs.tu-berlin.de> Organization: Auburn Univeristy Engineering 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 <5ds3qf$5iv$1@news.cs.tu-berlin.de>, js@cs.tu-berlin.de (Joerg Schilling) writes: |> 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. |> You added an extra 's' in there (probably unintentionally) It should be tv_sec and tv_usec (it is on all SunOS versions) -- ____________________________________________________________________________ Doug Hughes Engineering Network Services System/Net Admin Auburn University doug@eng.auburn.edu