ualarm(3BSD) (BSD System Compatibility) ualarm(3BSD)
NAME
ualarm - (BSD) schedule signal after interval in microseconds
SYNOPSIS
/usr/ucb/cc [flag . . . ] file . . .
unsigned ualarm(unsigned value, unsigned interval);
DESCRIPTION
ualarm sends signal SIGALRM [see signal(3BSD)], to the
invoking process in a number of microseconds given by the
value argument. Unless caught or ignored, the signal
terminates the process.
If the interval argument is non-zero, the SIGALRM signal will
be sent to the process every interval microseconds after the
timer expires (for instance, after value microseconds have
passed).
Because of scheduling delays, resumption of execution of when
the signal is caught may be delayed an arbitrary amount. The
longest specifiable delay time is 2147483647 microseconds.
The return value is the amount of time previously remaining in
the alarm clock.
NOTICES
ualarm is a simplified interface to setitimer; see
getitimer(3C).
REFERENCES
alarm(2), getitimer(3C), signal(3BSD), sigpause(3BSD),
sigvec(3BSD), sleep(3BSD), usleep(3BSD)
Copyright 1994 Novell, Inc. Page 1