Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 10 May 1997 06:57:56 +0100
From:      Brian Somers <brian@awfulhak.org>
To:        Bruce Evans <bde@zeta.org.au>
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 
Message-ID:  <199705100557.GAA14408@awfulhak.demon.co.uk>
In-Reply-To: Your message of "Sat, 10 May 1997 15:42:38 %2B1000." <199705100542.PAA06971@godzilla.zeta.org.au> 

next in thread | previous in thread | raw e-mail | index | archive | help
> >> 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 <brian@awfulhak.org>, <brian@freebsd.org>
      <http://www.awfulhak.org>;
Don't _EVER_ lose your sense of humour....





Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?199705100557.GAA14408>