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

⟦1d427653e⟧

    Length: 4778 (0x12aa)
    Names: »shmop.2«

Derivation

└─⟦50656ff4a⟧ Bits:30010538 TX 3.1 Coldstart
    └─⟦bbf173f5c⟧ »0004« 
        └─⟦this⟧ »./bsd/usr/man/cat2/shmop.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 68 6d 6f 70 28 32 29 0a 0a 0a 0a   ┆s                   shmop(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 6f 70 20 2d 20 73 68 61 72 65 64 20 6d 65 6d 6f 72 79 20 6f 70 65 72 61 74 69 6f   ┆  shmop - shared memory operatio┆
0x00a0…00c0 6e 73 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   ┆ns  S S S SY Y Y YN N N NT T T T┆
0x00c0…00e0 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 08 69   ┆A A A AX X X X      # # # #i i i┆
0x00e0…0100 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 64 08   ┆ in n n nc c c cl l l lu u u ud ┆
0x0100…0120 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 08 79   ┆d d de e e e < < < <s s s sy y y┆
0x0120…0140 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 70 08   ┆ ys s s s/ / / /t t t ty y y yp ┆
0x0140…0160 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 68 08   ┆p p pe e e es s s s. . . .h h h ┆
0x0160…0180 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 6e 08   ┆h> > > >      # # # #i i i in n ┆
0x0180…01a0 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 64 65   ┆n nc c c cl l l lu u u ud d d de┆
0x01a0…01c0 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 73 08   ┆ e e e < < < <s s s sy y y ys s ┆
0x01c0…01e0 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 63 2e   ┆s s/ / / /i i i ip p p pc c c c.┆
0x01e0…0200 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 23 08   ┆ . . .h h h h> > > >      # # # ┆
0x0200…0220 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 08 75   ┆#i i i in n n nc c c cl l l lu u┆
0x0220…0240 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 73 08   ┆ u ud d d de e e e < < < <s s s ┆
0x0240…0260 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 08 68   ┆sy y y ys s s s/ / / /s s s sh h┆
0x0260…0280 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 08 3e   ┆ h hm m m m. . . .h h h h> > > >┆
0x0280…02a0 0a 0a 20 20 20 20 20 63 08 63 08 63 08 63 68 08 68 08 68 08 68 61 08 61 08 61 08 61 72 08 72 08   ┆       c c c ch h h ha a a ar r ┆
0x02a0…02c0 72 08 72 20 2a 08 2a 08 2a 08 2a 73 08 73 08 73 08 73 68 08 68 08 68 08 68 6d 08 6d 08 6d 08 6d   ┆r r * * * *s s s sh h h hm m m m┆
0x02c0…02e0 61 08 61 08 61 08 61 74 08 74 08 74 08 74 20 28 08 28 08 28 08 28 73 08 73 08 73 08 73 68 08 68   ┆a a a at t t t ( ( ( (s s s sh h┆
0x02e0…0300 08 68 08 68 6d 08 6d 08 6d 08 6d 69 08 69 08 69 08 69 64 08 64 08 64 08 64 2c 08 2c 08 2c 08 2c   ┆ h hm m m mi i i id d d d, , , ,┆
0x0300…0320 20 73 08 73 08 73 08 73 68 08 68 08 68 08 68 6d 08 6d 08 6d 08 6d 61 08 61 08 61 08 61 64 08 64   ┆ s s s sh h h hm m m ma a a ad d┆
0x0320…0340 08 64 08 64 64 08 64 08 64 08 64 72 08 72 08 72 08 72 2c 08 2c 08 2c 08 2c 20 73 08 73 08 73 08   ┆ d dd d d dr r r r, , , , s s s ┆
0x0340…0360 73 68 08 68 08 68 08 68 6d 08 6d 08 6d 08 6d 66 08 66 08 66 08 66 6c 08 6c 08 6c 08 6c 67 08 67   ┆sh h h hm m m mf f f fl l l lg g┆
0x0360…0380 08 67 08 67 29 08 29 08 29 08 29 0a 20 20 20 20 20 69 08 69 08 69 08 69 6e 08 6e 08 6e 08 6e 74   ┆ g g) ) ) )      i i i in n n nt┆
0x0380…03a0 08 74 08 74 08 74 20 73 08 73 08 73 08 73 68 08 68 08 68 08 68 6d 08 6d 08 6d 08 6d 69 08 69 08   ┆ t t t s s s sh h h hm m m mi i ┆
0x03a0…03c0 69 08 69 64 08 64 08 64 08 64 3b 08 3b 08 3b 08 3b 0a 20 20 20 20 20 63 08 63 08 63 08 63 68 08   ┆i id d d d; ; ; ;      c c c ch ┆
0x03c0…03e0 68 08 68 08 68 61 08 61 08 61 08 61 72 08 72 08 72 08 72 20 2a 08 2a 08 2a 08 2a 73 08 73 08 73   ┆h h ha a a ar r r r * * * *s s s┆
0x03e0…0400 08 73 68 08 68 08 68 08 68 6d 08 6d 08 6d 08 6d 61 08 61 08 61 08 61 64 08 64 08 64 08 64 64 08   ┆ sh h h hm m m ma a a ad d d dd ┆
0x0400…0420 64 08 64 08 64 72 08 72 08 72 08 72 0a 20 20 20 20 20 69 08 69 08 69 08 69 6e 08 6e 08 6e 08 6e   ┆d d dr r r r      i i i in n n n┆
0x0420…0440 74 08 74 08 74 08 74 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   ┆t t t t s s s sh h h hm m m mf f┆
0x0440…0460 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 20 20 20 20 20   ┆ f fl l l lg g g g; ; ; ;       ┆
0x0460…0480 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 68 08 68   ┆i i i in n n nt t t t s s s sh h┆
0x0480…04a0 08 68 08 68 6d 08 6d 08 6d 08 6d 64 08 64 08 64 08 64 74 08 74 08 74 08 74 20 28 08 28 08 28 08   ┆ h hm m m md d d dt t t t ( ( ( ┆
0x04a0…04c0 28 73 08 73 08 73 08 73 68 08 68 08 68 08 68 6d 08 6d 08 6d 08 6d 61 08 61 08 61 08 61 64 08 64   ┆(s s s sh h h hm m m ma a a ad d┆
0x04c0…04e0 08 64 08 64 64 08 64 08 64 08 64 72 08 72 08 72 08 72 29 08 29 08 29 08 29 0a 20 20 20 20 20 63   ┆ d dd d d dr r r r) ) ) )      c┆
0x04e0…0500 08 63 08 63 08 63 68 08 68 08 68 08 68 61 08 61 08 61 08 61 72 08 72 08 72 08 72 20 2a 08 2a 08   ┆ c c ch h h ha a a ar r r r * * ┆
0x0500…0520 2a 08 2a 73 08 73 08 73 08 73 68 08 68 08 68 08 68 6d 08 6d 08 6d 08 6d 61 08 61 08 61 08 61 64   ┆* *s s s sh h h hm m m ma a a ad┆
0x0520…0540 08 64 08 64 08 64 64 08 64 08 64 08 64 72 08 72 08 72 08 72 0a 0a 44 08 44 08 44 08 44 45 08 45   ┆ d d dd d d dr r r r  D D D DE E┆
0x0540…0560 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┆
0x0560…0580 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 ┆
0x0580…05a0 4e 08 4e 0a 20 20 20 20 20 5f 08 73 5f 08 68 5f 08 6d 5f 08 61 5f 08 74 20 61 74 74 61 63 68 65   ┆N N      _ s_ h_ m_ a_ t attache┆
0x05a0…05c0 73 20 74 68 65 20 73 68 61 72 65 64 2d 6d 65 6d 6f 72 79 20 73 65 67 6d 65 6e 74 20 74 68 61 74   ┆s the shared-memory segment that┆
0x05c0…05e0 20 69 73 20 61 73 73 6f 63 69 61 74 65 64 0a 20 20 20 20 20 77 69 74 68 20 74 68 65 20 73 68 61   ┆ is associated      with the sha┆
0x05e0…0600 72 65 64 2d 6d 65 6d 6f 72 79 20 69 64 65 6e 74 69 66 69 65 72 20 5f 08 73 5f 08 68 5f 08 6d 5f   ┆red-memory identifier _ s_ h_ m_┆
0x0600…0620 08 69 5f 08 64 20 74 6f 20 74 68 65 20 64 61 74 61 20 73 65 67 6d 65 6e 74 0a 20 20 20 20 20 6f   ┆ i_ d to the data segment      o┆
0x0620…0640 66 20 74 68 65 20 63 61 6c 6c 69 6e 67 20 70 72 6f 63 65 73 73 2e 20 20 54 68 65 20 73 65 67 6d   ┆f the calling process.  The segm┆
0x0640…0660 65 6e 74 20 69 73 20 61 74 74 61 63 68 65 64 20 61 74 20 74 68 65 0a 20 20 20 20 20 61 64 64 72   ┆ent is attached at the      addr┆
0x0660…0680 65 73 73 20 73 70 65 63 69 66 69 65 64 20 62 79 20 6f 6e 65 20 6f 66 20 74 68 65 20 66 6f 6c 6c   ┆ess specified by one of the foll┆
0x0680…06a0 6f 77 69 6e 67 20 63 72 69 74 65 72 69 61 3a 0a 0a 20 20 20 20 20 20 20 20 20 20 49 66 20 5f 08   ┆owing criteria:            If _ ┆
0x06a0…06c0 73 5f 08 68 5f 08 6d 5f 08 61 5f 08 64 5f 08 64 5f 08 72 20 69 73 20 7a 65 72 6f 2c 20 74 68 65   ┆s_ h_ m_ a_ d_ d_ r is zero, the┆
0x06c0…06e0 20 73 79 73 74 65 6d 20 73 65 6c 65 63 74 73 20 74 68 65 20 66 69 72 73 74 20 61 76 61 69 6c 2d   ┆ system selects the first avail-┆
0x06e0…0700 0a 20 20 20 20 20 20 20 20 20 20 61 62 6c 65 20 61 64 64 72 65 73 73 20 74 6f 20 61 74 74 61 63   ┆           able address to attac┆
0x0700…0720 68 20 74 68 65 20 73 65 67 6d 65 6e 74 2e 0a 0a 20 20 20 20 20 20 20 20 20 20 49 66 20 62 6f 74   ┆h the segment.            If bot┆
0x0720…0740 68 20 5f 08 73 5f 08 68 5f 08 6d 5f 08 61 5f 08 64 5f 08 64 5f 08 72 20 69 73 20 6e 6f 74 20 7a   ┆h _ s_ h_ m_ a_ d_ d_ r is not z┆
0x0740…0760 65 72 6f 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 53 08   ┆ero and (_ s_ h_ m_ f_ l_ g & S ┆
0x0760…0780 53 08 53 08 53 48 08 48 08 48 08 48 4d 08 4d 08 4d 08 4d 5f 08 5f 08 5f 08 5f 52 08 52 08 52 08   ┆S S SH H H HM M M M_ _ _ _R R R ┆
0x0780…07a0 52 4e 08 4e 08 4e 08 4e 44 08 44 08 44 08 44 29 20 69 73 0a 20 20 20 20 20 20 20 20 20 20 60 60   ┆RN N N ND D D D) is           ``┆
0x07a0…07c0 74 72 75 65 27 27 2c 20 74 68 65 20 73 65 67 6d 65 6e 74 20 69 73 20 61 74 74 61 63 68 65 64 20   ┆true'', the segment is attached ┆
0x07c0…07e0 61 74 20 74 68 65 20 61 64 64 72 65 73 73 20 67 69 76 65 6e 0a 20 20 20 20 20 20 20 20 20 20 62   ┆at the address given           b┆
0x07e0…0800 79 20 28 5f 08 73 5f 08 68 5f 08 6d 5f 08 61 5f 08 64 5f 08 64 5f 08 72 20 2d 20 28 5f 08 73 5f   ┆y (_ s_ h_ m_ a_ d_ d_ r - (_ s_┆
0x0800…0820 08 68 5f 08 6d 5f 08 61 5f 08 64 5f 08 64 5f 08 72 20 6d 6f 64 75 6c 75 73 20 53 08 53 08 53 08   ┆ h_ m_ a_ d_ d_ r modulus S S S ┆
0x0820…0840 53 48 08 48 08 48 08 48 4d 08 4d 08 4d 08 4d 4c 08 4c 08 4c 08 4c 42 08 42 08 42 08 42 41 08 41   ┆SH H H HM M M ML L L LB B B BA A┆
0x0840…0860 08 41 08 41 29 29 2e 0a 0a 20 20 20 20 20 20 20 20 20 20 49 66 20 5f 08 73 5f 08 68 5f 08 6d 5f   ┆ A A)).            If _ s_ h_ m_┆
0x0860…0880 08 61 5f 08 64 5f 08 64 5f 08 72 20 69 73 20 6e 6f 74 20 7a 65 72 6f 20 61 6e 64 20 28 5f 08 73   ┆ a_ d_ d_ r is not zero and (_ s┆
0x0880…08a0 5f 08 68 5f 08 6d 5f 08 66 5f 08 6c 5f 08 67 20 26 20 53 08 53 08 53 08 53 48 08 48 08 48 08 48   ┆_ h_ m_ f_ l_ g & S S S SH H H H┆
0x08a0…08c0 4d 08 4d 08 4d 08 4d 5f 08 5f 08 5f 08 5f 52 08 52 08 52 08 52 4e 08 4e 08 4e 08 4e 44 08 44 08   ┆M M M M_ _ _ _R R R RN N N ND D ┆
0x08c0…08e0 44 08 44 29 20 69 73 0a 20 20 20 20 20 20 20 20 20 20 60 60 66 61 6c 73 65 27 27 2c 20 74 68 65   ┆D D) is           ``false'', the┆
0x08e0…0900 20 73 65 67 6d 65 6e 74 20 69 73 20 61 74 74 61 63 68 65 64 20 61 74 20 74 68 65 20 61 64 64 72   ┆ segment is attached at the addr┆
0x0900…0920 65 73 73 20 67 69 76 65 6e 0a 20 20 20 20 20 20 20 20 20 20 62 79 20 5f 08 73 5f 08 68 5f 08 6d   ┆ess given           by _ s_ h_ m┆
0x0920…0940 5f 08 61 5f 08 64 5f 08 64 5f 08 72 2e 0a 0a 20 20 20 20 20 54 68 65 20 73 65 67 6d 65 6e 74 20   ┆_ a_ d_ d_ r.       The segment ┆
0x0940…0960 69 73 20 61 74 74 61 63 68 65 64 20 66 6f 72 20 72 65 61 64 69 6e 67 20 69 66 20 28 5f 08 73 5f   ┆is attached for reading if (_ s_┆
0x0960…0980 08 68 5f 08 6d 5f 08 66 5f 08 6c 5f 08 67 20 26 20 53 08 53 08 53 08 53 48 08 48 08 48 08 48 4d   ┆ h_ m_ f_ l_ g & S S S SH H H HM┆
0x0980…09a0 08 4d 08 4d 08 4d 5f 08 5f 08 5f 08 5f 52 08 52 08 52 08 52 44 08 44 08 44 08 44 4f 08 4f 08 4f   ┆ M M M_ _ _ _R R R RD D D DO O O┆
0x09a0…09c0 08 4f 4e 08 4e 08 4e 08 4e 4c 08 4c 08 4c 08 4c 59 08 59 08 59 08 59 29 0a 20 20 20 20 20 69 73   ┆ ON N N NL L L LY Y Y Y)      is┆
0x09c0…09e0 20 60 60 74 72 75 65 27 27 20 7b 52 45 41 44 7d 2c 20 6f 74 68 65 72 77 69 73 65 20 69 74 20 69   ┆ ``true'' {READ}, otherwise it i┆
0x09e0…0a00 73 20 61 74 74 61 63 68 65 64 20 66 6f 72 20 72 65 61 64 69 6e 67 20 61 6e 64 0a 20 20 20 20 20   ┆s attached for reading and      ┆
0x0a00…0a20 77 72 69 74 69 6e 67 20 7b 52 45 41 44 2f 57 52 49 54 45 7d 2e 0a 0a 20 20 20 20 20 5f 08 73 5f   ┆writing {READ/WRITE}.       _ s_┆
0x0a20…0a40 08 68 5f 08 6d 5f 08 64 5f 08 74 20 64 65 74 61 63 68 65 73 20 66 72 6f 6d 20 74 68 65 20 63 61   ┆ h_ m_ d_ t detaches from the ca┆
0x0a40…0a60 6c 6c 69 6e 67 20 70 72 6f 63 65 73 73 27 73 20 64 61 74 61 20 73 65 67 6d 65 6e 74 20 74 68 65   ┆lling process's data segment the┆
0x0a60…0a80 0a 20 20 20 20 20 73 68 61 72 65 64 2d 6d 65 6d 6f 72 79 20 73 65 67 6d 65 6e 74 20 6c 6f 63 61   ┆      shared-memory segment loca┆
0x0a80…0aa0 74 65 64 20 61 74 20 74 68 65 20 61 64 64 72 65 73 73 20 73 70 65 63 69 66 69 65 64 20 62 79 0a   ┆ted at the address specified by ┆
0x0aa0…0ac0 20 20 20 20 20 5f 08 73 5f 08 68 5f 08 6d 5f 08 61 5f 08 64 5f 08 64 5f 08 72 2e 0a 0a 52 08 52   ┆     _ s_ h_ m_ a_ d_ d_ r.  R R┆
0x0ac0…0ae0 08 52 08 52 45 08 45 08 45 08 45 54 08 54 08 54 08 54 55 08 55 08 55 08 55 52 08 52 08 52 08 52   ┆ R RE E E ET T T TU U U UR R R R┆
0x0ae0…0b00 4e 08 4e 08 4e 08 4e 20 56 08 56 08 56 08 56 41 08 41 08 41 08 41 4c 08 4c 08 4c 08 4c 55 08 55   ┆N N N N V V V VA A A AL L L LU U┆
0x0b00…0b20 08 55 08 55 45 08 45 08 45 08 45 53 08 53 08 53 08 53 0a 20 20 20 20 20 55 70 6f 6e 20 73 75 63   ┆ U UE E E ES S S S      Upon suc┆
0x0b20…0b40 63 65 73 73 66 75 6c 20 63 6f 6d 70 6c 65 74 69 6f 6e 2c 20 74 68 65 20 72 65 74 75 72 6e 20 76   ┆cessful completion, the return v┆
0x0b40…0b60 61 6c 75 65 20 69 73 20 61 73 20 66 6f 6c 6c 6f 77 73 3a 0a 0a 20 20 20 20 20 20 20 20 20 20 5f   ┆alue is as follows:            _┆
0x0b60…0b80 08 73 5f 08 68 5f 08 6d 5f 08 61 5f 08 74 20 72 65 74 75 72 6e 73 20 74 68 65 20 64 61 74 61 2d   ┆ s_ h_ m_ a_ t returns the data-┆
0x0b80…0ba0 73 65 67 6d 65 6e 74 20 73 74 61 72 74 20 61 64 64 72 65 73 73 20 6f 66 20 74 68 65 0a 20 20 20   ┆segment start address of the    ┆
0x0ba0…0bc0 20 20 20 20 20 20 20 61 74 74 61 63 68 65 64 20 73 68 61 72 65 64 2d 6d 65 6d 6f 72 79 20 73 65   ┆       attached shared-memory se┆
0x0bc0…0be0 67 6d 65 6e 74 2e 0a 0a 20 20 20 20 20 20 20 20 20 20 5f 08 73 5f 08 68 5f 08 6d 5f 08 64 5f 08   ┆gment.            _ s_ h_ m_ d_ ┆
0x0be0…0c00 74 20 72 65 74 75 72 6e 73 20 61 20 76 61 6c 75 65 20 6f 66 20 30 2e 0a 0a 20 20 20 20 20 4f 74   ┆t returns a value of 0.       Ot┆
0x0c00…0c20 68 65 72 77 69 73 65 2c 20 61 20 76 61 6c 75 65 20 6f 66 20 2d 31 20 69 73 20 72 65 74 75 72 6e   ┆herwise, a value of -1 is return┆
0x0c20…0c40 65 64 20 61 6e 64 20 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   ┆ed and _ e_ r_ r_ n_ o is set to┆
0x0c40…0c60 0a 20 20 20 20 20 69 6e 64 69 63 61 74 65 20 74 68 65 20 65 72 72 6f 72 2e 0a 0a 53 08 53 08 53   ┆      indicate the error.  S S S┆
0x0c60…0c80 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 4c 08 4c 53   ┆ SE E E EE E E E A A A AL L L LS┆
0x0c80…0ca0 08 53 08 53 08 53 4f 08 4f 08 4f 08 4f 0a 20 20 20 20 20 55 73 65 72 20 43 6f 6d 6d 61 6e 64 73   ┆ S S SO O O O      User Commands┆
0x0ca0…0cc0 20 28 31 29 3a 20 20 66 73 68 6d 69 64 73 0a 20 20 20 20 20 53 79 73 74 65 6d 20 43 61 6c 6c 73   ┆ (1):  fshmids      System Calls┆
0x0cc0…0ce0 20 28 32 29 3a 20 20 65 78 65 63 2c 20 65 78 69 74 2c 20 66 6f 72 6b 2c 20 73 68 6d 63 74 6c 2c   ┆ (2):  exec, exit, fork, shmctl,┆
0x0ce0…0d00 20 73 68 6d 67 65 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   ┆ shmget      Library Functions (┆
0x0d00…0d20 33 29 3a 20 20 65 78 65 63 6c 0a 0a 45 08 45 08 45 08 45 52 08 52 08 52 08 52 52 08 52 08 52 08   ┆3):  execl  E E E ER R R RR R R ┆
0x0d20…0d40 52 4f 08 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   ┆RO O O OR R R RS S S S      _ s_┆
0x0d40…0d60 08 68 5f 08 6d 5f 08 61 5f 08 74 20 77 69 6c 6c 20 66 61 69 6c 20 61 6e 64 20 6e 6f 74 20 61 74   ┆ h_ m_ a_ t will fail and not at┆
0x0d60…0d80 74 61 63 68 20 74 68 65 20 73 68 61 72 65 64 2d 6d 65 6d 6f 72 79 20 73 65 67 6d 65 6e 74 20 69   ┆tach the shared-memory segment i┆
0x0d80…0da0 66 0a 0a 0a 0a 0a 0a 0a 20 20 20 20 20 6f 6e 65 20 6f 72 20 6d 6f 72 65 20 6f 66 20 74 68 65 20   ┆f            one or more of the ┆
0x0da0…0dc0 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 5b 45 41 43 43 45   ┆following are true:       [EACCE┆
0x0dc0…0de0 53 5d 0a 20 20 20 20 20 20 20 20 20 20 4f 70 65 72 61 74 69 6f 6e 20 70 65 72 6d 69 73 73 69 6f   ┆S]           Operation permissio┆
0x0de0…0e00 6e 20 69 73 20 64 65 6e 69 65 64 20 74 6f 20 74 68 65 20 63 61 6c 6c 69 6e 67 20 70 72 6f 63 65   ┆n is denied to the calling proce┆
0x0e00…0e20 73 73 0a 20 20 20 20 20 20 20 20 20 20 28 73 65 65 20 5f 08 69 5f 08 6e 5f 08 74 5f 08 72 5f 08   ┆ss           (see _ i_ n_ t_ r_ ┆
0x0e20…0e40 6f 28 32 29 29 2e 0a 0a 20 20 20 20 20 5b 45 49 4e 56 41 4c 5d 0a 20 20 20 20 20 20 20 20 20 20   ┆o(2)).       [EINVAL]           ┆
0x0e40…0e60 5f 08 73 5f 08 68 5f 08 6d 5f 08 69 5f 08 64 20 69 73 20 6e 6f 74 20 61 20 76 61 6c 69 64 20 73   ┆_ s_ h_ m_ i_ d is not a valid s┆
0x0e60…0e80 68 61 72 65 64 2d 6d 65 6d 6f 72 79 20 69 64 65 6e 74 69 66 69 65 72 2e 0a 20 20 20 20 20 20 20   ┆hared-memory identifier.        ┆
0x0e80…0ea0 20 20 20 5f 08 73 5f 08 68 5f 08 6d 5f 08 61 5f 08 64 5f 08 64 5f 08 72 20 69 73 20 6e 6f 74 20   ┆   _ s_ h_ m_ a_ d_ d_ r is not ┆
0x0ea0…0ec0 7a 65 72 6f 2c 20 61 6e 64 20 74 68 65 20 76 61 6c 75 65 20 6f 66 20 28 5f 08 73 5f 08 68 5f 08   ┆zero, and the value of (_ s_ h_ ┆
0x0ec0…0ee0 6d 5f 08 61 5f 08 64 5f 08 64 5f 08 72 20 2d 0a 20 20 20 20 20 20 20 20 20 20 28 5f 08 73 5f 08   ┆m_ a_ d_ d_ r -           (_ s_ ┆
0x0ee0…0f00 68 5f 08 6d 5f 08 61 5f 08 64 5f 08 64 5f 08 72 20 6d 6f 64 75 6c 75 73 20 53 08 53 08 53 08 53   ┆h_ m_ a_ d_ d_ r modulus S S S S┆
0x0f00…0f20 48 08 48 08 48 08 48 4d 08 4d 08 4d 08 4d 4c 08 4c 08 4c 08 4c 42 08 42 08 42 08 42 41 08 41 08   ┆H H H HM M M ML L L LB B B BA A ┆
0x0f20…0f40 41 08 41 29 29 20 69 73 20 61 6e 20 69 6c 6c 65 67 61 6c 20 61 64 64 72 65 73 73 2e 0a 20 20 20   ┆A A)) is an illegal address.    ┆
0x0f40…0f60 20 20 20 20 20 20 20 5f 08 73 5f 08 68 5f 08 6d 5f 08 61 5f 08 64 5f 08 64 5f 08 72 20 69 73 20   ┆       _ s_ h_ m_ a_ d_ d_ r is ┆
0x0f60…0f80 6e 6f 74 20 7a 65 72 6f 2c 20 28 5f 08 73 5f 08 68 5f 08 6d 5f 08 66 5f 08 6c 5f 08 67 20 26 20   ┆not zero, (_ s_ h_ m_ f_ l_ g & ┆
0x0f80…0fa0 53 08 53 08 53 08 53 48 08 48 08 48 08 48 4d 08 4d 08 4d 08 4d 5f 08 5f 08 5f 08 5f 52 08 52 08   ┆S S S SH H H HM M M M_ _ _ _R R ┆
0x0fa0…0fc0 52 08 52 4e 08 4e 08 4e 08 4e 44 08 44 08 44 08 44 29 20 69 73 20 60 60 66 61 6c 73 65 27 27 2c   ┆R RN N N ND D D D) is ``false'',┆
0x0fc0…0fe0 0a 20 20 20 20 20 20 20 20 20 20 61 6e 64 20 74 68 65 20 76 61 6c 75 65 20 6f 66 20 5f 08 73 5f   ┆           and the value of _ s_┆
0x0fe0…1000 08 68 5f 08 6d 5f 08 61 5f 08 64 5f 08 64 5f 08 72 20 69 73 20 61 6e 20 69 6c 6c 65 67 61 6c 20   ┆ h_ m_ a_ d_ d_ r is an illegal ┆
0x1000…1020 61 64 64 72 65 73 73 2e 0a 0a 20 20 20 20 20 5b 45 4d 46 49 4c 45 5d 0a 20 20 20 20 20 20 20 20   ┆address.       [EMFILE]         ┆
0x1020…1040 20 20 54 68 65 20 6e 75 6d 62 65 72 20 6f 66 20 73 68 61 72 65 64 2d 6d 65 6d 6f 72 79 20 73 65   ┆  The number of shared-memory se┆
0x1040…1060 67 6d 65 6e 74 73 20 61 74 74 61 63 68 65 64 20 74 6f 20 74 68 65 0a 20 20 20 20 20 20 20 20 20   ┆gments attached to the          ┆
0x1060…1080 20 63 61 6c 6c 69 6e 67 20 70 72 6f 63 65 73 73 20 77 6f 75 6c 64 20 65 78 63 65 65 64 20 74 68   ┆ calling process would exceed th┆
0x1080…10a0 65 20 73 79 73 74 65 6d 20 6c 69 6d 69 74 2e 0a 0a 20 20 20 20 20 5b 45 4e 4f 4d 45 4d 5d 0a 20   ┆e system limit.       [ENOMEM]  ┆
0x10a0…10c0 20 20 20 20 20 20 20 20 20 54 68 65 20 61 76 61 69 6c 61 62 6c 65 20 64 61 74 61 20 73 70 61 63   ┆         The available data spac┆
0x10c0…10e0 65 20 69 73 20 6e 6f 74 20 6c 61 72 67 65 20 65 6e 6f 75 67 68 20 74 6f 20 61 63 63 6f 6d 2d 0a   ┆e is not large enough to accom- ┆
0x10e0…1100 20 20 20 20 20 20 20 20 20 20 6d 6f 64 61 74 65 20 74 68 65 20 73 68 61 72 65 64 2d 6d 65 6d 6f   ┆          modate the shared-memo┆
0x1100…1120 72 79 20 73 65 67 6d 65 6e 74 2e 0a 20 20 20 20 20 20 20 20 20 20 5f 08 73 5f 08 68 5f 08 6d 5f   ┆ry segment.           _ s_ h_ m_┆
0x1120…1140 08 61 5f 08 64 5f 08 64 5f 08 72 20 63 75 72 72 65 6e 74 6c 79 20 72 65 66 65 72 65 6e 63 65 73   ┆ a_ d_ d_ r currently references┆
0x1140…1160 20 6d 65 6d 6f 72 79 20 61 6c 6c 6f 63 61 74 65 64 20 77 69 74 68 69 6e 20 61 0a 20 20 20 20 20   ┆ memory allocated within a      ┆
0x1160…1180 20 20 20 20 20 70 72 6f 63 65 73 73 27 20 64 61 74 61 20 6f 72 20 74 65 78 74 20 73 70 61 63 65   ┆     process' data or text space┆
0x1180…11a0 2e 0a 0a 20 20 20 20 20 5f 08 73 5f 08 68 5f 08 6d 5f 08 64 5f 08 74 20 77 69 6c 6c 20 66 61 69   ┆.       _ s_ h_ m_ d_ t will fai┆
0x11a0…11c0 6c 20 61 6e 64 20 6e 6f 74 20 64 65 74 61 63 68 20 74 68 65 20 73 68 61 72 65 64 20 6d 65 6d 6f   ┆l and not detach the shared memo┆
0x11c0…11e0 72 79 20 73 65 67 6d 65 6e 74 20 69 66 0a 0a 20 20 20 20 20 5b 45 49 4e 56 41 4c 5d 0a 20 20 20   ┆ry segment if       [EINVAL]    ┆
0x11e0…1200 20 20 20 20 20 20 20 5f 08 73 5f 08 68 5f 08 6d 5f 08 61 5f 08 64 5f 08 64 5f 08 72 20 69 73 20   ┆       _ s_ h_ m_ a_ d_ d_ r is ┆
0x1200…1220 6e 6f 74 20 74 68 65 20 64 61 74 61 2d 73 65 67 6d 65 6e 74 20 73 74 61 72 74 20 61 64 64 72 65   ┆not the data-segment start addre┆
0x1220…1240 73 73 20 6f 66 20 61 0a 20 20 20 20 20 20 20 20 20 20 73 68 61 72 65 64 2d 6d 65 6d 6f 72 79 20   ┆ss of a           shared-memory ┆
0x1240…1260 73 65 67 6d 65 6e 74 2e 0a 0a 4d 61 72 63 68 20 31 39 38 39 20 20 20 20 20 20 20 20 20 20 20 20   ┆segment.  March 1989            ┆
0x1260…1280 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 72 27   ┆                  TX Programmer'┆
0x1280…12a0 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 0a 0a   ┆s Reference                     ┆
0x12a0…12aa 0a 0a 0a 0a 0a 0a 0a 0a 0a 0a                                                                     ┆          ┆