1: /*
2: * Copyright (c) 1983 Regents of the University of California.
3: * All rights reserved. The Berkeley software License Agreement
4: * specifies the terms and conditions for redistribution.
5: */
6:
7: #if defined(LIBC_SCCS) && !defined(lint)
8: static char sccsid[] = "@(#)alarm.c 5.2 (Berkeley) 3/9/86";
9: #endif LIBC_SCCS and not lint
10:
11: /*
12: * Backwards compatible alarm.
13: */
14: #include <sys/time.h>
15:
16: alarm(secs)
17: int secs;
18: {
19: struct itimerval it, oitv;
20: register struct itimerval *itp = ⁢
21:
22: timerclear(&itp->it_interval);
23: itp->it_value.tv_sec = secs;
24: itp->it_value.tv_usec = 0;
25: if (setitimer(ITIMER_REAL, itp, &oitv) < 0)
26: return (-1);
27: if (oitv.it_value.tv_usec)
28: oitv.it_value.tv_sec++;
29: return (oitv.it_value.tv_sec);
30: }
Defined functions
alarm
defined in line
16; used 378 times
- in /usr/src/bin/login.c line
108,
282
- in /usr/src/bin/sh/xec.c line
244
- in /usr/src/bin/write.c line
145-150(2)
- in /usr/src/etc/XNSrouted/timer.c line
83
- in /usr/src/etc/XNSrouted/tools/query.c line
71
- in /usr/src/etc/comsat.c line
116,
181
- in /usr/src/etc/dump.4.1/dumpoptr.c line
75,
92
- in /usr/src/etc/dump/dumpoptr.c line
75,
92
- in /usr/src/etc/ftpd/ftpcmd.y line
655-660(2)
- in /usr/src/etc/getty/main.c line
96,
212,
218,
241
- in /usr/src/etc/getty/subr.c line
402
- in /usr/src/etc/halt.c line
120
- in /usr/src/etc/inetd.c line
268,
474
- in /usr/src/etc/init.c line
138-143(2)
- in /usr/src/etc/ping.c line
195,
204
- in /usr/src/etc/reboot.c line
118
- in /usr/src/etc/rexecd.c line
96,
106,
113-117(2)
- in /usr/src/etc/rlogind.c line
91-95(2)
- in /usr/src/etc/routed/timer.c line
76
- in /usr/src/etc/routed/tools/query.c line
75
- in /usr/src/etc/rshd.c line
111,
124
- in /usr/src/etc/rwhod.c line
335
- in /usr/src/etc/shutdown.c line
224,
231,
241,
247
- in /usr/src/etc/syslogd.c line
216,
675,
732
- in /usr/src/etc/talkd/talkd.c line
66,
91
- in /usr/src/etc/tftpd/tftpd.c line
125,
298-300(2),
361-363(2),
398-400(2)
- in /usr/src/etc/update.c line
39
- in /usr/src/games/backgammon/main.c line
196,
204
- in /usr/src/games/battlestar/fly.c line
122,
195,
209,
246-251(2)
- in /usr/src/games/boggle/boggle.c line
114,
599
- in /usr/src/games/compat/unixtraps.c line
523
- in /usr/src/games/hunt/hunt.c line
411,
425,
436
- in /usr/src/games/robots/move_robs.c line
96
- in /usr/src/games/robots/play_level.c line
48
- in /usr/src/games/rogue/machdep.c line
154,
281,
289
- in /usr/src/games/sail/pl_7.c line
61,
104
- in /usr/src/games/worm.c line
179,
196,
233,
277
- in /usr/src/lib/libc/gen/syslog.c line
137-139(2)
- in /usr/src/new/X/comsat/comsat.c line
126,
238,
481
- in /usr/src/new/X/xhost/xhost.c line
192-196(2)
- in /usr/src/new/courier/daemon/courierd.c line
66-69(2)
- in /usr/src/new/emacs/src/keyboard.c line
699,
719
- in /usr/src/new/emacs/src/process.c line
820-822(2)
- in /usr/src/new/emacs/src/sysdep.c line
800-803(2),
821,
830
- in /usr/src/new/jove/jove.c line
946,
1100
- in /usr/src/new/jove/portsrv.c line
70
- in /usr/src/new/jove/util.c line
110-113(2)
- in /usr/src/new/kermit/ckudia.c line
494,
575,
585,
626,
697-699(2),
711-712(2),
834-837(2)
- in /usr/src/new/kermit/ckuscr.c line
160,
170,
196,
208
- in /usr/src/new/kermit/ckutio.c line
1033,
1215,
1232,
1240,
1265,
1281,
1672,
1678
- in /usr/src/new/mh/mts/sendmail/smail.c line
168-170(2),
235-237(2),
378-380(2),
455-462(4),
513-516(2)
- in /usr/src/new/mh/support/bboards/mmdfII/bboards/lock.c line
301,
327,
339,
357
- in /usr/src/new/mh/support/pop/mmdfII/pop/lock.c line
301,
327,
339,
357
- in /usr/src/new/mh/uip/msh.c line
2136-2140(2)
- in /usr/src/new/mh/uip/rcvtty.c line
161-165(2),
225-227(2),
233
- in /usr/src/new/mh/uip/slocal.c line
959-963(2)
- in /usr/src/new/mh/uip/vmh.c line
572-576(2)
- in /usr/src/new/mh/zotnet/mts/lock.c line
301,
327,
339,
357
- in /usr/src/new/news/src/visual.c line
1934,
2181,
2195,
2413
- in /usr/src/new/nntp/xmit/remote.c line
211,
217-219(2)
- in /usr/src/new/umodem/umodem.c line
1212,
1220
- in /usr/src/new/xns/examples/filing/xnftp.c line
187-191(2),
204-206(2),
217-220(2),
270,
357,
383,
448,
464,
479-484(2),
518-521(2),
549-552(2),
582-584(2)
- in /usr/src/old/berknet/mwrite.c line
103-106(2),
116,
148
- in /usr/src/old/berknet/prot.c line
371,
439,
465
- in /usr/src/old/call.c line
27
- in /usr/src/old/cu.c line
93,
99
- in /usr/src/old/dnd.c line
384,
390
- in /usr/src/old/talk/talkd.c line
62,
92
- in /usr/src/old/vpr/vpd.c line
309,
363-365(2)
- in /usr/src/ucb/ex/ex_subr.c line
832
- in /usr/src/ucb/ex/ex_vget.c line
661-665(2),
674,
691
- in /usr/src/ucb/sysline/sysline.c line
1095
- in /usr/src/ucb/systat/cmds.c line
42,
72,
86,
156,
169
- in /usr/src/ucb/systat/main.c line
190
- in /usr/src/ucb/tftp/main.c line
487
- in /usr/src/ucb/tftp/tftp.c line
104,
110,
197,
203,
209
- in /usr/src/usr.bin/tip/aculib/biz22.c line
128-130(2),
150-152(2)
- in /usr/src/usr.bin/tip/aculib/biz31.c line
150-152(2),
171-173(2)
- in /usr/src/usr.bin/tip/aculib/courier.c line
105-107(2),
148-150(2)
- in /usr/src/usr.bin/tip/aculib/df.c line
67
- in /usr/src/usr.bin/tip/aculib/dn11.c line
44,
64-69(2),
86
- in /usr/src/usr.bin/tip/aculib/hayes.c line
153-155(2)
- in /usr/src/usr.bin/tip/aculib/v3451.c line
138-143(2),
150
- in /usr/src/usr.bin/tip/aculib/v831.c line
50,
72-77(2),
95
- in /usr/src/usr.bin/tip/aculib/ventel.c line
161-163(2)
- in /usr/src/usr.bin/tip/cmds.c line
315,
321-325(2),
402-404(2)
- in /usr/src/usr.bin/tip/hunt.c line
50-53(2)
- in /usr/src/usr.bin/uucp/aculib/att2224.c line
21,
27,
33-37(2),
48-52(2),
66-71(2),
113-117(2)
- in /usr/src/usr.bin/uucp/aculib/bsdtcp.c line
53,
74-78(2)
- in /usr/src/usr.bin/uucp/aculib/cds224.c line
38-40(2)
- in /usr/src/usr.bin/uucp/aculib/df12.c line
56-58(2)
- in /usr/src/usr.bin/uucp/aculib/df2.c line
40-42(2),
69,
101,
118
- in /usr/src/usr.bin/uucp/aculib/dn.c line
42-44(2),
69,
101,
116
- in /usr/src/usr.bin/uucp/aculib/hys.c line
66-68(2),
111,
119-124(2)
- in /usr/src/usr.bin/uucp/aculib/hys24.c line
54-56(2)
- in /usr/src/usr.bin/uucp/aculib/hysq.c line
73,
81,
110-113(2)
- in /usr/src/usr.bin/uucp/aculib/mic.c line
42,
50
- in /usr/src/usr.bin/uucp/aculib/nov.c line
42-44(2)
- in /usr/src/usr.bin/uucp/aculib/pen.c line
30-32(2)
- in /usr/src/usr.bin/uucp/aculib/pnet.c line
38-44(3)
- in /usr/src/usr.bin/uucp/aculib/rvmacs.c line
77-81(2),
152,
162
- in /usr/src/usr.bin/uucp/aculib/sy.c line
45,
53
- in /usr/src/usr.bin/uucp/aculib/unet.c line
36-38(2)
- in /usr/src/usr.bin/uucp/aculib/va212.c line
29-31(2)
- in /usr/src/usr.bin/uucp/aculib/va811.c line
46-48(2)
- in /usr/src/usr.bin/uucp/aculib/va820.c line
48-50(2),
89,
151
- in /usr/src/usr.bin/uucp/aculib/vad.c line
36-38(2)
- in /usr/src/usr.bin/uucp/aculib/vent.c line
27-30(2)
- in /usr/src/usr.bin/uucp/aculib/vmacs.c line
78,
150
- in /usr/src/usr.bin/uucp/cico.c line
252,
268,
281,
527-531(2),
538,
555,
565,
598-602(2),
636,
648
- in /usr/src/usr.bin/uucp/condevs.c line
203,
230,
464
- in /usr/src/usr.bin/uucp/conn.c line
284-286(2),
618,
624-629(2),
647
- in /usr/src/usr.bin/uucp/fio.c line
147,
161-164(2),
327-329(2)
- in /usr/src/usr.bin/uucp/pk1.c line
294,
311,
382,
417-421(2),
428
- in /usr/src/usr.bin/uucp/tio.c line
46,
60,
72,
78,
86,
119-121(2),
129-131(2),
175-177(2),
187-189(2),
196
- in /usr/src/usr.bin/uucp/uucpd.c line
154,
183
- in /usr/src/usr.bin/uucp/vms/uucpd.c line
85,
95
- in /usr/src/usr.lib/libU77/alarm_.c line
31-36(2)
Defined variables
sccsid
defined in line
8;
never used