1ALARM(3C) ALARM(3C)
2
3
4
6 alarm - schedule signal after specified time
7
9 alarm(seconds)
10 unsigned seconds;
11
13 This interface is made obsolete by setitimer(2).
14
15 Alarm causes signal SIGALRM, see sigvec(2), to be sent to the invoking
16 process in a number of seconds given by the argument. Unless caught or
17 ignored, the signal terminates the process.
18
19 Alarm requests are not stacked; successive calls reset the alarm clock.
20 If the argument is 0, any alarm request is canceled. Because of sched‐
21 uling delays, resumption of execution of when the signal is caught may
22 be delayed an arbitrary amount. The longest specifiable delay time is
23 2147483647 seconds.
24
25 The return value is the amount of time previously remaining in the
26 alarm clock.
27
29 sigpause(2), sigvec(2), signal(3C), sleep(3), ualarm(3), usleep(3)
30
31
32
334th Berkeley Distribution May 27, 1986 ALARM(3C)