|
|
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: 3207 (0xc87)
Names: »getgrent.3«
└─⟦50656ff4a⟧ Bits:30010538 TX 3.1 Coldstart
└─⟦bbf173f5c⟧ »0004«
└─⟦this⟧ »./bsd/usr/man/cat3/getgrent.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 67 72 65 6e 74 28 33 29 0a 0a 0a 0a ┆ions getgrent(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 67 72 65 6e 74 2c 20 67 65 74 67 72 67 69 64 2c 20 67 65 74 67 72 6e 61 6d 2c 20 ┆ getgrent, getgrgid, getgrnam, ┆
0x0a0…0c0 73 65 74 67 72 65 6e 74 2c 20 65 6e 64 67 72 65 6e 74 20 2d 20 67 65 74 20 67 72 6f 75 70 0a 20 ┆setgrent, endgrent - get group ┆
0x0c0…0e0 20 20 20 20 66 69 6c 65 20 65 6e 74 72 79 0a 0a 53 08 53 08 53 08 53 59 08 59 08 59 08 59 4e 08 ┆ file entry S S S SY Y Y YN ┆
0x0e0…100 4e 08 4e 08 4e 54 08 54 08 54 08 54 41 08 41 08 41 08 41 58 08 58 08 58 08 58 0a 20 20 20 20 20 ┆N N NT T T TA A A AX X X X ┆
0x100…120 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 08 6c 08 ┆# # # #i i i in n n nc c c cl l ┆
0x120…140 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 3c 08 3c ┆l lu u u ud d d de e e e < < < <┆
0x140…160 67 08 67 08 67 08 67 72 08 72 08 72 08 72 70 08 70 08 70 08 70 2e 08 2e 08 2e 08 2e 68 08 68 08 ┆g g g gr r r rp p p p. . . .h h ┆
0x160…180 68 08 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 ┆h h> > > > s s s st t t tr┆
0x180…1a0 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 20 67 08 67 08 ┆ r r ru u u uc c c ct t t t g g ┆
0x1a0…1c0 67 08 67 72 08 72 08 72 08 72 6f 08 6f 08 6f 08 6f 75 08 75 08 75 08 75 70 08 70 08 70 08 70 20 ┆g gr r r ro o o ou u u up p p p ┆
0x1c0…1e0 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 67 08 67 08 ┆* * * *g g g ge e e et t t tg g ┆
0x1e0…200 67 08 67 72 08 72 08 72 08 72 65 08 65 08 65 08 65 6e 08 6e 08 6e 08 6e 74 08 74 08 74 08 74 28 ┆g gr r r re e e en n n nt t t t(┆
0x200…220 08 28 08 28 08 28 29 08 29 08 29 08 29 0a 0a 20 20 20 20 20 73 08 73 08 73 08 73 74 08 74 08 74 ┆ ( ( () ) ) ) s s s st t t┆
0x220…240 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 20 67 ┆ tr r r ru u u uc c c ct t t t g┆
0x240…260 08 67 08 67 08 67 72 08 72 08 72 08 72 6f 08 6f 08 6f 08 6f 75 08 75 08 75 08 75 70 08 70 08 70 ┆ g g gr r r ro o o ou u u up p p┆
0x260…280 08 70 20 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 67 ┆ p * * * *g g g ge e e et t t tg┆
0x280…2a0 08 67 08 67 08 67 72 08 72 08 72 08 72 67 08 67 08 67 08 67 69 08 69 08 69 08 69 64 08 64 08 64 ┆ g g gr r r rg g g gi i i id d d┆
0x2a0…2c0 08 64 28 08 28 08 28 08 28 67 08 67 08 67 08 67 69 08 69 08 69 08 69 64 08 64 08 64 08 64 29 08 ┆ d( ( ( (g g g gi i i id d d d) ┆
0x2c0…2e0 29 08 29 08 29 0a 20 20 20 20 20 69 08 69 08 69 08 69 6e 08 6e 08 6e 08 6e 74 08 74 08 74 08 74 ┆) ) ) i i i in n n nt t t t┆
0x2e0…300 20 67 08 67 08 67 08 67 69 08 69 08 69 08 69 64 08 64 08 64 08 64 3b 08 3b 08 3b 08 3b 0a 0a 20 ┆ g g g gi i i id d d d; ; ; ; ┆
0x300…320 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 75 08 75 08 75 08 75 ┆ s s s st t t tr r r ru u u u┆
0x320…340 63 08 63 08 63 08 63 74 08 74 08 74 08 74 20 67 08 67 08 67 08 67 72 08 72 08 72 08 72 6f 08 6f ┆c c c ct t t t g g g gr r r ro o┆
0x340…360 08 6f 08 6f 75 08 75 08 75 08 75 70 08 70 08 70 08 70 20 2a 08 2a 08 2a 08 2a 67 08 67 08 67 08 ┆ o ou u u up p p p * * * *g g g ┆
0x360…380 67 65 08 65 08 65 08 65 74 08 74 08 74 08 74 67 08 67 08 67 08 67 72 08 72 08 72 08 72 6e 08 6e ┆ge e e et t t tg g g gr r r rn n┆
0x380…3a0 08 6e 08 6e 61 08 61 08 61 08 61 6d 08 6d 08 6d 08 6d 28 08 28 08 28 08 28 6e 08 6e 08 6e 08 6e ┆ n na a a am m m m( ( ( (n n n n┆
0x3a0…3c0 61 08 61 08 61 08 61 6d 08 6d 08 6d 08 6d 65 08 65 08 65 08 65 29 08 29 08 29 08 29 0a 20 20 20 ┆a a a am m m me e e e) ) ) ) ┆
0x3c0…3e0 20 20 63 08 63 08 63 08 63 68 08 68 08 68 08 68 61 08 61 08 61 08 61 72 08 72 08 72 08 72 20 2a ┆ c c c ch h h ha a a ar r r r *┆
0x3e0…400 08 2a 08 2a 08 2a 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 ┆ * * *n n n na a a am m m me e e┆
0x400…420 08 65 3b 08 3b 08 3b 08 3b 0a 0a 20 20 20 20 20 73 08 73 08 73 08 73 65 08 65 08 65 08 65 74 08 ┆ e; ; ; ; s s s se e e et ┆
0x420…440 74 08 74 08 74 67 08 67 08 67 08 67 72 08 72 08 72 08 72 65 08 65 08 65 08 65 6e 08 6e 08 6e 08 ┆t t tg g g gr r r re e e en n n ┆
0x440…460 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 65 08 65 ┆nt t t t( ( ( () ) ) ) e e┆
0x460…480 08 65 08 65 6e 08 6e 08 6e 08 6e 64 08 64 08 64 08 64 67 08 67 08 67 08 67 72 08 72 08 72 08 72 ┆ e en n n nd d d dg g g gr r r r┆
0x480…4a0 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 08 ┆e e e en n n nt t t t( ( ( () ) ┆
0x4a0…4c0 29 08 29 0a 0a 44 08 44 08 44 08 44 45 08 45 08 45 08 45 53 08 53 08 53 08 53 43 08 43 08 43 08 ┆) ) D D D DE E E ES S S SC C C ┆
0x4c0…4e0 43 52 08 52 08 52 08 52 49 08 49 08 49 08 49 50 08 50 08 50 08 50 54 08 54 08 54 08 54 49 08 49 ┆CR R R RI I I IP P P PT T T TI I┆
0x4e0…500 08 49 08 49 4f 08 4f 08 4f 08 4f 4e 08 4e 08 4e 08 4e 0a 20 20 20 20 20 5f 08 67 5f 08 65 5f 08 ┆ I IO O O ON N N N _ g_ e_ ┆
0x500…520 74 5f 08 67 5f 08 72 5f 08 65 5f 08 6e 5f 08 74 2c 20 5f 08 67 5f 08 65 5f 08 74 5f 08 67 5f 08 ┆t_ g_ r_ e_ n_ t, _ g_ e_ t_ g_ ┆
0x520…540 72 5f 08 67 5f 08 69 5f 08 64 20 61 6e 64 20 5f 08 67 5f 08 65 5f 08 74 5f 08 67 5f 08 72 5f 08 ┆r_ g_ i_ d and _ g_ e_ t_ g_ r_ ┆
0x540…560 6e 5f 08 61 5f 08 6d 20 65 61 63 68 20 72 65 74 75 72 6e 20 70 6f 69 6e 74 65 72 73 20 74 6f 20 ┆n_ a_ m each return pointers to ┆
0x560…580 61 6e 0a 20 20 20 20 20 6f 62 6a 65 63 74 20 77 69 74 68 20 74 68 65 20 66 6f 6c 6c 6f 77 69 6e ┆an object with the followin┆
0x580…5a0 67 20 73 74 72 75 63 74 75 72 65 20 63 6f 6e 74 61 69 6e 69 6e 67 20 74 68 65 20 62 72 6f 6b 65 ┆g structure containing the broke┆
0x5a0…5c0 6e 2d 0a 20 20 20 20 20 6f 75 74 20 66 69 65 6c 64 73 20 6f 66 20 61 20 6c 69 6e 65 20 69 6e 20 ┆n- out fields of a line in ┆
0x5c0…5e0 74 68 65 20 67 72 6f 75 70 20 66 69 6c 65 2e 0a 0a 20 20 20 20 20 20 20 20 20 20 73 74 72 75 63 ┆the group file. struc┆
0x5e0…600 74 20 20 67 72 6f 75 70 20 7b 20 2f 2a 20 73 65 65 20 67 65 74 67 72 65 6e 74 28 33 29 20 2a 2f ┆t group { /* see getgrent(3) */┆
0x600…620 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 2a 67 72 5f 6e ┆ char *gr_n┆
0x620…640 61 6d 65 3b 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 2a ┆ame; char *┆
0x640…660 67 72 5f 70 61 73 73 77 64 3b 0a 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 69 6e 74 ┆gr_passwd; int┆
0x660…680 20 20 20 20 20 67 72 5f 67 69 64 3b 0a 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 63 ┆ gr_gid; c┆
0x680…6a0 68 61 72 20 20 20 20 2a 2a 67 72 5f 6d 65 6d 3b 0a 20 20 20 20 20 20 20 20 20 20 7d 3b 0a 0a 20 ┆har **gr_mem; }; ┆
0x6a0…6c0 20 20 20 20 20 20 20 20 20 73 74 72 75 63 74 20 67 72 6f 75 70 20 2a 67 65 74 67 72 65 6e 74 28 ┆ struct group *getgrent(┆
0x6c0…6e0 29 2c 20 2a 67 65 74 67 72 67 69 64 28 29 2c 20 2a 67 65 74 67 72 6e 61 6d 28 29 3b 0a 0a 20 20 ┆), *getgrgid(), *getgrnam(); ┆
0x6e0…700 20 20 20 54 68 65 20 6d 65 6d 62 65 72 73 20 6f 66 20 74 68 69 73 20 73 74 72 75 63 74 75 72 65 ┆ The members of this structure┆
0x700…720 20 61 72 65 3a 0a 0a 20 20 20 20 20 67 72 5f 6e 61 6d 65 20 20 20 20 54 68 65 20 6e 61 6d 65 20 ┆ are: gr_name The name ┆
0x720…740 6f 66 20 74 68 65 20 67 72 6f 75 70 2e 0a 20 20 20 20 20 67 72 5f 70 61 73 73 77 64 20 20 54 68 ┆of the group. gr_passwd Th┆
0x740…760 65 20 65 6e 63 72 79 70 74 65 64 20 70 61 73 73 77 6f 72 64 20 6f 66 20 74 68 65 20 67 72 6f 75 ┆e encrypted password of the grou┆
0x760…780 70 2e 0a 20 20 20 20 20 67 72 5f 67 69 64 20 20 20 20 20 54 68 65 20 6e 75 6d 65 72 69 63 61 6c ┆p. gr_gid The numerical┆
0x780…7a0 20 67 72 6f 75 70 2d 49 44 2e 0a 20 20 20 20 20 67 72 5f 6d 65 6d 20 20 20 20 20 4e 75 6c 6c 2d ┆ group-ID. gr_mem Null-┆
0x7a0…7c0 74 65 72 6d 69 6e 61 74 65 64 20 76 65 63 74 6f 72 20 6f 66 20 70 6f 69 6e 74 65 72 73 20 74 6f ┆terminated vector of pointers to┆
0x7c0…7e0 20 74 68 65 20 69 6e 64 69 76 69 2d 0a 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 64 75 61 ┆ the indivi- dua┆
0x7e0…800 6c 20 6d 65 6d 62 65 72 20 6e 61 6d 65 73 2e 0a 0a 20 20 20 20 20 5f 08 67 5f 08 65 5f 08 74 5f ┆l member names. _ g_ e_ t_┆
0x800…820 08 67 5f 08 72 5f 08 65 5f 08 6e 5f 08 74 20 73 69 6d 70 6c 79 20 72 65 61 64 73 20 74 68 65 20 ┆ g_ r_ e_ n_ t simply reads the ┆
0x820…840 6e 65 78 74 20 6c 69 6e 65 20 77 68 69 6c 65 20 5f 08 67 5f 08 65 5f 08 74 5f 08 67 5f 08 72 5f ┆next line while _ g_ e_ t_ g_ r_┆
0x840…860 08 67 5f 08 69 5f 08 64 20 61 6e 64 20 5f 08 67 5f 08 65 5f 08 74 5f 08 2d 0a 20 20 20 20 20 5f ┆ g_ i_ d and _ g_ e_ t_ - _┆
0x860…880 08 67 5f 08 72 5f 08 6e 5f 08 61 5f 08 6d 20 73 65 61 72 63 68 20 75 6e 74 69 6c 20 61 20 6d 61 ┆ g_ r_ n_ a_ m search until a ma┆
0x880…8a0 74 63 68 69 6e 67 20 5f 08 67 5f 08 69 5f 08 64 20 6f 72 20 5f 08 6e 5f 08 61 5f 08 6d 5f 08 65 ┆tching _ g_ i_ d or _ n_ a_ m_ e┆
0x8a0…8c0 20 69 73 20 66 6f 75 6e 64 20 28 6f 72 20 75 6e 74 69 6c 0a 20 20 20 20 20 45 4f 46 20 69 73 20 ┆ is found (or until EOF is ┆
0x8c0…8e0 65 6e 63 6f 75 6e 74 65 72 65 64 29 2e 20 20 45 61 63 68 20 72 6f 75 74 69 6e 65 20 70 69 63 6b ┆encountered). Each routine pick┆
0x8e0…900 73 20 75 70 20 77 68 65 72 65 20 74 68 65 20 6f 74 68 65 72 73 0a 20 20 20 20 20 6c 65 61 76 65 ┆s up where the others leave┆
0x900…920 20 6f 66 66 20 73 6f 20 73 75 63 63 65 73 73 69 76 65 20 63 61 6c 6c 73 20 6d 61 79 20 62 65 20 ┆ off so successive calls may be ┆
0x920…940 75 73 65 64 20 74 6f 20 73 65 61 72 63 68 20 74 68 65 0a 20 20 20 20 20 65 6e 74 69 72 65 20 66 ┆used to search the entire f┆
0x940…960 69 6c 65 2e 0a 0a 20 20 20 20 20 41 20 63 61 6c 6c 20 74 6f 20 5f 08 73 5f 08 65 5f 08 74 5f 08 ┆ile. A call to _ s_ e_ t_ ┆
0x960…980 67 5f 08 72 5f 08 65 5f 08 6e 5f 08 74 20 68 61 73 20 74 68 65 20 65 66 66 65 63 74 20 6f 66 20 ┆g_ r_ e_ n_ t has the effect of ┆
0x980…9a0 72 65 77 69 6e 64 69 6e 67 20 74 68 65 20 67 72 6f 75 70 0a 20 20 20 20 20 66 69 6c 65 20 74 6f ┆rewinding the group file to┆
0x9a0…9c0 20 61 6c 6c 6f 77 20 72 65 70 65 61 74 65 64 20 73 65 61 72 63 68 65 73 2e 20 20 5f 08 65 5f 08 ┆ allow repeated searches. _ e_ ┆
0x9c0…9e0 6e 5f 08 64 5f 08 67 5f 08 72 5f 08 65 5f 08 6e 5f 08 74 20 6d 61 79 20 62 65 20 63 61 6c 6c 65 ┆n_ d_ g_ r_ e_ n_ t may be calle┆
0x9e0…a00 64 20 74 6f 0a 20 20 20 20 20 63 6c 6f 73 65 20 74 68 65 20 67 72 6f 75 70 20 66 69 6c 65 20 77 ┆d to close the group file w┆
0xa00…a20 68 65 6e 20 70 72 6f 63 65 73 73 69 6e 67 20 69 73 20 63 6f 6d 70 6c 65 74 65 2e 0a 0a 46 08 46 ┆hen processing is complete. F F┆
0xa20…a40 08 46 08 46 49 08 49 08 49 08 49 4c 08 4c 08 4c 08 4c 45 08 45 08 45 08 45 53 08 53 08 53 08 53 ┆ F FI I I IL L L LE E E ES S S S┆
0xa40…a60 0a 20 20 20 20 20 2f 65 74 63 2f 67 72 6f 75 70 0a 0a 53 08 53 08 53 08 53 45 08 45 08 45 08 45 ┆ /etc/group S S S SE E E E┆
0xa60…a80 45 08 45 08 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 ┆E E E E A A A AL L L LS S S SO O┆
0xa80…aa0 08 4f 08 4f 0a 20 20 20 20 20 4c 69 62 72 61 72 79 20 46 75 6e 63 74 69 6f 6e 73 20 28 33 29 3a ┆ O O Library Functions (3):┆
0xaa0…ac0 20 20 67 65 74 6c 6f 67 69 6e 2c 20 67 65 74 70 77 65 6e 74 0a 20 20 20 20 20 46 69 6c 65 20 46 ┆ getlogin, getpwent File F┆
0xac0…ae0 6f 72 6d 61 74 73 20 28 35 29 3a 20 20 67 72 6f 75 70 0a 0a 0a 0a 0a 0a 0a 0a 0a 44 08 44 08 44 ┆ormats (5): group D D D┆
0xae0…b00 08 44 49 08 49 08 49 08 49 41 08 41 08 41 08 41 47 08 47 08 47 08 47 4e 08 4e 08 4e 08 4e 4f 08 ┆ DI I I IA A A AG G G GN N N NO ┆
0xb00…b20 4f 08 4f 08 4f 53 08 53 08 53 08 53 54 08 54 08 54 08 54 49 08 49 08 49 08 49 43 08 43 08 43 08 ┆O O OS S S ST T T TI I I IC C C ┆
0xb20…b40 43 53 08 53 08 53 08 53 0a 20 20 20 20 20 41 20 6e 75 6c 6c 20 70 6f 69 6e 74 65 72 20 28 30 29 ┆CS S S S A null pointer (0)┆
0xb40…b60 20 69 73 20 72 65 74 75 72 6e 65 64 20 6f 6e 20 45 4f 46 20 6f 72 20 65 72 72 6f 72 2e 0a 0a 4c ┆ is returned on EOF or error. L┆
0xb60…b80 08 4c 08 4c 08 4c 49 08 49 08 49 08 49 4d 08 4d 08 4d 08 4d 49 08 49 08 49 08 49 54 08 54 08 54 ┆ L L LI I I IM M M MI I I IT T T┆
0xb80…ba0 08 54 41 08 41 08 41 08 41 54 08 54 08 54 08 54 49 08 49 08 49 08 49 4f 08 4f 08 4f 08 4f 4e 08 ┆ TA A A AT T T TI I I IO O O ON ┆
0xba0…bc0 4e 08 4e 08 4e 53 08 53 08 53 08 53 0a 20 20 20 20 20 41 6c 6c 20 69 6e 66 6f 72 6d 61 74 69 6f ┆N N NS S S S All informatio┆
0xbc0…be0 6e 20 69 73 20 63 6f 6e 74 61 69 6e 65 64 20 69 6e 20 61 20 73 74 61 74 69 63 20 61 72 65 61 20 ┆n is contained in a static area ┆
0xbe0…c00 73 6f 20 69 74 20 6d 75 73 74 20 62 65 0a 20 20 20 20 20 63 6f 70 69 65 64 20 69 66 20 69 74 20 ┆so it must be copied if it ┆
0xc00…c20 69 73 20 74 6f 20 62 65 20 73 61 76 65 64 2e 0a 0a 4d 61 72 63 68 20 31 39 38 39 20 20 20 20 20 ┆is to be saved. March 1989 ┆
0xc20…c40 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 50 72 6f 67 ┆ TX Prog┆
0xc40…c60 72 61 6d 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 ┆rammer's Reference ┆
0xc60…c80 0a 0a 0a 0a 0a 0a 0a 0a 0a 0a 0a 0a 0a 0a 0a 0a 0a 0a 0a 0a 0a 0a 0a 0a 0a 0a 0a 0a 0a 0a 0a 0a ┆ ┆
0xc80…c87 0a 0a 0a 0a 0a 0a 0a ┆ ┆