From owner-cvs-usrsbin Fri May 9 23:06:46 1997 Return-Path: Received: (from root@localhost) by hub.freebsd.org (8.8.5/8.8.5) id XAA21622 for cvs-usrsbin-outgoing; Fri, 9 May 1997 23:06:46 -0700 (PDT) Received: from nlsystems.com (nlsys.demon.co.uk [158.152.125.33]) by hub.freebsd.org (8.8.5/8.8.5) with ESMTP id XAA21616; Fri, 9 May 1997 23:06:41 -0700 (PDT) Received: from herring.nlsystems.com (herring.nlsystems.com [10.0.0.2]) by nlsystems.com (8.8.5/8.8.5) with SMTP id HAA27389; Sat, 10 May 1997 07:05:39 +0100 (BST) Date: Sat, 10 May 1997 07:05:39 +0100 (BST) From: Doug Rabson To: Brian Somers cc: Bruce Evans , 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: <199705100557.GAA14408@awfulhak.demon.co.uk> Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: owner-cvs-usrsbin@freebsd.org X-Loop: FreeBSD.org Precedence: bulk On Sat, 10 May 1997, Brian Somers wrote: > > >> 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 !). One jiffy is one clock tick, I think. -- Doug Rabson Mail: dfr@nlsystems.com Nonlinear Systems Ltd. Phone: +44 181 951 1891