From owner-freebsd-bugs Thu Apr 17 11:10:12 1997 Return-Path: Received: (from root@localhost) by freefall.freebsd.org (8.8.5/8.8.5) id LAA25413 for bugs-outgoing; Thu, 17 Apr 1997 11:10:12 -0700 (PDT) Received: (from gnats@localhost) by freefall.freebsd.org (8.8.5/8.8.5) id LAA25407; Thu, 17 Apr 1997 11:10:08 -0700 (PDT) Date: Thu, 17 Apr 1997 11:10:08 -0700 (PDT) Message-Id: <199704171810.LAA25407@freefall.freebsd.org> To: freebsd-bugs Cc: From: "Gary Palmer" Subject: Re: bin/3315: sys/time.h defines timespec with ts_sec instead of tv_sec Reply-To: "Gary Palmer" Sender: owner-bugs@freebsd.org X-Loop: FreeBSD.org Precedence: bulk The following reply was made to PR bin/3315; it has been noted by GNATS. From: "Gary Palmer" 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