jvidal@disca.upv.es
J.
Vidal
2002-12-12
timer_settime
3
timer_gettime,timer_settime
per RTLinux process timers.
#include <signal.h>
int timer_gettime
timer_t timerid
struct itimerspec * value
int timer_settime
timer_t timerid
int flags
const struct itimerspec * restrict value
struct itimerspec * restrict ovalue
DESCRIPTION
This are the RTLinux versions for the POSIX functions timer_gettime() timer_settime() used for requesting the time remaining until
next expiration and for arming/disarming a timer, respectivelly.
For further details see, UNIX spec sigaction, UNIX spec timer_gettime & UNIX spec sigaction, UNIX spec timer_settime
RETURN VALUE
If the timer_gettime() or timer_settime() functions succeed, a value of 0 shall be
returned.
If an error occurs for any of these functions, the value -1 shall be returned, and errno set to indicate the error.
ERRORS
The timer_gettime(), and timer_settime() functions shall fail if:
[EINVAL]: The timerid argument does not correspond to an ID returned by timer_create() but not yet deleted by timer_delete().
The timer_settime() function shall fail if:
[EINVAL] A value structure specified a nanosecond value less than zero or greater than or equal to 1000 million, and the it_value member of that structure did not specify zero seconds and nanoseconds.
AUTHOR
Josep Vidal < jvidal@disca.upv.es>
SEE ALSO
clock_getres(3rtl)
timer_create(3rtl)