Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 10 May 1997 07:05:39 +0100 (BST)
From:      Doug Rabson <dfr@nlsystems.com>
To:        Brian Somers <brian@awfulhak.org>
Cc:        Bruce Evans <bde@zeta.org.au>, 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 
Message-ID:  <Pine.BSF.3.95q.970510070431.334F-100000@herring.nlsystems.com>
In-Reply-To: <199705100557.GAA14408@awfulhak.demon.co.uk>

next in thread | previous in thread | raw e-mail | index | archive | help
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




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?Pine.BSF.3.95q.970510070431.334F-100000>