Return to BSD News archive
Path: euryale.cc.adfa.oz.au!newshost.carno.net.au!harbinger.cc.monash.edu.au!nntp.coast.net!news.kei.com!xavier.cybersmith.com!imci5!newsfeed.internetmci.com!news.texas.net!www.nntp.primenet.com!nntp.primenet.com!mr.net!newshub.tc.umn.edu!fu-berlin.de!irz401!orion.sax.de!uriah.heep!news
From: j@uriah.heep.sax.de (J Wunsch)
Newsgroups: comp.unix.bsd.freebsd.misc
Subject: Re: timespec/timeval confusion?
Date: 22 Nov 1996 00:37:01 GMT
Organization: Private BSD site, Dresden
Lines: 42
Message-ID: <572sjd$moi@uriah.heep.sax.de>
References: <56lh9r$7dt@rosebud.sdsc.edu>
Reply-To: joerg_wunsch@uriah.heep.sax.de (Joerg Wunsch)
NNTP-Posting-Host: localhost.heep.sax.de
Mime-Version: 1.0
Content-Type: text/plain; charset=ISO-8859-1
Content-Transfer-Encoding: 8bit
X-Newsreader: knews 0.9.6
X-Phone: +49-351-2012 669
X-PGP-Fingerprint: DC 47 E6 E4 FF A6 E9 8F 93 21 E0 7D F9 12 D6 4E
steube@groucho.sdsc.edu (Ken Steube) wrote:
> I installed from 2.2-960801-snap and then supped current on November 3.
>
> My kernel will no longer compile (and a couple other things as well)
> because of some confusion between timespec and timeval from
> /usr/include/sys/time.h (or the copy of it in /usr/src).
Your system seems inconsistent, you must have botched something.
The change has been committed on:
nate 96/09/19 11:21:35
Modified: sys/kern vfs_subr.c vfs_syscalls.c
sys/msdosfs msdosfs_conv.c msdosfs_vnops.c
sys/nfs nfs_bio.c nfs_serv.c nfs_subs.c nfs_vnops.c
nfsm_subs.h xdr_subs.h
sys/sys stat.h time.h
sys/ufs/ffs ffs_inode.c
sys/ufs/ufs inode.h ufs_vnops.c
Log:
In sys/time.h, struct timespec is defined as:
/*
* Structure defined by POSIX.4 to be like a timeval.
*/
struct timespec {
time_t ts_sec; /* seconds */
long ts_nsec; /* and nanoseconds */
};
The correct names of the fields are tv_sec and tv_nsec.
...and i can assure you that i have built many kernels since. ;-)
--
cheers, J"org
joerg_wunsch@uriah.heep.sax.de -- http://www.sax.de/~joerg/ -- NIC: JW11-RIPE
Never trust an operating system you don't have sources for. ;-)