|
|
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: s
Length: 5187 (0x1443)
Names: »shmget.2«
└─⟦50656ff4a⟧ Bits:30010538 TX 3.1 Coldstart
└─⟦bbf173f5c⟧ »0004«
└─⟦this⟧ »./usr/man/cat2/shmget.2«
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 68 6d 67 65 74 28 32 29 0a 0a 0a 0a ┆s shmget(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 68 6d 67 65 74 20 2d 20 67 65 74 20 73 68 61 72 65 64 20 6d 65 6d 6f 72 79 20 73 65 67 ┆ shmget - get shared memory seg┆ 0x00a0…00c0 6d 65 6e 74 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 ┆ment S S S SY Y Y YN N N NT T T┆ 0x00c0…00e0 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 69 ┆ TA A A AX X X X # # # #i i┆ 0x00e0…0100 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┆ 0x0100…0120 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┆ 0x0120…0140 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 79 ┆ y ys s s s/ / / /t t t ty y y y┆ 0x0140…0160 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 08 ┆p p p pe e e es s s s. . . .h h ┆ 0x0160…0180 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 08 ┆h h> > > > # # # #i i i in ┆ 0x0180…01a0 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 ┆ 0x01a0…01c0 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 ┆ 0x01c0…01e0 73 08 73 08 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 ┆s s s/ / / /i i i ip p p pc c c ┆ 0x01e0…0200 63 2e 08 2e 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 ┆c. . . .h h h h> > > > # # ┆ 0x0200…0220 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 6c 08 6c 75 ┆# #i i i in n n nc c c cl l l lu┆ 0x0220…0240 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 73 08 73 08 ┆ u u ud d d de e e e < < < <s s ┆ 0x0240…0260 73 08 73 79 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 68 ┆s sy y y ys s s s/ / / /s s s sh┆ 0x0260…0280 08 68 08 68 08 68 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 ┆ h h hm m m m. . . .h h h h> > >┆ 0x0280…02a0 08 3e 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 08 74 20 73 ┆ > i i i in n n nt t t t s┆ 0x02a0…02c0 08 73 08 73 08 73 68 08 68 08 68 08 68 6d 08 6d 08 6d 08 6d 67 08 67 08 67 08 67 65 08 65 08 65 ┆ s s sh h h hm m m mg g g ge e e┆ 0x02c0…02e0 08 65 74 08 74 08 74 08 74 28 08 28 08 28 08 28 6b 08 6b 08 6b 08 6b 65 08 65 08 65 08 65 79 08 ┆ et t t t( ( ( (k k k ke e e ey ┆ 0x02e0…0300 79 08 79 08 79 2c 08 2c 08 2c 08 2c 20 73 08 73 08 73 08 73 69 08 69 08 69 08 69 7a 08 7a 08 7a ┆y y y, , , , s s s si i i iz z z┆ 0x0300…0320 08 7a 65 08 65 08 65 08 65 2c 08 2c 08 2c 08 2c 20 73 08 73 08 73 08 73 68 08 68 08 68 08 68 6d ┆ ze e e e, , , , s s s sh h h hm┆ 0x0320…0340 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 08 29 08 29 ┆ m m mf f f fl l l lg g g g) ) )┆ 0x0340…0360 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 79 5f 08 5f ┆ ) k k k ke e e ey y y y_ _┆ 0x0360…0380 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 79 08 79 08 ┆ _ _t t t t k k k ke e e ey y y ┆ 0x0380…03a0 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 74 08 74 08 ┆y; ; ; ; i i i in n n nt t ┆ 0x03a0…03c0 74 08 74 20 73 08 73 08 73 08 73 69 08 69 08 69 08 69 7a 08 7a 08 7a 08 7a 65 08 65 08 65 08 65 ┆t t s s s si i i iz z z ze e e e┆ 0x03c0…03e0 2c 08 2c 08 2c 08 2c 20 73 08 73 08 73 08 73 68 08 68 08 68 08 68 6d 08 6d 08 6d 08 6d 66 08 66 ┆, , , , s s s sh h h hm m m mf f┆ 0x03e0…0400 08 66 08 66 6c 08 6c 08 6c 08 6c 67 08 67 08 67 08 67 3b 08 3b 08 3b 08 3b 0a 0a 44 08 44 08 44 ┆ f fl l l lg g g g; ; ; ; D D D┆ 0x0400…0420 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 08 52 49 08 ┆ DE E E ES S S SC C C CR R R RI ┆ 0x0420…0440 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 4f 08 4f 08 ┆I I IP P P PT T T TI I I IO O O ┆ 0x0440…0460 4f 4e 08 4e 08 4e 08 4e 0a 20 20 20 20 20 5f 08 73 5f 08 68 5f 08 6d 5f 08 67 5f 08 65 5f 08 74 ┆ON N N N _ s_ h_ m_ g_ e_ t┆ 0x0460…0480 20 72 65 74 75 72 6e 73 20 74 68 65 20 73 68 61 72 65 64 20 6d 65 6d 6f 72 79 20 69 64 65 6e 74 ┆ returns the shared memory ident┆ 0x0480…04a0 69 66 69 65 72 20 61 73 73 6f 63 69 61 74 65 64 20 77 69 74 68 0a 20 20 20 20 20 5f 08 6b 5f 08 ┆ifier associated with _ k_ ┆ 0x04a0…04c0 65 5f 08 79 2e 0a 0a 20 20 20 20 20 41 20 73 68 61 72 65 64 20 6d 65 6d 6f 72 79 20 69 64 65 6e ┆e_ y. A shared memory iden┆ 0x04c0…04e0 74 69 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 ┆tifier and associated data struc┆ 0x04e0…0500 74 75 72 65 20 61 6e 64 0a 20 20 20 20 20 73 68 61 72 65 64 20 6d 65 6d 6f 72 79 20 73 65 67 6d ┆ture and shared memory segm┆ 0x0500…0520 65 6e 74 20 6f 66 20 73 69 7a 65 20 5f 08 73 5f 08 69 5f 08 7a 5f 08 65 20 62 79 74 65 73 20 28 ┆ent of size _ s_ i_ z_ e bytes (┆ 0x0520…0540 73 65 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 ┆see < < < <s s s sy y y ys s s s┆ 0x0540…0560 2f 08 2f 08 2f 08 2f 73 08 73 08 73 08 73 68 08 68 08 68 08 68 6d 08 6d 08 6d 08 6d 2e 08 2e 08 ┆/ / / /s s s sh h h hm m m m. . ┆ 0x0560…0580 2e 08 2e 68 08 68 08 68 08 68 3e 08 3e 08 3e 08 3e 29 0a 20 20 20 20 20 61 72 65 20 63 72 65 61 ┆. .h h h h> > > >) are crea┆ 0x0580…05a0 74 65 64 20 66 6f 72 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 ┆ted for _ k_ e_ y if one of the ┆ 0x05a0…05c0 66 6f 6c 6c 6f 77 69 6e 67 20 61 72 65 20 74 72 75 65 3a 0a 0a 20 20 20 20 20 6f 08 2b 20 20 5f ┆following are true: o + _┆ 0x05c0…05e0 08 6b 5f 08 65 5f 08 79 20 69 73 20 65 71 75 61 6c 20 74 6f 20 49 50 43 5f 50 52 49 56 41 54 45 ┆ k_ e_ y is equal to IPC_PRIVATE┆ 0x05e0…0600 2e 0a 20 20 20 20 20 6f 08 2b 20 20 5f 08 6b 5f 08 65 5f 08 79 20 64 6f 65 73 20 6e 6f 74 20 61 ┆. o + _ k_ e_ y does not a┆ 0x0600…0620 6c 72 65 61 64 79 20 68 61 76 65 20 61 20 73 68 61 72 65 64 20 6d 65 6d 6f 72 79 20 69 64 65 6e ┆lready have a shared memory iden┆ 0x0620…0640 74 69 66 69 65 72 0a 20 20 20 20 20 20 20 20 61 73 73 6f 63 69 61 74 65 64 20 77 69 74 68 20 69 ┆tifier associated with i┆ 0x0640…0660 74 2c 20 61 6e 64 20 28 5f 08 73 5f 08 68 5f 08 6d 5f 08 66 5f 08 6c 5f 08 67 20 26 20 49 50 43 ┆t, and (_ s_ h_ m_ f_ l_ g & IPC┆ 0x0660…0680 5f 43 52 45 41 54 29 20 69 73 20 6e 6f 6e 2d 7a 65 72 6f 2e 0a 0a 20 20 20 20 20 55 70 6f 6e 20 ┆_CREAT) is non-zero. Upon ┆ 0x0680…06a0 63 72 65 61 74 69 6f 6e 2c 20 74 68 65 20 64 61 74 61 20 73 74 72 75 63 74 75 72 65 20 61 73 73 ┆creation, the data structure ass┆ 0x06a0…06c0 6f 63 69 61 74 65 64 20 77 69 74 68 20 74 68 65 20 6e 65 77 0a 20 20 20 20 20 73 68 61 72 65 64 ┆ociated with the new shared┆ 0x06c0…06e0 20 6d 65 6d 6f 72 79 20 69 64 65 6e 74 69 66 69 65 72 20 69 73 20 69 6e 69 74 69 61 6c 69 7a 65 ┆ memory identifier is initialize┆ 0x06e0…0700 64 20 61 73 20 66 6f 6c 6c 6f 77 73 3a 0a 0a 20 20 20 20 20 6f 08 2b 20 20 5f 08 73 5f 08 68 5f ┆d as follows: o + _ s_ h_┆ 0x0700…0720 08 6d 5f 5f 08 70 5f 08 65 5f 08 72 5f 08 6d 2e 5f 08 63 5f 08 75 5f 08 69 5f 08 64 2c 20 5f 08 ┆ m__ p_ e_ r_ m._ c_ u_ i_ d, _ ┆ 0x0720…0740 73 5f 08 68 5f 08 6d 5f 5f 08 70 5f 08 65 5f 08 72 5f 08 6d 2e 5f 08 75 5f 08 69 5f 08 64 2c 20 ┆s_ h_ m__ p_ e_ r_ m._ u_ i_ d, ┆ 0x0740…0760 5f 08 73 5f 08 68 5f 08 6d 5f 5f 08 70 5f 08 65 5f 08 72 5f 08 6d 2e 5f 08 63 5f 08 67 5f 08 69 ┆_ s_ h_ m__ p_ e_ r_ m._ c_ g_ i┆ 0x0760…0780 5f 08 64 2c 20 61 6e 64 0a 20 20 20 20 20 20 20 20 5f 08 73 5f 08 68 5f 08 6d 5f 5f 08 70 5f 08 ┆_ d, and _ s_ h_ m__ p_ ┆ 0x0780…07a0 65 5f 08 72 5f 08 6d 2e 5f 08 67 5f 08 69 5f 08 64 20 61 72 65 20 73 65 74 20 65 71 75 61 6c 20 ┆e_ r_ m._ g_ i_ d are set equal ┆ 0x07a0…07c0 74 6f 20 74 68 65 20 65 66 66 65 63 74 69 76 65 20 75 73 65 72 20 49 44 20 61 6e 64 0a 20 20 20 ┆to the effective user ID and ┆ 0x07c0…07e0 20 20 20 20 20 65 66 66 65 63 74 69 76 65 20 67 72 6f 75 70 20 49 44 2c 20 72 65 73 70 65 63 74 ┆ effective group ID, respect┆ 0x07e0…0800 69 76 65 6c 79 2c 20 6f 66 20 74 68 65 20 63 61 6c 6c 69 6e 67 20 70 72 6f 63 65 73 73 2e 0a 20 ┆ively, of the calling process. ┆ 0x0800…0820 20 20 20 20 6f 08 2b 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 ┆ o + The low-order 9 bits of┆ 0x0820…0840 20 5f 08 73 5f 08 68 5f 08 6d 5f 5f 08 70 5f 08 65 5f 08 72 5f 08 6d 2e 5f 08 6d 5f 08 6f 5f 08 ┆ _ s_ h_ m__ p_ e_ r_ m._ m_ o_ ┆ 0x0840…0860 64 5f 08 65 20 61 72 65 20 73 65 74 20 65 71 75 61 6c 20 74 6f 0a 20 20 20 20 20 20 20 20 74 68 ┆d_ e are set equal to th┆ 0x0860…0880 65 20 6c 6f 77 2d 6f 72 64 65 72 20 39 20 62 69 74 73 20 6f 66 20 5f 08 73 5f 08 68 5f 08 6d 5f ┆e low-order 9 bits of _ s_ h_ m_┆ 0x0880…08a0 08 66 5f 08 6c 5f 08 67 2e 20 20 5f 08 73 5f 08 68 5f 08 6d 5f 5f 08 73 5f 08 65 5f 08 67 5f 08 ┆ f_ l_ g. _ s_ h_ m__ s_ e_ g_ ┆ 0x08a0…08c0 73 5f 08 7a 20 69 73 20 73 65 74 20 65 71 75 61 6c 0a 20 20 20 20 20 20 20 20 74 6f 20 74 68 65 ┆s_ z is set equal to the┆ 0x08c0…08e0 20 76 61 6c 75 65 20 6f 66 20 5f 08 73 5f 08 69 5f 08 7a 5f 08 65 2e 0a 20 20 20 20 20 6f 08 2b ┆ value of _ s_ i_ z_ e. o +┆ 0x08e0…0900 20 20 5f 08 73 5f 08 68 5f 08 6d 5f 5f 08 6c 5f 08 70 5f 08 69 5f 08 64 2c 20 5f 08 73 5f 08 68 ┆ _ s_ h_ m__ l_ p_ i_ d, _ s_ h┆ 0x0900…0920 5f 08 6d 5f 5f 08 6e 5f 08 61 5f 08 74 5f 08 74 5f 08 63 5f 08 68 2c 20 5f 08 73 5f 08 68 5f 08 ┆_ m__ n_ a_ t_ t_ c_ h, _ s_ h_ ┆ 0x0920…0940 6d 5f 5f 08 61 5f 08 74 5f 08 69 5f 08 6d 5f 08 65 2c 20 61 6e 64 20 5f 08 73 5f 08 68 5f 08 6d ┆m__ a_ t_ i_ m_ e, and _ s_ h_ m┆ 0x0940…0960 5f 5f 08 64 5f 08 74 5f 08 69 5f 08 6d 5f 08 65 20 61 72 65 20 73 65 74 0a 20 20 20 20 20 20 20 ┆__ d_ t_ i_ m_ e are set ┆ 0x0960…0980 20 65 71 75 61 6c 20 74 6f 20 30 2e 0a 20 20 20 20 20 6f 08 2b 20 20 5f 08 73 5f 08 68 5f 08 6d ┆ equal to 0. o + _ s_ h_ m┆ 0x0980…09a0 5f 5f 08 63 5f 08 74 5f 08 69 5f 08 6d 5f 08 65 20 69 73 20 73 65 74 20 65 71 75 61 6c 20 74 6f ┆__ c_ t_ i_ m_ e is set equal to┆ 0x09a0…09c0 20 74 68 65 20 63 75 72 72 65 6e 74 20 74 69 6d 65 2e 0a 0a 20 20 20 20 20 54 68 65 20 73 68 61 ┆ the current time. The sha┆ 0x09c0…09e0 72 65 64 20 6d 65 6d 6f 72 79 20 69 73 20 6e 6f 72 6d 61 6c 6c 79 20 61 6c 6c 6f 63 61 74 65 64 ┆red memory is normally allocated┆ 0x09e0…0a00 20 69 6e 20 74 68 65 20 73 77 61 70 70 61 62 6c 65 0a 20 20 20 20 20 70 68 79 73 69 63 61 6c 20 ┆ in the swappable physical ┆ 0x0a00…0a20 6d 65 6d 6f 72 79 2e 20 20 48 6f 77 65 76 65 72 20 69 66 20 28 5f 08 73 5f 08 68 5f 08 6d 5f 08 ┆memory. However if (_ s_ h_ m_ ┆ 0x0a20…0a40 66 5f 08 6c 5f 08 67 20 26 20 53 48 4d 5f 53 45 4d 41 29 20 69 73 20 74 72 75 65 0a 20 20 20 20 ┆f_ l_ g & SHM_SEMA) is true ┆ 0x0a40…0a60 20 73 70 65 63 69 61 6c 20 22 74 65 73 74 20 61 6e 64 20 73 65 74 22 20 6d 65 6d 6f 72 79 20 69 ┆ special "test and set" memory i┆ 0x0a60…0a80 73 20 61 6c 6c 6f 63 61 74 65 64 2e 20 20 54 68 69 73 20 6d 65 6d 6f 72 79 0a 20 20 20 20 20 63 ┆s allocated. This memory c┆ 0x0a80…0aa0 6f 6e 73 69 73 74 20 6f 66 20 6f 6e 6c 79 20 6f 6e 65 20 62 69 74 20 70 65 72 20 32 20 77 6f 72 ┆onsist of only one bit per 2 wor┆ 0x0aa0…0ac0 64 73 20 6f 66 20 61 64 64 72 65 73 73 20 73 70 61 63 65 20 6c 6f 63 61 74 65 64 0a 20 20 20 20 ┆ds of address space located ┆ 0x0ac0…0ae0 20 69 6e 20 74 68 65 20 6c 65 61 73 74 20 73 69 67 6e 69 66 69 63 61 6e 74 20 62 69 74 20 6f 66 ┆ in the least significant bit of┆ 0x0ae0…0b00 20 74 68 65 20 66 69 72 73 74 20 77 6f 72 64 2e 20 57 68 65 6e 20 74 68 69 73 0a 20 20 20 20 20 ┆ the first word. When this ┆ 0x0b00…0b20 62 69 74 20 69 73 20 72 65 61 64 20 69 74 73 20 63 6f 6e 74 65 6e 74 73 20 69 73 20 61 74 6f 6d ┆bit is read its contents is atom┆ 0x0b20…0b40 69 63 61 6c 6c 79 20 63 68 61 6e 67 65 64 20 74 6f 20 6f 6e 65 2e 20 57 68 65 6e 0a 20 20 20 20 ┆ically changed to one. When ┆ 0x0b40…0b60 20 74 68 65 20 62 69 74 20 69 73 20 77 72 69 74 74 65 6e 20 74 6f 20 69 74 73 20 63 6f 6e 74 65 ┆ the bit is written to its conte┆ 0x0b60…0b80 6e 74 73 20 69 73 20 73 65 74 20 74 6f 20 7a 65 72 6f 20 72 65 67 61 72 64 6c 65 73 73 0a 20 20 ┆nts is set to zero regardless ┆ 0x0b80…0ba0 20 20 20 6f 66 20 74 68 65 20 77 72 69 74 74 65 6e 20 76 61 6c 75 65 2e 20 44 75 65 20 74 6f 20 ┆ of the written value. Due to ┆ 0x0ba0…0bc0 74 68 65 20 63 61 63 68 65 73 20 6f 6e 20 74 68 65 20 43 50 55 20 62 6f 61 72 64 73 0a 20 20 20 ┆the caches on the CPU boards ┆ 0x0bc0…0be0 20 20 74 68 69 73 20 74 79 70 65 20 6f 66 20 6d 65 6d 6f 72 79 20 6d 75 73 74 20 6f 6e 6c 79 20 ┆ this type of memory must only ┆ 0x0be0…0c00 62 65 20 72 65 61 64 20 75 73 69 6e 67 20 72 65 61 64 6f 6e 6c 79 20 73 65 67 2d 0a 20 20 20 20 ┆be read using readonly seg- ┆ 0x0c00…0c20 20 6d 65 6e 74 73 20 73 70 65 63 69 66 69 65 64 20 62 79 20 5f 08 73 5f 08 68 5f 08 6d 5f 08 61 ┆ ments specified by _ s_ h_ m_ a┆ 0x0c20…0c40 5f 08 74 28 32 29 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 ┆_ t(2). E E E ER R R RR R R RO ┆ 0x0c40…0c60 4f 08 4f 08 4f 52 08 52 08 52 08 52 53 08 53 08 53 08 53 0a 20 20 20 20 20 5f 08 73 5f 08 68 5f ┆O O OR R R RS S S S _ s_ h_┆ 0x0c60…0c80 08 6d 5f 08 67 5f 08 65 5f 08 74 20 77 69 6c 6c 20 66 61 69 6c 20 69 66 20 6f 6e 65 20 6f 72 20 ┆ m_ g_ e_ t will fail if one or ┆ 0x0c80…0ca0 6d 6f 72 65 20 6f 66 20 74 68 65 20 66 6f 6c 6c 6f 77 69 6e 67 20 61 72 65 20 74 72 75 65 3a 0a ┆more of the following are true: ┆ 0x0ca0…0cc0 0a 20 20 20 20 20 5b 45 41 43 43 45 53 5d 20 20 20 20 20 20 20 41 20 73 68 61 72 65 64 20 6d 65 ┆ [EACCES] A shared me┆ 0x0cc0…0ce0 6d 6f 72 79 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 08 ┆mory identifier exists for _ k_ ┆ 0x0ce0…0d00 65 5f 08 79 20 62 75 74 0a 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 6f 70 65 ┆e_ y but ope┆ 0x0d00…0d20 72 61 74 69 6f 6e 20 70 65 72 6d 69 73 73 69 6f 6e 20 61 73 20 73 70 65 63 69 66 69 65 64 20 62 ┆ration permission as specified b┆ 0x0d20…0d40 79 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 6c 6f 77 2d 6f 72 ┆y the low-or┆ 0x0d40…0d60 64 65 72 20 39 20 62 69 74 73 20 6f 66 20 5f 08 73 5f 08 68 5f 08 6d 5f 08 66 5f 08 6c 5f 08 67 ┆der 9 bits of _ s_ h_ m_ f_ l_ g┆ 0x0d60…0d80 20 77 6f 75 6c 64 20 6e 6f 74 20 62 65 0a 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 ┆ would not be ┆ 0x0d80…0da0 20 20 67 72 61 6e 74 65 64 2e 0a 0a 20 20 20 20 20 5b 45 45 58 49 53 54 5d 20 20 20 20 20 20 20 ┆ granted. [EEXIST] ┆ 0x0da0…0dc0 41 20 73 68 61 72 65 64 20 6d 65 6d 6f 72 79 20 69 64 65 6e 74 69 66 69 65 72 20 65 78 69 73 74 ┆A shared memory identifier exist┆ 0x0dc0…0de0 73 20 66 6f 72 20 5f 08 6b 5f 08 65 5f 08 79 20 62 75 74 0a 20 20 20 20 20 20 20 20 20 20 20 20 ┆s for _ k_ e_ y but ┆ 0x0de0…0e00 20 20 20 20 20 20 20 20 28 28 5f 08 73 5f 08 68 5f 08 6d 5f 08 66 5f 08 6c 5f 08 67 20 26 20 49 ┆ ((_ s_ h_ m_ f_ l_ g & I┆ 0x0e00…0e20 50 43 5f 43 52 45 41 54 29 20 26 26 20 28 5f 08 73 5f 08 68 5f 08 6d 5f 08 66 5f 08 6c 5f 08 67 ┆PC_CREAT) && (_ s_ h_ m_ f_ l_ g┆ 0x0e20…0e40 20 26 20 49 50 43 5f 45 58 43 4c 29 29 0a 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 ┆ & IPC_EXCL)) ┆ 0x0e40…0e60 20 20 69 73 20 6e 6f 6e 2d 7a 65 72 6f 2e 0a 0a 0a 0a 0a 0a 0a 20 20 20 20 20 5b 45 49 4e 56 41 ┆ is non-zero. [EINVA┆ 0x0e60…0e80 4c 5d 20 20 20 20 20 20 20 5f 08 73 5f 08 69 5f 08 7a 5f 08 65 20 69 73 20 6c 65 73 73 20 74 68 ┆L] _ s_ i_ z_ e is less th┆ 0x0e80…0ea0 61 6e 20 74 68 65 20 73 79 73 74 65 6d 20 69 6d 70 6f 73 65 64 20 6d 69 6e 69 6d 75 6d 0a 20 20 ┆an the system imposed minimum ┆ 0x0ea0…0ec0 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 6f 72 20 67 72 65 61 74 65 72 20 74 68 61 ┆ or greater tha┆ 0x0ec0…0ee0 6e 20 74 68 65 20 73 79 73 74 65 6d 20 69 6d 70 6f 73 65 64 20 6d 61 78 69 6d 75 6d 3b 0a 20 20 ┆n the system imposed maximum; ┆ 0x0ee0…0f00 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 6f 72 20 61 20 73 68 61 72 65 64 20 6d 65 ┆ or a shared me┆ 0x0f00…0f20 6d 6f 72 79 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 08 ┆mory identifier exists for _ k_ ┆ 0x0f20…0f40 65 5f 08 79 0a 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 62 75 74 20 74 68 65 ┆e_ y but the┆ 0x0f40…0f60 20 73 69 7a 65 20 6f 66 20 74 68 65 20 73 65 67 6d 65 6e 74 20 61 73 73 6f 63 69 61 74 65 64 20 ┆ size of the segment associated ┆ 0x0f60…0f80 77 69 74 68 0a 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 69 74 20 69 73 20 6c ┆with it is l┆ 0x0f80…0fa0 65 73 73 20 74 68 61 6e 20 5f 08 73 5f 08 69 5f 08 7a 5f 08 65 20 61 6e 64 20 5f 08 73 5f 08 69 ┆ess than _ s_ i_ z_ e and _ s_ i┆ 0x0fa0…0fc0 5f 08 7a 5f 08 65 20 69 73 20 6e 6f 74 20 65 71 75 61 6c 20 74 6f 0a 20 20 20 20 20 20 20 20 20 ┆_ z_ e is not equal to ┆ 0x0fc0…0fe0 20 20 20 20 20 20 20 20 20 20 20 7a 65 72 6f 2e 0a 0a 20 20 20 20 20 5b 45 4e 4f 45 4e 54 5d 20 ┆ zero. [ENOENT] ┆ 0x0fe0…1000 20 20 20 20 20 20 41 20 73 68 61 72 65 64 20 6d 65 6d 6f 72 79 20 69 64 65 6e 74 69 66 69 65 72 ┆ A shared memory identifier┆ 0x1000…1020 20 64 6f 65 73 20 6e 6f 74 20 65 78 69 73 74 20 66 6f 72 0a 20 20 20 20 20 20 20 20 20 20 20 20 ┆ does not exist for ┆ 0x1020…1040 20 20 20 20 20 20 20 20 5f 08 6b 5f 08 65 5f 08 79 20 61 6e 64 20 28 5f 08 73 5f 08 68 5f 08 6d ┆ _ k_ e_ y and (_ s_ h_ m┆ 0x1040…1060 5f 08 66 5f 08 6c 5f 08 67 20 26 20 49 50 43 5f 43 52 45 41 54 29 20 69 73 20 65 71 75 61 6c 20 ┆_ f_ l_ g & IPC_CREAT) is equal ┆ 0x1060…1080 74 6f 0a 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 7a 65 72 6f 2e 0a 0a 20 20 ┆to zero. ┆ 0x1080…10a0 20 20 20 5b 45 4e 4f 4d 45 4d 5d 20 20 20 20 20 20 20 41 20 73 68 61 72 65 64 20 6d 65 6d 6f 72 ┆ [ENOMEM] A shared memor┆ 0x10a0…10c0 79 20 69 64 65 6e 74 69 66 69 65 72 20 61 6e 64 20 61 73 73 6f 63 69 61 74 65 64 0a 20 20 20 20 ┆y identifier and associated ┆ 0x10c0…10e0 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 73 68 61 72 65 64 20 6d 65 6d 6f 72 79 20 73 65 ┆ shared memory se┆ 0x10e0…1100 67 6d 65 6e 74 20 61 72 65 20 74 6f 20 62 65 20 63 72 65 61 74 65 64 20 62 75 74 0a 20 20 20 20 ┆gment are to be created but ┆ 0x1100…1120 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 74 68 65 20 61 6d 6f 75 6e 74 20 6f 66 20 61 76 ┆ the amount of av┆ 0x1120…1140 61 69 6c 61 62 6c 65 20 70 68 79 73 69 63 61 6c 20 6d 65 6d 6f 72 79 20 69 73 0a 20 20 20 20 20 ┆ailable physical memory is ┆ 0x1140…1160 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 6e 6f 74 20 73 75 66 66 69 63 69 65 6e 74 20 74 6f ┆ not sufficient to┆ 0x1160…1180 20 66 69 6c 6c 20 74 68 65 20 72 65 71 75 65 73 74 2e 0a 0a 20 20 20 20 20 5b 45 4e 4f 53 50 43 ┆ fill the request. [ENOSPC┆ 0x1180…11a0 5d 20 20 20 20 20 20 20 41 20 73 68 61 72 65 64 20 6d 65 6d 6f 72 79 20 69 64 65 6e 74 69 66 69 ┆] A shared memory identifi┆ 0x11a0…11c0 65 72 20 69 73 20 74 6f 20 62 65 20 63 72 65 61 74 65 64 0a 20 20 20 20 20 20 20 20 20 20 20 20 ┆er is to be created ┆ 0x11c0…11e0 20 20 20 20 20 20 20 20 62 75 74 20 74 68 65 20 73 79 73 74 65 6d 20 69 6d 70 6f 73 65 64 20 6c ┆ but the system imposed l┆ 0x11e0…1200 69 6d 69 74 20 6f 6e 20 74 68 65 20 6d 61 78 69 6d 75 6d 0a 20 20 20 20 20 20 20 20 20 20 20 20 ┆imit on the maximum ┆ 0x1200…1220 20 20 20 20 20 20 20 20 6e 75 6d 62 65 72 20 6f 66 20 61 6c 6c 6f 77 65 64 20 73 68 61 72 65 64 ┆ number of allowed shared┆ 0x1220…1240 20 6d 65 6d 6f 72 79 20 69 64 65 6e 74 69 66 69 65 72 73 0a 20 20 20 20 20 20 20 20 20 20 20 20 ┆ memory identifiers ┆ 0x1240…1260 20 20 20 20 20 20 20 20 73 79 73 74 65 6d 20 77 69 64 65 20 77 6f 75 6c 64 20 62 65 20 65 78 63 ┆ system wide would be exc┆ 0x1260…1280 65 65 64 65 64 2e 0a 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 ┆eeded. R R R RE E E ET T T TU U┆ 0x1280…12a0 08 55 08 55 52 08 52 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 ┆ U UR R R RN N N N V V V VA A A ┆ 0x12a0…12c0 41 4c 08 4c 08 4c 08 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 ┆AL L L LU U U UE E E E Upon┆ 0x12c0…12e0 20 73 75 63 63 65 73 73 66 75 6c 20 63 6f 6d 70 6c 65 74 69 6f 6e 2c 20 61 20 6e 6f 6e 2d 6e 65 ┆ successful completion, a non-ne┆ 0x12e0…1300 67 61 74 69 76 65 20 69 6e 74 65 67 65 72 2c 20 6e 61 6d 65 6c 79 20 61 0a 20 20 20 20 20 73 68 ┆gative integer, namely a sh┆ 0x1300…1320 61 72 65 64 20 6d 65 6d 6f 72 79 20 69 64 65 6e 74 69 66 69 65 72 20 69 73 20 72 65 74 75 72 6e ┆ared memory identifier is return┆ 0x1320…1340 65 64 2e 20 20 4f 74 68 65 72 77 69 73 65 2c 20 61 20 76 61 6c 75 65 20 6f 66 0a 20 20 20 20 20 ┆ed. Otherwise, a value of ┆ 0x1340…1360 2d 31 20 69 73 20 72 65 74 75 72 6e 65 64 20 61 6e 64 20 5f 08 65 5f 08 72 5f 08 72 5f 08 6e 5f ┆-1 is returned and _ e_ r_ r_ n_┆ 0x1360…1380 08 6f 20 69 73 20 73 65 74 20 74 6f 20 69 6e 64 69 63 61 74 65 20 74 68 65 20 65 72 72 6f 72 2e ┆ o is set to indicate the error.┆ 0x1380…13a0 0a 0a 53 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 ┆ S S S SE E E EE E E E A A A AL┆ 0x13a0…13c0 08 4c 08 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 ┆ L L LS S S SO O O O System┆ 0x13c0…13e0 20 43 61 6c 6c 73 20 28 32 29 3a 20 20 73 68 6d 61 74 2c 20 73 68 6d 63 74 6c 2c 20 73 68 6d 64 ┆ Calls (2): shmat, shmctl, shmd┆ 0x13e0…1400 74 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 20 20 20 20 ┆t December 1990 ┆ 0x1400…1420 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 65 66 65 72 ┆ TX Programmer's Refer┆ 0x1420…1440 65 6e 63 65 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 ┆ence ┆ 0x1440…1443 0a 0a 0a ┆ ┆