Sets or changes the timeout of interval timers.
#include <unistd.h> useconds_t ualarm (useconds_t mseconds, useconds_t interval);
If you call a combination of ualarm and setitimer functions, and the AST status is disabled, the return value is invalid.
If you call a combination of ualarm and setitimer functions, and the AST status is enabled, the return value is valid.
This is because you cannot invoke an AST handler to clear the previous value of the timer when ASTs are disabled or invoked from a handler that was invoked at AST level.
See also setitimer in this section.
n | The number of microseconds remaining from the previous ualarm or setitimer call. |
0 | No timeouts are pending or ualarm not previously called. |
-1 | Indicates an error. |