Updated: 2021/Apr/14

TIMER_SETTIME(2)              System Calls Manual             TIMER_SETTIME(2)

     timer_settime, timer_gettime, timer_getoverrun - process timer

     Standard C Library (libc, -lc)

     #include <time.h>

     timer_settime(timer_t timerid, int flags,
         const struct itimerspec * restrict tim,
         struct itimerspec * restrict otim);

     timer_gettime(timer_t timerid, struct itimerspec *tim);

     timer_getoverrun(timer_t timerid);

     argument.  If the value is 0, the timer is disarmed.  If the argument
     otim is not NULL the old timer settings are returned.

     difference between the clock associated with this timer, and the value
     specified in the tim argument.  If that time has already passed, then the
     call succeeds, and the expiration notification occurs.

     reloads upon expiration.

     The timer_gettime() function returns the current settings of the timer
     specified by the timerid argument in the tim argument.

     delivery, then the overrun counter for that timer is increased.  The
     counter can store values up to DELAYTIMER_MAX.  When the signal is
     finally delivered to the process, then the timer_getoverrun() function
     the timerid argument.

     Expiration time values are always rounded up to the resolution of the
     might not exactly match the requested values by the user.

     0, and the timer_getoverrun() function returns the expiration overrun
     set errno to indicate the error.

     will fail if:

     [EINVAL]           The argument timerid does not correspond to a valid
                        timer id as returned by timer_create() or that timer
                        id has been deleted by timer_delete().

     The timer_settime() function will fail if:

     [EINVAL]           A nanosecond field in the tim structure specified a
                        value less than zero or greater than or equal to 10e9.


     IEEE Std 1003.1b-1993 ("POSIX.1b"), IEEE Std 1003.1i-1995 ("POSIX.1i")

NetBSD 9.99                      May 17, 2010                      NetBSD 9.99