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

##### Macros

    _PATH_MASTERPASSWDX
    _PATH_MKPASSWD    X
    _PATH_PASSWD      X
    _PATH_PTMP        X
    _PW_KEYBYNAME     X
    _PW_KEYBYUID      X

##### struct's

    passwd            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:  *	@(#)pwd.h	4.3.1 (2.11BSD) 1996/11/16
      18:  */
      19:
      20: #define _PATH_PASSWD        "/etc/passwd"
      21: #define _PATH_MASTERPASSWD  "/etc/master.passwd"
      22: #define _PATH_MKPASSWD      "/sbin/mkpasswd"
      23: #define _PATH_PTMP      "/etc/ptmp"
      24:
      25: #define _PW_KEYBYNAME       '0'
      26: #define _PW_KEYBYUID        '1'
      27:
      28: struct passwd {
      29:     char    *pw_name;           /* user name */
      30:     char    *pw_passwd;         /* encrypted password */
      31:     int pw_uid;             /* user uid */
      32:     int pw_gid;             /* user gid */
      33:     long    pw_change;          /* password change time */
      34:     char    *pw_class;          /* user access class */
      35:     char    *pw_gecos;          /* Honeywell login info */
      36:     char    *pw_dir;            /* home directory */
      37:     char    *pw_shell;          /* default shell */
      38:     long    pw_expire;          /* account expiration */
      39: };
      40:
      41: struct passwd *getpwent(), *getpwuid(), *getpwnam();
      42: void endpwent(), setpwfile();
      43: int setpassent(), setpwent();

#### Defined struct's

passwd defined in line 28; used 524 times

- in line 41(2)
- in /usr/src/bin/chgrp.c line 25(2)
- in /usr/src/bin/chpass/chpass.c line 76(2), 233(2), 282(2), 344(2), 424(2)
- in /usr/src/bin/chpass/field.c line 34(2), 65(2), 81(2), 107(2), 139(2), 155(2), 167(2), 179(2), 194(2), 211(2)
- in /usr/src/bin/chpass/util.c line 119(2)
- in /usr/src/bin/csh/sh.c line 884(2)
- in /usr/src/bin/csh/sh.file.c line 227(2), 318(2)
- in /usr/src/bin/login/login.c line 70(2)
- in /usr/src/bin/ls/ls.c line 665(2)
- in /usr/src/bin/mail.c line 66(2), 603(2)
- in /usr/src/bin/make/files.c line 389(2)
- in /usr/src/bin/passwd/passwd.c line 46(2), 165(2), 211(2)
- in /usr/src/bin/ps.c line 497(2), 506(2)
- in /usr/src/bin/rcp.c line 55(2), 75(2)
- in /usr/src/bin/su.c line 36(2)
- in /usr/src/bin/tcsh/sh.file.c line 335(2), 440(2)
- in /usr/src/bin/tcsh/tc.func.c line 1063(2)
- in /usr/src/bin/tcsh/tw.parse.c line 1121(2)
- in /usr/src/bin/who.c line 29(2)
- in /usr/src/games/atc/log.c line 57(2), 105(2)
- in /usr/src/games/battlestar/init.c line 46(2)
- in /usr/src/games/cfscores.c line 37(2), 78(2)
- in /usr/src/games/monop/misc.c line 286(2), 293(2)
- in /usr/src/games/phantasia/phant.h line 150(2)
- in /usr/src/games/robots/score.c line 20(2)
- in /usr/src/games/rogue/machdep.c line 360(2)
- in /usr/src/games/sail/lo_main.c line 30(2)
- in /usr/src/games/snake/snake.c line 505(2)
- in /usr/src/games/snake/snscore.c line 16(2), 34(2)
- in /usr/src/games/warp/intrp.c line 198-199(4), 616(2)
- in /usr/src/lib/libc/gen/getpwent.c line 32(2), 39(2), 46(2), 56-59(4), 66(2), 83-86(4), 93(2), 110(2)
- in /usr/src/lib/libc/net/rcmd.c line 245(2)
- in /usr/src/libexec/ctimed/ctimed.c line 42(2), 51(2), 216(2), 234(2)
- in /usr/src/libexec/ftpd/ftpcmd.y line 49(2)
- in /usr/src/libexec/ftpd/ftpd.c line 88(2), 285-290(6), 367(2), 380(2)
- in /usr/src/libexec/identd/src/identd.c line 347(2)
- in /usr/src/libexec/identd/src/itest.c line 115(2)
- in /usr/src/libexec/identd/src/parse.c line 163(2)
- in /usr/src/libexec/popper/pop_dropcopy.c line 28(2)
- in /usr/src/libexec/popper/pop_pass.c line 25(2)
- in /usr/src/libexec/rexecd/rexecd.c line 31(2), 75(2)
- in /usr/src/libexec/rlogind/rlogind.c line 76(2)
- in /usr/src/libexec/rshd/rshd.c line 125(2)
- in /usr/src/libexec/tcpd/options.c line 268-269(4)
- in /usr/src/libexec/tcpd/safe_finger.c line 61(2)
- in /usr/src/local/afio/afio.c line 173(2)
- in /usr/src/local/mp/misc.c line 166(2)
- in /usr/src/local/qterm/qterm.c line 339(2), 649(2)
- in /usr/src/new/crash/crashsubs.c line 545(2)
- in /usr/src/new/jove/io.c line 535-538(4)
- in /usr/src/new/kermit5.188/cku2tm.c line 42(2), 51(2), 216(2), 234(2)
- in /usr/src/new/kermit5.188/ckufio.c line 347-354(8), 1376(2), 1403(2), 2727(2), 2781(2), 2903-2908(4)
- in /usr/src/new/kermit5.188/ckustr.c line 181(2), 264(2), 274(2), 295(2), 343(2)
- in /usr/src/new/nntp/inews/inews.c line 157(2), 207(2)
- in /usr/src/new/nntp/server/common.h line 29(2)
- in /usr/src/new/nntp/server/serve.c line 82(2)
- in /usr/src/new/notes/src/access.c line 52(2)
- in /usr/src/new/notes/src/gname.c line 21(2)
- in /usr/src/new/notes/src/nfaccess.c line 27(2)
- in /usr/src/new/notes/src/startup.c line 49(2), 56(2)
- in /usr/src/new/rn/intrp.c line 211-212(4), 967(2)
- in /usr/src/old/prmail/prmail.c line 21(2), 28(2)
- in /usr/src/sbin/dump/dumprmt.c line 91(2)
- in /usr/src/sbin/fsck/inode.c line 191(2)
- in /usr/src/sbin/mkpasswd/mkpasswd.c line 35(2)
- in /usr/src/sbin/quotacheck/quotacheck.c line 118(2)
- in /usr/src/sbin/reboot/reboot.c line 93(2)
- in /usr/src/sbin/shutdown/shutdown.c line 108(2)
- in /usr/src/ucb/Mail/getname.c line 56(2), 70(2)
- in /usr/src/ucb/PORT/systat/pigs.c line 43(2)
- in /usr/src/ucb/error/errorfilter.c line 39(2), 46-50(4)
- in /usr/src/ucb/ex/expreserve.c line 77(2), 320(2)
- in /usr/src/ucb/finger/finger.c line 120(2), 152(2)
- in /usr/src/ucb/finger/util.c line 56(2), 96(2), 190(2)
- in /usr/src/ucb/from.c line 26(2)
- in /usr/src/ucb/ftp/ftp.c line 214(2)
- in /usr/src/ucb/ftp/glob.c line 48(2), 657(2)
- in /usr/src/ucb/ftp/main.c line 54(2)
- in /usr/src/ucb/lastcomm.c line 163(2)
- in /usr/src/ucb/lock/lock.c line 60(2)
- in /usr/src/ucb/msgs/msgs.c line 110(2)
- in /usr/src/ucb/pascal/px/gather.c line 78(2), 87(2)
- in /usr/src/ucb/quota.c line 84(2), 95(2)
- in /usr/src/ucb/rdist/defs.h line 116(2)
- in /usr/src/ucb/rdist/main.c line 45(2)
- in /usr/src/ucb/rlogin.c line 39(2), 72(2)
- in /usr/src/ucb/rsh.c line 37(2), 54(2)
- in /usr/src/ucb/sccs.c line 246-247(4), 1498-1499(4)
- in /usr/src/ucb/sendbug/bugfiler.c line 102(2)
- in /usr/src/ucb/vacation.c line 80-84(4)
- in /usr/src/usr.bin/at/at.c line 904(2)
- in /usr/src/usr.bin/at/atq.c line 321(2)
- in /usr/src/usr.bin/at/atrm.c line 408(2), 423(2)
- in /usr/src/usr.bin/at/atrun.c line 156(2), 536(2)
- in /usr/src/usr.bin/find/find.c line 960-961(4), 1033-1034(4)
- in /usr/src/usr.bin/fstat/fstat.c line 128-131(4)
- in /usr/src/usr.bin/id/id.c line 56-60(8), 69(2), 150(2), 191(2), 230(2), 259(2), 294-298(4)
- in /usr/src/usr.bin/refer/what1.c line 91(2)
- in /usr/src/usr.bin/renice/renice.c line 58(2)
- in /usr/src/usr.bin/tip/log.c line 24(2)
- in /usr/src/usr.bin/tip/tip.h line 237(2)
- in /usr/src/usr.bin/uucp/acucntrl.c line 149(2)
- in /usr/src/usr.bin/uucp/getpwinfo.c line 21(2), 56(2)
- in /usr/src/usr.bin/uucp/uuclean.c line 212-213(4)
- in /usr/src/usr.bin/uucp/uucpd.c line 153(2), 265(2)
- in /usr/src/usr.bin/uucp/uudecode.c line 56-58(4)
- in /usr/src/usr.bin/uucp/uusend.c line 55-56(4)
- in /usr/src/usr.bin/xinstall/xinstall.c line 59(2)
- in /usr/src/usr.lib/libstubs/stubs.c line 30(2), 113(2), 123(2), 144(2), 192(2)
- in /usr/src/usr.lib/libstubs/stubtest.c line 9(2), 76(2)
- in /usr/src/usr.sbin/chown/chown.c line 30-31(4)
- in /usr/src/usr.sbin/cron/cron.h line 220-224(4)
- in /usr/src/usr.sbin/cron/crontab.c line 49(2)
- in /usr/src/usr.sbin/cron/database.c line 202(2)
- in /usr/src/usr.sbin/cron/entry.c line 71(2)
- in /usr/src/usr.sbin/cron/user.c line 47(2)
- in /usr/src/usr.sbin/edquota/edquota.c line 149(2)
- in /usr/src/usr.sbin/inetd/inetd.c line 237(2)
- in /usr/src/usr.sbin/lpr/lpr.c line 79-80(4)
- in /usr/src/usr.sbin/lpr/lprm.c line 41(2), 47(2)
- in /usr/src/usr.sbin/lpr/printjob.c line 293(2)
- in /usr/src/usr.sbin/quot/quot.c line 45(2), 53(2)
- in /usr/src/usr.sbin/repquota/repquota.c line 80(2)
- in /usr/src/usr.sbin/sa/sa.c line 936(2), 951(2)
- in /usr/src/usr.sbin/sendmail.MX/src/conf.c line 193(2)
- in /usr/src/usr.sbin/sendmail.MX/src/envelope.c line 420-423(4)
- in /usr/src/usr.sbin/sendmail.MX/src/recipient.c line 301-302(4), 354-361(8)
- in /usr/src/usr.sbin/sendmail.MX/src/savemail.c line 58-63(4)
- in /usr/src/usr.sbin/sendmail/src/conf.c line 193(2)
- in /usr/src/usr.sbin/sendmail/src/envelope.c line 414-417(4)
- in /usr/src/usr.sbin/sendmail/src/recipient.c line 308-309(4), 361-368(8)
- in /usr/src/usr.sbin/sendmail/src/savemail.c line 52-57(4)

#### Defined macros

_PATH_MASTERPASSWD defined in line 21; used 6 times

- in /usr/src/bin/chpass/chpass.c line 176, 201
- in /usr/src/bin/passwd/passwd.c line 102
- in /usr/src/lib/libc/gen/getpwent.c line 134, 273
- in /usr/src/usr.sbin/vipw/vipw.c line 69

_PATH_MKPASSWD defined in line 22; used 3 times

- in /usr/src/bin/chpass/chpass.c line 391
- in /usr/src/bin/passwd/passwd.c line 260
- in /usr/src/usr.sbin/vipw/vipw.c line 225

_PATH_PASSWD defined in line 20; used 12 times

- in /usr/src/bin/chpass/chpass.c line 215(2), 226
- in /usr/src/bin/passwd/passwd.c line 145(2), 156
- in /usr/src/lib/libc/gen/getpwent.c line 34, 134, 273
- in /usr/src/usr.sbin/vipw/vipw.c line 134(2), 145

_PATH_PTMP defined in line 23; used 3 times

- in /usr/src/bin/chpass/chpass.c line 140
- in /usr/src/bin/passwd/passwd.c line 88
- in /usr/src/usr.sbin/vipw/vipw.c line 60

_PW_KEYBYNAME defined in line 25; used 2 times

- in /usr/src/lib/libc/gen/getpwent.c line 53
- in /usr/src/sbin/mkpasswd/mkpasswd.c line 135

_PW_KEYBYUID defined in line 26; used 1 times

- in /usr/src/sbin/mkpasswd/mkpasswd.c line 147

#### Usage of this include

pwd.h used 126 times

- in /usr/src/bin/chgrp.c line 21
- in /usr/src/bin/chpass/chpass.c line 32
- in /usr/src/bin/chpass/field.c line 23
- in /usr/src/bin/chpass/util.c line 24
- in /usr/src/bin/csh/sh.c line 874
- in /usr/src/bin/csh/sh.file.c line 22
- in /usr/src/bin/login/login.c line 46
- in /usr/src/bin/ls/ls.c line 646
- in /usr/src/bin/mail.c line 11
- in /usr/src/bin/make/files.c line 380
- in /usr/src/bin/passwd/passwd.c line 34
- in /usr/src/bin/ps.c line 19
- in /usr/src/bin/rcp.c line 37
- in /usr/src/bin/su.c line 16
- in /usr/src/bin/tcsh/sh.h line 216
- in /usr/src/bin/who.c line 17
- in /usr/src/games/atc/include.h line 15
- in /usr/src/games/battlestar/init.c line 12
- in /usr/src/games/cfscores.c line 17
- in /usr/src/games/monop/misc.c line 284
- in /usr/src/games/phantasia/phant.h line 8
- in /usr/src/games/robots/score.c line 12
- in /usr/src/games/rogue/machdep.c line 62
- in /usr/src/games/sail/lo_main.c line 16
- in /usr/src/games/snake/snake.c line 27
- in /usr/src/games/snake/snscore.c line 12
- in /usr/src/games/warp/warp.h line 122
- in /usr/src/lib/libc/gen/getlogin.c line 39
- in /usr/src/lib/libc/gen/getpwent.c line 27
- in /usr/src/lib/libc/net/rcmd.c line 24
- in /usr/src/libexec/ctimed/ctimed.c line 16
- in /usr/src/libexec/ftpd/ftpcmd.y line 41
- in /usr/src/libexec/ftpd/ftpd.c line 47
- in /usr/src/libexec/identd/src/identd.c line 52
- in /usr/src/libexec/identd/src/itest.c line 32
- in /usr/src/libexec/identd/src/parse.c line 19
- in /usr/src/libexec/popper/pop_dropcopy.c line 18
- in /usr/src/libexec/popper/pop_pass.c line 15
- in /usr/src/libexec/rexecd/rexecd.c line 26
- in /usr/src/libexec/rlogind/rlogind.c line 52
- in /usr/src/libexec/rshd/rshd.c line 47
- in /usr/src/libexec/tcpd/options.c line 45
- in /usr/src/libexec/tcpd/safe_finger.c line 28
- in /usr/src/local/afio/afio.c line 35
- in /usr/src/local/mp/mp.h line 23
- in /usr/src/local/qterm/qterm.c line 205
- in /usr/src/new/crash/crashsubs.c line 26
- in /usr/src/new/jove/io.c line 529
- in /usr/src/new/kermit5.188/cku2tm.c line 16
- in /usr/src/new/kermit5.188/ckufio.c line 114
- in /usr/src/new/kermit5.188/ckustr.c line 159
- in /usr/src/new/nntp/inews/inews.c line 18
- in /usr/src/new/nntp/server/common.h line 13
- in /usr/src/new/notes/src/access.c line 19
- in /usr/src/new/notes/src/gname.c line 3
- in /usr/src/new/notes/src/nfaccess.c line 25
- in /usr/src/new/notes/src/startup.c line 3
- in /usr/src/new/rcs/src/rcsutil.c line 84
- in /usr/src/new/rn/common.h line 52
- in /usr/src/old/prmail/prmail.c line 17
- in /usr/src/sbin/dump/dumprmt.c line 47
- in /usr/src/sbin/fsck/inode.c line 11
- in /usr/src/sbin/mkpasswd/mkpasswd.c line 29
- in /usr/src/sbin/quotacheck/quotacheck.c line 57
- in /usr/src/sbin/reboot/reboot.c line 21
- in /usr/src/sbin/shutdown/shutdown.c line 20
- in /usr/src/ucb/Mail/getname.c line 39
- in /usr/src/ucb/PORT/systat/fetch.c line 17
- in /usr/src/ucb/PORT/systat/pigs.c line 20
- in /usr/src/ucb/error/errorfilter.c line 13
- in /usr/src/ucb/ex/expreserve.c line 20
- in /usr/src/ucb/finger/finger.h line 23
- in /usr/src/ucb/from.c line 17
- in /usr/src/ucb/ftp/ftp.c line 39
- in /usr/src/ucb/ftp/glob.c line 32
- in /usr/src/ucb/ftp/main.c line 41
- in /usr/src/ucb/lastcomm.c line 23
- in /usr/src/ucb/lock/lock.c line 39
- in /usr/src/ucb/msgs/msgs.c line 50
- in /usr/src/ucb/pascal/px/gather.c line 3
- in /usr/src/ucb/quota.c line 21
- in /usr/src/ucb/rdist/defs.h line 13
- in /usr/src/ucb/rlogin.c line 29
- in /usr/src/ucb/rsh.c line 27
- in /usr/src/ucb/sccs.c line 23
- in /usr/src/ucb/sendbug/bugfiler.c line 24
- in /usr/src/ucb/vacation.c line 16
- in /usr/src/usr.bin/at/at.c line 33
- in /usr/src/usr.bin/at/atq.c line 39
- in /usr/src/usr.bin/at/atrm.c line 31
- in /usr/src/usr.bin/at/atrun.c line 39
- in /usr/src/usr.bin/find/find.c line 931
- in /usr/src/usr.bin/fstat/fstat.c line 45
- in /usr/src/usr.bin/id/id.c line 47
- in /usr/src/usr.bin/refer/what1.c line 6
- in /usr/src/usr.bin/renice/renice.c line 18
- in /usr/src/usr.bin/tip/tip.h line 19
- in /usr/src/usr.bin/uucp/acucntrl.c line 65
- in /usr/src/usr.bin/uucp/getpwinfo.c line 6
- in /usr/src/usr.bin/uucp/uuclean.c line 7
- in /usr/src/usr.bin/uucp/uucpd.c line 23
- in /usr/src/usr.bin/uucp/uudecode.c line 12
- in /usr/src/usr.bin/uucp/uusend.c line 26
- in /usr/src/usr.bin/xinstall/xinstall.c line 51
- in /usr/src/usr.lib/libstubs/stubs.c line 8
- in /usr/src/usr.lib/libstubs/stubtest.c line 3
- in /usr/src/usr.sbin/chown/chown.c line 24
- in /usr/src/usr.sbin/cron/cron.h line 36
- in /usr/src/usr.sbin/edquota/edquota.c line 55
- in /usr/src/usr.sbin/inetd/inetd.c line 105
- in /usr/src/usr.sbin/lpr/lp.h line 22
- in /usr/src/usr.sbin/lpr/lpr.c line 26
- in /usr/src/usr.sbin/quot/quot.c line 7
- in /usr/src/usr.sbin/repquota/repquota.c line 52
- in /usr/src/usr.sbin/sa/sa.c line 23
- in /usr/src/usr.sbin/sendmail.MX/src/alias.c line 25
- in /usr/src/usr.sbin/sendmail.MX/src/conf.c line 15
- in /usr/src/usr.sbin/sendmail.MX/src/envelope.c line 21
- in /usr/src/usr.sbin/sendmail.MX/src/recipient.c line 21
- in /usr/src/usr.sbin/sendmail.MX/src/savemail.c line 21
- in /usr/src/usr.sbin/sendmail/src/alias.c line 11
- in /usr/src/usr.sbin/sendmail/src/conf.c line 15
- in /usr/src/usr.sbin/sendmail/src/envelope.c line 15
- in /usr/src/usr.sbin/sendmail/src/recipient.c line 15
- in /usr/src/usr.sbin/sendmail/src/savemail.c line 15
- in /usr/src/usr.sbin/vipw/vipw.c line 33

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