# 2.11BSD#431 - /usr/include/utmp.h

##### Macros

    UT_HOSTSIZE       X
    UT_LINESIZE       X
    UT_NAMESIZE       X
    _PATH_UTMP        X
    _PATH_WTMP        X

##### struct's

    utmp              X

       1: /*
       2:  * Copyright (c) 1988 The Regents of the University of California.
       3:  * All rights reserved.
       4:  *
       5:  * Redistribution and use in source and binary forms are permitted
       6:  * provided that the above copyright notice and this paragraph are
       7:  * duplicated in all such forms and that any documentation,
       8:  * advertising materials, and other materials related to such
       9:  * distribution and use acknowledge that the software was developed
      10:  * by the University of California, Berkeley.  The name of the
      11:  * University may not be used to endorse or promote products derived
      12:  * from this software without specific prior written permission.
      13:  * THIS SOFTWARE IS PROVIDED ``AS IS'' AND WITHOUT ANY EXPRESS OR
      14:  * IMPLIED WARRANTIES, INCLUDING, WITHOUT LIMITATION, THE IMPLIED
      15:  * WARRANTIES OF MERCHANTIBILITY AND FITNESS FOR A PARTICULAR PURPOSE.
      16:  *
      17:  *	@(#)utmp.h	5.6.1 (2.11BSD) 1996/11/27
      18:  */
      19:
      20: #define _PATH_UTMP  "/var/run/utmp"
      21: #define _PATH_WTMP  "/usr/adm/wtmp"
      22:
      23: #define UT_NAMESIZE 15
      24: #define UT_LINESIZE 8
      25: #define UT_HOSTSIZE 16
      26: struct utmp {
      27:     char    ut_line[UT_LINESIZE];
      28:     char    ut_name[UT_NAMESIZE];
      29:     char    ut_host[UT_HOSTSIZE];
      30:     long    ut_time;
      31: };

#### Defined struct's

utmp defined in line 26; used 156 times

- in /usr/src/bin/date.c line 41(2)
- in /usr/src/bin/login/login.c line 359(2)
- in /usr/src/bin/ls/ls.c line 650(2)
- in /usr/src/bin/tcsh/tc.who.c line 63(2), 158(2)
- in /usr/src/bin/wall.c line 36(2), 51(2), 64-67(4)
- in /usr/src/bin/who.c line 28(2)
- in /usr/src/bin/write.c line 23(2)
- in /usr/src/games/phantasia/main.c line 563(2)
- in /usr/src/lib/libc/net/ruserpass.c line 22(2), 714-717(4), 750(2)
- in /usr/src/libexec/comsat/comsat.c line 50(2), 124-128(6), 135(2), 142(2), 158(2)
- in /usr/src/libexec/ftpd/logwtmp.c line 43(2), 55-56(4)
- in /usr/src/libexec/talkd/process.c line 153(2)
- in /usr/src/libexec/telnetd/telnetd.c line 1231(2), 1241(2), 1248-1253(4)
- in /usr/src/old/dump/dumpoptr.c line 122(2), 148(2)
- in /usr/src/sbin/dump/dumpoptr.c line 126(2), 152(2)
- in /usr/src/sbin/init/init.c line 38(2), 557-558(4), 566-570(6), 576(2)
- in /usr/src/sbin/reboot/reboot.c line 168(2)
- in /usr/src/sbin/shutdown/shutdown.c line 54(2)
- in /usr/src/ucb/PORT/systat/vmstat.c line 55(2)
- in /usr/src/ucb/finger/finger.c line 121(2), 151(2)
- in /usr/src/ucb/finger/util.c line 174(2)
- in /usr/src/ucb/ftp/ruserpass.c line 34(2)
- in /usr/src/ucb/last.c line 41(2), 57(2), 200(2)
- in /usr/src/ucb/lastcomm.c line 148(2)
- in /usr/src/ucb/users.c line 25(2)
- in /usr/src/ucb/w.c line 70(2)
- in /usr/src/usr.bin/find/find.c line 935(2)
- in /usr/src/usr.bin/uucp/acucntrl.c line 129(2), 217-220(4), 362(2)
- in /usr/src/usr.bin/uucp/uucpd.c line 234(2)
- in /usr/src/usr.lib/libutil/login.c line 30(2), 38-43(6)
- in /usr/src/usr.lib/libutil/logout.c line 27(2)
- in /usr/src/usr.lib/libutil/logwtmp.c line 32(2), 45-46(4)
- in /usr/src/usr.sbin/ac/ac.c line 23(2)
- in /usr/src/usr.sbin/rwhod/rwhod.c line 234(2), 254-258(6), 272(2)
- in /usr/src/usr.sbin/sa/sa.c line 53(2)
- in /usr/src/usr.sbin/syslogd/syslogd.c line 641(2)
- in /usr/src/usr.sbin/timed/master.c line 535(2)

#### Defined macros

UT_HOSTSIZE defined in line 25; used 7 times

- in line 29
- in /usr/src/ucb/finger/finger.h line 54
- in /usr/src/ucb/finger/util.c line 167-168(2), 182-183(2)
- in /usr/src/usr.lib/libutil/logout.c line 45

UT_LINESIZE defined in line 24; used 8 times

- in line 27
- in /usr/src/ucb/finger/finger.h line 53
- in /usr/src/ucb/finger/util.c line 159, 165-166(2), 180-181(2)
- in /usr/src/usr.lib/libutil/logout.c line 42

