ITIMERFIX(9)           NetBSD Kernel Developer's Manual           ITIMERFIX(9)

NAME
     itimerfix -- check that a timeval value is valid, and correct

SYNOPSIS
     #include <sys/time.h>

     int
     itimerfix(struct timeval *tv);

DESCRIPTION
     The itimerfix function checks that the value in tv is valid (0 <=
     tv->tv_sec &&  0 <= tv->tv_usec < 1000000), and that the total time rep-
     resented is at least one tick, or zero.

     If the total represented time is nonzero and smaller than tick, it is
     adjusted to exactly one tick.

RETURN VALUES
     itimerfix returns 0 on success or EINVAL if tv is invalid.

SEE ALSO
     nanosleep(2), poll(2), select(2), setitimer(2)

NetBSD 6.1.5                   November 23, 2001                  NetBSD 6.1.5

You can also request any man page by name and (optionally) by section:

Command: 
Section: 
Architecture: 
Collection: 
 

Use the DEFAULT collection to view manual pages for third-party software.


©1994 Man-cgi 1.15, Panagiotis Christias <christia@softlab.ntua.gr>
©1996-2014 Modified for NetBSD by Kimmo Suominen