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

⟦0d5845e4d⟧

    Length: 9287 (0x2447)
    Names: »semop.2«

Derivation

└─⟦50656ff4a⟧ Bits:30010538 TX 3.1 Coldstart
    └─⟦bbf173f5c⟧ »0004« 
        └─⟦this⟧ »./bsd/usr/man/cat2/semop.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 73 65 6d 6f 70 28 32 29 0a 0a 0a 0a   ┆s                   semop(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 6f 70 20 2d 20 73 65 6d 61 70 68 6f 72 65 20 6f 70 65 72 61 74 69 6f 6e 73 0a 0a   ┆  semop - semaphore operations  ┆
0x00a0…00c0 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 41 08   ┆S S S SY Y Y YN N N NT T T TA A ┆
0x00c0…00e0 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 6e 08   ┆A AX X X X      # # # #i i i in ┆
0x00e0…0100 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 08   ┆n n nc c c cl l l lu u u ud d d ┆
0x0100…0120 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 08   ┆de e e e < < < <s s s sy y y ys ┆
0x0120…0140 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 70 08   ┆s s s/ / / /t t t ty y y yp p p ┆
0x0140…0160 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 08 3e   ┆pe e e es s s s. . . .h h h h> >┆
0x0160…0180 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 6e 63   ┆ > >      # # # #i i i in n n nc┆
0x0180…01a0 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┆
0x01a0…01c0 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/┆
0x01c0…01e0 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 08 2e   ┆ / / /i i i ip p p pc c c c. . .┆
0x01e0…0200 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 08 69   ┆ .h h h h> > > >      # # # #i i┆
0x0200…0220 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 75   ┆ i in n n nc c c cl l l lu u u u┆
0x0220…0240 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 79   ┆d d d de e e e < < < <s s s sy y┆
0x0240…0260 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 08 65   ┆ y ys s s s/ / / /s s s se e e e┆
0x0260…0280 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 20 20   ┆m m m m. . . .h h h h> > > >    ┆
0x0280…02a0 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 08 73   ┆   i i i in n n nt t t t s s s s┆
0x02a0…02c0 65 08 65 08 65 08 65 6d 08 6d 08 6d 08 6d 6f 08 6f 08 6f 08 6f 70 08 70 08 70 08 70 20 28 08 28   ┆e e e em m m mo o o op p p p ( (┆
0x02c0…02e0 08 28 08 28 73 08 73 08 73 08 73 65 08 65 08 65 08 65 6d 08 6d 08 6d 08 6d 69 08 69 08 69 08 69   ┆ ( (s s s se e e em m m mi i i i┆
0x02e0…0300 64 08 64 08 64 08 64 2c 08 2c 08 2c 08 2c 20 73 08 73 08 73 08 73 6f 08 6f 08 6f 08 6f 70 08 70   ┆d d d d, , , , s s s so o o op p┆
0x0300…0320 08 70 08 70 73 08 73 08 73 08 73 2c 08 2c 08 2c 08 2c 20 6e 08 6e 08 6e 08 6e 73 08 73 08 73 08   ┆ p ps s s s, , , , n n n ns s s ┆
0x0320…0340 73 6f 08 6f 08 6f 08 6f 70 08 70 08 70 08 70 73 08 73 08 73 08 73 29 08 29 08 29 08 29 0a 20 20   ┆so o o op p p ps s s s) ) ) )   ┆
0x0340…0360 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 08 73   ┆   i i i in n n nt t t t s s s s┆
0x0360…0380 65 08 65 08 65 08 65 6d 08 6d 08 6d 08 6d 69 08 69 08 69 08 69 64 08 64 08 64 08 64 3b 08 3b 08   ┆e e e em m m mi i i id d d d; ; ┆
0x0380…03a0 3b 08 3b 0a 20 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   ┆; ;      s s s st t t tr r r ru ┆
0x03a0…03c0 75 08 75 08 75 63 08 63 08 63 08 63 74 08 74 08 74 08 74 20 73 08 73 08 73 08 73 65 08 65 08 65   ┆u u uc c c ct t t t s s s se e e┆
0x03c0…03e0 08 65 6d 08 6d 08 6d 08 6d 62 08 62 08 62 08 62 75 08 75 08 75 08 75 66 08 66 08 66 08 66 20 28   ┆ em m m mb b b bu u u uf f f f (┆
0x03e0…0400 08 28 08 28 08 28 2a 08 2a 08 2a 08 2a 73 08 73 08 73 08 73 6f 08 6f 08 6f 08 6f 70 08 70 08 70   ┆ ( ( (* * * *s s s so o o op p p┆
0x0400…0420 08 70 73 08 73 08 73 08 73 29 08 29 08 29 08 29 5b 08 5b 08 5b 08 5b 5d 08 5d 08 5d 08 5d 3b 08   ┆ ps s s s) ) ) )[ [ [ [] ] ] ]; ┆
0x0420…0440 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 74 08 74 08 74 08 74   ┆; ; ;      i i i in n n nt t t t┆
0x0440…0460 20 6e 08 6e 08 6e 08 6e 73 08 73 08 73 08 73 6f 08 6f 08 6f 08 6f 70 08 70 08 70 08 70 73 08 73   ┆ n n n ns s s so o o op p p ps s┆
0x0460…0480 08 73 08 73 3b 08 3b 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   ┆ s s; ; ; ;  D D D DE E E ES S S┆
0x0480…04a0 08 53 43 08 43 08 43 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   ┆ SC C C CR R R RI I I IP P P PT ┆
0x04a0…04c0 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 0a 20 20 20 20 20   ┆T T TI I I IO O O ON N N N      ┆
0x04c0…04e0 5f 08 53 5f 08 65 5f 08 6d 5f 08 6f 5f 08 70 20 69 73 20 75 73 65 64 20 74 6f 20 61 74 6f 6d 69   ┆_ S_ e_ m_ o_ p is used to atomi┆
0x04e0…0500 63 61 6c 6c 79 20 70 65 72 66 6f 72 6d 20 61 6e 20 61 72 72 61 79 20 6f 66 20 73 65 6d 61 70 68   ┆cally perform an array of semaph┆
0x0500…0520 6f 72 65 0a 20 20 20 20 20 6f 70 65 72 61 74 69 6f 6e 73 20 6f 6e 20 74 68 65 20 73 65 74 20 6f   ┆ore      operations on the set o┆
0x0520…0540 66 20 73 65 6d 61 70 68 6f 72 65 73 20 61 73 73 6f 63 69 61 74 65 64 20 77 69 74 68 20 74 68 65   ┆f semaphores associated with the┆
0x0540…0560 0a 20 20 20 20 20 73 65 6d 61 70 68 6f 72 65 20 69 64 65 6e 74 69 66 69 65 72 20 73 70 65 63 69   ┆      semaphore identifier speci┆
0x0560…0580 66 69 65 64 20 62 79 20 5f 08 73 5f 08 65 5f 08 6d 5f 08 69 5f 08 64 2e 20 20 5f 08 53 5f 08 6f   ┆fied by _ s_ e_ m_ i_ d.  _ S_ o┆
0x0580…05a0 5f 08 70 5f 08 73 20 69 73 20 61 20 70 6f 69 6e 74 65 72 0a 20 20 20 20 20 74 6f 20 74 68 65 20   ┆_ p_ s is a pointer      to the ┆
0x05a0…05c0 61 72 72 61 79 20 6f 66 20 73 65 6d 61 70 68 6f 72 65 2d 6f 70 65 72 61 74 69 6f 6e 20 73 74 72   ┆array of semaphore-operation str┆
0x05c0…05e0 75 63 74 75 72 65 73 2e 20 20 5f 08 4e 5f 08 73 5f 08 6f 5f 08 70 5f 08 73 20 69 73 0a 20 20 20   ┆uctures.  _ N_ s_ o_ p_ s is    ┆
0x05e0…0600 20 20 74 68 65 20 6e 75 6d 62 65 72 20 6f 66 20 73 75 63 68 20 73 74 72 75 63 74 75 72 65 73 20   ┆  the number of such structures ┆
0x0600…0620 69 6e 20 74 68 65 20 61 72 72 61 79 2e 20 20 54 68 65 20 63 6f 6e 74 65 6e 74 73 20 6f 66 0a 20   ┆in the array.  The contents of  ┆
0x0620…0640 20 20 20 20 65 61 63 68 20 73 74 72 75 63 74 75 72 65 20 69 6e 63 6c 75 64 65 73 20 74 68 65 20   ┆    each structure includes the ┆
0x0640…0660 66 6f 6c 6c 6f 77 69 6e 67 20 6d 65 6d 62 65 72 73 3a 0a 0a 20 20 20 20 20 20 20 20 20 20 73 68   ┆following members:            sh┆
0x0660…0680 6f 72 74 20 20 20 73 65 6d 5f 6e 75 6d 3b 20 20 20 20 2f 2a 20 73 65 6d 61 70 68 6f 72 65 20 6e   ┆ort   sem_num;    /* semaphore n┆
0x0680…06a0 75 6d 62 65 72 20 2a 2f 0a 20 20 20 20 20 20 20 20 20 20 73 68 6f 72 74 20 20 20 73 65 6d 5f 6f   ┆umber */           short   sem_o┆
0x06a0…06c0 70 3b 20 20 20 20 20 2f 2a 20 73 65 6d 61 70 68 6f 72 65 20 6f 70 65 72 61 74 69 6f 6e 20 2a 2f   ┆p;     /* semaphore operation */┆
0x06c0…06e0 0a 20 20 20 20 20 20 20 20 20 20 73 68 6f 72 74 20 20 20 73 65 6d 5f 66 6c 67 3b 20 20 20 20 2f   ┆           short   sem_flg;    /┆
0x06e0…0700 2a 20 6f 70 65 72 61 74 69 6f 6e 20 66 6c 61 67 73 20 2a 2f 0a 0a 20 20 20 20 20 45 61 63 68 20   ┆* operation flags */       Each ┆
0x0700…0720 73 65 6d 61 70 68 6f 72 65 20 6f 70 65 72 61 74 69 6f 6e 20 73 70 65 63 69 66 69 65 64 20 62 79   ┆semaphore operation specified by┆
0x0720…0740 20 5f 08 73 5f 08 65 5f 08 6d 5f 5f 08 6f 5f 08 70 20 69 73 20 70 65 72 66 6f 72 6d 65 64 20 6f   ┆ _ s_ e_ m__ o_ p is performed o┆
0x0740…0760 6e 0a 20 20 20 20 20 74 68 65 20 63 6f 72 72 65 73 70 6f 6e 64 69 6e 67 20 73 65 6d 61 70 68 6f   ┆n      the corresponding semapho┆
0x0760…0780 72 65 20 73 70 65 63 69 66 69 65 64 20 62 79 20 5f 08 73 5f 08 65 5f 08 6d 5f 08 69 5f 08 64 20   ┆re specified by _ s_ e_ m_ i_ d ┆
0x0780…07a0 61 6e 64 20 5f 08 73 5f 08 65 5f 08 6d 5f 5f 08 6e 5f 08 75 5f 08 6d 2e 0a 0a 20 20 20 20 20 5f   ┆and _ s_ e_ m__ n_ u_ m.       _┆
0x07a0…07c0 08 53 5f 08 65 5f 08 6d 5f 5f 08 6f 5f 08 70 20 73 70 65 63 69 66 69 65 73 20 6f 6e 65 20 6f 66   ┆ S_ e_ m__ o_ p specifies one of┆
0x07c0…07e0 20 74 68 72 65 65 20 73 65 6d 61 70 68 6f 72 65 20 6f 70 65 72 61 74 69 6f 6e 73 20 61 73 20 66   ┆ three semaphore operations as f┆
0x07e0…0800 6f 6c 2d 0a 20 20 20 20 20 6c 6f 77 73 3a 0a 0a 20 20 20 20 20 20 20 20 20 20 20 20 20 49 66 20   ┆ol-      lows:               If ┆
0x0800…0820 5f 08 73 5f 08 65 5f 08 6d 5f 5f 08 6f 5f 08 70 20 69 73 20 61 20 6e 65 67 61 74 69 76 65 20 69   ┆_ s_ e_ m__ o_ p is a negative i┆
0x0820…0840 6e 74 65 67 65 72 2c 20 6f 6e 65 20 6f 66 20 74 68 65 20 66 6f 6c 6c 6f 77 2d 0a 20 20 20 20 20   ┆nteger, one of the follow-      ┆
0x0840…0860 20 20 20 20 20 20 20 20 69 6e 67 20 77 69 6c 6c 20 6f 63 63 75 72 3a 20 7b 41 4c 54 45 52 7d 0a   ┆        ing will occur: {ALTER} ┆
0x0860…0880 0a 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 49 66 20 73 65 6d 76 61 6c 20 28 73 65   ┆                   If semval (se┆
0x0880…08a0 65 20 5f 08 69 5f 08 6e 5f 08 74 5f 08 72 5f 08 6f 28 32 29 29 20 69 73 20 67 72 65 61 74 65 72   ┆e _ i_ n_ t_ r_ o(2)) is greater┆
0x08a0…08c0 20 74 68 61 6e 20 6f 72 0a 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 65 71 75 61 6c   ┆ than or                   equal┆
0x08c0…08e0 20 74 6f 20 74 68 65 20 61 62 73 6f 6c 75 74 65 20 76 61 6c 75 65 20 6f 66 20 5f 08 73 5f 08 65   ┆ to the absolute value of _ s_ e┆
0x08e0…0900 5f 08 6d 5f 5f 08 6f 5f 08 70 2c 20 74 68 65 0a 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20   ┆_ m__ o_ p, the                 ┆
0x0900…0920 20 20 61 62 73 6f 6c 75 74 65 20 76 61 6c 75 65 20 6f 66 20 5f 08 73 5f 08 65 5f 08 6d 5f 5f 08   ┆  absolute value of _ s_ e_ m__ ┆
0x0920…0940 6f 5f 08 70 20 69 73 20 73 75 62 74 72 61 63 74 65 64 20 66 72 6f 6d 0a 20 20 20 20 20 20 20 20   ┆o_ p is subtracted from         ┆
0x0940…0960 20 20 20 20 20 20 20 20 20 20 73 65 6d 76 61 6c 2e 20 20 41 6c 73 6f 2c 20 69 66 20 28 5f 08 73   ┆          semval.  Also, if (_ s┆
0x0960…0980 5f 08 65 5f 08 6d 5f 5f 08 66 5f 08 6c 5f 08 67 20 26 20 53 08 53 08 53 08 53 45 08 45 08 45 08   ┆_ e_ m__ f_ l_ g & S S S SE E E ┆
0x0980…09a0 45 4d 08 4d 08 4d 08 4d 5f 08 5f 08 5f 08 5f 55 08 55 08 55 08 55 4e 08 4e 08 4e 08 4e 44 08 44   ┆EM M M M_ _ _ _U U U UN N N ND D┆
0x09a0…09c0 08 44 08 44 4f 08 4f 08 4f 08 4f 29 20 69 73 0a 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20   ┆ D DO O O O) is                 ┆
0x09c0…09e0 20 20 60 60 74 72 75 65 27 27 2c 20 74 68 65 20 61 62 73 6f 6c 75 74 65 20 76 61 6c 75 65 20 6f   ┆  ``true'', the absolute value o┆
0x09e0…0a00 66 20 5f 08 73 5f 08 65 5f 08 6d 5f 5f 08 6f 5f 08 70 20 69 73 20 61 64 64 65 64 0a 20 20 20 20   ┆f _ s_ e_ m__ o_ p is added     ┆
0x0a00…0a20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 74 6f 20 74 68 65 20 63 61 6c 6c 69 6e 67 20 70 72 6f   ┆              to the calling pro┆
0x0a20…0a40 63 65 73 73 27 73 20 73 65 6d 61 64 6a 20 76 61 6c 75 65 20 28 73 65 65 0a 20 20 20 20 20 20 20   ┆cess's semadj value (see        ┆
0x0a40…0a60 20 20 20 20 20 20 20 20 20 20 20 5f 08 65 5f 08 78 5f 08 69 5f 08 74 28 32 29 29 20 66 6f 72 20   ┆           _ e_ x_ i_ t(2)) for ┆
0x0a60…0a80 74 68 65 20 73 70 65 63 69 66 69 65 64 20 73 65 6d 61 70 68 6f 72 65 2e 0a 0a 20 20 20 20 20 20   ┆the specified semaphore.        ┆
0x0a80…0aa0 20 20 20 20 20 20 20 20 20 20 20 20 49 66 20 73 65 6d 76 61 6c 20 69 73 20 6c 65 73 73 20 74 68   ┆            If semval is less th┆
0x0aa0…0ac0 61 6e 20 74 68 65 20 61 62 73 6f 6c 75 74 65 20 76 61 6c 75 65 20 6f 66 0a 20 20 20 20 20 20 20   ┆an the absolute value of        ┆
0x0ac0…0ae0 20 20 20 20 20 20 20 20 20 20 20 5f 08 73 5f 08 65 5f 08 6d 5f 5f 08 6f 5f 08 70 20 61 6e 64 20   ┆           _ s_ e_ m__ o_ p and ┆
0x0ae0…0b00 28 5f 08 73 5f 08 65 5f 08 6d 5f 5f 08 66 5f 08 6c 5f 08 67 20 26 20 49 08 49 08 49 08 49 50 08   ┆(_ s_ e_ m__ f_ l_ g & I I I IP ┆
0x0b00…0b20 50 08 50 08 50 43 08 43 08 43 08 43 5f 08 5f 08 5f 08 5f 4e 08 4e 08 4e 08 4e 4f 08 4f 08 4f 08   ┆P P PC C C C_ _ _ _N N N NO O O ┆
0x0b20…0b40 4f 57 08 57 08 57 08 57 41 08 41 08 41 08 41 49 08 49 08 49 08 49 54 08 54 08 54 08 54 29 20 69   ┆OW W W WA A A AI I I IT T T T) i┆
0x0b40…0b60 73 20 60 60 74 72 75 65 27 27 2c 0a 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 5f 08   ┆s ``true'',                   _ ┆
0x0b60…0b80 73 5f 08 65 5f 08 6d 5f 08 6f 5f 08 70 20 77 69 6c 6c 20 72 65 74 75 72 6e 20 69 6d 6d 65 64 69   ┆s_ e_ m_ o_ p will return immedi┆
0x0b80…0ba0 61 74 65 6c 79 2e 0a 0a 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 49 66 20 73 65 6d   ┆ately.                    If sem┆
0x0ba0…0bc0 76 61 6c 20 69 73 20 6c 65 73 73 20 74 68 61 6e 20 74 68 65 20 61 62 73 6f 6c 75 74 65 20 76 61   ┆val is less than the absolute va┆
0x0bc0…0be0 6c 75 65 20 6f 66 0a 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 5f 08 73 5f 08 65 5f   ┆lue of                   _ s_ e_┆
0x0be0…0c00 08 6d 5f 5f 08 6f 5f 08 70 20 61 6e 64 20 28 5f 08 73 5f 08 65 5f 08 6d 5f 5f 08 66 5f 08 6c 5f   ┆ m__ o_ p and (_ s_ e_ m__ f_ l_┆
0x0c00…0c20 08 67 20 26 20 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   ┆ g & I I I IP P P PC C C C_ _ _ ┆
0x0c20…0c40 5f 4e 08 4e 08 4e 08 4e 4f 08 4f 08 4f 08 4f 57 08 57 08 57 08 57 41 08 41 08 41 08 41 49 08 49   ┆_N N N NO O O OW W W WA A A AI I┆
0x0c40…0c60 08 49 08 49 54 08 54 08 54 08 54 29 20 69 73 20 60 60 66 61 6c 73 65 27 27 2c 0a 20 20 20 20 20   ┆ I IT T T T) is ``false'',      ┆
0x0c60…0c80 20 20 20 20 20 20 20 20 20 20 20 20 20 5f 08 73 5f 08 65 5f 08 6d 5f 08 6f 5f 08 70 20 77 69 6c   ┆             _ s_ e_ m_ o_ p wil┆
0x0c80…0ca0 6c 20 69 6e 63 72 65 6d 65 6e 74 20 74 68 65 20 73 65 6d 6e 63 6e 74 20 61 73 73 6f 63 69 61 74   ┆l increment the semncnt associat┆
0x0ca0…0cc0 65 64 0a 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 77 69 74 68 20 74 68 65 20 73 70   ┆ed                   with the sp┆
0x0cc0…0ce0 65 63 69 66 69 65 64 20 73 65 6d 61 70 68 6f 72 65 20 61 6e 64 20 73 75 73 70 65 6e 64 20 65 78   ┆ecified semaphore and suspend ex┆
0x0ce0…0d00 65 63 75 2d 0a 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 74 69 6f 6e 20 6f 66 20 74   ┆ecu-                   tion of t┆
0x0d00…0d20 68 65 20 63 61 6c 6c 69 6e 67 20 70 72 6f 63 65 73 73 20 75 6e 74 69 6c 20 6f 6e 65 20 6f 66 20   ┆he calling process until one of ┆
0x0d20…0d40 74 68 65 0a 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 66 6f 6c 6c 6f 77 69 6e 67 20   ┆the                   following ┆
0x0d40…0d60 6f 63 63 75 72 73 3a 0a 0a 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 53 65   ┆occurs:                       Se┆
0x0d60…0d80 6d 76 61 6c 20 62 65 63 6f 6d 65 73 20 67 72 65 61 74 65 72 20 74 68 61 6e 20 6f 72 20 65 71 75   ┆mval becomes greater than or equ┆
0x0d80…0da0 61 6c 20 74 6f 20 74 68 65 0a 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 61   ┆al to the                      a┆
0x0da0…0dc0 62 73 6f 6c 75 74 65 20 76 61 6c 75 65 20 6f 66 20 5f 08 73 5f 08 65 5f 08 6d 5f 5f 08 6f 5f 08   ┆bsolute value of _ s_ e_ m__ o_ ┆
0x0dc0…0de0 70 2e 20 20 57 68 65 6e 20 74 68 69 73 20 6f 63 63 75 72 73 2c 0a 20 20 20 20 20 20 20 20 20 20   ┆p.  When this occurs,           ┆
0x0de0…0e00 20 20 20 20 20 20 20 20 20 20 20 74 68 65 20 76 61 6c 75 65 20 6f 66 20 73 65 6d 6e 63 6e 74 20   ┆           the value of semncnt ┆
0x0e00…0e20 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 20 20 20 20 20 20 20   ┆associated with the             ┆
0x0e20…0e40 20 20 20 20 20 20 20 20 20 73 70 65 63 69 66 69 65 64 20 73 65 6d 61 70 68 6f 72 65 20 69 73 20   ┆         specified semaphore is ┆
0x0e40…0e60 64 65 63 72 65 6d 65 6e 74 65 64 2c 20 74 68 65 0a 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20   ┆decremented, the                ┆
0x0e60…0e80 20 20 20 20 20 20 61 62 73 6f 6c 75 74 65 20 76 61 6c 75 65 20 6f 66 20 5f 08 73 5f 08 65 5f 08   ┆      absolute value of _ s_ e_ ┆
0x0e80…0ea0 6d 5f 5f 08 6f 5f 08 70 20 69 73 20 73 75 62 74 72 61 63 74 65 64 20 66 72 6f 6d 0a 20 20 20 20   ┆m__ o_ p is subtracted from     ┆
0x0ea0…0ec0 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 73 65 6d 76 61 6c 20 61 6e 64 2c 20 69 66 20   ┆                 semval and, if ┆
0x0ec0…0ee0 28 5f 08 73 5f 08 65 5f 08 6d 5f 5f 08 66 5f 08 6c 5f 08 67 20 26 20 53 08 53 08 53 08 53 45 08   ┆(_ s_ e_ m__ f_ l_ g & S S S SE ┆
0x0ee0…0f00 45 08 45 08 45 4d 08 4d 08 4d 08 4d 5f 08 5f 08 5f 08 5f 55 08 55 08 55 08 55 4e 08 4e 08 4e 08   ┆E E EM M M M_ _ _ _U U U UN N N ┆
0x0f00…0f20 4e 44 08 44 08 44 08 44 4f 08 4f 08 4f 08 4f 29 20 69 73 0a 0a 0a 0a 0a 0a 0a 20 20 20 20 20 20   ┆ND D D DO O O O) is             ┆
0x0f20…0f40 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 60 60 74 72 75 65 27 27 2c 20 74 68 65 20 61 62 73   ┆               ``true'', the abs┆
0x0f40…0f60 6f 6c 75 74 65 20 76 61 6c 75 65 20 6f 66 20 5f 08 73 5f 08 65 5f 08 6d 5f 5f 08 6f 5f 08 70 20   ┆olute value of _ s_ e_ m__ o_ p ┆
0x0f60…0f80 69 73 0a 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 61 64 64 65 64 20 74 6f   ┆is                      added to┆
0x0f80…0fa0 20 74 68 65 20 63 61 6c 6c 69 6e 67 20 70 72 6f 63 65 73 73 27 73 20 73 65 6d 61 64 6a 20 76 61   ┆ the calling process's semadj va┆
0x0fa0…0fc0 6c 75 65 0a 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 66 6f 72 20 74 68 65   ┆lue                      for the┆
0x0fc0…0fe0 20 73 70 65 63 69 66 69 65 64 20 73 65 6d 61 70 68 6f 72 65 2e 0a 0a 20 20 20 20 20 20 20 20 20   ┆ specified semaphore.           ┆
0x0fe0…1000 20 20 20 20 20 20 20 20 20 20 20 20 54 68 65 20 73 65 6d 69 64 20 66 6f 72 20 77 68 69 63 68 20   ┆            The semid for which ┆
0x1000…1020 74 68 65 20 63 61 6c 6c 69 6e 67 20 70 72 6f 63 65 73 73 20 69 73 0a 20 20 20 20 20 20 20 20 20   ┆the calling process is          ┆
0x1020…1040 20 20 20 20 20 20 20 20 20 20 20 20 61 77 61 69 74 69 6e 67 20 61 63 74 69 6f 6e 20 69 73 20 72   ┆            awaiting action is r┆
0x1040…1060 65 6d 6f 76 65 64 20 66 72 6f 6d 20 74 68 65 20 73 79 73 74 65 6d 0a 20 20 20 20 20 20 20 20 20   ┆emoved from the system          ┆
0x1060…1080 20 20 20 20 20 20 20 20 20 20 20 20 28 73 65 65 20 5f 08 73 5f 08 65 5f 08 6d 5f 08 63 5f 08 74   ┆            (see _ s_ e_ m_ c_ t┆
0x1080…10a0 5f 08 6c 28 32 29 29 2e 20 20 57 68 65 6e 20 74 68 69 73 20 6f 63 63 75 72 73 2c 20 5f 08 65 5f   ┆_ l(2)).  When this occurs, _ e_┆
0x10a0…10c0 08 72 5f 08 72 5f 08 6e 5f 08 6f 20 69 73 0a 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20   ┆ r_ r_ n_ o is                  ┆
0x10c0…10e0 20 20 20 20 73 65 74 20 65 71 75 61 6c 20 74 6f 20 45 49 44 52 4d 2c 20 61 6e 64 20 61 20 76 61   ┆    set equal to EIDRM, and a va┆
0x10e0…1100 6c 75 65 20 6f 66 20 2d 31 20 69 73 0a 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20   ┆lue of -1 is                    ┆
0x1100…1120 20 20 72 65 74 75 72 6e 65 64 2e 0a 0a 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20   ┆  returned.                     ┆
0x1120…1140 20 20 54 68 65 20 63 61 6c 6c 69 6e 67 20 70 72 6f 63 65 73 73 20 72 65 63 65 69 76 65 73 20 61   ┆  The calling process receives a┆
0x1140…1160 20 73 69 67 6e 61 6c 20 74 68 61 74 0a 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20   ┆ signal that                    ┆
0x1160…1180 20 20 69 73 20 74 6f 20 62 65 20 63 61 75 67 68 74 2e 20 20 57 68 65 6e 20 74 68 69 73 20 6f 63   ┆  is to be caught.  When this oc┆
0x1180…11a0 63 75 72 73 2c 20 74 68 65 0a 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 76   ┆curs, the                      v┆
0x11a0…11c0 61 6c 75 65 20 6f 66 20 73 65 6d 6e 63 6e 74 20 61 73 73 6f 63 69 61 74 65 64 20 77 69 74 68 20   ┆alue of semncnt associated with ┆
0x11c0…11e0 74 68 65 20 73 70 65 63 69 2d 0a 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20   ┆the speci-                      ┆
0x11e0…1200 66 69 65 64 20 73 65 6d 61 70 68 6f 72 65 20 69 73 20 64 65 63 72 65 6d 65 6e 74 65 64 2c 20 61   ┆fied semaphore is decremented, a┆
0x1200…1220 6e 64 20 74 68 65 20 63 61 6c 2d 0a 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20   ┆nd the cal-                     ┆
0x1220…1240 20 6c 69 6e 67 20 70 72 6f 63 65 73 73 20 72 65 73 75 6d 65 73 20 65 78 65 63 75 74 69 6f 6e 20   ┆ ling process resumes execution ┆
0x1240…1260 69 6e 20 74 68 65 20 6d 61 6e 6e 65 72 0a 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20   ┆in the manner                   ┆
0x1260…1280 20 20 20 70 72 65 73 63 72 69 62 65 64 20 69 6e 20 5f 08 73 5f 08 69 5f 08 67 5f 08 6e 5f 08 61   ┆   prescribed in _ s_ i_ g_ n_ a┆
0x1280…12a0 5f 08 6c 28 32 29 2e 0a 0a 20 20 20 20 20 20 20 20 20 20 20 20 20 49 66 20 5f 08 73 5f 08 65 5f   ┆_ l(2).               If _ s_ e_┆
0x12a0…12c0 08 6d 5f 5f 08 6f 5f 08 70 20 69 73 20 61 20 70 6f 73 69 74 69 76 65 20 69 6e 74 65 67 65 72 2c   ┆ m__ o_ p is a positive integer,┆
0x12c0…12e0 20 74 68 65 20 76 61 6c 75 65 20 6f 66 20 5f 08 73 5f 08 65 5f 08 6d 5f 5f 08 6f 5f 08 70 0a 20   ┆ the value of _ s_ e_ m__ o_ p  ┆
0x12e0…1300 20 20 20 20 20 20 20 20 20 20 20 20 69 73 20 61 64 64 65 64 20 74 6f 20 73 65 6d 76 61 6c 20 61   ┆            is added to semval a┆
0x1300…1320 6e 64 2c 20 69 66 20 28 5f 08 73 5f 08 65 5f 08 6d 5f 5f 08 66 5f 08 6c 5f 08 67 20 26 20 53 08   ┆nd, if (_ s_ e_ m__ f_ l_ g & S ┆
0x1320…1340 53 08 53 08 53 45 08 45 08 45 08 45 4d 08 4d 08 4d 08 4d 5f 08 5f 08 5f 08 5f 55 08 55 08 55 08   ┆S S SE E E EM M M M_ _ _ _U U U ┆
0x1340…1360 55 4e 08 4e 08 4e 08 4e 44 08 44 08 44 08 44 4f 08 4f 08 4f 08 4f 29 20 69 73 0a 20 20 20 20 20   ┆UN N N ND D D DO O O O) is      ┆
0x1360…1380 20 20 20 20 20 20 20 20 60 60 74 72 75 65 27 27 2c 20 74 68 65 20 76 61 6c 75 65 20 6f 66 20 5f   ┆        ``true'', the value of _┆
0x1380…13a0 08 73 5f 08 65 5f 08 6d 5f 5f 08 6f 5f 08 70 20 69 73 20 73 75 62 74 72 61 63 74 65 64 20 66 72   ┆ s_ e_ m__ o_ p is subtracted fr┆
0x13a0…13c0 6f 6d 20 74 68 65 0a 20 20 20 20 20 20 20 20 20 20 20 20 20 63 61 6c 6c 69 6e 67 20 70 72 6f 63   ┆om the              calling proc┆
0x13c0…13e0 65 73 73 27 73 20 73 65 6d 61 64 6a 20 76 61 6c 75 65 20 66 6f 72 20 74 68 65 20 73 70 65 63 69   ┆ess's semadj value for the speci┆
0x13e0…1400 66 69 65 64 0a 20 20 20 20 20 20 20 20 20 20 20 20 20 73 65 6d 61 70 68 6f 72 65 2e 20 20 7b 41   ┆fied              semaphore.  {A┆
0x1400…1420 4c 54 45 52 7d 0a 0a 20 20 20 20 20 20 20 20 20 20 20 20 20 49 66 20 5f 08 73 5f 08 65 5f 08 6d   ┆LTER}               If _ s_ e_ m┆
0x1420…1440 5f 5f 08 6f 5f 08 70 20 69 73 20 7a 65 72 6f 2c 20 6f 6e 65 20 6f 66 20 74 68 65 20 66 6f 6c 6c   ┆__ o_ p is zero, one of the foll┆
0x1440…1460 6f 77 69 6e 67 20 77 69 6c 6c 20 6f 63 63 75 72 3a 0a 20 20 20 20 20 20 20 20 20 20 20 20 20 7b   ┆owing will occur:              {┆
0x1460…1480 52 45 41 44 7d 0a 0a 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 49 66 20 73 65 6d 76   ┆READ}                    If semv┆
0x1480…14a0 61 6c 20 69 73 20 7a 65 72 6f 2c 20 5f 08 73 5f 08 65 5f 08 6d 5f 08 6f 5f 08 70 20 77 69 6c 6c   ┆al is zero, _ s_ e_ m_ o_ p will┆
0x14a0…14c0 20 72 65 74 75 72 6e 20 69 6d 6d 65 64 69 2d 0a 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20   ┆ return immedi-                 ┆
0x14c0…14e0 20 20 61 74 65 6c 79 2e 0a 0a 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 49 66 20 73   ┆  ately.                    If s┆
0x14e0…1500 65 6d 76 61 6c 20 69 73 20 6e 6f 74 20 65 71 75 61 6c 20 74 6f 20 7a 65 72 6f 20 61 6e 64 20 28   ┆emval is not equal to zero and (┆
0x1500…1520 5f 08 73 5f 08 65 5f 08 6d 5f 5f 08 66 5f 08 6c 5f 08 67 20 26 0a 20 20 20 20 20 20 20 20 20 20   ┆_ s_ e_ m__ f_ l_ g &           ┆
0x1520…1540 20 20 20 20 20 20 20 20 49 08 49 08 49 08 49 50 08 50 08 50 08 50 43 08 43 08 43 08 43 5f 08 5f   ┆        I I I IP P P PC C C C_ _┆
0x1540…1560 08 5f 08 5f 4e 08 4e 08 4e 08 4e 4f 08 4f 08 4f 08 4f 57 08 57 08 57 08 57 41 08 41 08 41 08 41   ┆ _ _N N N NO O O OW W W WA A A A┆
0x1560…1580 49 08 49 08 49 08 49 54 08 54 08 54 08 54 29 20 69 73 20 60 60 74 72 75 65 27 27 2c 20 5f 08 73   ┆I I I IT T T T) is ``true'', _ s┆
0x1580…15a0 5f 08 65 5f 08 6d 5f 08 6f 5f 08 70 20 77 69 6c 6c 20 72 65 74 75 72 6e 0a 20 20 20 20 20 20 20   ┆_ e_ m_ o_ p will return        ┆
0x15a0…15c0 20 20 20 20 20 20 20 20 20 20 20 69 6d 6d 65 64 69 61 74 65 6c 79 2e 0a 0a 20 20 20 20 20 20 20   ┆           immediately.         ┆
0x15c0…15e0 20 20 20 20 20 20 20 20 20 20 20 49 66 20 73 65 6d 76 61 6c 20 69 73 20 6e 6f 74 20 65 71 75 61   ┆           If semval is not equa┆
0x15e0…1600 6c 20 74 6f 20 7a 65 72 6f 20 61 6e 64 20 28 5f 08 73 5f 08 65 5f 08 6d 5f 5f 08 66 5f 08 6c 5f   ┆l to zero and (_ s_ e_ m__ f_ l_┆
0x1600…1620 08 67 20 26 0a 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 49 08 49 08 49 08 49 50 08   ┆ g &                   I I I IP ┆
0x1620…1640 50 08 50 08 50 43 08 43 08 43 08 43 5f 08 5f 08 5f 08 5f 4e 08 4e 08 4e 08 4e 4f 08 4f 08 4f 08   ┆P P PC C C C_ _ _ _N N N NO O O ┆
0x1640…1660 4f 57 08 57 08 57 08 57 41 08 41 08 41 08 41 49 08 49 08 49 08 49 54 08 54 08 54 08 54 29 20 69   ┆OW W W WA A A AI I I IT T T T) i┆
0x1660…1680 73 20 60 60 66 61 6c 73 65 27 27 2c 20 5f 08 73 5f 08 65 5f 08 6d 5f 08 6f 5f 08 70 20 77 69 6c   ┆s ``false'', _ s_ e_ m_ o_ p wil┆
0x1680…16a0 6c 20 69 6e 63 72 65 6d 65 6e 74 0a 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 74 68   ┆l increment                   th┆
0x16a0…16c0 65 20 73 65 6d 7a 63 6e 74 20 61 73 73 6f 63 69 61 74 65 64 20 77 69 74 68 20 74 68 65 20 73 70   ┆e semzcnt associated with the sp┆
0x16c0…16e0 65 63 69 66 69 65 64 20 73 65 6d 61 2d 0a 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20   ┆ecified sema-                   ┆
0x16e0…1700 70 68 6f 72 65 20 61 6e 64 20 73 75 73 70 65 6e 64 20 65 78 65 63 75 74 69 6f 6e 20 6f 66 20 74   ┆phore and suspend execution of t┆
0x1700…1720 68 65 20 63 61 6c 6c 69 6e 67 20 70 72 6f 2d 0a 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20   ┆he calling pro-                 ┆
0x1720…1740 20 20 63 65 73 73 20 75 6e 74 69 6c 20 6f 6e 65 20 6f 66 20 74 68 65 20 66 6f 6c 6c 6f 77 69 6e   ┆  cess until one of the followin┆
0x1740…1760 67 20 6f 63 63 75 72 73 3a 0a 0a 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20   ┆g occurs:                       ┆
0x1760…1780 53 65 6d 76 61 6c 20 62 65 63 6f 6d 65 73 20 7a 65 72 6f 2c 20 61 74 20 77 68 69 63 68 20 74 69   ┆Semval becomes zero, at which ti┆
0x1780…17a0 6d 65 20 74 68 65 20 76 61 6c 75 65 0a 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20   ┆me the value                    ┆
0x17a0…17c0 20 20 6f 66 20 73 65 6d 7a 63 6e 74 20 61 73 73 6f 63 69 61 74 65 64 20 77 69 74 68 20 74 68 65   ┆  of semzcnt associated with the┆
0x17c0…17e0 20 73 70 65 63 69 66 69 65 64 0a 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20   ┆ specified                      ┆
0x17e0…1800 73 65 6d 61 70 68 6f 72 65 20 69 73 20 64 65 63 72 65 6d 65 6e 74 65 64 2e 0a 0a 20 20 20 20 20   ┆semaphore is decremented.       ┆
0x1800…1820 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 54 68 65 20 73 65 6d 69 64 20 66 6f 72 20 77 68   ┆                The semid for wh┆
0x1820…1840 69 63 68 20 74 68 65 20 63 61 6c 6c 69 6e 67 20 70 72 6f 63 65 73 73 20 69 73 0a 20 20 20 20 20   ┆ich the calling process is      ┆
0x1840…1860 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 61 77 61 69 74 69 6e 67 20 61 63 74 69 6f 6e 20   ┆                awaiting action ┆
0x1860…1880 69 73 20 72 65 6d 6f 76 65 64 20 66 72 6f 6d 20 74 68 65 20 73 79 73 74 65 6d 2e 0a 20 20 20 20   ┆is removed from the system.     ┆
0x1880…18a0 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 57 68 65 6e 20 74 68 69 73 20 6f 63 63 75 72   ┆                 When this occur┆
0x18a0…18c0 73 2c 20 5f 08 65 5f 08 72 5f 08 72 5f 08 6e 5f 08 6f 20 69 73 20 73 65 74 20 65 71 75 61 6c 20   ┆s, _ e_ r_ r_ n_ o is set equal ┆
0x18c0…18e0 74 6f 0a 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 45 49 44 52 4d 2c 20 61   ┆to                      EIDRM, a┆
0x18e0…1900 6e 64 20 61 20 76 61 6c 75 65 20 6f 66 20 2d 31 20 69 73 20 72 65 74 75 72 6e 65 64 2e 0a 0a 20   ┆nd a value of -1 is returned.   ┆
0x1900…1920 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 54 68 65 20 63 61 6c 6c 69 6e 67 20   ┆                    The calling ┆
[…truncated at 200 lines…]