ualarm(3B)
NAME
ualarm − schedule signal after interval in microseconds
SYNOPSIS
/usr/ucb/cc [ flag ... ] file ...
unsigned ualarm( value, interval)
register unsigned value, interval;
DESCRIPTION
ualarm() sends signal SIGALRM (see signal(3B)), to the caller in a number of microseconds given by the value argument. Unless caught or ignored, the signal terminates the caller.
If the interval argument is non-zero, the SIGALRM signal will be sent to the caller every interval microseconds after the timer expires (for instance, after value microseconds have passed).
Because of scheduling delays, resumption of execution when the signal is caught may be delayed an arbitrary amount. The longest specifiable delay time is 231−1 microseconds.
The return value is the amount of time previously remaining in the alarm clock.
SEE ALSO
alarm(2), getitimer(2), setitimer(2), sigblock(3B), sigvec(3B), signal(3C), sleep(3C), usleep(3B)
NOTES
Use of these interfaces should be restricted to only applications written on BSD platforms. Use of these interfaces with any of the system libraries or in multi-thread applications is unsupported.
ualarm() is a simplified interface to setitimer(2); (see getitimer(2)).
SunOS 5.4 — Last change: 12 Feb 1993