|
|
1.1 root 1: .TH ALARM 3F "18 July 1983"
2: .UC 4
3: .SH NAME
4: alarm \- execute a subroutine after a specified time
5: .SH SYNOPSIS
6: .B integer function alarm (time, proc)
7: .br
8: .B integer time
9: .br
10: .B external proc
11: .SH DESCRIPTION
12: This routine arranges for subroutine
13: .I proc
14: to be called after
15: .I time
16: seconds. If
17: .I time
18: is ``0'', the alarm is turned off and no routine will be called.
19: The returned value will be the time remaining on the last alarm.
20: .SH FILES
21: .ie \nM /usr/ucb/lib/libU77.a
22: .el /usr/lib/libU77.a
23: .SH "SEE ALSO"
24: alarm(3C), sleep(3F), signal(3F)
25: .SH BUGS
26: .I Alarm
27: and
28: .I sleep
29: interact. If
30: .I sleep
31: is called after
32: .IR alarm ,
33: the
34: .I alarm
35: process will never be called. SIGALRM will occur at the lesser of the
36: remaining
37: .I alarm
38: time or the
39: .I sleep
40: time.
This archive runs on limited infrastructure. Preserving old code on modern bandwidth. Automated agents are requested to crawl responsibly.