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

⟦06ca57f39⟧

    Length: 4853 (0x12f5)
    Names: »semget.2«

Derivation

└─⟦50656ff4a⟧ Bits:30010538 TX 3.1 Coldstart
    └─⟦bbf173f5c⟧ »0004« 
        └─⟦this⟧ »./bsd/usr/man/cat2/semget.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 73 65 6d 67 65 74 28 32 29 0a 0a 0a 0a   ┆s                  semget(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 73 65 6d 67 65 74 20 2d 20 67 65 74 20 73 65 74 20 6f 66 20 73 65 6d 61 70 68 6f 72 65 73   ┆  semget - get set of semaphores┆
0x00a0…00c0 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 54 08 54 41 08   ┆  S S S SY Y Y YN N N NT T T TA ┆
0x00c0…00e0 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 69 08 69 08 69   ┆A A AX X X X      # # # #i i i i┆
0x00e0…0100 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 75 64 08 64 08   ┆n n n nc c c cl l l lu u u ud d ┆
0x0100…0120 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 79 08 79 08 79   ┆d de e e e < < < <s s s sy y y y┆
0x0120…0140 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 79 70 08 70 08   ┆s s s s/ / / /t t t ty y y yp p ┆
0x0140…0160 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 08 68 08 68 3e   ┆p pe e e es s s s. . . .h h h h>┆
0x0160…0180 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 08 6e 08 6e 08   ┆ > > >      # # # #i i i in n n ┆
0x0180…01a0 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 08 64 65 08 65   ┆nc c c cl l l lu u u ud d d de e┆
0x01a0…01c0 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 08 73 08 73 08   ┆ e e < < < <s s s sy y y ys s s ┆
0x01c0…01e0 73 2f 08 2f 08 2f 08 2f 69 08 69 08 69 08 69 70 08 70 08 70 08 70 63 08 63 08 63 08 63 2e 08 2e   ┆s/ / / /i i i ip p p pc c c c. .┆
0x01e0…0200 08 2e 08 2e 68 08 68 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   ┆ . .h h h h> > > >      # # # #i┆
0x0200…0220 08 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   ┆ i i in n n nc c c cl l l lu u u┆
0x0220…0240 08 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   ┆ ud d d de e e e < < < <s s s sy┆
0x0240…0260 08 79 08 79 08 79 73 08 73 08 73 08 73 2f 08 2f 08 2f 08 2f 73 08 73 08 73 08 73 65 08 65 08 65   ┆ y y ys s s s/ / / /s s s se e e┆
0x0260…0280 08 65 6d 08 6d 08 6d 08 6d 2e 08 2e 08 2e 08 2e 68 08 68 08 68 08 68 3e 08 3e 08 3e 08 3e 0a 0a   ┆ em m m m. . . .h h h h> > > >  ┆
0x0280…02a0 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┆
0x02a0…02c0 08 73 65 08 65 08 65 08 65 6d 08 6d 08 6d 08 6d 67 08 67 08 67 08 67 65 08 65 08 65 08 65 74 08   ┆ se e e em m m mg g g ge e e et ┆
0x02c0…02e0 74 08 74 08 74 20 28 08 28 08 28 08 28 6b 08 6b 08 6b 08 6b 65 08 65 08 65 08 65 79 08 79 08 79   ┆t t t ( ( ( (k k k ke e e ey y y┆
0x02e0…0300 08 79 2c 08 2c 08 2c 08 2c 20 6e 08 6e 08 6e 08 6e 73 08 73 08 73 08 73 65 08 65 08 65 08 65 6d   ┆ y, , , , n n n ns s s se e e em┆
0x0300…0320 08 6d 08 6d 08 6d 73 08 73 08 73 08 73 2c 08 2c 08 2c 08 2c 20 73 08 73 08 73 08 73 65 08 65 08   ┆ m m ms s s s, , , , s s s se e ┆
0x0320…0340 65 08 65 6d 08 6d 08 6d 08 6d 66 08 66 08 66 08 66 6c 08 6c 08 6c 08 6c 67 08 67 08 67 08 67 29   ┆e em m m mf f f fl l l lg g g g)┆
0x0340…0360 08 29 08 29 08 29 0a 20 20 20 20 20 6b 08 6b 08 6b 08 6b 65 08 65 08 65 08 65 79 08 79 08 79 08   ┆ ) ) )      k k k ke e e ey y y ┆
0x0360…0380 79 5f 08 5f 08 5f 08 5f 74 08 74 08 74 08 74 20 6b 08 6b 08 6b 08 6b 65 08 65 08 65 08 65 79 08   ┆y_ _ _ _t t t t k k k ke e e ey ┆
0x0380…03a0 79 08 79 08 79 3b 08 3b 08 3b 08 3b 0a 20 20 20 20 20 69 08 69 08 69 08 69 6e 08 6e 08 6e 08 6e   ┆y y y; ; ; ;      i i i in n n n┆
0x03a0…03c0 74 08 74 08 74 08 74 20 6e 08 6e 08 6e 08 6e 73 08 73 08 73 08 73 65 08 65 08 65 08 65 6d 08 6d   ┆t t t t n n n ns s s se e e em m┆
0x03c0…03e0 08 6d 08 6d 73 08 73 08 73 08 73 2c 08 2c 08 2c 08 2c 20 73 08 73 08 73 08 73 65 08 65 08 65 08   ┆ m ms s s s, , , , s s s se e e ┆
0x03e0…0400 65 6d 08 6d 08 6d 08 6d 66 08 66 08 66 08 66 6c 08 6c 08 6c 08 6c 67 08 67 08 67 08 67 3b 08 3b   ┆em m m mf f f fl l l lg g g g; ;┆
0x0400…0420 08 3b 08 3b 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   ┆ ; ;  D D D DE E E ES S S SC C C┆
0x0420…0440 08 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   ┆ CR R R RI I I IP P P PT T T TI ┆
0x0440…0460 49 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 73 5f 08 65 5f   ┆I I IO O O ON N N N      _ s_ e_┆
0x0460…0480 08 6d 5f 08 67 5f 08 65 5f 08 74 20 72 65 74 75 72 6e 73 20 74 68 65 20 73 65 6d 61 70 68 6f 72   ┆ m_ g_ e_ t returns the semaphor┆
0x0480…04a0 65 20 69 64 65 6e 74 69 66 69 65 72 20 61 73 73 6f 63 69 61 74 65 64 20 77 69 74 68 20 5f 08 6b   ┆e identifier associated with _ k┆
0x04a0…04c0 5f 08 65 5f 08 79 2e 0a 0a 20 20 20 20 20 41 20 73 65 6d 61 70 68 6f 72 65 20 69 64 65 6e 74 69   ┆_ e_ y.       A semaphore identi┆
0x04c0…04e0 66 69 65 72 20 61 6e 64 20 61 73 73 6f 63 69 61 74 65 64 20 64 61 74 61 20 73 74 72 75 63 74 75   ┆fier and associated data structu┆
0x04e0…0500 72 65 20 61 6e 64 20 73 65 74 0a 20 20 20 20 20 63 6f 6e 74 61 69 6e 69 6e 67 20 5f 08 6e 5f 08   ┆re and set      containing _ n_ ┆
0x0500…0520 73 5f 08 65 5f 08 6d 5f 08 73 20 73 65 6d 61 70 68 6f 72 65 73 20 28 73 65 65 20 5f 08 69 5f 08   ┆s_ e_ m_ s semaphores (see _ i_ ┆
0x0520…0540 6e 5f 08 74 5f 08 72 5f 08 6f 28 32 29 29 20 61 72 65 20 63 72 65 61 74 65 64 20 66 6f 72 0a 20   ┆n_ t_ r_ o(2)) are created for  ┆
0x0540…0560 20 20 20 20 5f 08 6b 5f 08 65 5f 08 79 20 69 66 20 6f 6e 65 20 6f 66 20 74 68 65 20 66 6f 6c 6c   ┆    _ k_ e_ y if one of the foll┆
0x0560…0580 6f 77 69 6e 67 20 61 72 65 20 74 72 75 65 3a 0a 0a 20 20 20 20 20 20 20 20 20 20 5f 08 4b 5f 08   ┆owing are true:            _ K_ ┆
0x0580…05a0 65 5f 08 79 20 69 73 20 65 71 75 61 6c 20 74 6f 20 49 08 49 08 49 08 49 50 08 50 08 50 08 50 43   ┆e_ y is equal to I I I IP P P PC┆
0x05a0…05c0 08 43 08 43 08 43 5f 08 5f 08 5f 08 5f 50 08 50 08 50 08 50 52 08 52 08 52 08 52 49 08 49 08 49   ┆ C C C_ _ _ _P P P PR R R RI I I┆
0x05c0…05e0 08 49 56 08 56 08 56 08 56 41 08 41 08 41 08 41 54 08 54 08 54 08 54 45 08 45 08 45 08 45 2e 0a   ┆ IV V V VA A A AT T T TE E E E. ┆
0x05e0…0600 0a 20 20 20 20 20 20 20 20 20 20 5f 08 4b 5f 08 65 5f 08 79 20 64 6f 65 73 20 6e 6f 74 20 61 6c   ┆           _ K_ e_ y does not al┆
0x0600…0620 72 65 61 64 79 20 68 61 76 65 20 61 20 73 65 6d 61 70 68 6f 72 65 20 69 64 65 6e 74 69 66 69 65   ┆ready have a semaphore identifie┆
0x0620…0640 72 20 61 73 73 6f 2d 0a 20 20 20 20 20 20 20 20 20 20 63 69 61 74 65 64 20 77 69 74 68 20 69 74   ┆r asso-           ciated with it┆
0x0640…0660 2c 20 61 6e 64 20 28 5f 08 73 5f 08 65 5f 08 6d 5f 08 66 5f 08 6c 5f 08 67 20 26 20 49 08 49 08   ┆, and (_ s_ e_ m_ f_ l_ g & I I ┆
0x0660…0680 49 08 49 50 08 50 08 50 08 50 43 08 43 08 43 08 43 5f 08 5f 08 5f 08 5f 43 08 43 08 43 08 43 52   ┆I IP P P PC C C C_ _ _ _C C C CR┆
0x0680…06a0 08 52 08 52 08 52 45 08 45 08 45 08 45 41 08 41 08 41 08 41 54 08 54 08 54 08 54 29 20 69 73 20   ┆ R R RE E E EA A A AT T T T) is ┆
0x06a0…06c0 60 60 74 72 75 65 27 27 2e 0a 0a 20 20 20 20 20 55 70 6f 6e 20 63 72 65 61 74 69 6f 6e 2c 20 74   ┆``true''.       Upon creation, t┆
0x06c0…06e0 68 65 20 64 61 74 61 20 73 74 72 75 63 74 75 72 65 20 61 73 73 6f 63 69 61 74 65 64 20 77 69 74   ┆he data structure associated wit┆
0x06e0…0700 68 20 74 68 65 20 6e 65 77 0a 20 20 20 20 20 73 65 6d 61 70 68 6f 72 65 20 69 64 65 6e 74 69 66   ┆h the new      semaphore identif┆
0x0700…0720 69 65 72 20 69 73 20 69 6e 69 74 69 61 6c 69 7a 65 64 20 61 73 20 66 6f 6c 6c 6f 77 73 3a 0a 0a   ┆ier is initialized as follows:  ┆
0x0720…0740 20 20 20 20 20 20 20 20 20 20 53 08 53 08 53 08 53 65 08 65 08 65 08 65 6d 08 6d 08 6d 08 6d 5f   ┆          S S S Se e e em m m m_┆
0x0740…0760 08 5f 08 5f 08 5f 70 08 70 08 70 08 70 65 08 65 08 65 08 65 72 08 72 08 72 08 72 6d 08 6d 08 6d   ┆ _ _ _p p p pe e e er r r rm m m┆
0x0760…0780 08 6d 2e 08 2e 08 2e 08 2e 63 08 63 08 63 08 63 75 08 75 08 75 08 75 69 08 69 08 69 08 69 64 08   ┆ m. . . .c c c cu u u ui i i id ┆
0x0780…07a0 64 08 64 08 64 2c 20 73 08 73 08 73 08 73 65 08 65 08 65 08 65 6d 08 6d 08 6d 08 6d 5f 08 5f 08   ┆d d d, s s s se e e em m m m_ _ ┆
0x07a0…07c0 5f 08 5f 70 08 70 08 70 08 70 65 08 65 08 65 08 65 72 08 72 08 72 08 72 6d 08 6d 08 6d 08 6d 2e   ┆_ _p p p pe e e er r r rm m m m.┆
0x07c0…07e0 08 2e 08 2e 08 2e 75 08 75 08 75 08 75 69 08 69 08 69 08 69 64 08 64 08 64 08 64 2c 20 73 08 73   ┆ . . .u u u ui i i id d d d, s s┆
0x07e0…0800 08 73 08 73 65 08 65 08 65 08 65 6d 08 6d 08 6d 08 6d 5f 08 5f 08 5f 08 5f 70 08 70 08 70 08 70   ┆ s se e e em m m m_ _ _ _p p p p┆
0x0800…0820 65 08 65 08 65 08 65 72 08 72 08 72 08 72 6d 08 6d 08 6d 08 6d 2e 08 2e 08 2e 08 2e 63 08 63 08   ┆e e e er r r rm m m m. . . .c c ┆
0x0820…0840 63 08 63 67 08 67 08 67 08 67 69 08 69 08 69 08 69 64 08 64 08 64 08 64 2c 20 61 6e 64 0a 20 20   ┆c cg g g gi i i id d d d, and   ┆
0x0840…0860 20 20 20 20 20 20 20 20 73 08 73 08 73 08 73 65 08 65 08 65 08 65 6d 08 6d 08 6d 08 6d 5f 08 5f   ┆        s s s se e e em m m m_ _┆
0x0860…0880 08 5f 08 5f 70 08 70 08 70 08 70 65 08 65 08 65 08 65 72 08 72 08 72 08 72 6d 08 6d 08 6d 08 6d   ┆ _ _p p p pe e e er r r rm m m m┆
0x0880…08a0 2e 08 2e 08 2e 08 2e 67 08 67 08 67 08 67 69 08 69 08 69 08 69 64 08 64 08 64 08 64 20 61 72 65   ┆. . . .g g g gi i i id d d d are┆
0x08a0…08c0 20 73 65 74 20 65 71 75 61 6c 20 74 6f 20 74 68 65 20 65 66 66 65 63 74 69 76 65 20 75 73 65 72   ┆ set equal to the effective user┆
0x08c0…08e0 20 49 44 20 61 6e 64 0a 20 20 20 20 20 20 20 20 20 20 65 66 66 65 63 74 69 76 65 20 67 72 6f 75   ┆ ID and           effective grou┆
0x08e0…0900 70 20 49 44 2c 20 72 65 73 70 65 63 74 69 76 65 6c 79 2c 20 6f 66 20 74 68 65 20 63 61 6c 6c 69   ┆p ID, respectively, of the calli┆
0x0900…0920 6e 67 20 70 72 6f 2d 0a 20 20 20 20 20 20 20 20 20 20 63 65 73 73 2e 0a 0a 20 20 20 20 20 20 20   ┆ng pro-           cess.         ┆
0x0920…0940 20 20 20 54 68 65 20 6c 6f 77 2d 6f 72 64 65 72 20 39 20 62 69 74 73 20 6f 66 20 73 08 73 08 73   ┆   The low-order 9 bits of s s s┆
0x0940…0960 08 73 65 08 65 08 65 08 65 6d 08 6d 08 6d 08 6d 5f 08 5f 08 5f 08 5f 70 08 70 08 70 08 70 65 08   ┆ se e e em m m m_ _ _ _p p p pe ┆
0x0960…0980 65 08 65 08 65 72 08 72 08 72 08 72 6d 08 6d 08 6d 08 6d 2e 08 2e 08 2e 08 2e 6d 08 6d 08 6d 08   ┆e e er r r rm m m m. . . .m m m ┆
0x0980…09a0 6d 6f 08 6f 08 6f 08 6f 64 08 64 08 64 08 64 65 08 65 08 65 08 65 20 61 72 65 20 73 65 74 20 65   ┆mo o o od d d de e e e are set e┆
0x09a0…09c0 71 75 61 6c 20 74 6f 0a 20 20 20 20 20 20 20 20 20 20 74 68 65 20 6c 6f 77 2d 6f 72 64 65 72 20   ┆qual to           the low-order ┆
0x09c0…09e0 39 20 62 69 74 73 20 6f 66 20 5f 08 73 5f 08 65 5f 08 6d 5f 08 66 5f 08 6c 5f 08 67 2e 0a 0a 20   ┆9 bits of _ s_ e_ m_ f_ l_ g.   ┆
0x09e0…0a00 20 20 20 20 20 20 20 20 20 53 08 53 08 53 08 53 65 08 65 08 65 08 65 6d 08 6d 08 6d 08 6d 5f 08   ┆         S S S Se e e em m m m_ ┆
0x0a00…0a20 5f 08 5f 08 5f 6e 08 6e 08 6e 08 6e 73 08 73 08 73 08 73 65 08 65 08 65 08 65 6d 08 6d 08 6d 08   ┆_ _ _n n n ns s s se e e em m m ┆
0x0a20…0a40 6d 73 08 73 08 73 08 73 20 69 73 20 73 65 74 20 65 71 75 61 6c 20 74 6f 20 74 68 65 20 76 61 6c   ┆ms s s s is set equal to the val┆
0x0a40…0a60 75 65 20 6f 66 20 5f 08 6e 5f 08 73 5f 08 65 5f 08 6d 5f 08 73 2e 0a 0a 20 20 20 20 20 20 20 20   ┆ue of _ n_ s_ e_ m_ s.          ┆
0x0a60…0a80 20 20 53 08 53 08 53 08 53 65 08 65 08 65 08 65 6d 08 6d 08 6d 08 6d 5f 08 5f 08 5f 08 5f 6f 08   ┆  S S S Se e e em m m m_ _ _ _o ┆
0x0a80…0aa0 6f 08 6f 08 6f 74 08 74 08 74 08 74 69 08 69 08 69 08 69 6d 08 6d 08 6d 08 6d 65 08 65 08 65 08   ┆o o ot t t ti i i im m m me e e ┆
0x0aa0…0ac0 65 20 69 73 20 73 65 74 20 65 71 75 61 6c 20 74 6f 20 30 20 61 6e 64 20 73 08 73 08 73 08 73 65   ┆e is set equal to 0 and s s s se┆
0x0ac0…0ae0 08 65 08 65 08 65 6d 08 6d 08 6d 08 6d 5f 08 5f 08 5f 08 5f 63 08 63 08 63 08 63 74 08 74 08 74   ┆ e e em m m m_ _ _ _c c c ct t t┆
0x0ae0…0b00 08 74 69 08 69 08 69 08 69 6d 08 6d 08 6d 08 6d 65 08 65 08 65 08 65 20 69 73 20 73 65 74 20 65   ┆ ti i i im m m me e e e is set e┆
0x0b00…0b20 71 75 61 6c 0a 20 20 20 20 20 20 20 20 20 20 74 6f 20 74 68 65 20 63 75 72 72 65 6e 74 20 74 69   ┆qual           to the current ti┆
0x0b20…0b40 6d 65 2e 0a 0a 20 20 20 20 20 5f 08 53 5f 08 65 5f 08 6d 5f 08 67 5f 08 65 5f 08 74 20 77 69 6c   ┆me.       _ S_ e_ m_ g_ e_ t wil┆
0x0b40…0b60 6c 20 66 61 69 6c 20 69 66 20 6f 6e 65 20 6f 72 20 6d 6f 72 65 20 6f 66 20 74 68 65 20 66 6f 6c   ┆l fail if one or more of the fol┆
0x0b60…0b80 6c 6f 77 69 6e 67 20 61 72 65 20 74 72 75 65 3a 0a 0a 20 20 20 20 20 20 20 20 20 20 5f 08 4e 5f   ┆lowing are true:            _ N_┆
0x0b80…0ba0 08 73 5f 08 65 5f 08 6d 5f 08 73 20 69 73 20 65 69 74 68 65 72 20 6c 65 73 73 20 74 68 61 6e 20   ┆ s_ e_ m_ s is either less than ┆
0x0ba0…0bc0 6f 72 20 65 71 75 61 6c 20 74 6f 20 7a 65 72 6f 20 6f 72 20 67 72 65 61 74 65 72 0a 20 20 20 20   ┆or equal to zero or greater     ┆
0x0bc0…0be0 20 20 20 20 20 20 74 68 61 6e 20 74 68 65 20 73 79 73 74 65 6d 20 69 6d 70 6f 73 65 64 20 6c 69   ┆      than the system imposed li┆
0x0be0…0c00 6d 69 74 2e 20 20 5b 45 49 4e 56 41 4c 5d 0a 0a 20 20 20 20 20 20 20 20 20 20 41 20 73 65 6d 61   ┆mit.  [EINVAL]            A sema┆
0x0c00…0c20 70 68 6f 72 65 20 69 64 65 6e 74 69 66 69 65 72 20 65 78 69 73 74 73 20 66 6f 72 20 5f 08 6b 5f   ┆phore identifier exists for _ k_┆
0x0c20…0c40 08 65 5f 08 79 20 62 75 74 20 6f 70 65 72 61 74 69 6f 6e 0a 20 20 20 20 20 20 20 20 20 20 70 65   ┆ e_ y but operation           pe┆
0x0c40…0c60 72 6d 69 73 73 69 6f 6e 20 28 73 65 65 20 5f 08 69 5f 08 6e 5f 08 74 5f 08 72 5f 08 6f 28 32 29   ┆rmission (see _ i_ n_ t_ r_ o(2)┆
0x0c60…0c80 29 20 61 73 20 73 70 65 63 69 66 69 65 64 20 62 79 20 74 68 65 20 6c 6f 77 2d 6f 72 64 65 72 0a   ┆) as specified by the low-order ┆
0x0c80…0ca0 20 20 20 20 20 20 20 20 20 20 39 20 62 69 74 73 20 6f 66 20 5f 08 73 5f 08 65 5f 08 6d 5f 08 66   ┆          9 bits of _ s_ e_ m_ f┆
0x0ca0…0cc0 5f 08 6c 5f 08 67 20 77 6f 75 6c 64 20 6e 6f 74 20 62 65 20 67 72 61 6e 74 65 64 2e 20 5b 45 41   ┆_ l_ g would not be granted. [EA┆
0x0cc0…0ce0 43 43 45 53 5d 0a 0a 20 20 20 20 20 20 20 20 20 20 41 20 73 65 6d 61 70 68 6f 72 65 20 69 64 65   ┆CCES]            A semaphore ide┆
0x0ce0…0d00 6e 74 69 66 69 65 72 20 65 78 69 73 74 73 20 66 6f 72 20 5f 08 6b 5f 08 65 5f 08 79 20 62 75 74   ┆ntifier exists for _ k_ e_ y but┆
0x0d00…0d20 20 74 68 65 20 6e 75 6d 62 65 72 20 6f 66 0a 20 20 20 20 20 20 20 20 20 20 73 65 6d 61 70 68 6f   ┆ the number of           semapho┆
0x0d20…0d40 72 65 73 20 69 6e 20 74 68 65 20 73 65 74 20 61 73 73 6f 63 69 61 74 65 64 20 77 69 74 68 20 69   ┆res in the set associated with i┆
0x0d40…0d60 74 20 69 73 20 6c 65 73 73 20 74 68 61 6e 0a 20 20 20 20 20 20 20 20 20 20 5f 08 6e 5f 08 73 5f   ┆t is less than           _ n_ s_┆
0x0d60…0d80 08 65 5f 08 6d 5f 08 73 20 61 6e 64 20 5f 08 6e 5f 08 73 5f 08 65 5f 08 6d 5f 08 73 20 69 73 20   ┆ e_ m_ s and _ n_ s_ e_ m_ s is ┆
0x0d80…0da0 6e 6f 74 20 65 71 75 61 6c 20 74 6f 20 7a 65 72 6f 2e 20 20 5b 45 49 4e 56 41 4c 5d 0a 0a 20 20   ┆not equal to zero.  [EINVAL]    ┆
0x0da0…0dc0 20 20 20 20 20 20 20 20 41 20 73 65 6d 61 70 68 6f 72 65 20 69 64 65 6e 74 69 66 69 65 72 20 64   ┆        A semaphore identifier d┆
0x0dc0…0de0 6f 65 73 20 6e 6f 74 20 65 78 69 73 74 20 66 6f 72 20 5f 08 6b 5f 08 65 5f 08 79 20 61 6e 64 0a   ┆oes not exist for _ k_ e_ y and ┆
0x0de0…0e00 20 20 20 20 20 20 20 20 20 20 28 5f 08 73 5f 08 65 5f 08 6d 5f 08 66 5f 08 6c 5f 08 67 20 26 20   ┆          (_ s_ e_ m_ f_ l_ g & ┆
0x0e00…0e20 49 08 49 08 49 08 49 50 08 50 08 50 08 50 43 08 43 08 43 08 43 5f 08 5f 08 5f 08 5f 43 08 43 08   ┆I I I IP P P PC C C C_ _ _ _C C ┆
0x0e20…0e40 43 08 43 52 08 52 08 52 08 52 45 08 45 08 45 08 45 41 08 41 08 41 08 41 54 08 54 08 54 08 54 29   ┆C CR R R RE E E EA A A AT T T T)┆
0x0e40…0e60 20 69 73 20 60 60 66 61 6c 73 65 27 27 2e 20 20 5b 45 4e 4f 45 4e 54 5d 0a 0a 20 20 20 20 20 20   ┆ is ``false''.  [ENOENT]        ┆
0x0e60…0e80 20 20 20 20 41 20 73 65 6d 61 70 68 6f 72 65 20 69 64 65 6e 74 69 66 69 65 72 20 69 73 20 74 6f   ┆    A semaphore identifier is to┆
0x0e80…0ea0 20 62 65 20 63 72 65 61 74 65 64 20 62 75 74 20 74 68 65 20 73 79 73 74 65 6d 0a 20 20 20 20 20   ┆ be created but the system      ┆
0x0ea0…0ec0 20 20 20 20 20 69 6d 70 6f 73 65 64 20 6c 69 6d 69 74 20 6f 6e 20 74 68 65 20 6d 61 78 69 6d 75   ┆     imposed limit on the maximu┆
0x0ec0…0ee0 6d 20 6e 75 6d 62 65 72 20 6f 66 20 61 6c 6c 6f 77 65 64 20 73 65 6d 61 2d 0a 20 20 20 20 20 20   ┆m number of allowed sema-       ┆
0x0ee0…0f00 20 20 20 20 70 68 6f 72 65 20 69 64 65 6e 74 69 66 69 65 72 73 20 73 79 73 74 65 6d 20 77 69 64   ┆    phore identifiers system wid┆
0x0f00…0f20 65 20 77 6f 75 6c 64 20 62 65 20 65 78 63 65 65 64 65 64 2e 0a 0a 0a 0a 0a 0a 0a 20 20 20 20 20   ┆e would be exceeded.            ┆
0x0f20…0f40 20 20 20 20 20 5b 45 4e 4f 53 50 43 5d 0a 0a 20 20 20 20 20 20 20 20 20 20 41 20 73 65 6d 61 70   ┆     [ENOSPC]            A semap┆
0x0f40…0f60 68 6f 72 65 20 69 64 65 6e 74 69 66 69 65 72 20 69 73 20 74 6f 20 62 65 20 63 72 65 61 74 65 64   ┆hore identifier is to be created┆
0x0f60…0f80 20 62 75 74 20 74 68 65 20 73 79 73 74 65 6d 0a 20 20 20 20 20 20 20 20 20 20 69 6d 70 6f 73 65   ┆ but the system           impose┆
0x0f80…0fa0 64 20 6c 69 6d 69 74 20 6f 6e 20 74 68 65 20 6d 61 78 69 6d 75 6d 20 6e 75 6d 62 65 72 20 6f 66   ┆d limit on the maximum number of┆
0x0fa0…0fc0 20 61 6c 6c 6f 77 65 64 20 73 65 6d 61 2d 0a 20 20 20 20 20 20 20 20 20 20 70 68 6f 72 65 73 20   ┆ allowed sema-           phores ┆
0x0fc0…0fe0 73 79 73 74 65 6d 20 77 69 64 65 20 77 6f 75 6c 64 20 62 65 20 65 78 63 65 65 64 65 64 2e 20 20   ┆system wide would be exceeded.  ┆
0x0fe0…1000 5b 45 4e 4f 53 50 43 5d 0a 0a 20 20 20 20 20 20 20 20 20 20 41 20 73 65 6d 61 70 68 6f 72 65 20   ┆[ENOSPC]            A semaphore ┆
0x1000…1020 69 64 65 6e 74 69 66 69 65 72 20 65 78 69 73 74 73 20 66 6f 72 20 5f 08 6b 5f 08 65 5f 08 79 20   ┆identifier exists for _ k_ e_ y ┆
0x1020…1040 62 75 74 20 28 20 28 5f 08 73 5f 08 65 5f 08 6d 5f 08 66 5f 08 6c 5f 08 67 20 26 0a 20 20 20 20   ┆but ( (_ s_ e_ m_ f_ l_ g &     ┆
0x1040…1060 20 20 20 20 20 20 49 50 43 5f 43 52 45 41 54 29 08 29 08 29 08 29 20 26 08 26 08 26 08 26 20 28   ┆      IPC_CREAT) ) ) ) & & & & (┆
0x1060…1080 08 28 08 28 08 28 20 5f 08 73 5f 08 65 5f 08 6d 5f 08 66 5f 08 6c 5f 08 67 20 26 20 49 08 49 08   ┆ ( ( ( _ s_ e_ m_ f_ l_ g & I I ┆
0x1080…10a0 49 08 49 50 08 50 08 50 08 50 43 08 43 08 43 08 43 5f 08 5f 08 5f 08 5f 45 08 45 08 45 08 45 58   ┆I IP P P PC C C C_ _ _ _E E E EX┆
0x10a0…10c0 08 58 08 58 08 58 43 08 43 08 43 08 43 4c 08 4c 08 4c 08 4c 29 20 29 20 69 73 20 60 60 74 72 75   ┆ X X XC C C CL L L L) ) is ``tru┆
0x10c0…10e0 65 27 27 2e 0a 20 20 20 20 20 20 20 20 20 20 5b 45 45 58 49 53 54 5d 0a 0a 52 08 52 08 52 08 52   ┆e''.           [EEXIST]  R R R R┆
0x10e0…1100 45 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   ┆E E E ET T T TU U U UR R R RN N ┆
0x1100…1120 4e 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   ┆N N V V V VA A A AL L L LU U U U┆
0x1120…1140 45 08 45 08 45 08 45 0a 20 20 20 20 20 55 70 6f 6e 20 73 75 63 63 65 73 73 66 75 6c 20 63 6f 6d   ┆E E E E      Upon successful com┆
0x1140…1160 70 6c 65 74 69 6f 6e 2c 20 61 20 6e 6f 6e 2d 6e 65 67 61 74 69 76 65 20 69 6e 74 65 67 65 72 2c   ┆pletion, a non-negative integer,┆
0x1160…1180 20 6e 61 6d 65 6c 79 20 61 0a 20 20 20 20 20 73 65 6d 61 70 68 6f 72 65 20 69 64 65 6e 74 69 66   ┆ namely a      semaphore identif┆
0x1180…11a0 69 65 72 20 69 73 20 72 65 74 75 72 6e 65 64 2e 20 20 4f 74 68 65 72 77 69 73 65 2c 20 61 20 76   ┆ier is returned.  Otherwise, a v┆
0x11a0…11c0 61 6c 75 65 20 6f 66 20 2d 31 0a 20 20 20 20 20 69 73 20 72 65 74 75 72 6e 65 64 20 61 6e 64 20   ┆alue of -1      is returned and ┆
0x11c0…11e0 5f 08 65 5f 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 63 61   ┆_ e_ r_ r_ n_ o is set to indica┆
0x11e0…1200 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 45 08 45   ┆te the error.  S S S SE E E EE E┆
0x1200…1220 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 08 4f 08   ┆ E E A A A AL L L LS S S SO O O ┆
0x1220…1240 4f 0a 20 20 20 20 20 55 73 65 72 20 43 6f 6d 6d 61 6e 64 73 20 28 31 29 3a 20 20 66 73 65 6d 69   ┆O      User Commands (1):  fsemi┆
0x1240…1260 64 73 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 73 65 6d 63 74   ┆ds      System Calls (2):  semct┆
0x1260…1280 6c 2c 20 73 65 6d 6f 70 0a 20 20 20 20 20 4c 69 62 72 61 72 79 20 46 75 6e 63 74 69 6f 6e 73 20   ┆l, semop      Library Functions ┆
0x1280…12a0 28 33 29 3a 20 20 66 74 6f 6b 0a 0a 4d 61 72 63 68 20 31 39 38 39 20 20 20 20 20 20 20 20 20 20   ┆(3):  ftok  March 1989          ┆
0x12a0…12c0 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 6d 65   ┆                    TX Programme┆
0x12c0…12e0 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 0a 0a   ┆r's Reference                   ┆
0x12e0…12f5 0a 0a 0a 0a 0a 0a 0a 0a 0a 0a 0a 0a 0a 0a 0a 0a 0a 0a 0a 0a 0a                                    ┆                     ┆