|ALARM(3)||Library Functions Manual||ALARM(3)|
alarm — schedule
function schedules the
SIGALRM signal for delivery
to the calling process after the given number of
seconds have elapsed.
If an alarm is already pending, another call to
will supersede the prior call.
If seconds is zero, any pending alarm is cancelled.
alarm() returns the number of seconds
remaining until the pending alarm would have expired. If the alarm has
already expired, the alarm was cancelled, or no alarm was ever scheduled,
alarm() returns zero.
alarm() function conforms to
IEEE Std 1003.1-2008 (“POSIX.1”).
alarm() system call appeared in the
Programmer's Workbench (PWB/UNIX) and was ported to
Version 7 AT&T UNIX. For
4.1cBSD, it was reimplemented as a wrapper around
the setitimer(2) system call.
|June 18, 2021||OpenBSD-current|