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: c

⟦4c584fccc⟧

    Length: 5965 (0x174d)
    Names: »chmod.2«

Derivation

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

Default Hex Dump

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 20 20 53 79 73 74 65 6d 20 43 61 6c 6c   ┆ u_ a_ l             System Call┆
0x0040…0060 73 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 63 68 6d 6f 64 28 32 29 0a 0a 0a 0a   ┆s                   chmod(2)    ┆
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 63 68 6d 6f 64 2c 20 66 63 68 6d 6f 64 20 2d 20 63 68 61 6e 67 65 20 6d 6f 64 65 20 6f 66   ┆  chmod, fchmod - change mode of┆
0x00a0…00c0 20 66 69 6c 65 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   ┆ file  S S S SY Y Y YN N N NT T ┆
0x00c0…00e0 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 ┆
0x00e0…0100 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 ┆
0x0100…0120 75 64 08 64 08 64 08 64 65 08 65 08 65 08 65 20 3c 08 3c 08 3c 08 3c 73 08 73 08 73 08 73 79 08   ┆ud d d de e e e < < < <s s s sy ┆
0x0120…0140 79 08 79 08 79 73 08 73 08 73 08 73 2f 08 2f 08 2f 08 2f 74 08 74 08 74 08 74 79 08 79 08 79 08   ┆y y ys s s s/ / / /t t t ty y y ┆
0x0140…0160 79 70 08 70 08 70 08 70 65 08 65 08 65 08 65 73 08 73 08 73 08 73 2e 08 2e 08 2e 08 2e 68 08 68   ┆yp p p pe e e es s s s. . . .h h┆
0x0160…0180 08 68 08 68 3e 08 3e 08 3e 08 3e 0a 20 20 20 20 20 23 08 23 08 23 08 23 69 08 69 08 69 08 69 6e   ┆ h h> > > >      # # # #i i i in┆
0x0180…01a0 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 75 64 08 64 08 64   ┆ n n nc c c cl l l lu u u ud d d┆
0x01a0…01c0 08 64 65 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   ┆ de e e e < < < <s s s sy y y ys┆
0x01c0…01e0 08 73 08 73 08 73 2f 08 2f 08 2f 08 2f 73 08 73 08 73 08 73 74 08 74 08 74 08 74 61 08 61 08 61   ┆ s s s/ / / /s s s st t t ta a a┆
0x01e0…0200 08 61 74 08 74 08 74 08 74 2e 08 2e 08 2e 08 2e 68 08 68 08 68 08 68 3e 08 3e 08 3e 08 3e 0a 0a   ┆ at t t t. . . .h h h h> > > >  ┆
0x0200…0220 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 63 08 63 08 63   ┆     i i i in n n nt t t t c c c┆
0x0220…0240 08 63 68 08 68 08 68 08 68 6d 08 6d 08 6d 08 6d 6f 08 6f 08 6f 08 6f 64 08 64 08 64 08 64 28 08   ┆ ch h h hm m m mo o o od d d d( ┆
0x0240…0260 28 08 28 08 28 70 08 70 08 70 08 70 61 08 61 08 61 08 61 74 08 74 08 74 08 74 68 08 68 08 68 08   ┆( ( (p p p pa a a at t t th h h ┆
0x0260…0280 68 2c 08 2c 08 2c 08 2c 20 6d 08 6d 08 6d 08 6d 6f 08 6f 08 6f 08 6f 64 08 64 08 64 08 64 65 08   ┆h, , , , m m m mo o o od d d de ┆
0x0280…02a0 65 08 65 08 65 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   ┆e e e) ) ) )      c c c ch h h h┆
0x02a0…02c0 61 08 61 08 61 08 61 72 08 72 08 72 08 72 20 2a 08 2a 08 2a 08 2a 70 08 70 08 70 08 70 61 08 61   ┆a a a ar r r r * * * *p p p pa a┆
0x02c0…02e0 08 61 08 61 74 08 74 08 74 08 74 68 08 68 08 68 08 68 3b 08 3b 08 3b 08 3b 0a 20 20 20 20 20 69   ┆ a at t t th h h h; ; ; ;      i┆
0x02e0…0300 08 69 08 69 08 69 6e 08 6e 08 6e 08 6e 74 08 74 08 74 08 74 20 6d 08 6d 08 6d 08 6d 6f 08 6f 08   ┆ i i in n n nt t t t m m m mo o ┆
0x0300…0320 6f 08 6f 64 08 64 08 64 08 64 65 08 65 08 65 08 65 3b 08 3b 08 3b 08 3b 0a 0a 20 20 20 20 20 69   ┆o od d d de e e e; ; ; ;       i┆
0x0320…0340 08 69 08 69 08 69 6e 08 6e 08 6e 08 6e 74 08 74 08 74 08 74 20 66 08 66 08 66 08 66 63 08 63 08   ┆ i i in n n nt t t t f f f fc c ┆
0x0340…0360 63 08 63 68 08 68 08 68 08 68 6d 08 6d 08 6d 08 6d 6f 08 6f 08 6f 08 6f 64 08 64 08 64 08 64 28   ┆c ch h h hm m m mo o o od d d d(┆
0x0360…0380 08 28 08 28 08 28 66 08 66 08 66 08 66 64 08 64 08 64 08 64 2c 08 2c 08 2c 08 2c 20 6d 08 6d 08   ┆ ( ( (f f f fd d d d, , , , m m ┆
0x0380…03a0 6d 08 6d 6f 08 6f 08 6f 08 6f 64 08 64 08 64 08 64 65 08 65 08 65 08 65 29 08 29 08 29 08 29 0a   ┆m mo o o od d d de e e e) ) ) ) ┆
0x03a0…03c0 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 66 08 66 08 66   ┆     i i i in n n nt t t t f f f┆
0x03c0…03e0 08 66 64 08 64 08 64 08 64 2c 08 2c 08 2c 08 2c 20 6d 08 6d 08 6d 08 6d 6f 08 6f 08 6f 08 6f 64   ┆ fd d d d, , , , m m m mo o o od┆
0x03e0…0400 08 64 08 64 08 64 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   ┆ d d de e e e; ; ; ;  D D D DE E┆
0x0400…0420 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┆
0x0420…0440 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 ┆
0x0440…0460 4e 08 4e 0a 20 20 20 20 20 54 68 65 20 66 75 6e 63 74 69 6f 6e 20 5f 08 63 5f 08 68 5f 08 6d 5f   ┆N N      The function _ c_ h_ m_┆
0x0460…0480 08 6f 5f 08 64 20 73 65 74 73 20 74 68 65 20 61 63 63 65 73 73 20 70 65 72 6d 69 73 73 69 6f 6e   ┆ o_ d sets the access permission┆
0x0480…04a0 20 70 6f 72 74 69 6f 6e 20 6f 66 20 74 68 65 0a 20 20 20 20 20 6e 61 6d 65 64 20 66 69 6c 65 27   ┆ portion of the      named file'┆
0x04a0…04c0 73 20 6d 6f 64 65 20 61 63 63 6f 72 64 69 6e 67 20 74 6f 20 74 68 65 20 62 69 74 2d 70 61 74 74   ┆s mode according to the bit-patt┆
0x04c0…04e0 65 72 6e 20 63 6f 6e 74 61 69 6e 65 64 20 69 6e 0a 20 20 20 20 20 74 68 65 20 61 72 67 75 6d 65   ┆ern contained in      the argume┆
0x04e0…0500 6e 74 20 5f 08 6d 5f 08 6f 5f 08 64 5f 08 65 2e 20 20 54 68 65 20 61 72 67 75 6d 65 6e 74 20 5f   ┆nt _ m_ o_ d_ e.  The argument _┆
0x0500…0520 08 70 5f 08 61 5f 08 74 5f 08 68 20 70 6f 69 6e 74 73 20 74 6f 20 61 20 70 61 74 68 2d 6e 61 6d   ┆ p_ a_ t_ h points to a path-nam┆
0x0520…0540 65 0a 20 20 20 20 20 6e 61 6d 69 6e 67 20 61 20 66 69 6c 65 2e 0a 0a 20 20 20 20 20 5f 08 66 5f   ┆e      naming a file.       _ f_┆
0x0540…0560 08 63 5f 08 68 5f 08 6d 5f 08 6f 5f 08 64 20 64 6f 65 73 20 74 68 65 20 73 61 6d 65 20 66 6f 72   ┆ c_ h_ m_ o_ d does the same for┆
0x0560…0580 20 74 68 65 20 66 69 6c 65 20 72 65 66 65 72 65 6e 63 65 64 20 62 79 20 5f 08 66 5f 08 64 2e 0a   ┆ the file referenced by _ f_ d. ┆
0x0580…05a0 0a 20 20 20 20 20 53 79 6d 62 6f 6c 69 63 20 63 6f 6e 73 74 61 6e 74 73 20 64 65 66 69 6e 69 6e   ┆      Symbolic constants definin┆
0x05a0…05c0 67 20 74 68 65 20 61 63 63 65 73 73 20 70 65 72 6d 69 73 73 69 6f 6e 20 62 69 74 73 20 61 72 65   ┆g the access permission bits are┆
0x05c0…05e0 0a 20 20 20 20 20 69 6e 20 74 68 65 20 3c 08 3c 08 3c 08 3c 73 08 73 08 73 08 73 79 08 79 08 79   ┆      in the < < < <s s s sy y y┆
0x05e0…0600 08 79 73 08 73 08 73 08 73 2f 08 2f 08 2f 08 2f 73 08 73 08 73 08 73 74 08 74 08 74 08 74 61 08   ┆ ys s s s/ / / /s s s st t t ta ┆
0x0600…0620 61 08 61 08 61 74 08 74 08 74 08 74 2e 08 2e 08 2e 08 2e 68 08 68 08 68 08 68 3e 08 3e 08 3e 08   ┆a a at t t t. . . .h h h h> > > ┆
0x0620…0640 3e 20 68 65 61 64 65 72 20 66 69 6c 65 20 61 6e 64 20 73 68 6f 75 6c 64 20 62 65 20 75 73 65 64   ┆> header file and should be used┆
0x0640…0660 20 74 6f 20 63 6f 6e 2d 0a 20 20 20 20 20 73 74 72 75 63 74 20 74 68 65 20 61 72 67 75 6d 65 6e   ┆ to con-      struct the argumen┆
0x0660…0680 74 20 5f 08 6d 5f 08 6f 5f 08 64 5f 08 65 2e 20 20 54 68 65 20 76 61 6c 75 65 20 6f 66 20 74 68   ┆t _ m_ o_ d_ e.  The value of th┆
0x0680…06a0 65 20 61 72 67 75 6d 65 6e 74 20 5f 08 6d 5f 08 6f 5f 08 64 5f 08 65 0a 20 20 20 20 20 73 68 6f   ┆e argument _ m_ o_ d_ e      sho┆
0x06a0…06c0 75 6c 64 20 62 65 20 74 68 65 20 6c 6f 67 69 63 61 6c 20 4f 52 20 6f 66 20 74 68 65 20 76 61 6c   ┆uld be the logical OR of the val┆
0x06c0…06e0 75 65 73 20 6f 66 20 74 68 65 20 64 65 73 69 72 65 64 20 70 65 72 2d 0a 20 20 20 20 20 6d 69 73   ┆ues of the desired per-      mis┆
0x06e0…0700 73 69 6f 6e 73 3a 0a 0a 20 20 20 20 20 5f 08 4e 5f 08 61 5f 08 6d 5f 08 65 20 20 20 20 20 20 5f   ┆sions:       _ N_ a_ m_ e      _┆
0x0700…0720 08 44 5f 08 65 5f 08 73 5f 08 63 5f 08 72 5f 08 69 5f 08 70 5f 08 74 5f 08 69 5f 08 6f 5f 08 6e   ┆ D_ e_ s_ c_ r_ i_ p_ t_ i_ o_ n┆
0x0720…0740 0a 20 20 20 20 20 53 08 53 08 53 08 53 5f 08 5f 08 5f 08 5f 49 08 49 08 49 08 49 53 08 53 08 53   ┆      S S S S_ _ _ _I I I IS S S┆
0x0740…0760 08 53 55 08 55 08 55 08 55 49 08 49 08 49 08 49 44 08 44 08 44 08 44 20 20 20 20 20 20 20 20 53   ┆ SU U U UI I I ID D D D        S┆
0x0760…0780 65 74 20 75 73 65 72 20 49 44 20 6f 6e 20 65 78 65 63 75 74 69 6f 6e 2e 0a 20 20 20 20 20 53 08   ┆et user ID on execution.      S ┆
0x0780…07a0 53 08 53 08 53 5f 08 5f 08 5f 08 5f 49 08 49 08 49 08 49 53 08 53 08 53 08 53 47 08 47 08 47 08   ┆S S S_ _ _ _I I I IS S S SG G G ┆
0x07a0…07c0 47 49 08 49 08 49 08 49 44 08 44 08 44 08 44 20 20 20 20 20 20 20 20 53 65 74 20 67 72 6f 75 70   ┆GI I I ID D D D        Set group┆
0x07c0…07e0 20 49 44 20 6f 6e 20 65 78 65 63 75 74 69 6f 6e 2e 0a 20 20 20 20 20 53 08 53 08 53 08 53 5f 08   ┆ ID on execution.      S S S S_ ┆
0x07e0…0800 5f 08 5f 08 5f 49 08 49 08 49 08 49 53 08 53 08 53 08 53 56 08 56 08 56 08 56 54 08 54 08 54 08   ┆_ _ _I I I IS S S SV V V VT T T ┆
0x0800…0820 54 58 08 58 08 58 08 58 20 20 20 20 20 20 20 20 52 65 73 65 72 76 65 64 2e 0a 20 20 20 20 20 53   ┆TX X X X        Reserved.      S┆
0x0820…0840 08 53 08 53 08 53 5f 08 5f 08 5f 08 5f 49 08 49 08 49 08 49 52 08 52 08 52 08 52 55 08 55 08 55   ┆ S S S_ _ _ _I I I IR R R RU U U┆
0x0840…0860 08 55 53 08 53 08 53 08 53 52 08 52 08 52 08 52 20 20 20 52 65 61 64 20 62 79 20 6f 77 6e 65 72   ┆ US S S SR R R R   Read by owner┆
0x0860…0880 2e 0a 20 20 20 20 20 53 08 53 08 53 08 53 5f 08 5f 08 5f 08 5f 49 08 49 08 49 08 49 57 08 57 08   ┆.      S S S S_ _ _ _I I I IW W ┆
0x0880…08a0 57 08 57 55 08 55 08 55 08 55 53 08 53 08 53 08 53 52 08 52 08 52 08 52 20 20 20 57 72 69 74 65   ┆W WU U U US S S SR R R R   Write┆
0x08a0…08c0 20 62 79 20 6f 77 6e 65 72 2e 0a 20 20 20 20 20 53 08 53 08 53 08 53 5f 08 5f 08 5f 08 5f 49 08   ┆ by owner.      S S S S_ _ _ _I ┆
0x08c0…08e0 49 08 49 08 49 58 08 58 08 58 08 58 55 08 55 08 55 08 55 53 08 53 08 53 08 53 52 08 52 08 52 08   ┆I I IX X X XU U U US S S SR R R ┆
0x08e0…0900 52 20 20 20 45 78 65 63 75 74 65 20 28 73 65 61 72 63 68 29 20 62 79 20 6f 77 6e 65 72 2e 0a 20   ┆R   Execute (search) by owner.  ┆
0x0900…0920 20 20 20 20 53 08 53 08 53 08 53 5f 08 5f 08 5f 08 5f 49 08 49 08 49 08 49 52 08 52 08 52 08 52   ┆    S S S S_ _ _ _I I I IR R R R┆
0x0920…0940 47 08 47 08 47 08 47 52 08 52 08 52 08 52 50 08 50 08 50 08 50 20 20 20 52 65 61 64 20 62 79 20   ┆G G G GR R R RP P P P   Read by ┆
0x0940…0960 67 72 6f 75 70 2e 0a 20 20 20 20 20 53 08 53 08 53 08 53 5f 08 5f 08 5f 08 5f 49 08 49 08 49 08   ┆group.      S S S S_ _ _ _I I I ┆
0x0960…0980 49 57 08 57 08 57 08 57 47 08 47 08 47 08 47 52 08 52 08 52 08 52 50 08 50 08 50 08 50 20 20 20   ┆IW W W WG G G GR R R RP P P P   ┆
0x0980…09a0 57 72 69 74 65 20 62 79 20 67 72 6f 75 70 2e 0a 20 20 20 20 20 53 08 53 08 53 08 53 5f 08 5f 08   ┆Write by group.      S S S S_ _ ┆
0x09a0…09c0 5f 08 5f 49 08 49 08 49 08 49 58 08 58 08 58 08 58 47 08 47 08 47 08 47 52 08 52 08 52 08 52 50   ┆_ _I I I IX X X XG G G GR R R RP┆
0x09c0…09e0 08 50 08 50 08 50 20 20 20 45 78 65 63 75 74 65 20 28 73 65 61 72 63 68 29 20 62 79 20 67 72 6f   ┆ P P P   Execute (search) by gro┆
0x09e0…0a00 75 70 2e 0a 20 20 20 20 20 53 08 53 08 53 08 53 5f 08 5f 08 5f 08 5f 49 08 49 08 49 08 49 52 08   ┆up.      S S S S_ _ _ _I I I IR ┆
0x0a00…0a20 52 08 52 08 52 4f 08 4f 08 4f 08 4f 54 08 54 08 54 08 54 48 08 48 08 48 08 48 20 20 20 52 65 61   ┆R R RO O O OT T T TH H H H   Rea┆
0x0a20…0a40 64 20 62 79 20 6f 74 68 65 72 73 20 28 69 2e 65 2e 2c 20 61 6e 79 6f 6e 65 20 65 6c 73 65 29 2e   ┆d by others (i.e., anyone else).┆
0x0a40…0a60 0a 20 20 20 20 20 53 08 53 08 53 08 53 5f 08 5f 08 5f 08 5f 49 08 49 08 49 08 49 57 08 57 08 57   ┆      S S S S_ _ _ _I I I IW W W┆
0x0a60…0a80 08 57 4f 08 4f 08 4f 08 4f 54 08 54 08 54 08 54 48 08 48 08 48 08 48 20 20 20 57 72 69 74 65 20   ┆ WO O O OT T T TH H H H   Write ┆
0x0a80…0aa0 62 79 20 6f 74 68 65 72 73 2e 0a 20 20 20 20 20 53 08 53 08 53 08 53 5f 08 5f 08 5f 08 5f 49 08   ┆by others.      S S S S_ _ _ _I ┆
0x0aa0…0ac0 49 08 49 08 49 58 08 58 08 58 08 58 4f 08 4f 08 4f 08 4f 54 08 54 08 54 08 54 48 08 48 08 48 08   ┆I I IX X X XO O O OT T T TH H H ┆
0x0ac0…0ae0 48 20 20 20 45 78 65 63 75 74 65 20 28 73 65 61 72 63 68 29 20 62 79 20 6f 74 68 65 72 73 2e 0a   ┆H   Execute (search) by others. ┆
0x0ae0…0b00 20 20 20 20 20 53 08 53 08 53 08 53 5f 08 5f 08 5f 08 5f 45 08 45 08 45 08 45 4e 08 4e 08 4e 08   ┆     S S S S_ _ _ _E E E EN N N ┆
0x0b00…0b20 4e 46 08 46 08 46 08 46 4d 08 4d 08 4d 08 4d 54 08 54 08 54 08 54 20 20 20 52 65 63 6f 72 64 20   ┆NF F F FM M M MT T T T   Record ┆
0x0b20…0b40 6c 6f 63 6b 69 6e 67 20 65 6e 66 6f 72 63 65 64 2e 0a 0a 20 20 20 20 20 54 68 65 20 65 66 66 65   ┆locking enforced.       The effe┆
0x0b40…0b60 63 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 20 6d 75 73   ┆ctive user ID of the process mus┆
0x0b60…0b80 74 20 6d 61 74 63 68 20 74 68 65 20 6f 77 6e 65 72 20 6f 66 0a 20 20 20 20 20 74 68 65 20 66 69   ┆t match the owner of      the fi┆
0x0b80…0ba0 6c 65 20 6f 72 20 62 65 20 73 75 70 65 72 20 75 73 65 72 20 74 6f 20 63 68 61 6e 67 65 20 74 68   ┆le or be super user to change th┆
0x0ba0…0bc0 65 20 6d 6f 64 65 20 6f 66 20 61 20 66 69 6c 65 2e 0a 0a 20 20 20 20 20 49 66 20 74 68 65 20 63   ┆e mode of a file.       If the c┆
0x0bc0…0be0 61 6c 6c 69 6e 67 20 70 72 6f 63 65 73 73 20 64 6f 65 73 20 6e 6f 74 20 68 61 76 65 20 61 70 70   ┆alling process does not have app┆
0x0be0…0c00 72 6f 70 72 69 61 74 65 20 70 72 69 76 69 6c 65 67 65 73 2c 0a 20 20 20 20 20 61 6e 64 20 69 66   ┆ropriate privileges,      and if┆
0x0c00…0c20 20 74 68 65 20 67 72 6f 75 70 20 49 44 20 6f 66 20 74 68 65 20 66 69 6c 65 20 64 6f 65 73 20 6e   ┆ the group ID of the file does n┆
0x0c20…0c40 6f 74 20 6d 61 74 63 68 20 74 68 65 20 65 66 66 65 63 74 69 76 65 0a 20 20 20 20 20 67 72 6f 75   ┆ot match the effective      grou┆
0x0c40…0c60 70 20 49 44 20 6f 72 20 6f 6e 65 20 6f 66 20 74 68 65 20 73 75 70 70 6c 65 6d 65 6e 74 61 72 79   ┆p ID or one of the supplementary┆
0x0c60…0c80 20 67 72 6f 75 70 20 49 44 73 20 61 6e 64 20 69 66 20 74 68 65 0a 20 20 20 20 20 66 69 6c 65 20   ┆ group IDs and if the      file ┆
0x0c80…0ca0 69 73 20 61 20 72 65 67 75 6c 61 72 20 66 69 6c 65 2c 20 62 69 74 20 53 5f 49 53 47 49 44 20 28   ┆is a regular file, bit S_ISGID (┆
0x0ca0…0cc0 73 65 74 20 67 72 6f 75 70 20 49 44 20 6f 6e 20 65 78 65 63 75 2d 0a 20 20 20 20 20 74 69 6f 6e   ┆set group ID on execu-      tion┆
0x0cc0…0ce0 29 20 69 6e 20 74 68 65 20 66 69 6c 65 27 73 20 6d 6f 64 65 20 77 69 6c 6c 20 62 65 20 63 6c 65   ┆) in the file's mode will be cle┆
0x0ce0…0d00 61 72 65 64 20 75 70 6f 6e 20 73 75 63 63 65 73 66 75 6c 0a 20 20 20 20 20 72 65 74 75 72 6e 20   ┆ared upon succesful      return ┆
0x0d00…0d20 66 72 6f 6d 20 5f 08 63 5f 08 68 5f 08 6d 5f 08 6f 5f 08 64 28 29 2e 0a 0a 20 20 20 20 20 46 6f   ┆from _ c_ h_ m_ o_ d().       Fo┆
0x0d20…0d40 72 20 6f 72 64 69 6e 61 72 79 20 66 69 6c 65 73 2c 20 69 66 20 74 68 65 20 5f 08 6d 5f 08 6f 5f   ┆r ordinary files, if the _ m_ o_┆
0x0d40…0d60 08 64 5f 08 65 20 62 69 74 20 53 08 53 08 53 08 53 5f 08 5f 08 5f 08 5f 45 08 45 08 45 08 45 4e   ┆ d_ e bit S S S S_ _ _ _E E E EN┆
0x0d60…0d80 08 4e 08 4e 08 4e 46 08 46 08 46 08 46 4d 08 4d 08 4d 08 4d 54 08 54 08 54 08 54 20 28 72 65 63   ┆ N N NF F F FM M M MT T T T (rec┆
0x0d80…0da0 6f 72 64 20 6c 6f 63 6b 69 6e 67 0a 20 20 20 20 20 65 6e 66 6f 72 63 65 64 29 20 69 73 20 73 65   ┆ord locking      enforced) is se┆
0x0da0…0dc0 74 20 61 6e 64 20 74 68 65 20 6d 6f 64 65 20 62 69 74 20 53 08 53 08 53 08 53 5f 08 5f 08 5f 08   ┆t and the mode bit S S S S_ _ _ ┆
0x0dc0…0de0 5f 49 08 49 08 49 08 49 58 08 58 08 58 08 58 47 08 47 08 47 08 47 52 08 52 08 52 08 52 50 08 50   ┆_I I I IX X X XG G G GR R R RP P┆
0x0de0…0e00 08 50 08 50 20 28 65 78 65 63 75 74 65 20 6f 72 20 73 65 61 72 63 68 0a 20 20 20 20 20 62 79 20   ┆ P P (execute or search      by ┆
0x0e00…0e20 67 72 6f 75 70 29 20 69 73 20 6e 6f 74 20 73 65 74 2c 20 65 6e 66 6f 72 63 65 64 20 72 65 63 6f   ┆group) is not set, enforced reco┆
0x0e20…0e40 72 64 20 6c 6f 63 6b 69 6e 67 20 69 73 20 65 6e 61 62 6c 65 64 2e 0a 0a 52 08 52 08 52 08 52 45   ┆rd locking is enabled.  R R R RE┆
0x0e40…0e60 08 45 08 45 08 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   ┆ E E ET T T TU U U UR R R RN N N┆
0x0e60…0e80 08 4e 20 56 08 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   ┆ N V V V VA A A AL L L LU U U UE┆
0x0e80…0ea0 08 45 08 45 08 45 0a 20 20 20 20 20 49 66 20 73 75 63 63 65 73 73 66 75 6c 2c 20 74 68 65 20 66   ┆ E E E      If successful, the f┆
0x0ea0…0ec0 75 6e 63 74 69 6f 6e 20 5f 08 63 5f 08 68 5f 08 6d 5f 08 6f 5f 08 64 20 77 69 6c 6c 20 72 65 74   ┆unction _ c_ h_ m_ o_ d will ret┆
0x0ec0…0ee0 75 72 6e 20 30 3b 20 6f 74 68 65 72 77 69 73 65 2c 0a 0a 0a 0a 0a 0a 0a 20 20 20 20 20 69 74 20   ┆urn 0; otherwise,            it ┆
0x0ee0…0f00 77 69 6c 6c 20 72 65 74 75 72 6e 20 2d 31 2c 20 74 68 65 20 66 69 6c 65 20 6d 6f 64 65 20 77 69   ┆will return -1, the file mode wi┆
0x0f00…0f20 6c 6c 20 62 65 20 75 6e 63 68 61 67 6e 65 64 20 61 6e 64 20 5f 08 65 5f 08 72 5f 08 72 5f 08 6e   ┆ll be unchagned and _ e_ r_ r_ n┆
0x0f20…0f40 5f 08 6f 0a 20 20 20 20 20 77 69 6c 6c 20 69 6e 64 69 63 61 74 65 20 74 68 65 20 65 72 72 6f 72   ┆_ o      will indicate the error┆
0x0f40…0f60 2e 0a 0a 45 08 45 08 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   ┆.  E E E ER R R RR R R RO O O OR┆
0x0f60…0f80 08 52 08 52 08 52 53 08 53 08 53 08 53 0a 20 20 20 20 20 54 68 65 20 5f 08 63 5f 08 68 5f 08 6d   ┆ R R RS S S S      The _ c_ h_ m┆
0x0f80…0fa0 5f 08 6f 5f 08 64 28 29 20 66 75 6e 63 74 69 6f 6e 20 77 69 6c 6c 20 66 61 69 6c 20 69 66 3a 0a   ┆_ o_ d() function will fail if: ┆
0x0fa0…0fc0 0a 20 20 20 20 20 5b 45 41 43 43 45 53 5d 20 20 20 20 20 20 20 53 65 61 72 63 68 20 70 65 72 6d   ┆      [EACCES]       Search perm┆
0x0fc0…0fe0 69 73 73 69 6f 6e 20 69 73 20 64 65 6e 69 65 64 20 6f 6e 20 61 20 63 6f 6d 70 6f 6e 65 6e 74 20   ┆ission is denied on a component ┆
0x0fe0…1000 6f 66 0a 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 74 68 65 20 70 61 74 68 20   ┆of                     the path ┆
0x1000…1020 70 72 65 66 69 78 2e 0a 0a 20 20 20 20 20 5b 45 4e 41 4d 45 54 4f 4f 4c 4f 4e 47 5d 20 54 68 65   ┆prefix.       [ENAMETOOLONG] The┆
0x1020…1040 20 6c 65 6e 67 74 68 20 6f 66 20 74 68 65 20 5f 08 70 5f 08 61 5f 08 74 5f 08 68 20 61 72 67 75   ┆ length of the _ p_ a_ t_ h argu┆
0x1040…1060 6d 65 6e 74 20 65 78 63 65 65 64 73 0a 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20   ┆ment exceeds                    ┆
0x1060…1080 20 7b 50 41 54 48 5f 4d 41 58 7d 20 6f 72 20 61 20 70 61 74 68 6e 61 6d 65 20 63 6f 6d 70 6f 6e   ┆ {PATH_MAX} or a pathname compon┆
0x1080…10a0 65 6e 74 20 69 73 20 6c 6f 6e 67 65 72 0a 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20   ┆ent is longer                   ┆
0x10a0…10c0 20 20 74 68 61 6e 20 7b 4e 41 4d 45 5f 4d 41 58 7d 2e 0a 0a 20 20 20 20 20 5b 45 4e 4f 54 44 49   ┆  than {NAME_MAX}.       [ENOTDI┆
0x10c0…10e0 52 5d 20 20 20 20 20 20 41 20 63 6f 6d 70 6f 6e 65 6e 74 20 6f 66 20 74 68 65 20 70 61 74 68 20   ┆R]      A component of the path ┆
0x10e0…1100 70 72 65 66 69 78 20 69 73 20 6e 6f 74 20 61 0a 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20   ┆prefix is not a                 ┆
0x1100…1120 20 20 20 20 64 69 72 65 63 74 6f 72 79 2e 0a 0a 20 20 20 20 20 5b 45 4e 4f 45 4e 54 5d 20 20 20   ┆    directory.       [ENOENT]   ┆
0x1120…1140 20 20 20 20 54 68 65 20 6e 61 6d 65 64 20 66 69 6c 65 20 64 6f 65 73 20 6e 6f 74 20 65 78 69 73   ┆    The named file does not exis┆
0x1140…1160 74 20 6f 72 20 5f 08 70 5f 08 61 5f 08 74 5f 08 68 20 70 6f 69 6e 74 73 0a 20 20 20 20 20 20 20   ┆t or _ p_ a_ t_ h points        ┆
0x1160…1180 20 20 20 20 20 20 20 20 20 20 20 20 20 74 6f 20 61 6e 20 65 6d 70 74 79 20 73 74 72 69 6e 67 2e   ┆             to an empty string.┆
0x1180…11a0 0a 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 65 66 66 65 63 74   ┆       [EPERM]        The effect┆
0x11a0…11c0 69 76 65 20 75 73 65 72 20 49 44 20 64 6f 65 73 20 6e 6f 74 20 6d 61 74 63 68 20 74 68 65 0a 20   ┆ive user ID does not match the  ┆
0x11c0…11e0 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 6f 77 6e 65 72 20 6f 66 20 74 68 65 20   ┆                   owner of the ┆
0x11e0…1200 66 69 6c 65 20 61 6e 64 20 74 68 65 20 70 72 6f 63 65 73 73 20 64 6f 65 73 20 6e 6f 74 0a 20 20   ┆file and the process does not   ┆
0x1200…1220 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 68 61 76 65 20 61 70 70 72 6f 70 72 69 61   ┆                  have appropria┆
0x1220…1240 74 65 20 70 72 69 76 69 6c 65 67 65 2e 0a 0a 20 20 20 20 20 5b 45 52 4f 46 53 5d 20 20 20 20 20   ┆te privilege.       [EROFS]     ┆
0x1240…1260 20 20 20 54 68 65 20 6e 61 6d 65 64 20 66 69 6c 65 20 72 65 73 69 64 65 73 20 6f 6e 20 61 20 72   ┆   The named file resides on a r┆
0x1260…1280 65 61 64 2d 6f 6e 6c 79 20 66 69 6c 65 0a 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20   ┆ead-only file                   ┆
0x1280…12a0 20 20 73 79 73 74 65 6d 2e 0a 0a 20 20 20 20 20 5b 45 46 41 55 4c 54 5d 20 20 20 20 20 20 20 5f   ┆  system.       [EFAULT]       _┆
0x12a0…12c0 08 70 5f 08 61 5f 08 74 5f 08 68 20 70 6f 69 6e 74 73 20 6f 75 74 73 69 64 65 20 74 68 65 20 70   ┆ p_ a_ t_ h points outside the p┆
0x12c0…12e0 72 6f 63 65 73 73 27 20 61 6c 6c 6f 63 61 74 65 64 0a 20 20 20 20 20 20 20 20 20 20 20 20 20 20   ┆rocess' allocated               ┆
0x12e0…1300 20 20 20 20 20 20 61 64 64 72 65 73 73 20 73 70 61 63 65 2e 0a 0a 20 20 20 20 20 5b 45 4c 4f 4f   ┆      address space.       [ELOO┆
0x1300…1320 50 5d 20 20 20 20 20 20 20 20 54 6f 6f 20 6d 61 6e 79 20 73 79 6d 62 6f 6c 69 63 20 6c 69 6e 6b   ┆P]        Too many symbolic link┆
0x1320…1340 73 20 77 65 72 65 20 65 6e 63 6f 75 6e 74 65 72 65 64 20 69 6e 0a 20 20 20 20 20 20 20 20 20 20   ┆s were encountered in           ┆
0x1340…1360 20 20 20 20 20 20 20 20 20 20 74 72 61 6e 73 6c 61 74 69 6e 67 20 74 68 65 20 70 61 74 68 6e 61   ┆          translating the pathna┆
0x1360…1380 6d 65 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 20 76 61 6c   ┆me.       [EINVAL]       The val┆
0x1380…13a0 75 65 20 6f 66 20 74 68 65 20 5f 08 6d 5f 08 6f 5f 08 64 5f 08 65 20 61 72 67 75 6d 65 6e 74 20   ┆ue of the _ m_ o_ d_ e argument ┆
0x13a0…13c0 69 73 20 69 6e 76 61 6c 69 64 2e 0a 0a 20 20 20 20 20 54 68 65 20 66 75 6e 63 74 69 6f 6e 20 5f   ┆is invalid.       The function _┆
0x13c0…13e0 08 66 5f 08 63 5f 08 68 5f 08 6d 5f 08 6f 5f 08 64 28 29 20 77 69 6c 6c 20 66 61 69 6c 20 69 66   ┆ f_ c_ h_ m_ o_ d() will fail if┆
0x13e0…1400 3a 0a 0a 20 20 20 20 20 5b 45 42 41 44 46 5d 20 20 20 20 20 20 20 20 54 68 65 20 64 65 73 63 72   ┆:       [EBADF]        The descr┆
0x1400…1420 69 70 74 6f 72 20 69 73 20 6e 6f 74 20 76 61 6c 69 64 2e 0a 0a 20 20 20 20 20 5b 45 49 4e 56 41   ┆iptor is not valid.       [EINVA┆
0x1420…1440 4c 5d 20 20 20 20 20 20 20 5f 08 66 5f 08 64 20 72 65 66 65 72 73 20 74 6f 20 61 20 73 6f 63 6b   ┆L]       _ f_ d refers to a sock┆
0x1440…1460 65 74 2c 20 6e 6f 74 20 61 20 66 69 6c 65 2e 0a 0a 20 20 20 20 20 5b 45 52 4f 46 53 5d 20 20 20   ┆et, not a file.       [EROFS]   ┆
0x1460…1480 20 20 20 20 20 54 68 65 20 66 69 6c 65 20 72 65 73 69 64 65 73 20 6f 6e 20 61 20 72 65 61 64 2d   ┆     The file resides on a read-┆
0x1480…14a0 6f 6e 6c 79 20 66 69 6c 65 20 73 79 73 74 65 6d 2e 0a 0a 41 08 41 08 41 08 41 50 08 50 08 50 08   ┆only file system.  A A A AP P P ┆
0x14a0…14c0 50 50 08 50 08 50 08 50 4c 08 4c 08 4c 08 4c 49 08 49 08 49 08 49 43 08 43 08 43 08 43 41 08 41   ┆PP P P PL L L LI I I IC C C CA A┆
0x14c0…14e0 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 4e 08 4e 08 4e   ┆ A AT T T TI I I IO O O ON N N N┆
0x14e0…1500 20 55 08 55 08 55 08 55 53 08 53 08 53 08 53 41 08 41 08 41 08 41 47 08 47 08 47 08 47 45 08 45   ┆ U U U US S S SA A A AG G G GE E┆
0x1500…1520 08 45 08 45 0a 20 20 20 20 20 49 6e 20 6f 72 64 65 72 20 74 6f 20 65 6e 73 75 72 65 20 74 68 61   ┆ E E      In order to ensure tha┆
0x1520…1540 74 20 53 5f 49 53 55 49 44 20 61 6e 64 20 53 5f 49 53 47 49 44 20 62 69 74 73 20 61 72 65 20 73   ┆t S_ISUID and S_ISGID bits are s┆
0x1540…1560 65 74 2c 20 61 6e 0a 20 20 20 20 20 61 70 70 6c 69 63 61 74 69 6f 6e 20 72 65 71 75 69 72 69 6e   ┆et, an      application requirin┆
0x1560…1580 67 20 74 68 69 73 20 73 68 6f 75 6c 64 20 75 73 65 20 5f 08 73 5f 08 74 5f 08 61 5f 08 74 28 29   ┆g this should use _ s_ t_ a_ t()┆
0x1580…15a0 20 61 66 74 65 72 20 61 20 73 75 63 63 65 73 2d 0a 20 20 20 20 20 66 75 6c 20 5f 08 63 5f 08 68   ┆ after a succes-      ful _ c_ h┆
0x15a0…15c0 5f 08 6d 5f 08 6f 5f 08 64 28 29 20 69 6e 20 6f 72 64 65 72 20 74 6f 20 76 65 72 69 66 79 20 74   ┆_ m_ o_ d() in order to verify t┆
0x15c0…15e0 68 69 73 2e 0a 0a 20 20 20 20 20 41 6e 79 20 66 69 6c 65 20 64 65 73 63 72 69 70 74 6f 72 73 20   ┆his.       Any file descriptors ┆
0x15e0…1600 63 75 72 72 65 6e 74 6c 79 20 6f 70 65 6e 20 62 79 20 61 6e 79 20 70 72 6f 63 65 73 73 20 6f 6e   ┆currently open by any process on┆
0x1600…1620 20 74 68 65 0a 20 20 20 20 20 66 69 6c 65 20 6d 61 79 20 62 65 63 6f 6d 65 20 69 6e 76 61 6c 69   ┆ the      file may become invali┆
0x1620…1640 64 20 69 66 20 74 68 65 20 6d 6f 64 65 20 6f 66 20 74 68 65 20 66 69 6c 65 20 69 73 20 63 68 61   ┆d if the mode of the file is cha┆
0x1640…1660 6e 67 65 64 0a 20 20 20 20 20 74 6f 20 61 20 76 61 6c 75 65 20 77 68 69 63 68 20 77 6f 75 6c 64   ┆nged      to a value which would┆
0x1660…1680 20 64 65 6e 79 20 61 63 63 65 73 73 20 74 6f 20 74 68 61 74 20 70 72 6f 63 65 73 73 2e 0a 0a 53   ┆ deny access to that process.  S┆
0x1680…16a0 08 53 08 53 08 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   ┆ S S SE E E EE E E E A A A AL L ┆
0x16a0…16c0 4c 08 4c 53 08 53 08 53 08 53 4f 08 4f 08 4f 08 4f 0a 20 20 20 20 20 53 79 73 74 65 6d 20 43 61   ┆L LS S S SO O O O      System Ca┆
0x16c0…16e0 6c 6c 73 20 28 32 29 3a 20 20 63 68 6f 77 6e 2c 20 6d 6b 64 69 72 2c 20 6f 70 65 6e 2c 20 73 74   ┆lls (2):  chown, mkdir, open, st┆
0x16e0…1700 61 74 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 20 6d   ┆at      Library Functions (3): m┆
0x1700…1720 6b 66 69 66 6f 0a 0a 44 65 63 65 6d 62 65 72 20 31 39 39 30 20 20 20 20 20 20 20 20 20 20 20 20   ┆kfifo  December 1990            ┆
0x1720…1740 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 6d 65 72 27 73 20 52   ┆               TX Programmer's R┆
0x1740…174d 65 66 65 72 65 6e 63 65 0a 0a 0a 0a 0a                                                            ┆eference     ┆