UT_NAMESIZE defined in line 23; used 25 times

- in line 28
- in /usr/src/bin/login/login.c line 449, 458
- in /usr/src/bin/wall.c line 40
- in /usr/src/libexec/ctimed/ctimed.c line 147-150(3)
- in /usr/src/new/kermit5.188/cku2tm.c line 147-150(3)
- in /usr/src/new/kermit5.188/ckustr.c line 279-284(3)
- in /usr/src/ucb/finger/finger.c line 122, 128-133(2)
- in /usr/src/ucb/finger/sprint.c line 59-64(3)
- in /usr/src/ucb/finger/util.c line 224, 237
- in /usr/src/usr.lib/libstubs/stubs.c line 128-133(3)
- in /usr/src/usr.lib/libutil/logout.c line 44

_PATH_UTMP defined in line 20; used 33 times

- in /usr/src/bin/tcsh/tc.who.c line 76, 202-203(2), 220-221(2)
- in /usr/src/bin/wall.c line 56-57(2)
- in /usr/src/bin/who.c line 39
- in /usr/src/bin/write.c line 56-57(2)
- in /usr/src/games/phantasia/main.c line 573
- in /usr/src/lib/libc/net/ruserpass.c line 722
- in /usr/src/libexec/comsat/comsat.c line 76-77(2)
- in /usr/src/libexec/talkd/process.c line 159-160(2)
- in /usr/src/libexec/telnetd/telnetd.c line 1233
- in /usr/src/old/dump/dumpoptr.c line 142
- in /usr/src/sbin/dump/dumpoptr.c line 146
- in /usr/src/sbin/init/init.c line 34
- in /usr/src/sbin/shutdown/shutdown.c line 190-192(2)
- in /usr/src/ucb/finger/finger.c line 124-125(2), 216-217(2)
- in /usr/src/ucb/users.c line 33
- in /usr/src/ucb/w.c line 128
- in /usr/src/usr.bin/uucp/acucntrl.c line 118
- in /usr/src/usr.lib/libutil/logout.c line 38
- in /usr/src/usr.sbin/rwhod/rwhod.c line 70
- in /usr/src/usr.sbin/syslogd/syslogd.c line 649-650(2)

_PATH_WTMP defined in line 21; used 5 times

- in /usr/src/libexec/ftpd/logwtmp.c line 29, 48
- in /usr/src/libexec/telnetd/telnetd.c line 1232
- in /usr/src/sbin/init/init.c line 35
- in /usr/src/usr.sbin/ac/ac.c line 51

#### Usage of this include

utmp.h used 44 times

- in /usr/src/bin/date.c line 24
- in /usr/src/bin/login/login.c line 40
- in /usr/src/bin/ls/ls.c line 648
- in /usr/src/bin/mail.c line 12
- in /usr/src/bin/ps.c line 28
- in /usr/src/bin/tcsh/tc.who.c line 49
- in /usr/src/bin/wall.c line 23
- in /usr/src/bin/who.c line 16
- in /usr/src/bin/write.c line 13
- in /usr/src/games/phantasia/main.c line 554
- in /usr/src/lib/libc/gen/getlogin.c line 40
- in /usr/src/lib/libc/net/ruserpass.c line 12
- in /usr/src/libexec/comsat/comsat.c line 33
- in /usr/src/libexec/ctimed/ctimed.c line 17
- in /usr/src/libexec/ftpd/logwtmp.c line 27
- in /usr/src/libexec/talkd/process.c line 145
- in /usr/src/libexec/telnetd/telnetd.c line 1229
- in /usr/src/new/kermit5.188/cku2tm.c line 17
- in /usr/src/new/kermit5.188/ckustr.c line 160
- in /usr/src/old/dump/dump.h line 22
- in /usr/src/sbin/dump/dump.h line 16
- in /usr/src/sbin/init/init.c line 14
- in /usr/src/sbin/reboot/reboot.c line 161
- in /usr/src/sbin/shutdown/shutdown.c line 19
- in /usr/src/ucb/PORT/systat/vmstat.c line 18
- in /usr/src/ucb/finger/finger.h line 24
- in /usr/src/ucb/ftp/ruserpass.c line 24
- in /usr/src/ucb/last.c line 24
- in /usr/src/ucb/lastcomm.c line 25
- in /usr/src/ucb/talk/talk.h line 10
- in /usr/src/ucb/users.c line 20
- in /usr/src/ucb/w.c line 15
- in /usr/src/usr.bin/find/find.c line 933
- in /usr/src/usr.bin/uucp/acucntrl.c line 64
- in /usr/src/usr.bin/uucp/uucpd.c line 222
- in /usr/src/usr.lib/libstubs/stubs.c line 9
- in /usr/src/usr.lib/libutil/login.c line 24
- in /usr/src/usr.lib/libutil/logout.c line 25
- in /usr/src/usr.lib/libutil/logwtmp.c line 26
- in /usr/src/usr.sbin/ac/ac.c line 10
- in /usr/src/usr.sbin/rwhod/rwhod.c line 31
- in /usr/src/usr.sbin/sa/sa.c line 22
- in /usr/src/usr.sbin/syslogd/syslogd.c line 45
- in /usr/src/usr.sbin/timed/master.c line 15

Last modified: 1996-11-28 Generated: 2016-12-26 | Generated by src2html V0.67 page hit count: 767 |