|
|
DataMuseum.dkPresents historical artifacts from the history of: RC9000 |
This is an automatic "excavation" of a thematic subset of
See our Wiki for more about RC9000 Excavated with: AutoArchaeologist - Free & Open Source Software. |
top - downloadIndex: u
Length: 2840 (0xb18)
Names: »utmp.5«
└─⟦50656ff4a⟧ Bits:30010538 TX 3.1 Coldstart
└─⟦bbf173f5c⟧ »0004«
└─⟦this⟧ »./usr/man/cat5/utmp.5«
0x000…020 0a 0a 0a 5f 08 4f 5f 08 6e 5f 08 6c 5f 08 69 5f 08 6e 5f 08 65 20 5f 08 4d 5f 08 61 5f 08 6e 5f ┆ _ O_ n_ l_ i_ n_ e _ M_ a_ n_┆
0x020…040 08 75 5f 08 61 5f 08 6c 20 20 20 20 20 20 20 20 20 20 20 20 20 46 69 6c 65 20 46 6f 72 6d 61 74 ┆ u_ a_ l File Format┆
0x040…060 73 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 75 74 6d 70 28 35 29 0a 0a 0a 0a ┆s utmp(5) ┆
0x060…080 4e 08 4e 08 4e 08 4e 41 08 41 08 41 08 41 4d 08 4d 08 4d 08 4d 45 08 45 08 45 08 45 0a 20 20 20 ┆N N N NA A A AM M M ME E E E ┆
0x080…0a0 20 20 75 74 6d 70 2c 20 77 74 6d 70 20 2d 20 6c 6f 67 69 6e 20 72 65 63 6f 72 64 73 0a 0a 53 08 ┆ utmp, wtmp - login records S ┆
0x0a0…0c0 53 08 53 08 53 59 08 59 08 59 08 59 4e 08 4e 08 4e 08 4e 54 08 54 08 54 08 54 41 08 41 08 41 08 ┆S S SY Y Y YN N N NT T T TA A A ┆
0x0c0…0e0 41 58 08 58 08 58 08 58 0a 20 20 20 20 20 23 08 23 08 23 08 23 69 08 69 08 69 08 69 6e 08 6e 08 ┆AX X X X # # # #i i i in n ┆
0x0e0…100 6e 08 6e 63 08 63 08 63 08 63 6c 08 6c 08 6c 08 6c 75 08 75 08 75 08 75 64 08 64 08 64 08 64 65 ┆n nc c c cl l l lu u u ud d d de┆
0x100…120 08 65 08 65 08 65 20 3c 08 3c 08 3c 08 3c 73 08 73 08 73 08 73 79 08 79 08 79 08 79 73 08 73 08 ┆ e e e < < < <s s s sy y y ys s ┆
0x120…140 73 08 73 2f 08 2f 08 2f 08 2f 74 08 74 08 74 08 74 79 08 79 08 79 08 79 70 08 70 08 70 08 70 65 ┆s s/ / / /t t t ty y y yp p p pe┆
0x140…160 08 65 08 65 08 65 73 08 73 08 73 08 73 2e 08 2e 08 2e 08 2e 68 08 68 08 68 08 68 3e 08 3e 08 3e ┆ e e es s s s. . . .h h h h> > >┆
0x160…180 08 3e 20 23 08 23 08 23 08 23 69 08 69 08 69 08 69 6e 08 6e 08 6e 08 6e 63 08 63 08 63 08 63 6c ┆ > # # # #i i i in n n nc c c cl┆
0x180…1a0 08 6c 08 6c 08 6c 75 08 75 08 75 08 75 64 08 64 08 64 08 64 65 08 65 08 65 08 65 20 3c 08 3c 08 ┆ l l lu u u ud d d de e e e < < ┆
0x1a0…1c0 3c 08 3c 75 08 75 08 75 08 75 74 08 74 08 74 08 74 6d 08 6d 08 6d 08 6d 70 08 70 08 70 08 70 2e ┆< <u u u ut t t tm m m mp p p p.┆
0x1c0…1e0 08 2e 08 2e 08 2e 68 08 68 08 68 08 68 3e 08 3e 08 3e 08 3e 0a 0a 44 08 44 08 44 08 44 45 08 45 ┆ . . .h h h h> > > > D D D DE E┆
0x1e0…200 08 45 08 45 53 08 53 08 53 08 53 43 08 43 08 43 08 43 52 08 52 08 52 08 52 49 08 49 08 49 08 49 ┆ E ES S S SC C C CR R R RI I I I┆
0x200…220 50 08 50 08 50 08 50 54 08 54 08 54 08 54 49 08 49 08 49 08 49 4f 08 4f 08 4f 08 4f 4e 08 4e 08 ┆P P P PT T T TI I I IO O O ON N ┆
0x220…240 4e 08 4e 0a 20 20 20 20 20 54 68 65 20 5f 08 75 5f 08 74 5f 08 6d 5f 08 70 20 66 69 6c 65 20 72 ┆N N The _ u_ t_ m_ p file r┆
0x240…260 65 63 6f 72 64 73 20 69 6e 66 6f 72 6d 61 74 69 6f 6e 20 61 62 6f 75 74 20 77 68 6f 20 69 73 20 ┆ecords information about who is ┆
0x260…280 63 75 72 72 65 6e 74 6c 79 0a 20 20 20 20 20 75 73 69 6e 67 20 74 68 65 20 73 79 73 74 65 6d 2e ┆currently using the system.┆
0x280…2a0 20 20 54 68 65 20 66 69 6c 65 20 69 73 20 61 20 73 65 71 75 65 6e 63 65 20 6f 66 20 65 6e 74 72 ┆ The file is a sequence of entr┆
0x2a0…2c0 69 65 73 20 77 69 74 68 0a 20 20 20 20 20 74 68 65 20 66 6f 6c 6c 6f 77 69 6e 67 20 73 74 72 75 ┆ies with the following stru┆
0x2c0…2e0 63 74 75 72 65 20 64 65 63 6c 61 72 65 64 20 69 6e 20 74 68 65 20 69 6e 63 6c 75 64 65 20 66 69 ┆cture declared in the include fi┆
0x2e0…300 6c 65 3a 0a 0a 20 20 20 20 20 20 20 20 20 20 2f 2a 0a 20 20 20 20 20 20 20 20 20 20 20 2a 20 53 ┆le: /* * S┆
0x300…320 74 72 75 63 74 75 72 65 20 6f 66 20 75 74 6d 70 20 61 6e 64 20 77 74 6d 70 20 66 69 6c 65 73 2e ┆tructure of utmp and wtmp files.┆
0x320…340 0a 20 20 20 20 20 20 20 20 20 20 20 2a 2f 0a 20 20 20 20 20 20 20 20 20 20 73 74 72 75 63 74 20 ┆ */ struct ┆
0x340…360 20 75 74 6d 70 0a 20 20 20 20 20 20 20 20 20 20 7b 0a 20 20 20 20 20 20 20 20 20 20 20 20 20 20 ┆ utmp { ┆
0x360…380 20 20 20 20 63 68 61 72 20 20 20 20 75 74 5f 6e 61 6d 65 5b 39 5d 3b 20 20 20 20 20 2f 2a 20 75 ┆ char ut_name[9]; /* u┆
0x380…3a0 73 65 72 20 6c 6f 67 69 6e 20 6e 61 6d 65 20 2a 2f 0a 20 20 20 20 20 20 20 20 20 20 20 20 20 20 ┆ser login name */ ┆
0x3a0…3c0 20 20 20 20 63 68 61 72 20 20 20 20 75 74 5f 69 64 5b 34 5d 3b 20 20 20 20 20 20 20 2f 2a 20 2f ┆ char ut_id[4]; /* /┆
0x3c0…3e0 65 74 63 2f 69 6e 69 74 74 61 62 20 69 64 3b 20 75 73 75 61 6c 6c 79 20 6c 69 6e 65 20 6e 6f 20 ┆etc/inittab id; usually line no ┆
0x3e0…400 2a 2f 0a 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 63 68 61 72 20 20 20 20 75 74 5f ┆*/ char ut_┆
0x400…420 6c 69 6e 65 5b 31 34 5d 3b 20 20 20 20 2f 2a 20 74 74 79 20 6f 72 20 64 65 76 69 63 65 20 6e 61 ┆line[14]; /* tty or device na┆
0x420…440 6d 65 20 2a 2f 0a 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 63 68 61 72 20 20 20 20 ┆me */ char ┆
0x440…460 75 74 5f 74 65 72 6d 6e 61 6d 65 5b 31 31 5d 3b 2f 2a 20 70 68 79 73 69 63 61 6c 20 74 65 72 6d ┆ut_termname[11];/* physical term┆
0x460…480 69 6e 61 6c 20 6e 61 6d 65 20 28 66 72 6f 6d 20 6c 61 6e 29 20 2a 2f 0a 20 20 20 20 20 20 20 20 ┆inal name (from lan) */ ┆
0x480…4a0 20 20 20 20 20 20 20 20 20 20 6c 6f 6e 67 20 20 20 20 75 74 5f 70 69 64 3b 20 20 20 20 20 20 20 ┆ long ut_pid; ┆
0x4a0…4c0 20 20 2f 2a 20 70 72 6f 63 65 73 73 20 69 64 20 2a 2f 0a 20 20 20 20 20 20 20 20 20 20 20 20 20 ┆ /* process id */ ┆
0x4c0…4e0 20 20 20 20 20 73 68 6f 72 74 20 20 20 75 74 5f 74 79 70 65 3b 20 20 20 20 20 20 20 20 2f 2a 20 ┆ short ut_type; /* ┆
0x4e0…500 74 79 70 65 20 6f 66 20 65 6e 74 72 79 20 2a 2f 0a 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 ┆type of entry */ ┆
0x500…520 20 20 20 63 68 61 72 20 20 20 20 75 74 5f 68 6f 73 74 5b 33 32 5d 3b 20 20 20 20 2f 2a 20 68 6f ┆ char ut_host[32]; /* ho┆
0x520…540 73 74 20 6e 61 6d 65 2c 20 69 66 20 72 65 6d 6f 74 65 20 2a 2f 0a 20 20 20 20 20 20 20 20 20 20 ┆st name, if remote */ ┆
0x540…560 20 20 20 20 20 20 20 20 73 68 6f 72 74 20 20 20 75 74 5f 70 75 3b 20 20 20 20 20 20 20 20 20 20 ┆ short ut_pu; ┆
0x560…580 2f 2a 20 70 75 20 6e 75 6d 62 65 72 20 6f 66 20 6c 6f 67 69 6e 20 2a 2f 0a 20 20 20 20 20 20 20 ┆/* pu number of login */ ┆
0x580…5a0 20 20 20 20 20 20 20 20 20 20 20 73 74 72 75 63 74 20 20 65 78 69 74 5f 73 74 61 74 75 73 0a 20 ┆ struct exit_status ┆
0x5a0…5c0 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 7b 0a 20 20 20 20 20 20 20 20 20 20 20 20 20 ┆ { ┆
0x5c0…5e0 20 20 20 20 20 20 20 20 20 20 20 20 20 73 68 6f 72 74 20 65 5f 74 65 72 6d 69 6e 61 74 69 6f 6e ┆ short e_termination┆
0x5e0…600 3b 0a 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 73 68 6f 72 ┆; shor┆
0x600…620 74 20 65 5f 65 78 69 74 3b 0a 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 7d 0a 20 20 ┆t e_exit; } ┆
0x620…640 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 75 74 5f 65 78 69 74 3b ┆ ut_exit;┆
0x640…660 20 20 20 20 20 20 20 20 2f 2a 20 65 78 69 74 20 73 74 61 74 75 73 20 6f 66 20 61 20 64 65 61 64 ┆ /* exit status of a dead┆
0x660…680 20 70 72 6f 63 65 73 73 20 2a 2f 0a 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 74 69 ┆ process */ ti┆
0x680…6a0 6d 65 5f 74 20 20 75 74 5f 74 69 6d 65 3b 20 20 20 20 20 20 20 20 2f 2a 20 74 69 6d 65 20 6f 6e ┆me_t ut_time; /* time on┆
0x6a0…6c0 20 2a 2f 0a 20 20 20 20 20 20 20 20 20 20 7d 3b 0a 0a 20 20 20 20 20 54 68 69 73 20 73 74 72 75 ┆ */ }; This stru┆
0x6c0…6e0 63 74 75 72 65 20 67 69 76 65 73 20 74 68 65 20 6e 61 6d 65 20 6f 66 20 74 68 65 20 73 70 65 63 ┆cture gives the name of the spec┆
0x6e0…700 69 61 6c 20 66 69 6c 65 20 61 73 73 6f 63 69 61 74 65 64 0a 20 20 20 20 20 77 69 74 68 20 74 68 ┆ial file associated with th┆
0x700…720 65 20 75 73 65 72 27 73 20 74 65 72 6d 69 6e 61 6c 2c 20 74 68 65 20 75 73 65 72 27 73 20 6c 6f ┆e user's terminal, the user's lo┆
0x720…740 67 69 6e 20 6e 61 6d 65 2c 20 61 6e 64 20 74 68 65 0a 20 20 20 20 20 74 69 6d 65 20 6f 66 20 74 ┆gin name, and the time of t┆
0x740…760 68 65 20 6c 6f 67 69 6e 20 69 6e 20 74 68 65 20 66 6f 72 6d 20 6f 66 20 5f 08 74 5f 08 69 5f 08 ┆he login in the form of _ t_ i_ ┆
0x760…780 6d 5f 08 65 28 33 43 29 2e 0a 0a 20 20 20 20 20 54 68 65 20 5f 08 77 5f 08 74 5f 08 6d 5f 08 70 ┆m_ e(3C). The _ w_ t_ m_ p┆
0x780…7a0 20 66 69 6c 65 20 72 65 63 6f 72 64 73 20 61 6c 6c 20 6c 6f 67 69 6e 73 20 61 6e 64 20 6c 6f 67 ┆ file records all logins and log┆
0x7a0…7c0 6f 75 74 73 2e 20 20 41 20 6e 75 6c 6c 20 75 73 65 72 0a 20 20 20 20 20 6e 61 6d 65 20 69 6e 64 ┆outs. A null user name ind┆
0x7c0…7e0 69 63 61 74 65 73 20 61 20 6c 6f 67 6f 75 74 20 6f 6e 20 74 68 65 20 61 73 73 6f 63 69 61 74 65 ┆icates a logout on the associate┆
0x7e0…800 64 20 74 65 72 6d 69 6e 61 6c 2e 20 20 46 75 72 74 68 2d 0a 20 20 20 20 20 65 72 6d 6f 72 65 2c ┆d terminal. Furth- ermore,┆
0x800…820 20 74 68 65 20 74 65 72 6d 69 6e 61 6c 20 6e 61 6d 65 20 60 7e 27 20 69 6e 64 69 63 61 74 65 73 ┆ the terminal name `~' indicates┆
0x820…840 20 74 68 61 74 20 74 68 65 20 73 79 73 74 65 6d 20 77 61 73 0a 20 20 20 20 20 72 65 62 6f 6f 74 ┆ that the system was reboot┆
0x840…860 65 64 20 61 74 20 74 68 65 20 69 6e 64 69 63 61 74 65 64 20 74 69 6d 65 3b 20 74 68 65 20 61 64 ┆ed at the indicated time; the ad┆
0x860…880 6a 61 63 65 6e 74 20 70 61 69 72 20 6f 66 20 65 6e 74 72 69 65 73 0a 20 20 20 20 20 77 69 74 68 ┆jacent pair of entries with┆
0x880…8a0 20 74 65 72 6d 69 6e 61 6c 20 6e 61 6d 65 73 20 60 7c 27 20 61 6e 64 20 60 7d 27 20 69 6e 64 69 ┆ terminal names `|' and `}' indi┆
0x8a0…8c0 63 61 74 65 20 74 68 65 20 73 79 73 74 65 6d 2d 0a 20 20 20 20 20 6d 61 69 6e 74 61 69 6e 65 64 ┆cate the system- maintained┆
0x8c0…8e0 20 74 69 6d 65 20 6a 75 73 74 20 62 65 66 6f 72 65 20 61 6e 64 20 6a 75 73 74 20 61 66 74 65 72 ┆ time just before and just after┆
0x8e0…900 20 61 20 5f 08 64 5f 08 61 5f 08 74 5f 08 65 20 63 6f 6d 6d 61 6e 64 0a 20 20 20 20 20 68 61 73 ┆ a _ d_ a_ t_ e command has┆
0x900…920 20 63 68 61 6e 67 65 64 20 74 68 65 20 73 79 73 74 65 6d 27 73 20 69 64 65 61 20 6f 66 20 74 68 ┆ changed the system's idea of th┆
0x920…940 65 20 74 69 6d 65 2e 0a 0a 20 20 20 20 20 5f 08 77 5f 08 74 5f 08 6d 5f 08 70 20 69 73 20 6d 61 ┆e time. _ w_ t_ m_ p is ma┆
0x940…960 69 6e 74 61 69 6e 65 64 20 62 79 20 5f 08 6c 5f 08 6f 5f 08 67 5f 08 69 5f 08 6e 28 31 29 20 61 ┆intained by _ l_ o_ g_ i_ n(1) a┆
0x960…980 6e 64 20 5f 08 74 5f 08 78 5f 08 6c 5f 08 6f 5f 08 67 5f 08 69 5f 08 6e 28 38 29 2e 20 20 4e 65 ┆nd _ t_ x_ l_ o_ g_ i_ n(8). Ne┆
0x980…9a0 69 74 68 65 72 20 6f 66 0a 20 20 20 20 20 74 68 65 73 65 20 70 72 6f 67 72 61 6d 73 20 63 72 65 ┆ither of these programs cre┆
0x9a0…9c0 61 74 65 73 20 74 68 65 20 66 69 6c 65 2c 20 73 6f 20 69 66 20 69 74 20 69 73 20 72 65 6d 6f 76 ┆ates the file, so if it is remov┆
0x9c0…9e0 65 64 0a 20 20 20 20 20 72 65 63 6f 72 64 2d 6b 65 65 70 69 6e 67 20 69 73 20 74 75 72 6e 65 64 ┆ed record-keeping is turned┆
0x9e0…a00 20 6f 66 66 2e 20 20 49 74 20 69 73 20 73 75 6d 6d 61 72 69 7a 65 64 20 62 79 20 5f 08 61 5f 08 ┆ off. It is summarized by _ a_ ┆
0xa00…a20 63 28 38 29 2e 0a 0a 46 08 46 08 46 08 46 49 08 49 08 49 08 49 4c 08 4c 08 4c 08 4c 45 08 45 08 ┆c(8). F F F FI I I IL L L LE E ┆
0xa20…a40 45 08 45 53 08 53 08 53 08 53 0a 20 20 20 20 20 2f 65 74 63 2f 75 74 6d 70 0a 20 20 20 20 20 2f ┆E ES S S S /etc/utmp /┆
0xa40…a60 75 73 72 2f 61 64 6d 2f 77 74 6d 70 0a 0a 53 08 53 08 53 08 53 45 08 45 08 45 08 45 45 08 45 08 ┆usr/adm/wtmp S S S SE E E EE E ┆
0xa60…a80 45 08 45 20 41 08 41 08 41 08 41 4c 08 4c 08 4c 08 4c 53 08 53 08 53 08 53 4f 08 4f 08 4f 08 4f ┆E E A A A AL L L LS S S SO O O O┆
0xa80…aa0 0a 20 20 20 20 20 55 73 65 72 20 43 6f 6d 6d 61 6e 64 73 20 28 31 29 3a 20 20 6c 6f 67 69 6e 2c ┆ User Commands (1): login,┆
0xaa0…ac0 20 77 68 6f 0a 20 20 20 20 20 53 79 73 74 65 6d 20 4d 61 6e 61 67 65 72 20 43 6f 6d 6d 61 6e 64 ┆ who System Manager Command┆
0xac0…ae0 73 20 28 38 29 3a 20 20 61 63 2c 20 74 78 6c 6f 67 69 6e 0a 0a 44 65 63 65 6d 62 65 72 20 31 39 ┆s (8): ac, txlogin December 19┆
0xae0…b00 38 39 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 54 58 20 ┆89 TX ┆
0xb00…b18 50 72 6f 67 72 61 6d 6d 65 72 27 73 20 52 65 66 65 72 65 6e 63 65 0a 0a ┆Programmer's Reference ┆