FreeBSD/sys/kern/kern_time.c
/*
 * Check that a proposed value to load into the .it_value or
 * .it_interval part of an interval timer is acceptable, and
 * fix it to have at least minimal value (i.e. if it is less
 * than the resolution of the clock, round it up.)
 */
Check that a proposed value to load into the .it_value or
.it_interval part of an interval timer is acceptable, and
fix it to have at least minimal value
Check that a proposed value to load into the . it_value or . it_interval part of an interval timer is acceptable and fix it to have at least minimal value
int
itimerfix(struct timeval *tv)
{
	if (tv->tv_sec < 0 || tv->tv_usec < 0 || tv->tv_usec >= 1000000)
		return (EINVAL);
	if (tv->tv_sec == 0 && tv->tv_usec != 0 &&
	    tv->tv_usec < (u_int)tick / 16)
		tv->tv_usec = (u_int)tick / 16;
	return (0);
}
int itimerfix ( struct timeval * tv ) { if ( tv -> tv_sec < 0 || tv -> tv_usec < 0 || tv -> tv_usec >= 1000000 ) return ( EINVAL ) ; if ( tv -> tv_sec == 0 && tv -> tv_usec != 0 && tv -> tv_usec < ( u_int ) tick / 16 ) tv -> tv_usec = ( u_int ) tick / 16 ; return ( 0 ) ; }
Check that a proposed value to load into the .it_value or
 .it_interval part of an interval timer is acceptable, and
 fix it to have at least minimal value (i.e.
Check that a proposed value to load into the . it_value or . it_interval part of an interval timer is acceptable and fix it to have at least minimal value ( i . e .