DataMuseum.dk

Presents historical artifacts from the history of:

RC9000

This is an automatic "excavation" of a thematic subset of
artifacts from Datamuseum.dk's BitArchive.

See our Wiki for more about RC9000

Excavated with: AutoArchaeologist - Free & Open Source Software.


top - download
Index: s

⟦e727bb93b⟧

    Length: 2377 (0x949)
    Names: »setgid.2«

Derivation

└─⟦50656ff4a⟧ Bits:30010538 TX 3.1 Coldstart
    └─⟦bbf173f5c⟧ »0004« 
        └─⟦this⟧ »./usr/man/cat2/setgid.2« 

Default Hex Dump

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 53 79 73 74 65 6d 20 43 61 6c 6c   ┆ u_ a_ l             System Call┆
0x040…060 73 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 73 65 74 67 69 64 28 32 29 0a 0a 0a 0a   ┆s                  setgid(2)    ┆
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 73 65 74 67 69 64 20 2d 20 73 65 74 20 67 72 6f 75 70 20 49 44 73 0a 0a 53 08 53 08 53 08   ┆  setgid - set group IDs  S S S ┆
0x0a0…0c0 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 58 08 58   ┆SY Y Y YN N N NT T T TA A A AX X┆
0x0c0…0e0 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 6e 08 6e 63   ┆ X X      # # # #i i i in n n nc┆
0x0e0…100 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 08 65 08 65   ┆ c c cl l l lu u u ud d d de e e┆
0x100…120 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 73 08 73 2f   ┆ e < < < <s s s sy y y ys s s s/┆
0x120…140 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 08 65 08 65   ┆ / / /t t t ty y y yp p p pe e e┆
0x140…160 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 08 3e 0a 0a   ┆ es s s s. . . .h h h h> > > >  ┆
0x160…180 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 20 73 08 73 08 73   ┆     i i i in n n nt t t t s s s┆
0x180…1a0 08 73 65 08 65 08 65 08 65 74 08 74 08 74 08 74 67 08 67 08 67 08 67 69 08 69 08 69 08 69 64 08   ┆ se e e et t t tg g g gi i i id ┆
0x1a0…1c0 64 08 64 08 64 20 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   ┆d d d ( ( ( (g g g gi i i id d d┆
0x1c0…1e0 08 64 29 08 29 08 29 08 29 0a 20 20 20 20 20 67 08 67 08 67 08 67 69 08 69 08 69 08 69 64 08 64   ┆ d) ) ) )      g g g gi i i id d┆
0x1e0…200 08 64 08 64 5f 08 5f 08 5f 08 5f 74 08 74 08 74 08 74 20 67 08 67 08 67 08 67 69 08 69 08 69 08   ┆ d d_ _ _ _t t t t g g g gi i i ┆
0x200…220 69 64 08 64 08 64 08 64 3b 08 3b 08 3b 08 3b 0a 0a 20 20 20 20 20 69 08 69 08 69 08 69 6e 08 6e   ┆id d d d; ; ; ;       i i i in n┆
0x220…240 08 6e 08 6e 74 08 74 08 74 08 74 20 73 08 73 08 73 08 73 65 08 65 08 65 08 65 74 08 74 08 74 08   ┆ n nt t t t s s s se e e et t t ┆
0x240…260 74 65 08 65 08 65 08 65 67 08 67 08 67 08 67 69 08 69 08 69 08 69 64 08 64 08 64 08 64 28 08 28   ┆te e e eg g g gi i i id d d d( (┆
0x260…280 08 28 08 28 65 08 65 08 65 08 65 67 08 67 08 67 08 67 69 08 69 08 69 08 69 64 08 64 08 64 08 64   ┆ ( (e e e eg g g gi i i id d d d┆
0x280…2a0 29 08 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   ┆) ) ) )      i i i in n n nt t t┆
0x2a0…2c0 08 74 20 65 08 65 08 65 08 65 67 08 67 08 67 08 67 69 08 69 08 69 08 69 64 08 64 08 64 08 64 3b   ┆ t e e e eg g g gi i i id d d d;┆
0x2c0…2e0 08 3b 08 3b 08 3b 0a 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   ┆ ; ; ;       i i i in n n nt t t┆
0x2e0…300 08 74 20 73 08 73 08 73 08 73 65 08 65 08 65 08 65 74 08 74 08 74 08 74 72 08 72 08 72 08 72 67   ┆ t s s s se e e et t t tr r r rg┆
0x300…320 08 67 08 67 08 67 69 08 69 08 69 08 69 64 08 64 08 64 08 64 28 08 28 08 28 08 28 72 08 72 08 72   ┆ g g gi i i id d d d( ( ( (r r r┆
0x320…340 08 72 67 08 67 08 67 08 67 69 08 69 08 69 08 69 64 08 64 08 64 08 64 29 08 29 08 29 08 29 0a 20   ┆ rg g g gi i i id d d d) ) ) )  ┆
0x340…360 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 20 72 08 72 08 72 08   ┆    i i i in n n nt t t t r r r ┆
0x360…380 72 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 44   ┆rg g g gi i i id d d d; ; ; ;  D┆
0x380…3a0 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 43 52 08 52 08 52   ┆ D D DE E E ES S S SC C C CR R R┆
0x3a0…3c0 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 08 49 08 49 4f 08   ┆ RI I I IP P P PT T T TI I I IO ┆
0x3c0…3e0 4f 08 4f 08 4f 4e 08 4e 08 4e 08 4e 0a 20 20 20 20 20 54 68 65 20 66 75 6e 63 74 69 6f 6e 20 5f   ┆O O ON N N N      The function _┆
0x3e0…400 08 73 5f 08 65 5f 08 74 5f 08 67 5f 08 69 5f 08 64 20 69 73 20 75 73 65 64 20 74 6f 20 73 65 74   ┆ s_ e_ t_ g_ i_ d is used to set┆
0x400…420 20 74 68 65 20 72 65 61 6c 2d 67 72 6f 75 70 2d 49 44 2c 0a 20 20 20 20 20 65 66 66 65 63 74 69   ┆ the real-group-ID,      effecti┆
0x420…440 76 65 2d 67 72 6f 75 70 2d 49 44 20 61 6e 64 20 73 61 76 65 64 20 73 65 74 2d 67 72 6f 75 70 2d   ┆ve-group-ID and saved set-group-┆
0x440…460 49 44 20 74 6f 20 5f 08 67 5f 08 69 5f 08 64 2e 0a 0a 20 20 20 20 20 49 66 20 74 68 65 20 70 72   ┆ID to _ g_ i_ d.       If the pr┆
0x460…480 6f 63 65 73 73 20 69 73 20 6e 6f 74 20 73 75 70 65 72 2d 75 73 65 72 2c 20 62 75 74 20 5f 08 67   ┆ocess is not super-user, but _ g┆
0x480…4a0 5f 08 69 5f 08 64 20 69 73 20 65 71 75 61 6c 20 74 6f 20 74 68 65 0a 20 20 20 20 20 72 65 61 6c   ┆_ i_ d is equal to the      real┆
0x4a0…4c0 20 67 72 6f 75 70 20 49 44 20 6f 72 20 74 68 65 20 73 61 76 65 64 20 73 65 74 2d 67 72 6f 75 70   ┆ group ID or the saved set-group┆
0x4c0…4e0 2d 49 44 2c 20 5f 08 73 5f 08 65 5f 08 74 5f 08 67 5f 08 69 5f 08 64 28 29 20 73 65 74 73 20 74   ┆-ID, _ s_ e_ t_ g_ i_ d() sets t┆
0x4e0…500 68 65 0a 20 20 20 20 20 65 66 66 65 74 69 76 65 20 67 72 6f 75 70 20 49 44 20 74 6f 20 5f 08 67   ┆he      effetive group ID to _ g┆
0x500…520 5f 08 69 5f 08 64 3b 20 74 68 65 20 72 65 61 6c 20 67 72 6f 75 70 20 49 44 20 61 6e 64 20 73 61   ┆_ i_ d; the real group ID and sa┆
0x520…540 76 65 64 20 73 65 74 2d 0a 20 20 20 20 20 67 72 6f 75 70 2d 49 44 20 72 65 6d 61 69 6e 20 75 6e   ┆ved set-      group-ID remain un┆
0x540…560 63 68 61 6e 67 65 64 2e 0a 0a 20 20 20 20 20 5f 08 73 5f 08 65 5f 08 74 5f 08 65 5f 08 67 5f 08   ┆changed.       _ s_ e_ t_ e_ g_ ┆
0x560…580 69 5f 08 64 20 61 6e 64 20 5f 08 73 5f 08 65 5f 08 74 5f 08 72 5f 08 67 5f 08 69 5f 08 64 20 73   ┆i_ d and _ s_ e_ t_ r_ g_ i_ d s┆
0x580…5a0 65 74 20 74 68 65 20 65 66 66 65 63 74 69 76 65 20 61 6e 64 20 74 68 65 20 72 65 61 6c 20 67 72   ┆et the effective and the real gr┆
0x5a0…5c0 6f 75 70 20 49 44 2c 0a 20 20 20 20 20 72 65 73 70 65 63 74 69 76 65 6c 79 2e 0a 0a 45 08 45 08   ┆oup ID,      respectively.  E E ┆
0x5c0…5e0 45 08 45 52 08 52 08 52 08 52 52 08 52 08 52 08 52 4f 08 4f 08 4f 08 4f 52 08 52 08 52 08 52 53   ┆E ER R R RR R R RO O O OR R R RS┆
0x5e0…600 08 53 08 53 08 53 0a 20 20 20 20 20 5b 45 50 45 52 4d 5d 20 20 20 20 20 20 20 20 54 68 65 20 70   ┆ S S S      [EPERM]        The p┆
0x600…620 72 6f 63 65 73 73 20 69 73 20 6e 6f 74 20 73 75 70 65 72 2d 75 73 65 72 20 61 6e 64 20 5f 08 67   ┆rocess is not super-user and _ g┆
0x620…640 5f 08 69 5f 08 64 20 64 6f 65 73 0a 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20   ┆_ i_ d does                     ┆
0x640…660 6e 6f 74 20 6d 61 74 63 68 20 74 68 65 20 72 65 61 6c 20 67 72 6f 75 70 20 49 44 20 6f 72 20 73   ┆not match the real group ID or s┆
0x660…680 61 76 65 64 20 73 65 74 2d 0a 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 67 72   ┆aved set-                     gr┆
0x680…6a0 6f 75 70 2d 49 44 2e 0a 0a 20 20 20 20 20 5b 45 49 4e 56 41 4c 5d 20 20 20 20 20 20 20 54 68 65   ┆oup-ID.       [EINVAL]       The┆
0x6a0…6c0 20 76 61 6c 75 65 20 6f 66 20 5f 08 67 5f 08 69 5f 08 64 20 69 73 20 69 6e 76 61 6c 69 64 2e 0a   ┆ value of _ g_ i_ d is invalid. ┆
0x6c0…6e0 0a 52 08 52 08 52 08 52 45 08 45 08 45 08 45 54 08 54 08 54 08 54 55 08 55 08 55 08 55 52 08 52   ┆ R R R RE E E ET T T TU U U UR R┆
0x6e0…700 08 52 08 52 4e 08 4e 08 4e 08 4e 20 56 08 56 08 56 08 56 41 08 41 08 41 08 41 4c 08 4c 08 4c 08   ┆ R RN N N N V V V VA A A AL L L ┆
0x700…720 4c 55 08 55 08 55 08 55 45 08 45 08 45 08 45 0a 20 20 20 20 20 55 70 6f 6e 20 73 75 63 63 65 73   ┆LU U U UE E E E      Upon succes┆
0x720…740 73 66 75 6c 20 63 6f 6d 70 6c 65 74 69 6f 6e 2c 20 61 20 76 61 6c 75 65 20 6f 66 20 30 20 69 73   ┆sful completion, a value of 0 is┆
0x740…760 20 72 65 74 75 72 6e 65 64 2e 20 20 4f 74 68 2d 0a 20 20 20 20 20 65 72 77 69 73 65 2c 20 61 20   ┆ returned.  Oth-      erwise, a ┆
0x760…780 76 61 6c 75 65 20 6f 66 20 2d 31 20 69 73 20 72 65 74 75 72 6e 65 64 20 61 6e 64 20 5f 08 65 5f   ┆value of -1 is returned and _ e_┆
0x780…7a0 08 72 5f 08 72 5f 08 6e 5f 08 6f 20 69 73 20 73 65 74 20 74 6f 20 69 6e 64 69 2d 0a 20 20 20 20   ┆ r_ r_ n_ o is set to indi-     ┆
0x7a0…7c0 20 63 61 74 65 20 74 68 65 20 65 72 72 6f 72 2e 0a 0a 53 08 53 08 53 08 53 45 08 45 08 45 08 45   ┆ cate the error.  S S S SE E E E┆
0x7c0…7e0 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┆
0x7e0…800 08 4f 08 4f 0a 20 20 20 20 20 53 79 73 74 65 6d 20 43 61 6c 6c 73 20 28 32 29 3a 20 20 65 78 65   ┆ O O      System Calls (2):  exe┆
0x800…820 63 2c 20 67 65 74 67 69 64 2c 20 73 65 74 75 69 64 0a 0a 4e 08 4e 08 4e 08 4e 4f 08 4f 08 4f 08   ┆c, getgid, setuid  N N N NO O O ┆
0x820…840 4f 54 08 54 08 54 08 54 45 08 45 08 45 08 45 53 08 53 08 53 08 53 0a 20 20 20 20 20 5f 08 73 5f   ┆OT T T TE E E ES S S S      _ s_┆
0x840…860 08 65 5f 08 74 5f 08 65 5f 08 67 5f 08 69 5f 08 64 20 61 6e 64 20 5f 08 73 5f 08 65 5f 08 74 5f   ┆ e_ t_ e_ g_ i_ d and _ s_ e_ t_┆
0x860…880 08 72 5f 08 67 5f 08 69 5f 08 64 20 61 72 65 20 42 53 44 20 66 75 6e 63 74 69 6f 6e 73 20 74 68   ┆ r_ g_ i_ d are BSD functions th┆
0x880…8a0 61 74 20 61 72 65 20 6e 6f 74 20 70 61 72 74 20 6f 66 0a 20 20 20 20 20 58 2f 4f 70 65 6e 2e 20   ┆at are not part of      X/Open. ┆
0x8a0…8c0 20 54 68 65 79 20 73 68 6f 75 6c 64 20 6e 6f 74 20 62 65 20 75 73 65 64 20 69 6e 20 70 72 6f 67   ┆ They should not be used in prog┆
0x8c0…8e0 72 61 6d 73 20 74 68 61 74 20 73 68 6f 75 6c 64 20 62 65 0a 20 20 20 20 20 70 6f 72 74 61 62 6c   ┆rams that should be      portabl┆
0x8e0…900 65 20 61 63 72 6f 73 73 20 58 2f 4f 70 65 6e 20 70 6c 61 74 66 6f 72 6d 73 2e 0a 0a 44 65 63 65   ┆e across X/Open platforms.  Dece┆
0x900…920 6d 62 65 72 20 31 39 39 30 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20   ┆mber 1990                       ┆
0x920…940 20 20 20 20 54 58 20 50 72 6f 67 72 61 6d 6d 65 72 27 73 20 52 65 66 65 72 65 6e 63 65 0a 0a 0a   ┆    TX Programmer's Reference   ┆
0x940…949 0a 0a 0a 0a 0a 0a 0a 0a 0a                                                                        ┆         ┆