1ALARM(3F) ALARM(3F)
2
3
4
6 alarm - execute a subroutine after a specified time
7
9 integer function alarm (time, proc)
10 integer time
11 external proc
12
14 This routine arranges for subroutine proc to be called after time sec‐
15 onds. If time is ``0'', the alarm is turned off and no routine will be
16 called. The returned value will be the time remaining on the last
17 alarm.
18
20 /usr/lib/libU77.a
21
23 alarm(3C), sleep(3F), signal(3F)
24
26 Alarm and sleep interact. If sleep is called after alarm, the alarm
27 process will never be called. SIGALRM will occur at the lesser of the
28 remaining alarm time or the sleep time.
29
30
31
324.2 Berkeley Distribution May 15, 1985 ALARM(3F)