Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 10 May 1997 15:24:28 +1000
From:      Bruce Evans <bde@zeta.org.au>
To:        bde@zeta.org.au, brian@awfulhak.org
Cc:        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:  <199705100524.PAA06538@godzilla.zeta.org.au>

next 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 ?

No, it's not incorrect.  It does almost exactly what the ERRORS section in
the man page says: it returns EINVAL if "_a_ value parameter specified a
time that was too large to be handled".  The man page is just sloppy in
not mentioning that it returns EINVAL if a value parameter was invalid.

Bruce



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