1: /*
2: * Copyright (c) 1980 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[] = "@(#)time.c 5.3 (Berkeley) 3/9/86";
9: #endif LIBC_SCCS and not lint
10:
11: /*
12: * Backwards compatible time call.
13: */
14: #include <sys/types.h>
15: #include <sys/time.h>
16:
17: long
18: time(t)
19: time_t *t;
20: {
21: struct timeval tt;
22:
23: if (gettimeofday(&tt, (struct timezone *)0) < 0)
24: return (-1);
25: if (t)
26: *t = tt.tv_sec;
27: return (tt.tv_sec);
28: }
Defined functions
time
defined in line
17; used 509 times
- in /usr/ingres/source/dbu/create.c line
479
- in /usr/ingres/source/monitor/monitor.c line
196
- in /usr/ingres/source/monitor/quit.c line
144
- in /usr/ingres/source/monitor/trapquery.c line
71
- in /usr/ingres/source/monitor/ttymon.c line
112
- in /usr/ingres/source/qrymod/protect.c line
765
- in /usr/ingres/source/support/purge.c line
77
- in /usr/src/bin/csh/sh.c line
56,
849
- in /usr/src/bin/date.c line
53,
124
- in /usr/src/bin/ed.c line
1761
- in /usr/src/bin/login.c line
296,
325
- in /usr/src/bin/ls.c line
86
- in /usr/src/bin/mail.c line
37,
494
- in /usr/src/bin/make/files.c line
175,
382
- in /usr/src/bin/passwd.c line
266,
320
- in /usr/src/bin/pr.c line
215
- in /usr/src/bin/tar.c line
107,
1397
- in /usr/src/bin/wall.c line
43,
62
- in /usr/src/bin/who.c line
57
- in /usr/src/bin/write.c line
45
- in /usr/src/etc/XNSrouted/trace.c line
106
- in /usr/src/etc/ac.c line
95,
257
- in /usr/src/etc/comsat.c line
80,
96,
113
- in /usr/src/etc/cron.c line
78,
170
- in /usr/src/etc/dmesg.c line
129
- in /usr/src/etc/dump.4.1/dumpmain.c line
27,
198
- in /usr/src/etc/dump.4.1/dumpoptr.c line
160,
233,
398
- in /usr/src/etc/dump/dumpmain.c line
34,
283
- in /usr/src/etc/dump/dumpoptr.c line
160,
233,
400
- in /usr/src/etc/fsck/fsck.h line
174
- in /usr/src/etc/fsck/inode.c line
311
- in /usr/src/etc/fsck/main.c line
235
- in /usr/src/etc/fsck/pass5.c line
36
- in /usr/src/etc/ftpd/ftpcmd.y line
629-633(2)
- in /usr/src/etc/ftpd/ftpd.c line
762,
785,
809
- in /usr/src/etc/halt.c line
136
- in /usr/src/etc/icheck.c line
475
- in /usr/src/etc/implog/implogd.c line
63,
97
- in /usr/src/etc/inetd.c line
893-896(2),
908-913(2)
- in /usr/src/etc/init.c line
77,
177,
239,
395,
457,
470,
539
- in /usr/src/etc/mkfs.c line
153
- in /usr/src/etc/mkproto.c line
323
- in /usr/src/etc/quot.c line
61
- in /usr/src/etc/reboot.c line
134
- in /usr/src/etc/rlogind.c line
387,
400
- in /usr/src/etc/routed/trace.c line
102
- in /usr/src/etc/rwhod.c line
222,
261,
324,
499-500(2),
506-510(3)
- in /usr/src/etc/savecore.c line
134
- in /usr/src/etc/shutdown.c line
54,
162,
215,
284,
314,
332
- in /usr/src/etc/syslogd.c line
399,
475,
633
- in /usr/src/etc/talkd/talkd.c line
76,
89
- in /usr/src/etc/telnetd.c line
1248,
1261
- in /usr/src/games/adventure/init.c line
172
- in /usr/src/games/adventure/okplay.c line
23
- in /usr/src/games/adventure/wizard.c line
12
- in /usr/src/games/arithmetic.c line
60,
193,
204
- in /usr/src/games/backgammon/main.c line
111
- in /usr/src/games/boggle/boggle.c line
53,
521
- in /usr/src/games/btlgammon.c line
60
- in /usr/src/games/canfield.c line
1012,
1501
- in /usr/src/games/compat/unixtraps.c line
505,
536(2)
- in /usr/src/games/cribbage/cards.c line
24-26(2)
- in /usr/src/games/fortune/fortune.c line
44,
185
- in /usr/src/games/fortune/strfile.c line
361
- in /usr/src/games/hangman/setup.c line
27
- in /usr/src/games/hunt/driver.c line
269
- in /usr/src/games/mille/save.c line
86
- in /usr/src/games/monop/execute.c line
148
- in /usr/src/games/quiz/quiz.c line
313
- in /usr/src/games/rogue/machdep.c line
409,
427
- in /usr/src/games/rogue/machdep.h line
66
- in /usr/src/games/sail/sync.c line
52
- in /usr/src/games/snake/snake.c line
95,
105,
912
- in /usr/src/games/trek/main.c line
137
- in /usr/src/games/wump.c line
336
- in /usr/src/lib/libc/gen/syslog.c line
81
- in /usr/src/new/X/comsat/comsat.c line
89,
105,
123
- in /usr/src/new/X/xclock/xclock.c line
357,
450
- in /usr/src/new/X/xterm/main.c line
1256
- in /usr/src/new/ansi/ansitape.c line
54
- in /usr/src/new/apl/src/a0.c line
22
- in /usr/src/new/apl/src/a9.c line
106,
127
- in /usr/src/new/apl/src/xed.c line
1098,
3306
- in /usr/src/new/courier/examples/time/Time.c line
11,
20
- in /usr/src/new/dipress/src/bin/maha/maha.c line
1050
- in /usr/src/new/emacs/etc/fakemail.c line
286
- in /usr/src/new/emacs/etc/loadst.c line
165,
190(2),
202-205(5)
- in /usr/src/new/emacs/etc/movemail.c line
93
- in /usr/src/new/emacs/etc/yow.c line
32
- in /usr/src/new/emacs/src/editfns.c line
407
- in /usr/src/new/emacs/src/fns.c line
90-93(2)
- in /usr/src/new/emacs/src/process.c line
934,
991
- in /usr/src/new/emacs/src/sysdep.c line
1172-1174(2)
- in /usr/src/new/help/help.c line
323
- in /usr/src/new/icon/lib/keywd.c line
34,
56,
68,
76
- in /usr/src/new/jove/disp.c line
743
- in /usr/src/new/jove/jove.c line
1080
- in /usr/src/new/jove/jove.h line
466
- in /usr/src/new/jove/rec.c line
119
- in /usr/src/new/jove/util.c line
663
- in /usr/src/new/kermit/ckutio.c line
240,
1351-1354(2),
1389-1392(2),
1401,
1409,
1420-1424(2),
1430,
1440-1443(2),
1454,
1463
- in /usr/src/new/mh/conf/mhconfig.c line
171
- in /usr/src/new/mh/mts/mh/netmail.c line
35,
109
- in /usr/src/new/mh/sbr/fmtcompile.c line
444
- in /usr/src/new/mh/sbr/formatsbr.c line
436
- in /usr/src/new/mh/support/bboards/mmdfII/bboards/lock.c line
83
- in /usr/src/new/mh/support/pop/mmdfII/pop/lock.c line
83
- in /usr/src/new/mh/support/pop/popwrd.c line
117
- in /usr/src/new/mh/uip/forw.c line
114
- in /usr/src/new/mh/uip/picksbr.c line
98,
862
- in /usr/src/new/mh/uip/post.c line
826
- in /usr/src/new/mh/uip/sortm.c line
39
- in /usr/src/new/mh/zotnet/mf/mmuu.c line
38,
252,
522
- in /usr/src/new/mh/zotnet/mf/uumm.c line
39,
620
- in /usr/src/new/mh/zotnet/mts/lock.c line
83
- in /usr/src/new/mh/zotnet/tws/dtime.c line
98,
106,
132
- in /usr/src/new/news/src/batch.c line
181
- in /usr/src/new/news/src/control.c line
344,
723
- in /usr/src/new/news/src/expire.c line
82,
256
- in /usr/src/new/news/src/ftime.c line
22-23(2)
- in /usr/src/new/news/src/funcs.c line
355
- in /usr/src/new/news/src/ifuncs.c line
594,
618,
650
- in /usr/src/new/news/src/inews.c line
573,
603
- in /usr/src/new/news/src/params.h line
92
- in /usr/src/new/news/src/postnews.c line
700,
717
- in /usr/src/new/news/src/readr.c line
114,
1002
- in /usr/src/new/news/src/rfuncs2.c line
494
- in /usr/src/new/news/src/unbatch.c line
181
- in /usr/src/new/news/src/visual.c line
1931
- in /usr/src/new/nntp/rrn/addng.c line
146-150(2)
- in /usr/src/new/nntp/rrn/init.c line
53,
214
- in /usr/src/new/nntp/server/serve.c line
77,
131,
196
- in /usr/src/new/nntp/xmit/rfc822.c line
24,
256
- in /usr/src/new/notes/src/archiver.c line
291
- in /usr/src/new/notes/src/datein.c line
51
- in /usr/src/new/notes/src/ftime.c line
39-40(2)
- in /usr/src/new/notes/src/gtime.c line
31
- in /usr/src/new/notes/src/newsdump.c line
528,
540
- in /usr/src/new/notes/src/recsio.c line
54,
166
- in /usr/src/new/rcs/src/ci.c line
658-661(2)
- in /usr/src/new/rcs/src/maketime.c line
47
- in /usr/src/new/rcs/src/rcsutil.c line
227,
245
- in /usr/src/new/rn/addng.c line
110-114(2)
- in /usr/src/new/rn/init.c line
55,
207
- in /usr/src/new/tools/src/jot.c line
207,
217,
227
- in /usr/src/new/xns/examples/gap/gap2d.c line
658,
670
- in /usr/src/new/xns/examples/gap/gaptelnetd.c line
714,
726
- in /usr/src/old/berknet/mach.c line
262
- in /usr/src/old/berknet/mach.h line
361,
472
- in /usr/src/old/berknet/netdaemon.c line
247
- in /usr/src/old/berknet/v6mail.c line
369,
738
- in /usr/src/old/cpnull.c line
53,
60
- in /usr/src/old/cu.c line
781,
944,
951
- in /usr/src/old/dnd.c line
212
- in /usr/src/old/talk/talkd.c line
74,
90
- in /usr/src/old/vpr/rvcat.c line
979,
1012
- in /usr/src/old/vpr/vcat.c line
934,
969
- in /usr/src/old/vpr/vdmp.c line
18,
88
- in /usr/src/old/vpr/vpf.c line
236,
264
- in /usr/src/ucb/Mail/aux.c line
465,
475
- in /usr/src/ucb/Mail/names.c line
270
- in /usr/src/ucb/Mail/send.c line
576
- in /usr/src/ucb/dbx/mkdate.c line
24
- in /usr/src/ucb/ex/ex_temp.c line
309,
740
- in /usr/src/ucb/finger.c line
172,
845
- in /usr/src/ucb/last.c line
63
- in /usr/src/ucb/leave.c line
77,
136
- in /usr/src/ucb/lisp/franz/fex4.c line
232,
238
- in /usr/src/ucb/lisp/franz/lam7.c line
623
- in /usr/src/ucb/lisp/franz/lam9.c line
210
- in /usr/src/ucb/msgs/msgs.c line
140
- in /usr/src/ucb/pascal/px/interp.c line
1583
- in /usr/src/ucb/pascal/px/vars.h line
78
- in /usr/src/ucb/pascal/px/version.c line
23-27(2)
- in /usr/src/ucb/pascal/pxp/version.c line
24,
31
- in /usr/src/ucb/pascal/src/yymain.c line
172
- in /usr/src/ucb/ruptime.c line
84,
123,
154-155(2),
161-165(3)
- in /usr/src/ucb/rwho.c line
63
- in /usr/src/ucb/script.c line
136,
191
- in /usr/src/ucb/sysline/sysline.c line
451,
465,
754,
1266
- in /usr/src/ucb/systat/vmstat.c line
53,
98,
225,
322-323(2),
551-554(2),
617(2),
660-666(3)
- in /usr/src/ucb/vacation.c line
283,
317
- in /usr/src/ucb/vmstat.c line
217,
268(2),
290-293(5),
478-481(2)
- in /usr/src/ucb/w.c line
196,
388,
426-432(3),
439-441(2)
- in /usr/src/undoc/v6mail.c line
18,
232,
430
- in /usr/src/usr.bin/calendar/calendar.c line
43
- in /usr/src/usr.bin/efl/main.c line
556
- in /usr/src/usr.bin/find/find.c line
96,
1089
- in /usr/src/usr.bin/learn/copy.c line
217
- in /usr/src/usr.bin/learn/selunit.c line
113
- in /usr/src/usr.bin/ranlib.c line
369,
378
- in /usr/src/usr.bin/refer/hunt8.c line
51
- in /usr/src/usr.bin/tip/cmds.c line
117,
146,
279,
333,
445,
461,
498,
515
- in /usr/src/usr.bin/tip/log.c line
37
- in /usr/src/usr.bin/tip/tip.h line
236
- in /usr/src/usr.bin/tip/uucplock.c line
72
- in /usr/src/usr.bin/uucp/acucntrl.c line
343
- in /usr/src/usr.bin/uucp/anlwrk.c line
352
- in /usr/src/usr.bin/uucp/assert.c line
37
- in /usr/src/usr.bin/uucp/cntrl.c line
147(2),
159(2),
311(2),
509(2),
573(2)
- in /usr/src/usr.bin/uucp/conn.c line
930
- in /usr/src/usr.bin/uucp/fio.c line
185(2),
207(2),
213-221(5),
258(2),
277(2),
283-293(5)
- in /usr/src/usr.bin/uucp/gename.c line
66
- in /usr/src/usr.bin/uucp/gio.c line
101(2),
117(2),
123-131(5),
154(2),
171(2),
177-185(5)
- in /usr/src/usr.bin/uucp/gnxseq.c line
67
- in /usr/src/usr.bin/uucp/logent.c line
92-97(3),
189-194(3),
200-204(2)
- in /usr/src/usr.bin/uucp/systat.c line
28,
112
- in /usr/src/usr.bin/uucp/tio.c line
105(2),
135(2),
141-149(5),
168(2),
201(2),
207-215(6)
- in /usr/src/usr.bin/uucp/ulockf.c line
47,
173-178(3)
- in /usr/src/usr.bin/uucp/uuclean.c line
91
- in /usr/src/usr.bin/uucp/uucp.h line
398
- in /usr/src/usr.bin/uucp/uucpd.c line
250,
286,
296
- in /usr/src/usr.bin/uucp/uusend.c line
95
- in /usr/src/usr.bin/uucp/uusnap.c line
57
- in /usr/src/usr.bin/uucp/uuxqt.c line
180,
368,
434
- in /usr/src/usr.bin/uucp/vms/startuucp.c line
109
- in /usr/src/usr.bin/xsend/xsend.c line
70
- in /usr/src/usr.lib/libF77/mkindx.c line
27,
33
- in /usr/src/usr.lib/libF77/mkvers.c line
45
- in /usr/src/usr.lib/libI77/mkindx.c line
27,
33
- in /usr/src/usr.lib/libI77/mkvers.c line
45
- in /usr/src/usr.lib/libU77/fdate_.c line
25-27(2)
- in /usr/src/usr.lib/libU77/idate_.c line
26-28(2)
- in /usr/src/usr.lib/libU77/itime_.c line
26-28(2)
- in /usr/src/usr.lib/libU77/mkindx.c line
27,
33
- in /usr/src/usr.lib/libU77/mkvers.c line
45
- in /usr/src/usr.lib/libU77/time_.c line
19-23(2)
- in /usr/src/usr.lib/libpc/DATE.c line
18
- in /usr/src/usr.lib/libpc/PMFLUSH.c line
16
- in /usr/src/usr.lib/libpc/TIME.c line
15
- in /usr/src/usr.lib/lpr/printjob.c line
790
- in /usr/src/usr.lib/sendmail/include/useful.h line
55
- in /usr/src/usr.lib/sendmail/src/arpadate.c line
73,
93,
99,
151
- in /usr/src/usr.lib/sendmail/src/clock.c line
55
- in /usr/src/usr.lib/sendmail/src/stats.c line
68
- in /usr/src/usr.lib/sendmail/src/util.c line
736
Defined variables
sccsid
defined in line
8;
never used