|
|
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: 1611 (0x64b)
Names: »getlogin.3«
└─⟦50656ff4a⟧ Bits:30010538 TX 3.1 Coldstart
└─⟦bbf173f5c⟧ »0004«
└─⟦this⟧ »./usr/man/cat3/getlogin.3«
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 4c 69 62 72 61 72 79 20 46 75 6e 63 74 ┆ u_ a_ l Library Funct┆ 0x040…060 69 6f 6e 73 20 20 20 20 20 20 20 20 20 20 20 20 20 67 65 74 6c 6f 67 69 6e 28 33 29 0a 0a 0a 0a ┆ions getlogin(3) ┆ 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 67 65 74 6c 6f 67 69 6e 20 2d 20 67 65 74 20 6c 6f 67 69 6e 20 6e 61 6d 65 0a 0a 53 08 53 ┆ getlogin - get login name S S┆ 0x0a0…0c0 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 41 ┆ S SY Y Y YN N N NT T T TA A A A┆ 0x0c0…0e0 58 08 58 08 58 08 58 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 ┆X X X X c c c ch h h ha a a┆ 0x0e0…100 08 61 72 08 72 08 72 08 72 20 2a 08 2a 08 2a 08 2a 67 08 67 08 67 08 67 65 08 65 08 65 08 65 74 ┆ ar r r r * * * *g g g ge e e et┆ 0x100…120 08 74 08 74 08 74 6c 08 6c 08 6c 08 6c 6f 08 6f 08 6f 08 6f 67 08 67 08 67 08 67 69 08 69 08 69 ┆ t t tl l l lo o o og g g gi i i┆ 0x120…140 08 69 6e 08 6e 08 6e 08 6e 28 08 28 08 28 08 28 29 08 29 08 29 08 29 0a 0a 44 08 44 08 44 08 44 ┆ in n n n( ( ( () ) ) ) D D D D┆ 0x140…160 45 08 45 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 ┆E E E ES S S SC C C CR R R RI I ┆ 0x160…180 49 08 49 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 ┆I IP P P PT T T TI I I IO O O ON┆ 0x180…1a0 08 4e 08 4e 08 4e 0a 20 20 20 20 20 5f 08 67 5f 08 65 5f 08 74 5f 08 6c 5f 08 6f 5f 08 67 5f 08 ┆ N N N _ g_ e_ t_ l_ o_ g_ ┆ 0x1a0…1c0 69 5f 08 6e 20 72 65 74 75 72 6e 73 20 61 20 70 6f 69 6e 74 65 72 20 74 6f 20 74 68 65 20 75 73 ┆i_ n returns a pointer to the us┆ 0x1c0…1e0 65 72 20 6e 61 6d 65 20 61 73 73 6f 63 69 61 74 65 64 20 62 79 0a 20 20 20 20 20 74 68 65 20 6c ┆er name associated by the l┆ 0x1e0…200 6f 67 69 6e 20 61 63 74 69 76 69 74 79 20 77 69 74 68 20 74 68 65 20 63 6f 6e 74 72 6f 6c 6c 69 ┆ogin activity with the controlli┆ 0x200…220 6e 67 20 74 65 72 6d 69 6e 61 6c 20 6f 66 20 74 68 65 0a 20 20 20 20 20 63 75 72 72 65 6e 74 20 ┆ng terminal of the current ┆ 0x220…240 70 72 6f 63 65 73 73 2e 20 20 49 66 20 5f 08 67 5f 08 65 5f 08 74 5f 08 6c 5f 08 6f 5f 08 67 5f ┆process. If _ g_ e_ t_ l_ o_ g_┆ 0x240…260 08 69 5f 08 6e 20 72 65 74 75 72 6e 73 20 61 20 6e 6f 6e 2d 6e 75 6c 6c 20 70 6f 69 6e 74 65 72 ┆ i_ n returns a non-null pointer┆ 0x260…280 2c 0a 20 20 20 20 20 74 68 65 6e 20 74 68 61 74 20 70 6f 69 6e 74 65 72 20 70 6f 69 6e 74 73 20 ┆, then that pointer points ┆ 0x280…2a0 74 6f 20 74 68 65 20 6e 61 6d 65 20 74 68 61 74 20 74 68 65 20 75 73 65 72 20 6c 6f 67 67 65 64 ┆to the name that the user logged┆ 0x2a0…2c0 20 69 6e 0a 20 20 20 20 20 75 6e 64 65 72 2c 20 65 76 65 6e 20 69 66 20 74 68 65 72 65 20 61 72 ┆ in under, even if there ar┆ 0x2c0…2e0 65 20 73 65 76 65 72 61 6c 20 6c 6f 67 69 6e 20 6e 61 6d 65 73 20 77 69 74 68 20 74 68 65 20 73 ┆e several login names with the s┆ 0x2e0…300 61 6d 65 0a 20 20 20 20 20 75 73 65 72 20 49 44 2e 0a 0a 20 20 20 20 20 49 66 20 5f 08 67 5f 08 ┆ame user ID. If _ g_ ┆ 0x300…320 65 5f 08 74 5f 08 6c 5f 08 6f 5f 08 67 5f 08 69 5f 08 6e 20 69 73 20 63 61 6c 6c 65 64 20 77 69 ┆e_ t_ l_ o_ g_ i_ n is called wi┆ 0x320…340 74 68 69 6e 20 61 20 70 72 6f 63 65 73 73 20 77 68 6f 73 65 20 6c 6f 67 69 6e 20 6e 61 6d 65 20 ┆thin a process whose login name ┆ 0x340…360 63 61 6e 2d 0a 20 20 20 20 20 6e 6f 74 20 62 65 20 66 6f 75 6e 64 2c 20 69 74 20 72 65 74 75 72 ┆can- not be found, it retur┆ 0x360…380 6e 73 20 4e 55 4c 4c 2e 0a 0a 4e 08 4e 08 4e 08 4e 4f 08 4f 08 4f 08 4f 54 08 54 08 54 08 54 45 ┆ns NULL. N N N NO O O OT T T TE┆ 0x380…3a0 08 45 08 45 08 45 53 08 53 08 53 08 53 0a 20 20 20 20 20 54 68 65 20 72 65 74 75 72 6e 20 76 61 ┆ E E ES S S S The return va┆ 0x3a0…3c0 6c 75 65 20 70 6f 69 6e 74 73 20 74 6f 20 73 74 61 74 69 63 20 64 61 74 61 20 77 68 6f 73 65 20 ┆lue points to static data whose ┆ 0x3c0…3e0 63 6f 6e 74 65 6e 74 20 69 73 0a 20 20 20 20 20 6f 76 65 72 77 72 69 74 74 65 6e 20 62 79 20 65 ┆content is overwritten by e┆ 0x3e0…400 61 63 68 20 63 61 6c 6c 2e 0a 0a 20 20 20 20 20 54 68 72 65 65 20 6e 61 6d 65 73 20 61 73 73 6f ┆ach call. Three names asso┆ 0x400…420 63 69 61 74 65 64 20 77 69 74 68 65 20 74 68 65 20 63 75 72 72 65 6e 74 20 70 72 6f 63 65 73 73 ┆ciated withe the current process┆ 0x420…440 20 63 61 6e 20 62 65 0a 20 20 20 20 20 64 65 74 65 72 6d 69 6e 65 64 3a 20 5f 08 63 5f 08 75 5f ┆ can be determined: _ c_ u_┆ 0x440…460 08 73 5f 08 65 5f 08 72 5f 08 69 5f 08 64 28 29 20 72 65 74 75 72 6e 73 20 74 68 65 20 6e 61 6d ┆ s_ e_ r_ i_ d() returns the nam┆ 0x460…480 65 20 61 73 73 6f 63 69 61 74 65 64 20 77 69 74 68 20 74 68 65 0a 20 20 20 20 20 65 66 66 65 63 ┆e associated with the effec┆ 0x480…4a0 74 69 76 65 20 75 73 65 72 20 49 44 20 6f 66 20 74 68 65 20 70 72 6f 63 65 73 73 3b 20 5f 08 67 ┆tive user ID of the process; _ g┆ 0x4a0…4c0 5f 08 65 5f 08 74 5f 08 6c 5f 08 6f 5f 08 67 5f 08 69 5f 08 6e 28 29 20 72 65 74 75 72 6e 73 20 ┆_ e_ t_ l_ o_ g_ i_ n() returns ┆ 0x4c0…4e0 74 68 65 0a 20 20 20 20 20 6e 61 6d 65 20 61 73 73 6f 63 69 61 74 65 64 20 77 69 74 68 20 74 68 ┆the name associated with th┆ 0x4e0…500 65 20 63 75 72 72 65 6e 74 20 6c 6f 67 69 6e 20 61 63 74 69 76 69 74 79 3b 20 61 6e 64 0a 20 20 ┆e current login activity; and ┆ 0x500…520 20 20 20 5f 08 67 5f 08 65 5f 08 74 5f 08 70 5f 08 77 5f 08 75 5f 08 69 5f 08 64 28 5f 08 67 5f ┆ _ g_ e_ t_ p_ w_ u_ i_ d(_ g_┆ 0x520…540 08 65 5f 08 74 5f 08 75 5f 08 69 5f 08 64 28 29 29 20 72 65 74 75 72 6e 73 20 74 68 65 20 6e 61 ┆ e_ t_ u_ i_ d()) returns the na┆ 0x540…560 6d 65 20 61 73 73 6f 63 69 61 74 65 64 20 77 69 74 68 20 74 68 65 20 72 65 61 6c 0a 20 20 20 20 ┆me associated with the real ┆ 0x560…580 20 75 73 65 72 20 49 44 20 6f 66 20 74 68 65 20 70 72 6f 63 65 73 73 2e 0a 0a 53 08 53 08 53 08 ┆ user ID of the process. S S S ┆ 0x580…5a0 53 45 08 45 08 45 08 45 45 08 45 08 45 08 45 20 41 08 41 08 41 08 41 4c 08 4c 08 4c 08 4c 53 08 ┆SE E E EE E E E A A A AL L L LS ┆ 0x5a0…5c0 53 08 53 08 53 4f 08 4f 08 4f 08 4f 0a 20 20 20 20 20 4c 69 62 72 61 72 79 20 46 75 6e 63 74 69 ┆S S SO O O O Library Functi┆ 0x5c0…5e0 6f 6e 73 20 28 33 29 3a 20 63 75 73 65 72 69 64 2c 20 67 65 74 70 77 6e 61 6d 2c 20 67 65 74 70 ┆ons (3): cuserid, getpwnam, getp┆ 0x5e0…600 77 75 69 64 2c 20 67 65 74 75 69 64 0a 0a 44 65 63 65 6d 62 65 72 20 31 39 39 30 20 20 20 20 20 ┆wuid, getuid December 1990 ┆ 0x600…620 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 50 72 6f 67 72 61 6d ┆ TX Program┆ 0x620…640 6d 65 72 27 73 20 52 65 66 65 72 65 6e 63 65 0a 0a 0a 0a 0a 0a 0a 0a 0a 0a 0a 0a 0a 0a 0a 0a 0a ┆mer's Reference ┆ 0x640…64b 0a 0a 0a 0a 0a 0a 0a 0a 0a 0a 0a ┆ ┆