DOC HOME SITE MAP MAN PAGES GNU INFO SEARCH PRINT BOOK
 
(BSD System Compatibility)

ualarm(3bsd)


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.

References

alarm(2), getitimer(3C), signal(3bsd), sigpause(3bsd), sigvec(3bsd), sleep(3bsd), usleep(3bsd)

Notices

ualarm is a simplified interface to setitimer; see getitimer(3C).
© 2004 The SCO Group, Inc. All rights reserved.
UnixWare 7 Release 7.1.4 - 25 April 2004