# 2.11BSD#431 - /usr/src/lib/libc/gen/time.c

##### Functions

    time              X

       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 493 times

- in /usr/include/time.h line 30
- in /usr/ingres/source/dbu/create.c line 638
- in /usr/ingres/source/monitor/main.c line 120
- in /usr/ingres/source/monitor/monitor.c line 154
- in /usr/ingres/source/monitor/quit.c line 128
- in /usr/ingres/source/monitor/trapquery.c line 75
- in /usr/ingres/source/qrymod/protect.c line 851
- in /usr/ingres/source/support/purge.c line 67
- in /usr/src/bin/chpass/util.c line 60, 69
- in /usr/src/bin/csh/sh.c line 56, 850
- in /usr/src/bin/date.c line 125
- in /usr/src/bin/login/login.c line 102, 362, 546
- in /usr/src/bin/ls/ls.c line 78-81(2)
- in /usr/src/bin/mail.c line 477
- in /usr/src/bin/make/files.c line 180, 395
- in /usr/src/bin/passwd/passwd.c line 216, 248
- in /usr/src/bin/pr.c line 215
- in /usr/src/bin/tar.c line 107, 1404
- in /usr/src/bin/tcsh/sh.c line 192, 214, 1565
- in /usr/src/bin/tcsh/sh.hist.c line 96
- in /usr/src/bin/tcsh/sh.types.h line 85
- in /usr/src/bin/tcsh/tc.func.c line 498, 613, 724
- in /usr/src/bin/tcsh/tc.os.h line 291
- in /usr/src/bin/tcsh/tc.prompt.c line 68
- in /usr/src/bin/tcsh/tc.sched.c line 147, 203
- in /usr/src/bin/tcsh/tc.who.c line 187
- in /usr/src/bin/wall.c line 41, 60
- in /usr/src/bin/who.c line 50
- in /usr/src/bin/write.c line 44
- 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/atc/log.c line 133, 139-140(4), 152(2), 183, 208
- in /usr/src/games/atc/main.c line 26
- in /usr/src/games/backgammon/main.c line 77, 111
- in /usr/src/games/boggle/boggle.c line 518
- in /usr/src/games/btlgammon/btlgammon.c line 60
- in /usr/src/games/canfield.c line 1010, 1499
- 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/hack/hack.unix.c line 28-32(2), 41, 154
- in /usr/src/games/hangman/setup.c line 27
- in /usr/src/games/hunt/driver.c line 272
- in /usr/src/games/mille/save.c line 85
- in /usr/src/games/monop/execute.c line 150
- in /usr/src/games/pdp/chess/qsort.s line 145-148(2)
- in /usr/src/games/pdp/etc.s line 124-129(2)
- in /usr/src/games/pdp/zork/z.c line 129
- in /usr/src/games/phantasia/func1.c line 103, 274, 429, 575
- in /usr/src/games/phantasia/func2.c line 409, 812
- in /usr/src/games/phantasia/main.c line 239, 568
- in /usr/src/games/phantasia/phant.h line 148
- in /usr/src/games/phantasia/setfiles.c line 28
- in /usr/src/games/quiz/quiz.c line 313
- in /usr/src/games/rogue/machdep.c line 280
- in /usr/src/games/sail/sync.c line 52
- in /usr/src/games/snake/snake.c line 93, 103, 910
- in /usr/src/games/trek/main.c line 138
- in /usr/src/games/warp/score.c line 538-543(2)
- in /usr/src/games/wump.c line 340
- in /usr/src/lib/libc/gen/syslog.c line 121
- in /usr/src/libexec/comsat/comsat.c line 81, 99, 117
- in /usr/src/libexec/ftpd/ftpcmd.y line 832-836(2)
- in /usr/src/libexec/ftpd/ftpd.c line 1126, 1140
- in /usr/src/libexec/ftpd/logwtmp.c line 45, 54
- in /usr/src/libexec/talkd/talkd.c line 34, 75, 88
- in /usr/src/libexec/telnetd/telnetd.c line 1262, 1275
- in /usr/src/local/afio/afio.c line 308, 597-599(2), 1535, 1552
- in /usr/src/local/mp/misc.c line 31
- in /usr/src/local/mtools/init.c line 250, 262
- in /usr/src/local/mtools/mformat.c line 30, 235
- in /usr/src/local/mtools/mlabel.c line 34, 121
- in /usr/src/local/mtools/mmd.c line 39, 143, 171-176(2)
- in /usr/src/local/mtools/mwrite.c line 250, 289
- in /usr/src/local/welcome/welcome.c line 26
- in /usr/src/local/zmodem/rz.c line 1465, 1481
- in /usr/src/new/OLD/apl/src/a0.c line 22
- in /usr/src/new/OLD/apl/src/a9.c line 106, 127
- in /usr/src/new/OLD/apl/src/xed.c line 1098, 3306
- in /usr/src/new/PORT/apl/src/a0.c line 22
- in /usr/src/new/PORT/apl/src/a9.c line 106, 127
- in /usr/src/new/PORT/apl/src/xed.c line 1098
- in /usr/src/new/PORT/dungeon/rtim.c line 22, 32, 50-53(2)
- in /usr/src/new/PORT/perl.1.0.0/arg.c line 1894, 1935, 1941
- in /usr/src/new/PORT/perl.1.0.0/perl.h line 183
- in /usr/src/new/PORT/perl.1.0.10/arg.c line 1922, 1963, 1969
- in /usr/src/new/PORT/perl.1.0.10/perl.h line 212
- in /usr/src/new/PORT/perl.1.0.16/arg.c line 1941, 1987, 1993
- in /usr/src/new/ansi/ansitape.c line 54
- in /usr/src/new/jove/disp.c line 858
- in /usr/src/new/jove/externs.h line 608
- in /usr/src/new/jove/jove.c line 47-51(2), 1281
- in /usr/src/new/jove/rec.c line 132
- in /usr/src/new/jove/util.c line 128, 149-151(2), 717
- in /usr/src/new/kermit5.188/ckutio.c line 546-550(2), 4994-4997(2), 5022, 5031, 5067-5072(2), 5080, 5086-5090(2), 5098
- in /usr/src/new/l11/link.c line 726
- in /usr/src/new/nntp/server/fakesyslog.c line 52
- in /usr/src/new/nntp/server/serve.c line 168, 247
- in /usr/src/new/nntp/xfer/nntpxfer.c line 49, 131
- in /usr/src/new/nntp/xmit/nntpxmit.c line 72, 178, 283, 313, 324
- in /usr/src/new/notes/src/archiver.c line 292
- 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 549, 561
- in /usr/src/new/notes/src/recsio.c line 57, 173
- in /usr/src/new/rcs/src/ci.c line 128, 775
- in /usr/src/new/rcs/src/maketime.c line 65, 74
- in /usr/src/new/rcs/src/rcsutil.c line 326, 344
- in /usr/src/new/rn/addng.c line 126-130(2), 136
- in /usr/src/new/rn/init.c line 59, 236
- in /usr/src/old/cu/cu.c line 781, 944, 951
- in /usr/src/old/dump/dump.h line 64
- in /usr/src/old/dump/dumpmain.c line 18, 187
- in /usr/src/old/dump/dumpoptr.c line 139, 212, 288
- in /usr/src/sbin/dmesg/dmesg.c line 141
- in /usr/src/sbin/dump/dump.h line 60
- in /usr/src/sbin/dump/dumpmain.c line 23, 295
- in /usr/src/sbin/dump/dumpoptr.c line 143, 216, 276
- in /usr/src/sbin/fsck/fsck.h line 217
- in /usr/src/sbin/fsck/inode.c line 277
- in /usr/src/sbin/fsck/main.c line 256
- in /usr/src/sbin/icheck/icheck.c line 461
- in /usr/src/sbin/init/init.c line 64, 84, 201, 356, 522, 584, 597, 666
- in /usr/src/sbin/mkfs/mkfs.c line 84
- in /usr/src/sbin/reboot/reboot.c line 176
- in /usr/src/sbin/routed/defs.h line 67
- in /usr/src/sbin/routed/trace.c line 102
- in /usr/src/sbin/savecore/savecore.c line 88
- in /usr/src/sbin/shutdown/shutdown.c line 154, 207, 276, 306, 324
- in /usr/src/share/zoneinfo/zdump.c line 23, 83
- in /usr/src/ucb/Mail/aux.c line 323-327(2)
- in /usr/src/ucb/Mail/names.c line 217, 225
- in /usr/src/ucb/Mail/send.c line 535, 542
- in /usr/src/ucb/PORT/pascal/px/interp.c line 1583
- in /usr/src/ucb/PORT/pascal/px/vars.h line 78
- in /usr/src/ucb/PORT/pascal/px/version.c line 23-27(2)
- in /usr/src/ucb/PORT/pascal/pxp/version.c line 24, 31
- in /usr/src/ucb/PORT/pascal/src/yymain.c line 172
- in /usr/src/ucb/PORT/systat/vmstat.c line 53, 98, 225, 322-323(2), 551-554(2), 617(2), 660-666(3)
- in /usr/src/ucb/ex/ex_temp.c line 278
- in /usr/src/ucb/finger/finger.c line 60, 85
- in /usr/src/ucb/finger/lprint.c line 66
- in /usr/src/ucb/finger/sprint.c line 41
- in /usr/src/ucb/last.c line 67
- in /usr/src/ucb/leave.c line 75, 134
- in /usr/src/ucb/msgs/msgs.c line 140
- in /usr/src/ucb/pascal/pi/version.c line 20
- in /usr/src/ucb/pascal/px/24pxp.s line 18
- in /usr/src/ucb/pascal/px/34fun.s line 301
- in /usr/src/ucb/pascal/px/gather.c line 95
- in /usr/src/ucb/pascal/px/pdattim.c line 14
- in /usr/src/ucb/ruptime.c line 83, 122, 153-154(2), 160-164(3)
- in /usr/src/ucb/rwho.c line 63
- in /usr/src/ucb/script.c line 30, 137, 192
- in /usr/src/ucb/vacation.c line 284, 318
- in /usr/src/ucb/vmstat.c line 252, 308(2), 362-365(5), 610-613(2)
- in /usr/src/ucb/w.c line 131, 296
- in /usr/src/usr.bin/calendar/calendar.c line 46
- in /usr/src/usr.bin/find/find.c line 97, 1083
- 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/touch.c line 52, 84
- in /usr/src/usr.bin/refer/hunt8.c line 51
- in /usr/src/usr.bin/roff/common_source/n1.c line 398-402(2)
- in /usr/src/usr.bin/shar/shar.c line 147
- 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 38
- 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 347
- in /usr/src/usr.bin/uucp/anlwrk.c line 351
- 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 925
- 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 107(2), 137(2), 143-151(5), 170(2), 203(2), 209-217(6)
- in /usr/src/usr.bin/uucp/ulockf.c line 47, 174-179(3)
- in /usr/src/usr.bin/uucp/uuclean.c line 91
- in /usr/src/usr.bin/uucp/uucpd.c line 251, 287, 297
- 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.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/libstubs/stubtest.c line 14
- in /usr/src/usr.lib/libutil/logout.c line 36, 46
- in /usr/src/usr.lib/libutil/logwtmp.c line 35, 44
- in /usr/src/usr.sbin/ac/ac.c line 95, 257
- in /usr/src/usr.sbin/cron/cron.c line 196, 207
- in /usr/src/usr.sbin/cron/crontab.c line 475
- in /usr/src/usr.sbin/cron/misc.c line 454, 622
- in /usr/src/usr.sbin/inetd/inetd.c line 1147, 1164
- in /usr/src/usr.sbin/lpr/printjob.c line 791
- in /usr/src/usr.sbin/mkproto/mkproto.c line 43, 323
- in /usr/src/usr.sbin/named/named/db_reload.c line 54
- in /usr/src/usr.sbin/named/named/ns_main.c line 271
- in /usr/src/usr.sbin/named/named/ns_stats.c line 113
- in /usr/src/usr.sbin/rwhod/rwhod.c line 202, 244, 306, 464-465(2), 471-475(3)
- in /usr/src/usr.sbin/sendmail.MX/src/arpadate.c line 86
- in /usr/src/usr.sbin/sendmail.MX/src/clock.c line 55
- in /usr/src/usr.sbin/sendmail.MX/src/stats.c line 74
- in /usr/src/usr.sbin/sendmail.MX/src/util.c line 733
- in /usr/src/usr.sbin/sendmail/src/arpadate.c line 86
- in /usr/src/usr.sbin/sendmail/src/clock.c line 55
- in /usr/src/usr.sbin/sendmail/src/stats.c line 68
- in /usr/src/usr.sbin/sendmail/src/util.c line 733
- in /usr/src/usr.sbin/syslogd/syslogd.c line 423, 498, 655

#### Defined variables

sccsid defined in line 8; never used

Last modified: 1986-03-10 Generated: 2016-12-26 | Generated by src2html V0.67 page hit count: 712 |