From owner-cvs-usrsbin Fri May 9 22:58:32 1997 Return-Path: Received: (from root@localhost) by hub.freebsd.org (8.8.5/8.8.5) id WAA21219 for cvs-usrsbin-outgoing; Fri, 9 May 1997 22:58:32 -0700 (PDT) Received: from awfulhak.demon.co.uk (awfulhak.demon.co.uk [158.152.17.1]) by hub.freebsd.org (8.8.5/8.8.5) with ESMTP id WAA21211; Fri, 9 May 1997 22:58:25 -0700 (PDT) Received: from awfulhak.demon.co.uk (localhost.lan.awfulhak.org [127.0.0.1]) by awfulhak.demon.co.uk (8.8.5/8.8.5) with ESMTP id GAA14408; Sat, 10 May 1997 06:57:56 +0100 (BST) Message-Id: <199705100557.GAA14408@awfulhak.demon.co.uk> X-Mailer: exmh version 1.6.9 8/22/96 To: Bruce Evans cc: brian@awfulhak.org, ache@nagual.pp.ru, brian@FreeBSD.ORG, cvs-all@FreeBSD.ORG, CVS-committers@FreeBSD.ORG, cvs-usrsbin@FreeBSD.ORG Subject: Re: cvs commit: src/usr.sbin/ppp timer.c In-reply-to: Your message of "Sat, 10 May 1997 15:42:38 +1000." <199705100542.PAA06971@godzilla.zeta.org.au> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Date: Sat, 10 May 1997 06:57:56 +0100 From: Brian Somers Sender: owner-cvs-usrsbin@FreeBSD.ORG X-Loop: FreeBSD.org Precedence: bulk > >> Actually it is, read the kernel source :-). The kernel checks the interval > >> even when it doesn't use it and fails without doing anything if the interval > >> is garbage (tv_sec < 0 || tv_sec > 10^8 || tv_usec < 0 || tv_usec >= 10^6). > > > >Should I fix kern/kern_time.c then ? > > I checked some other systems: > > FreeBSD-1.1.5: same as now. Overflows are avoided for starting times > between 1970 and 1935 by limiting itimer values to about > 3 years. > Linux-2.1.29: timevals are converted to jiffies and not used again; some > overflows are corrected, others give silly times. I dunno if I should ask, but what's a jiffie (note there's no capital J !). > Bruce -- Brian , Don't _EVER_ lose your sense of humour....