Date: Thu, 17 Apr 1997 11:10:08 -0700 (PDT) From: "Gary Palmer" <gpalmer@freebsd.org> To: freebsd-bugs Subject: Re: bin/3315: sys/time.h defines timespec with ts_sec instead of tv_sec Message-ID: <199704171810.LAA25407@freefall.freebsd.org>
next in thread | raw e-mail | index | archive | help
The following reply was made to PR bin/3315; it has been noted by GNATS. From: "Gary Palmer" <gpalmer@freebsd.org> To: stb@freebsd.org Cc: freebsd-gnats-submit@freebsd.org Subject: Re: bin/3315: sys/time.h defines timespec with ts_sec instead of tv_sec Date: Thu, 17 Apr 1997 14:05:52 -0400 stb@freebsd.org wrote in message ID <199704171624.JAA18590@freefall.freebsd.org>: > *** time.h.orig Thu Apr 17 18:14:41 1997 > --- time.h Thu Apr 17 18:15:11 1997 > *************** > *** 50,57 **** > * Structure defined by POSIX.4 to be like a timeval. > */ > struct timespec { > ! long ts_sec; /* seconds */ > ! long ts_nsec; /* and nanoseconds */ > }; > > #define TIMEVAL_TO_TIMESPEC(tv, ts) { > \ > --- 50,57 ---- > * Structure defined by POSIX.4 to be like a timeval. > */ > struct timespec { > ! long tv_sec; /* seconds */ > ! long tv_nsec; /* and nanoseconds */ > }; > > #define TIMEVAL_TO_TIMESPEC(tv, ts) { > \ P.S. That's not a fix ... you forgot to patch all the code in the source tree that depends on ts_sec and ts_nsec... FreeBSD 2.2 has all these changes though. Gary -- Gary Palmer FreeBSD Core Team Member FreeBSD: Turning PC's into workstations. See http://www.FreeBSD.ORG/ for info
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?199704171810.LAA25407>