|
|
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: g
Length: 7082 (0x1baa)
Names: »getut.3«
└─⟦50656ff4a⟧ Bits:30010538 TX 3.1 Coldstart
└─⟦bbf173f5c⟧ »0004«
└─⟦this⟧ »./usr/man/cat3/getut.3«
0x0000…0020 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_┆
0x0020…0040 08 75 5f 08 61 5f 08 6c 20 20 20 20 20 20 20 20 20 20 20 4c 69 62 72 61 72 79 20 46 75 6e 63 74 ┆ u_ a_ l Library Funct┆
0x0040…0060 69 6f 6e 73 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 67 65 74 75 74 28 33 29 0a 0a 0a 0a ┆ions getut(3) ┆
0x0060…0080 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 ┆
0x0080…00a0 20 20 67 65 74 75 74 65 6e 74 2c 20 67 65 74 75 74 69 64 2c 20 67 65 74 75 74 6c 69 6e 65 2c 20 ┆ getutent, getutid, getutline, ┆
0x00a0…00c0 70 75 74 75 74 6c 69 6e 65 2c 20 73 65 74 75 74 65 6e 74 2c 20 65 6e 64 75 74 65 6e 74 2c 0a 20 ┆pututline, setutent, endutent, ┆
0x00c0…00e0 20 20 20 20 75 74 6d 70 6e 61 6d 65 20 2d 20 61 63 63 65 73 73 20 75 74 6d 70 20 66 69 6c 65 20 ┆ utmpname - access utmp file ┆
0x00e0…0100 65 6e 74 72 79 0a 0a 53 08 53 08 53 08 53 59 08 59 08 59 08 59 4e 08 4e 08 4e 08 4e 54 08 54 08 ┆entry S S S SY Y Y YN N N NT T ┆
0x0100…0120 54 08 54 41 08 41 08 41 08 41 58 08 58 08 58 08 58 0a 20 20 20 20 20 23 08 23 08 23 08 23 69 08 ┆T TA A A AX X X X # # # #i ┆
0x0120…0140 69 08 69 08 69 6e 08 6e 08 6e 08 6e 63 08 63 08 63 08 63 6c 08 6c 08 6c 08 6c 75 08 75 08 75 08 ┆i i in n n nc c c cl l l lu u u ┆
0x0140…0160 75 64 08 64 08 64 08 64 65 08 65 08 65 08 65 20 3c 08 3c 08 3c 08 3c 75 08 75 08 75 08 75 74 08 ┆ud d d de e e e < < < <u u u ut ┆
0x0160…0180 74 08 74 08 74 6d 08 6d 08 6d 08 6d 70 08 70 08 70 08 70 2e 08 2e 08 2e 08 2e 68 08 68 08 68 08 ┆t t tm m m mp p p p. . . .h h h ┆
0x0180…01a0 68 3e 08 3e 08 3e 08 3e 0a 0a 20 20 20 20 20 73 08 73 08 73 08 73 74 08 74 08 74 08 74 72 08 72 ┆h> > > > s s s st t t tr r┆
0x01a0…01c0 08 72 08 72 75 08 75 08 75 08 75 63 08 63 08 63 08 63 74 08 74 08 74 08 74 20 75 08 75 08 75 08 ┆ r ru u u uc c c ct t t t u u u ┆
0x01c0…01e0 75 74 08 74 08 74 08 74 6d 08 6d 08 6d 08 6d 70 08 70 08 70 08 70 20 2a 08 2a 08 2a 08 2a 67 08 ┆ut t t tm m m mp p p p * * * *g ┆
0x01e0…0200 67 08 67 08 67 65 08 65 08 65 08 65 74 08 74 08 74 08 74 75 08 75 08 75 08 75 74 08 74 08 74 08 ┆g g ge e e et t t tu u u ut t t ┆
0x0200…0220 74 65 08 65 08 65 08 65 6e 08 6e 08 6e 08 6e 74 08 74 08 74 08 74 28 08 28 08 28 08 28 29 08 29 ┆te e e en n n nt t t t( ( ( () )┆
0x0220…0240 08 29 08 29 0a 0a 20 20 20 20 20 73 08 73 08 73 08 73 74 08 74 08 74 08 74 72 08 72 08 72 08 72 ┆ ) ) s s s st t t tr r r r┆
0x0240…0260 75 08 75 08 75 08 75 63 08 63 08 63 08 63 74 08 74 08 74 08 74 20 75 08 75 08 75 08 75 74 08 74 ┆u u u uc c c ct t t t u u u ut t┆
0x0260…0280 08 74 08 74 6d 08 6d 08 6d 08 6d 70 08 70 08 70 08 70 20 2a 08 2a 08 2a 08 2a 67 08 67 08 67 08 ┆ t tm m m mp p p p * * * *g g g ┆
0x0280…02a0 67 65 08 65 08 65 08 65 74 08 74 08 74 08 74 75 08 75 08 75 08 75 74 08 74 08 74 08 74 69 08 69 ┆ge e e et t t tu u u ut t t ti i┆
0x02a0…02c0 08 69 08 69 64 08 64 08 64 08 64 28 08 28 08 28 08 28 69 08 69 08 69 08 69 64 08 64 08 64 08 64 ┆ i id d d d( ( ( (i i i id d d d┆
0x02c0…02e0 29 08 29 08 29 08 29 0a 20 20 20 20 20 73 08 73 08 73 08 73 74 08 74 08 74 08 74 72 08 72 08 72 ┆) ) ) ) s s s st t t tr r r┆
0x02e0…0300 08 72 75 08 75 08 75 08 75 63 08 63 08 63 08 63 74 08 74 08 74 08 74 20 75 08 75 08 75 08 75 74 ┆ ru u u uc c c ct t t t u u u ut┆
0x0300…0320 08 74 08 74 08 74 6d 08 6d 08 6d 08 6d 70 08 70 08 70 08 70 20 2a 08 2a 08 2a 08 2a 69 08 69 08 ┆ t t tm m m mp p p p * * * *i i ┆
0x0320…0340 69 08 69 64 08 64 08 64 08 64 3b 08 3b 08 3b 08 3b 0a 0a 20 20 20 20 20 73 08 73 08 73 08 73 74 ┆i id d d d; ; ; ; s s s st┆
0x0340…0360 08 74 08 74 08 74 72 08 72 08 72 08 72 75 08 75 08 75 08 75 63 08 63 08 63 08 63 74 08 74 08 74 ┆ t t tr r r ru u u uc c c ct t t┆
0x0360…0380 08 74 20 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 20 ┆ t u u u ut t t tm m m mp p p p ┆
0x0380…03a0 2a 08 2a 08 2a 08 2a 67 08 67 08 67 08 67 65 08 65 08 65 08 65 74 08 74 08 74 08 74 75 08 75 08 ┆* * * *g g g ge e e et t t tu u ┆
0x03a0…03c0 75 08 75 74 08 74 08 74 08 74 6c 08 6c 08 6c 08 6c 69 08 69 08 69 08 69 6e 08 6e 08 6e 08 6e 65 ┆u ut t t tl l l li i i in n n ne┆
0x03c0…03e0 08 65 08 65 08 65 28 08 28 08 28 08 28 6c 08 6c 08 6c 08 6c 69 08 69 08 69 08 69 6e 08 6e 08 6e ┆ e e e( ( ( (l l l li i i in n n┆
0x03e0…0400 08 6e 65 08 65 08 65 08 65 29 08 29 08 29 08 29 0a 20 20 20 20 20 73 08 73 08 73 08 73 74 08 74 ┆ ne e e e) ) ) ) s s s st t┆
0x0400…0420 08 74 08 74 72 08 72 08 72 08 72 75 08 75 08 75 08 75 63 08 63 08 63 08 63 74 08 74 08 74 08 74 ┆ t tr r r ru u u uc c c ct t t t┆
0x0420…0440 20 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 20 2a 08 ┆ u u u ut t t tm m m mp p p p * ┆
0x0440…0460 2a 08 2a 08 2a 6c 08 6c 08 6c 08 6c 69 08 69 08 69 08 69 6e 08 6e 08 6e 08 6e 65 08 65 08 65 08 ┆* * *l l l li i i in n n ne e e ┆
0x0460…0480 65 3b 08 3b 08 3b 08 3b 0a 0a 20 20 20 20 20 76 08 76 08 76 08 76 6f 08 6f 08 6f 08 6f 69 08 69 ┆e; ; ; ; v v v vo o o oi i┆
0x0480…04a0 08 69 08 69 64 08 64 08 64 08 64 20 70 08 70 08 70 08 70 75 08 75 08 75 08 75 74 08 74 08 74 08 ┆ i id d d d p p p pu u u ut t t ┆
0x04a0…04c0 74 75 08 75 08 75 08 75 74 08 74 08 74 08 74 6c 08 6c 08 6c 08 6c 69 08 69 08 69 08 69 6e 08 6e ┆tu u u ut t t tl l l li i i in n┆
0x04c0…04e0 08 6e 08 6e 65 08 65 08 65 08 65 28 08 28 08 28 08 28 75 08 75 08 75 08 75 74 08 74 08 74 08 74 ┆ n ne e e e( ( ( (u u u ut t t t┆
0x04e0…0500 6d 08 6d 08 6d 08 6d 70 08 70 08 70 08 70 29 08 29 08 29 08 29 0a 20 20 20 20 20 73 08 73 08 73 ┆m m m mp p p p) ) ) ) s s s┆
0x0500…0520 08 73 74 08 74 08 74 08 74 72 08 72 08 72 08 72 75 08 75 08 75 08 75 63 08 63 08 63 08 63 74 08 ┆ st t t tr r r ru u u uc c c ct ┆
0x0520…0540 74 08 74 08 74 20 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 ┆t t t u u u ut t t tm m m mp p p┆
0x0540…0560 08 70 20 2a 08 2a 08 2a 08 2a 75 08 75 08 75 08 75 74 08 74 08 74 08 74 6d 08 6d 08 6d 08 6d 70 ┆ p * * * *u u u ut t t tm m m mp┆
0x0560…0580 08 70 08 70 08 70 3b 08 3b 08 3b 08 3b 0a 0a 20 20 20 20 20 76 08 76 08 76 08 76 6f 08 6f 08 6f ┆ p p p; ; ; ; v v v vo o o┆
0x0580…05a0 08 6f 69 08 69 08 69 08 69 64 08 64 08 64 08 64 20 73 08 73 08 73 08 73 65 08 65 08 65 08 65 74 ┆ oi i i id d d d s s s se e e et┆
0x05a0…05c0 08 74 08 74 08 74 75 08 75 08 75 08 75 74 08 74 08 74 08 74 65 08 65 08 65 08 65 6e 08 6e 08 6e ┆ t t tu u u ut t t te e e en n n┆
0x05c0…05e0 08 6e 74 08 74 08 74 08 74 28 08 28 08 28 08 28 29 08 29 08 29 08 29 0a 0a 20 20 20 20 20 76 08 ┆ nt t t t( ( ( () ) ) ) v ┆
0x05e0…0600 76 08 76 08 76 6f 08 6f 08 6f 08 6f 69 08 69 08 69 08 69 64 08 64 08 64 08 64 20 65 08 65 08 65 ┆v v vo o o oi i i id d d d e e e┆
0x0600…0620 08 65 6e 08 6e 08 6e 08 6e 64 08 64 08 64 08 64 75 08 75 08 75 08 75 74 08 74 08 74 08 74 65 08 ┆ en n n nd d d du u u ut t t te ┆
0x0620…0640 65 08 65 08 65 6e 08 6e 08 6e 08 6e 74 08 74 08 74 08 74 28 08 28 08 28 08 28 29 08 29 08 29 08 ┆e e en n n nt t t t( ( ( () ) ) ┆
0x0640…0660 29 0a 0a 20 20 20 20 20 76 08 76 08 76 08 76 6f 08 6f 08 6f 08 6f 69 08 69 08 69 08 69 64 08 64 ┆) v v v vo o o oi i i id d┆
0x0660…0680 08 64 08 64 20 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 ┆ d d u u u ut t t tm m m mp p p ┆
0x0680…06a0 70 6e 08 6e 08 6e 08 6e 61 08 61 08 61 08 61 6d 08 6d 08 6d 08 6d 65 08 65 08 65 08 65 28 08 28 ┆pn n n na a a am m m me e e e( (┆
0x06a0…06c0 08 28 08 28 66 08 66 08 66 08 66 69 08 69 08 69 08 69 6c 08 6c 08 6c 08 6c 65 08 65 08 65 08 65 ┆ ( (f f f fi i i il l l le e e e┆
0x06c0…06e0 29 08 29 08 29 08 29 0a 20 20 20 20 20 63 08 63 08 63 08 63 68 08 68 08 68 08 68 61 08 61 08 61 ┆) ) ) ) c c c ch h h ha a a┆
0x06e0…0700 08 61 72 08 72 08 72 08 72 20 2a 08 2a 08 2a 08 2a 66 08 66 08 66 08 66 69 08 69 08 69 08 69 6c ┆ ar r r r * * * *f f f fi i i il┆
0x0700…0720 08 6c 08 6c 08 6c 65 08 65 08 65 08 65 3b 08 3b 08 3b 08 3b 0a 0a 44 08 44 08 44 08 44 45 08 45 ┆ l l le e e e; ; ; ; D D D DE E┆
0x0720…0740 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┆
0x0740…0760 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 ┆
0x0760…0780 4e 08 4e 0a 20 20 20 20 20 5f 08 67 5f 08 65 5f 08 74 5f 08 75 5f 08 74 5f 08 65 5f 08 6e 5f 08 ┆N N _ g_ e_ t_ u_ t_ e_ n_ ┆
0x0780…07a0 74 2c 20 5f 08 67 5f 08 65 5f 08 74 5f 08 75 5f 08 74 5f 08 69 5f 08 64 20 61 6e 64 20 5f 08 67 ┆t, _ g_ e_ t_ u_ t_ i_ d and _ g┆
0x07a0…07c0 5f 08 65 5f 08 74 5f 08 75 5f 08 74 5f 08 6c 5f 08 69 5f 08 6e 5f 08 65 20 65 61 63 68 20 72 65 ┆_ e_ t_ u_ t_ l_ i_ n_ e each re┆
0x07c0…07e0 74 75 72 6e 20 61 20 70 6f 69 6e 74 65 72 20 74 6f 20 61 0a 20 20 20 20 20 73 74 72 75 63 74 75 ┆turn a pointer to a structu┆
0x07e0…0800 72 65 20 6f 66 20 74 68 65 20 66 6f 6c 6c 6f 77 69 6e 67 20 74 79 70 65 3a 0a 0a 20 20 20 20 20 ┆re of the following type: ┆
0x0800…0820 73 74 72 75 63 74 20 20 20 20 75 74 6d 70 20 7b 0a 20 20 20 20 20 20 20 20 20 20 63 68 61 72 20 ┆struct utmp { char ┆
0x0820…0840 75 74 5f 75 73 65 72 5b 38 5d 3b 20 20 20 20 20 20 20 20 20 2f 2a 20 55 73 65 72 20 6c 6f 67 69 ┆ut_user[8]; /* User logi┆
0x0840…0860 6e 20 6e 61 6d 65 20 2a 2f 0a 20 20 20 20 20 20 20 20 20 20 63 68 61 72 20 75 74 5f 69 64 5b 34 ┆n name */ char ut_id[4┆
0x0860…0880 5d 3b 20 20 20 20 20 20 2f 2a 20 2f 65 74 63 2f 69 6e 69 74 74 61 62 20 69 64 20 28 75 73 75 61 ┆]; /* /etc/inittab id (usua┆
0x0880…08a0 6c 6c 79 20 6c 69 6e 65 20 23 29 20 2a 2f 0a 20 20 20 20 20 20 20 20 20 20 63 68 61 72 20 75 74 ┆lly line #) */ char ut┆
0x08a0…08c0 5f 6c 69 6e 65 5b 31 32 5d 3b 20 20 20 2f 2a 20 64 65 76 69 63 65 20 6e 61 6d 65 20 28 63 6f 6e ┆_line[12]; /* device name (con┆
0x08c0…08e0 73 6f 6c 65 2c 20 6c 6e 78 78 29 20 2a 2f 0a 20 20 20 20 20 20 20 20 20 20 73 68 6f 72 74 20 20 ┆sole, lnxx) */ short ┆
0x08e0…0900 20 20 20 75 74 5f 70 69 64 3b 20 20 20 20 20 20 20 20 2f 2a 20 70 72 6f 63 65 73 73 20 69 64 20 ┆ ut_pid; /* process id ┆
0x0900…0920 2a 2f 0a 20 20 20 20 20 20 20 20 20 20 73 68 6f 72 74 20 20 20 20 20 75 74 5f 74 79 70 65 3b 20 ┆*/ short ut_type; ┆
0x0920…0940 20 2f 2a 20 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 73 ┆ /* type of entry */ s┆
0x0940…0960 74 72 75 63 74 20 20 20 20 65 78 69 74 5f 73 74 61 74 75 73 20 7b 0a 20 20 20 20 20 20 20 20 20 ┆truct exit_status { ┆
0x0960…0980 20 20 20 20 20 20 73 68 6f 72 74 20 20 20 20 20 65 5f 74 65 72 6d 69 6e 61 74 69 6f 6e 3b 20 2f ┆ short e_termination; /┆
0x0980…09a0 2a 20 50 72 6f 63 65 73 73 20 74 65 72 6d 69 6e 61 74 69 6f 6e 20 73 74 61 74 75 73 20 2a 2f 0a ┆* Process termination status */ ┆
0x09a0…09c0 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 73 68 6f 72 74 20 20 20 20 20 65 5f 65 78 69 74 3b ┆ short e_exit;┆
0x09c0…09e0 20 20 20 20 20 20 20 20 2f 2a 20 50 72 6f 63 65 73 73 20 65 78 69 74 20 73 74 61 74 75 73 20 2a ┆ /* Process exit status *┆
0x09e0…0a00 2f 0a 20 20 20 20 20 20 20 20 20 20 7d 20 75 74 5f 65 78 69 74 3b 20 20 20 20 20 20 20 20 20 20 ┆/ } ut_exit; ┆
0x0a00…0a20 20 20 20 20 20 2f 2a 20 54 68 65 20 65 78 69 74 20 73 74 61 74 75 73 20 6f 66 20 61 20 70 72 6f ┆ /* The exit status of a pro┆
0x0a20…0a40 63 65 73 73 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 20 ┆cess ┆
0x0a40…0a60 20 20 20 2a 20 6d 61 72 6b 65 64 20 61 73 20 44 45 41 44 5f 50 52 4f 43 45 53 53 20 2a 2f 0a 20 ┆ * marked as DEAD_PROCESS */ ┆
0x0a60…0a80 20 20 20 20 20 20 20 20 20 74 69 6d 65 5f 74 20 20 20 20 75 74 5f 74 69 6d 65 3b 20 20 2f 2a 20 ┆ time_t ut_time; /* ┆
0x0a80…0aa0 74 69 6d 65 20 65 6e 74 72 79 20 77 61 73 20 6d 61 64 65 20 2a 2f 0a 20 20 20 20 20 7d 3b 0a 0a ┆time entry was made */ }; ┆
0x0aa0…0ac0 20 20 20 20 20 5f 08 67 5f 08 65 5f 08 74 5f 08 75 5f 08 74 5f 08 65 5f 08 6e 5f 08 74 20 72 65 ┆ _ g_ e_ t_ u_ t_ e_ n_ t re┆
0x0ac0…0ae0 61 64 73 20 69 6e 20 74 68 65 20 6e 65 78 74 20 65 6e 74 72 79 20 66 72 6f 6d 20 61 20 5f 08 75 ┆ads in the next entry from a _ u┆
0x0ae0…0b00 5f 08 74 5f 08 6d 5f 08 70 2d 6c 69 6b 65 20 66 69 6c 65 2e 20 20 49 66 0a 20 20 20 20 20 74 68 ┆_ t_ m_ p-like file. If th┆
0x0b00…0b20 65 20 66 69 6c 65 20 69 73 20 6e 6f 74 20 61 6c 72 65 61 64 79 20 6f 70 65 6e 2c 20 69 74 20 6f ┆e file is not already open, it o┆
0x0b20…0b40 70 65 6e 73 20 69 74 2e 20 20 49 66 20 69 74 20 72 65 61 63 68 65 73 0a 20 20 20 20 20 74 68 65 ┆pens it. If it reaches the┆
0x0b40…0b60 20 65 6e 64 20 6f 66 20 74 68 65 20 66 69 6c 65 2c 20 69 74 20 66 61 69 6c 73 2e 0a 0a 20 20 20 ┆ end of the file, it fails. ┆
0x0b60…0b80 20 20 5f 08 67 5f 08 65 5f 08 74 5f 08 75 5f 08 74 5f 08 69 5f 08 64 20 73 65 61 72 63 68 65 73 ┆ _ g_ e_ t_ u_ t_ i_ d searches┆
0x0b80…0ba0 20 66 6f 72 77 61 72 64 20 66 72 6f 6d 20 74 68 65 20 63 75 72 72 65 6e 74 20 70 6f 69 6e 74 20 ┆ forward from the current point ┆
0x0ba0…0bc0 69 6e 20 74 68 65 20 5f 08 75 5f 08 74 5f 08 6d 5f 08 70 0a 20 20 20 20 20 66 69 6c 65 20 75 6e ┆in the _ u_ t_ m_ p file un┆
0x0bc0…0be0 74 69 6c 20 69 74 20 66 69 6e 64 73 20 61 6e 20 65 6e 74 72 79 20 77 69 74 68 20 61 20 5f 08 75 ┆til it finds an entry with a _ u┆
0x0be0…0c00 5f 08 74 5f 5f 08 74 5f 08 79 5f 08 70 5f 08 65 20 6d 61 74 63 68 69 6e 67 0a 20 20 20 20 20 5f ┆_ t__ t_ y_ p_ e matching _┆
0x0c00…0c20 08 69 5f 08 64 2d 3e 5f 08 75 5f 08 74 5f 5f 08 74 5f 08 79 5f 08 70 5f 08 65 20 69 66 20 74 68 ┆ i_ d->_ u_ t__ t_ y_ p_ e if th┆
0x0c20…0c40 65 20 74 79 70 65 20 73 70 65 63 69 66 69 65 64 20 69 73 20 52 55 4e 5f 4c 56 4c 2c 20 42 4f 4f ┆e type specified is RUN_LVL, BOO┆
0x0c40…0c60 54 5f 54 49 4d 45 2c 0a 20 20 20 20 20 4f 4c 44 5f 54 49 4d 45 20 6f 72 20 4e 45 57 5f 54 49 4d ┆T_TIME, OLD_TIME or NEW_TIM┆
0x0c60…0c80 45 2e 20 49 66 20 74 68 65 20 74 79 70 65 20 73 70 65 63 69 66 69 65 64 20 69 6e 20 5f 08 69 5f ┆E. If the type specified in _ i_┆
0x0c80…0ca0 08 64 20 69 73 0a 20 20 20 20 20 49 4e 49 54 5f 50 52 4f 43 45 53 53 2c 20 4c 4f 47 49 4e 5f 50 ┆ d is INIT_PROCESS, LOGIN_P┆
0x0ca0…0cc0 52 4f 43 45 53 53 2c 20 55 53 45 52 5f 50 52 4f 43 45 53 53 20 6f 72 20 44 45 41 44 5f 50 52 4f ┆ROCESS, USER_PROCESS or DEAD_PRO┆
0x0cc0…0ce0 43 45 53 53 2c 0a 20 20 20 20 20 74 68 65 6e 20 5f 08 67 5f 08 65 5f 08 74 5f 08 75 5f 08 74 5f ┆CESS, then _ g_ e_ t_ u_ t_┆
0x0ce0…0d00 08 69 5f 08 64 20 77 69 6c 6c 20 72 65 74 75 72 6e 20 61 20 70 6f 69 6e 74 65 72 20 74 6f 20 74 ┆ i_ d will return a pointer to t┆
0x0d00…0d20 68 65 20 66 69 72 73 74 20 65 6e 74 72 79 20 77 68 6f 73 65 0a 20 20 20 20 20 74 79 70 65 20 69 ┆he first entry whose type i┆
0x0d20…0d40 73 20 6f 6e 65 20 6f 66 20 74 68 65 73 65 20 66 6f 75 72 20 61 6e 64 20 77 68 6f 73 65 20 5f 08 ┆s one of these four and whose _ ┆
0x0d40…0d60 75 5f 08 74 5f 5f 08 69 5f 08 64 20 66 69 65 6c 64 20 6d 61 74 63 68 65 73 0a 20 20 20 20 20 5f ┆u_ t__ i_ d field matches _┆
0x0d60…0d80 08 69 5f 08 64 2d 3e 5f 08 75 5f 08 74 5f 5f 08 69 5f 08 64 2e 20 20 49 66 20 74 68 65 20 65 6e ┆ i_ d->_ u_ t__ i_ d. If the en┆
0x0d80…0da0 64 20 6f 66 20 66 69 6c 65 20 69 73 20 72 65 61 63 68 65 64 20 77 69 74 68 6f 75 74 20 61 20 6d ┆d of file is reached without a m┆
0x0da0…0dc0 61 74 63 68 2c 0a 20 20 20 20 20 69 74 20 66 61 69 6c 73 2e 0a 0a 20 20 20 20 20 5f 08 67 5f 08 ┆atch, it fails. _ g_ ┆
0x0dc0…0de0 65 5f 08 74 5f 08 75 5f 08 74 5f 08 6c 5f 08 69 5f 08 6e 5f 08 65 20 73 65 61 72 63 68 65 73 20 ┆e_ t_ u_ t_ l_ i_ n_ e searches ┆
0x0de0…0e00 66 6f 72 77 61 72 64 20 66 72 6f 6d 20 74 68 65 20 63 75 72 72 65 6e 74 20 70 6f 69 6e 74 20 69 ┆forward from the current point i┆
0x0e00…0e20 6e 20 74 68 65 0a 20 20 20 20 20 5f 08 75 5f 08 74 5f 08 6d 5f 08 70 20 66 69 6c 65 20 75 6e 74 ┆n the _ u_ t_ m_ p file unt┆
0x0e20…0e40 69 6c 20 69 74 20 66 69 6e 64 73 20 61 6e 20 65 6e 74 72 79 20 6f 66 20 74 68 65 20 74 79 70 65 ┆il it finds an entry of the type┆
0x0e40…0e60 20 4c 4f 47 49 4e 5f 50 52 4f 43 45 53 53 0a 0a 0a 0a 0a 0a 0a 20 20 20 20 20 6f 72 20 55 53 45 ┆ LOGIN_PROCESS or USE┆
0x0e60…0e80 52 5f 50 52 4f 43 45 53 53 20 77 68 69 63 68 20 61 6c 73 6f 20 68 61 73 20 61 20 5f 08 75 5f 08 ┆R_PROCESS which also has a _ u_ ┆
0x0e80…0ea0 74 5f 5f 08 6c 5f 08 69 5f 08 6e 5f 08 65 20 73 74 72 69 6e 67 20 6d 61 74 63 68 69 6e 67 20 74 ┆t__ l_ i_ n_ e string matching t┆
0x0ea0…0ec0 68 65 0a 20 20 20 20 20 5f 08 6c 5f 08 69 5f 08 6e 5f 08 65 2d 3e 5f 08 75 5f 08 74 5f 5f 08 6c ┆he _ l_ i_ n_ e->_ u_ t__ l┆
0x0ec0…0ee0 5f 08 69 5f 08 6e 5f 08 65 20 73 74 72 69 6e 67 2e 20 20 49 66 20 74 68 65 20 65 6e 64 20 6f 66 ┆_ i_ n_ e string. If the end of┆
0x0ee0…0f00 20 66 69 6c 65 20 69 73 20 72 65 61 63 68 65 64 20 77 69 74 68 6f 75 74 0a 20 20 20 20 20 61 20 ┆ file is reached without a ┆
0x0f00…0f20 6d 61 74 63 68 2c 20 69 74 20 66 61 69 6c 73 2e 0a 0a 20 20 20 20 20 5f 08 70 5f 08 75 5f 08 74 ┆match, it fails. _ p_ u_ t┆
0x0f20…0f40 5f 08 75 5f 08 74 5f 08 6c 5f 08 69 5f 08 6e 5f 08 65 20 77 72 69 74 65 73 20 6f 75 74 20 74 68 ┆_ u_ t_ l_ i_ n_ e writes out th┆
0x0f40…0f60 65 20 73 75 70 70 6c 69 65 64 20 5f 08 75 5f 08 74 5f 08 6d 5f 08 70 20 73 74 72 75 63 74 75 72 ┆e supplied _ u_ t_ m_ p structur┆
0x0f60…0f80 65 20 69 6e 74 6f 20 74 68 65 0a 20 20 20 20 20 5f 08 75 5f 08 74 5f 08 6d 5f 08 70 20 66 69 6c ┆e into the _ u_ t_ m_ p fil┆
0x0f80…0fa0 65 2e 20 20 49 74 20 75 73 65 73 20 5f 08 67 5f 08 65 5f 08 74 5f 08 75 5f 08 74 5f 08 69 5f 08 ┆e. It uses _ g_ e_ t_ u_ t_ i_ ┆
0x0fa0…0fc0 64 20 74 6f 20 73 65 61 72 63 68 20 66 6f 72 77 61 72 64 20 66 6f 72 20 74 68 65 20 70 72 6f 70 ┆d to search forward for the prop┆
0x0fc0…0fe0 65 72 0a 20 20 20 20 20 70 6c 61 63 65 20 69 66 20 69 74 20 66 69 6e 64 73 20 74 68 61 74 20 69 ┆er place if it finds that i┆
0x0fe0…1000 74 20 69 73 20 6e 6f 74 20 61 6c 72 65 61 64 79 20 61 74 20 74 68 65 20 70 72 6f 70 65 72 0a 20 ┆t is not already at the proper ┆
0x1000…1020 20 20 20 20 70 6c 61 63 65 2e 20 20 49 74 20 69 73 20 65 78 70 65 63 74 65 64 20 74 68 61 74 20 ┆ place. It is expected that ┆
0x1020…1040 6e 6f 72 6d 61 6c 6c 79 20 74 68 65 20 75 73 65 72 20 6f 66 20 5f 08 70 5f 08 75 5f 08 74 5f 08 ┆normally the user of _ p_ u_ t_ ┆
0x1040…1060 75 5f 08 74 5f 08 6c 5f 08 69 5f 08 6e 5f 08 65 0a 20 20 20 20 20 77 69 6c 6c 20 68 61 76 65 20 ┆u_ t_ l_ i_ n_ e will have ┆
0x1060…1080 73 65 61 72 63 68 65 64 20 66 6f 72 20 74 68 65 20 70 72 6f 70 65 72 20 65 6e 74 72 79 20 75 73 ┆searched for the proper entry us┆
0x1080…10a0 69 6e 67 20 6f 6e 65 20 6f 66 20 74 68 65 0a 20 20 20 20 20 5f 08 67 5f 08 65 5f 08 74 5f 08 75 ┆ing one of the _ g_ e_ t_ u┆
0x10a0…10c0 5f 08 74 20 72 6f 75 74 69 6e 65 73 2e 20 20 49 66 20 73 6f 2c 20 5f 08 70 5f 08 75 5f 08 74 5f ┆_ t routines. If so, _ p_ u_ t_┆
0x10c0…10e0 08 75 5f 08 74 5f 08 6c 5f 08 69 5f 08 6e 5f 08 65 20 77 69 6c 6c 20 6e 6f 74 20 73 65 61 72 63 ┆ u_ t_ l_ i_ n_ e will not searc┆
0x10e0…1100 68 2e 20 49 66 20 5f 08 70 5f 08 75 5f 08 74 5f 08 75 5f 08 74 5f 08 2d 0a 20 20 20 20 20 5f 08 ┆h. If _ p_ u_ t_ u_ t_ - _ ┆
0x1100…1120 6c 5f 08 69 5f 08 6e 5f 08 65 20 64 6f 65 73 20 6e 6f 74 20 66 69 6e 64 20 61 20 6d 61 74 63 68 ┆l_ i_ n_ e does not find a match┆
0x1120…1140 69 6e 67 20 73 6c 6f 74 20 66 6f 72 20 74 68 65 20 6e 65 77 20 65 6e 74 72 79 2c 20 69 74 0a 20 ┆ing slot for the new entry, it ┆
0x1140…1160 20 20 20 20 77 69 6c 6c 20 61 64 64 20 61 20 6e 65 77 20 65 6e 74 72 79 20 74 6f 20 74 68 65 20 ┆ will add a new entry to the ┆
0x1160…1180 65 6e 64 20 6f 66 20 74 68 65 20 66 69 6c 65 2e 0a 0a 20 20 20 20 20 5f 08 73 5f 08 65 5f 08 74 ┆end of the file. _ s_ e_ t┆
0x1180…11a0 5f 08 75 5f 08 74 5f 08 65 5f 08 6e 5f 08 74 20 72 65 73 65 74 73 20 74 68 65 20 69 6e 70 75 74 ┆_ u_ t_ e_ n_ t resets the input┆
0x11a0…11c0 20 73 74 72 65 61 6d 20 74 6f 20 74 68 65 20 62 65 67 69 6e 6e 69 6e 67 20 6f 66 20 74 68 65 0a ┆ stream to the beginning of the ┆
0x11c0…11e0 20 20 20 20 20 66 69 6c 65 2e 20 20 54 68 69 73 20 73 68 6f 75 6c 64 20 62 65 20 64 6f 6e 65 20 ┆ file. This should be done ┆
0x11e0…1200 62 65 66 6f 72 65 20 65 61 63 68 20 73 65 61 72 63 68 20 66 6f 72 20 61 20 6e 65 77 0a 20 20 20 ┆before each search for a new ┆
0x1200…1220 20 20 65 6e 74 72 79 20 69 66 20 69 74 20 69 73 20 64 65 73 69 72 65 64 20 74 68 61 74 20 74 68 ┆ entry if it is desired that th┆
0x1220…1240 65 20 65 6e 74 69 72 65 20 66 69 6c 65 20 62 65 20 65 78 61 6d 69 6e 65 64 2e 0a 0a 20 20 20 20 ┆e entire file be examined. ┆
0x1240…1260 20 5f 08 65 5f 08 6e 5f 08 64 5f 08 75 5f 08 74 5f 08 65 5f 08 6e 5f 08 74 20 63 6c 6f 73 65 73 ┆ _ e_ n_ d_ u_ t_ e_ n_ t closes┆
0x1260…1280 20 74 68 65 20 63 75 72 72 65 6e 74 6c 79 20 6f 70 65 6e 20 66 69 6c 65 2e 0a 0a 20 20 20 20 20 ┆ the currently open file. ┆
0x1280…12a0 5f 08 75 5f 08 74 5f 08 6d 5f 08 70 5f 08 6e 5f 08 61 5f 08 6d 5f 08 65 20 61 6c 6c 6f 77 73 20 ┆_ u_ t_ m_ p_ n_ a_ m_ e allows ┆
0x12a0…12c0 74 68 65 20 75 73 65 72 20 74 6f 20 63 68 61 6e 67 65 20 74 68 65 20 6e 61 6d 65 20 6f 66 20 74 ┆the user to change the name of t┆
0x12c0…12e0 68 65 20 66 69 6c 65 0a 20 20 20 20 20 65 78 61 6d 69 6e 65 64 2c 20 66 72 6f 6d 20 2f 08 2f 08 ┆he file examined, from / / ┆
0x12e0…1300 2f 08 2f 65 08 65 08 65 08 65 74 08 74 08 74 08 74 63 08 63 08 63 08 63 2f 08 2f 08 2f 08 2f 75 ┆/ /e e e et t t tc c c c/ / / /u┆
0x1300…1320 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 20 74 6f 20 61 ┆ u u ut t t tm m m mp p p p to a┆
0x1320…1340 6e 79 20 6f 74 68 65 72 20 66 69 6c 65 2e 20 20 49 74 20 69 73 20 6d 6f 73 74 0a 20 20 20 20 20 ┆ny other file. It is most ┆
0x1340…1360 6f 66 74 65 6e 20 65 78 70 65 63 74 65 64 20 74 68 61 74 20 74 68 69 73 20 6f 74 68 65 72 20 66 ┆often expected that this other f┆
0x1360…1380 69 6c 65 20 77 69 6c 6c 20 62 65 20 2f 08 2f 08 2f 08 2f 65 08 65 08 65 08 65 74 08 74 08 74 08 ┆ile will be / / / /e e e et t t ┆
0x1380…13a0 74 63 08 63 08 63 08 63 2f 08 2f 08 2f 08 2f 77 08 77 08 77 08 77 74 08 74 08 74 08 74 6d 08 6d ┆tc c c c/ / / /w w w wt t t tm m┆
0x13a0…13c0 08 6d 08 6d 70 08 70 08 70 08 70 2e 20 20 49 66 0a 20 20 20 20 20 74 68 65 20 66 69 6c 65 20 64 ┆ m mp p p p. If the file d┆
0x13c0…13e0 6f 65 73 6e 27 74 20 65 78 69 73 74 2c 20 74 68 69 73 20 77 69 6c 6c 20 6e 6f 74 20 62 65 20 61 ┆oesn't exist, this will not be a┆
0x13e0…1400 70 70 61 72 65 6e 74 20 75 6e 74 69 6c 20 74 68 65 0a 20 20 20 20 20 66 69 72 73 74 20 61 74 74 ┆pparent until the first att┆
0x1400…1420 65 6d 70 74 20 74 6f 20 72 65 66 65 72 65 6e 63 65 20 74 68 65 20 66 69 6c 65 20 69 73 20 6d 61 ┆empt to reference the file is ma┆
0x1420…1440 64 65 2e 20 20 5f 08 75 5f 08 74 5f 08 6d 5f 08 70 5f 08 6e 5f 08 61 5f 08 6d 5f 08 65 20 64 6f ┆de. _ u_ t_ m_ p_ n_ a_ m_ e do┆
0x1440…1460 65 73 0a 20 20 20 20 20 6e 6f 74 20 6f 70 65 6e 20 74 68 65 20 66 69 6c 65 2e 20 20 49 74 20 6a ┆es not open the file. It j┆
0x1460…1480 75 73 74 20 63 6c 6f 73 65 73 20 74 68 65 20 6f 6c 64 20 66 69 6c 65 20 69 66 20 69 74 20 69 73 ┆ust closes the old file if it is┆
0x1480…14a0 0a 20 20 20 20 20 63 75 72 72 65 6e 74 6c 79 20 6f 70 65 6e 20 61 6e 64 20 73 61 76 65 73 20 74 ┆ currently open and saves t┆
0x14a0…14c0 68 65 20 6e 65 77 20 66 69 6c 65 20 6e 61 6d 65 2e 0a 0a 52 08 52 08 52 08 52 45 08 45 08 45 08 ┆he new file name. R R R RE E E ┆
0x14c0…14e0 45 54 08 54 08 54 08 54 55 08 55 08 55 08 55 52 08 52 08 52 08 52 4e 08 4e 08 4e 08 4e 20 56 08 ┆ET T T TU U U UR R R RN N N N V ┆
0x14e0…1500 56 08 56 08 56 41 08 41 08 41 08 41 4c 08 4c 08 4c 08 4c 55 08 55 08 55 08 55 45 08 45 08 45 08 ┆V V VA A A AL L L LU U U UE E E ┆
0x1500…1520 45 0a 20 20 20 20 20 41 20 4e 55 4c 4c 20 70 6f 69 6e 74 65 72 20 69 73 20 72 65 74 75 72 6e 65 ┆E A NULL pointer is returne┆
0x1520…1540 64 20 75 70 6f 6e 20 66 61 69 6c 75 72 65 20 74 6f 20 72 65 61 64 2c 20 77 68 65 74 68 65 72 20 ┆d upon failure to read, whether ┆
0x1540…1560 66 6f 72 0a 20 20 20 20 20 70 65 72 6d 69 73 73 69 6f 6e 73 20 6f 72 20 68 61 76 69 6e 67 20 72 ┆for permissions or having r┆
0x1560…1580 65 61 63 68 65 64 20 74 68 65 20 65 6e 64 20 6f 66 20 66 69 6c 65 2c 20 6f 72 20 75 70 6f 6e 0a ┆eached the end of file, or upon ┆
0x1580…15a0 20 20 20 20 20 66 61 69 6c 75 72 65 20 74 6f 20 77 72 69 74 65 2e 0a 0a 43 08 43 08 43 08 43 4f ┆ failure to write. C C C CO┆
0x15a0…15c0 08 4f 08 4f 08 4f 4d 08 4d 08 4d 08 4d 4d 08 4d 08 4d 08 4d 45 08 45 08 45 08 45 4e 08 4e 08 4e ┆ O O OM M M MM M M ME E E EN N N┆
0x15c0…15e0 08 4e 54 08 54 08 54 08 54 53 08 53 08 53 08 53 0a 20 20 20 20 20 54 68 65 20 6d 6f 73 74 20 63 ┆ NT T T TS S S S The most c┆
0x15e0…1600 75 72 72 65 6e 74 20 65 6e 74 72 79 20 69 73 20 73 61 76 65 64 20 69 6e 20 61 20 73 74 61 74 69 ┆urrent entry is saved in a stati┆
0x1600…1620 63 20 73 74 72 75 63 74 75 72 65 2e 20 20 4d 75 6c 2d 0a 20 20 20 20 20 74 69 70 6c 65 20 61 63 ┆c structure. Mul- tiple ac┆
0x1620…1640 63 65 73 73 65 73 20 72 65 71 75 69 72 65 20 74 68 61 74 20 69 74 20 62 65 20 63 6f 70 69 65 64 ┆cesses require that it be copied┆
0x1640…1660 20 62 65 66 6f 72 65 20 66 75 72 74 68 65 72 0a 20 20 20 20 20 61 63 63 65 73 73 65 73 20 61 72 ┆ before further accesses ar┆
0x1660…1680 65 20 6d 61 64 65 2e 20 20 45 61 63 68 20 63 61 6c 6c 20 74 6f 20 65 69 74 68 65 72 20 5f 08 67 ┆e made. Each call to either _ g┆
0x1680…16a0 5f 08 65 5f 08 74 5f 08 75 5f 08 74 5f 08 69 5f 08 64 20 6f 72 20 5f 08 67 5f 08 65 5f 08 74 5f ┆_ e_ t_ u_ t_ i_ d or _ g_ e_ t_┆
0x16a0…16c0 08 75 5f 08 74 5f 08 6c 5f 08 69 5f 08 6e 5f 08 65 0a 20 20 20 20 20 73 65 65 73 20 74 68 65 20 ┆ u_ t_ l_ i_ n_ e sees the ┆
0x16c0…16e0 72 6f 75 74 69 6e 65 20 65 78 61 6d 69 6e 65 20 74 68 65 20 73 74 61 74 69 63 20 73 74 72 75 63 ┆routine examine the static struc┆
0x16e0…1700 74 75 72 65 20 62 65 66 6f 72 65 20 70 65 72 2d 0a 20 20 20 20 20 66 6f 72 6d 69 6e 67 20 6d 6f ┆ture before per- forming mo┆
0x1700…1720 72 65 20 49 2f 4f 2e 20 20 49 66 20 74 68 65 20 63 6f 6e 74 65 6e 74 73 20 6f 66 20 74 68 65 20 ┆re I/O. If the contents of the ┆
0x1720…1740 73 74 61 74 69 63 20 73 74 72 75 63 74 75 72 65 0a 20 20 20 20 20 6d 61 74 63 68 20 77 68 61 74 ┆static structure match what┆
0x1740…1760 20 69 74 20 69 73 20 73 65 61 72 63 68 69 6e 67 20 66 6f 72 2c 20 69 74 20 6c 6f 6f 6b 73 20 6e ┆ it is searching for, it looks n┆
0x1760…1780 6f 20 66 75 72 74 68 65 72 2e 20 20 46 6f 72 0a 20 20 20 20 20 74 68 69 73 20 72 65 61 73 6f 6e ┆o further. For this reason┆
0x1780…17a0 20 74 6f 20 75 73 65 20 5f 08 67 5f 08 65 5f 08 74 5f 08 75 5f 08 74 5f 08 6c 5f 08 69 5f 08 6e ┆ to use _ g_ e_ t_ u_ t_ l_ i_ n┆
0x17a0…17c0 5f 08 65 20 74 6f 20 73 65 61 72 63 68 20 66 6f 72 20 6d 75 6c 74 69 70 6c 65 0a 20 20 20 20 20 ┆_ e to search for multiple ┆
0x17c0…17e0 6f 63 63 75 72 65 6e 63 65 73 2c 20 69 74 20 77 6f 75 6c 64 20 62 65 20 6e 65 63 65 73 73 61 72 ┆occurences, it would be necessar┆
0x17e0…1800 79 20 74 6f 20 7a 65 72 6f 20 6f 75 74 20 74 68 65 20 73 74 61 74 69 63 0a 20 20 20 20 20 61 66 ┆y to zero out the static af┆
0x1800…1820 74 65 72 20 65 61 63 68 20 73 75 63 63 65 73 73 2c 20 6f 72 20 5f 08 67 5f 08 65 5f 08 74 5f 08 ┆ter each success, or _ g_ e_ t_ ┆
0x1820…1840 75 5f 08 74 5f 08 6c 5f 08 69 5f 08 6e 5f 08 65 20 77 6f 75 6c 64 20 6a 75 73 74 20 72 65 74 75 ┆u_ t_ l_ i_ n_ e would just retu┆
0x1840…1860 72 6e 20 74 68 65 20 73 61 6d 65 0a 20 20 20 20 20 70 6f 69 6e 74 65 72 20 6f 76 65 72 20 61 6e ┆rn the same pointer over an┆
0x1860…1880 64 20 6f 76 65 72 20 61 67 61 69 6e 2e 20 20 54 68 65 72 65 20 69 73 20 6f 6e 65 20 65 78 63 65 ┆d over again. There is one exce┆
0x1880…18a0 70 74 69 6f 6e 20 74 6f 20 74 68 65 0a 20 20 20 20 20 72 75 6c 65 20 61 62 6f 75 74 20 72 65 6d ┆ption to the rule about rem┆
0x18a0…18c0 6f 76 69 6e 67 20 74 68 65 20 73 74 72 75 63 74 75 72 65 20 62 65 66 6f 72 65 20 66 75 72 74 68 ┆oving the structure before furth┆
0x18c0…18e0 65 72 20 72 65 61 64 73 20 61 72 65 0a 20 20 20 20 20 64 6f 6e 65 2e 20 20 54 68 65 20 69 6d 70 ┆er reads are done. The imp┆
0x18e0…1900 6c 69 63 69 74 20 72 65 61 64 20 64 6f 6e 65 20 62 79 20 5f 08 70 5f 08 75 5f 08 74 5f 08 75 5f ┆licit read done by _ p_ u_ t_ u_┆
0x1900…1920 08 74 5f 08 6c 5f 08 69 5f 08 6e 5f 08 65 20 69 66 20 69 74 20 66 69 6e 64 73 20 74 68 61 74 0a ┆ t_ l_ i_ n_ e if it finds that ┆
[…truncated at 200 lines…]