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

⟦a227365d3⟧

    Length: 6338 (0x18c2)
    Names: »mblock.2«

Derivation

└─⟦50656ff4a⟧ Bits:30010538 TX 3.1 Coldstart
    └─⟦bbf173f5c⟧ »0004« 
        └─⟦this⟧ »./bsd/usr/man/cat2/mblock.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 6d 62 6c 6f 63 6b 28 32 29 0a 0a 0a 0a   ┆s                  mblock(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 6d 62 6c 6f 63 6b 20 2d 20 6d 61 6e 61 67 65 20 62 6c 6f 63 6b 2d 6c 65 76 65 6c 20 6c 6f   ┆  mblock - manage block-level lo┆
0x00a0…00c0 63 6b 20 66 6f 72 20 75 6e 63 6f 6e 74 72 6f 6c 6c 65 64 20 49 2f 4f 0a 0a 53 08 53 08 53 08 53   ┆ck for uncontrolled I/O  S S S S┆
0x00c0…00e0 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 41 08 41 58 08 58 08   ┆Y Y Y YN N N NT T T TA A A AX X ┆
0x00e0…0100 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 6e 08 6e 08 6e 63 08   ┆X X      # # # #i i i in n n nc ┆
0x0100…0120 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 08   ┆c c cl l l lu u u ud d d de e e ┆
0x0120…0140 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 08   ┆e < < < <s s s sy y y ys s s s/ ┆
0x0140…0160 2f 08 2f 08 2f 66 08 66 08 66 08 66 69 08 69 08 69 08 69 6c 08 6c 08 6c 08 6c 65 08 65 08 65 08   ┆/ / /f f f fi i i il l l le e e ┆
0x0160…0180 65 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 20 20 20 23 08 23   ┆e. . . .h h h h> > > >       # #┆
0x0180…01a0 08 23 08 23 64 08 64 08 64 08 64 65 08 65 08 65 08 65 66 08 66 08 66 08 66 69 08 69 08 69 08 69   ┆ # #d d d de e e ef f f fi i i i┆
0x01a0…01c0 6e 08 6e 08 6e 08 6e 65 08 65 08 65 08 65 20 20 20 4c 08 4c 08 4c 08 4c 4f 08 4f 08 4f 08 4f 43   ┆n n n ne e e e   L L L LO O O OC┆
0x01c0…01e0 08 43 08 43 08 43 4b 08 4b 08 4b 08 4b 5f 08 5f 08 5f 08 5f 53 08 53 08 53 08 53 48 08 48 08 48   ┆ C C CK K K K_ _ _ _S S S SH H H┆
0x01e0…0200 08 48 20 20 20 20 20 20 20 20 31 08 31 08 31 08 31 20 20 20 20 2f 08 2f 08 2f 08 2f 2a 08 2a 08   ┆ H        1 1 1 1    / / / /* * ┆
0x0200…0220 2a 08 2a 20 73 08 73 08 73 08 73 68 08 68 08 68 08 68 61 08 61 08 61 08 61 72 08 72 08 72 08 72   ┆* * s s s sh h h ha a a ar r r r┆
0x0220…0240 65 08 65 08 65 08 65 64 08 64 08 64 08 64 20 6c 08 6c 08 6c 08 6c 6f 08 6f 08 6f 08 6f 63 08 63   ┆e e e ed d d d l l l lo o o oc c┆
0x0240…0260 08 63 08 63 6b 08 6b 08 6b 08 6b 20 2a 08 2a 08 2a 08 2a 2f 08 2f 08 2f 08 2f 0a 20 20 20 20 20   ┆ c ck k k k * * * */ / / /      ┆
0x0260…0280 23 08 23 08 23 08 23 64 08 64 08 64 08 64 65 08 65 08 65 08 65 66 08 66 08 66 08 66 69 08 69 08   ┆# # # #d d d de e e ef f f fi i ┆
0x0280…02a0 69 08 69 6e 08 6e 08 6e 08 6e 65 08 65 08 65 08 65 20 20 20 4c 08 4c 08 4c 08 4c 4f 08 4f 08 4f   ┆i in n n ne e e e   L L L LO O O┆
0x02a0…02c0 08 4f 43 08 43 08 43 08 43 4b 08 4b 08 4b 08 4b 5f 08 5f 08 5f 08 5f 45 08 45 08 45 08 45 58 08   ┆ OC C C CK K K K_ _ _ _E E E EX ┆
0x02c0…02e0 58 08 58 08 58 20 20 20 20 20 20 20 20 32 08 32 08 32 08 32 20 20 20 20 2f 08 2f 08 2f 08 2f 2a   ┆X X X        2 2 2 2    / / / /*┆
0x02e0…0300 08 2a 08 2a 08 2a 20 65 08 65 08 65 08 65 78 08 78 08 78 08 78 63 08 63 08 63 08 63 6c 08 6c 08   ┆ * * * e e e ex x x xc c c cl l ┆
0x0300…0320 6c 08 6c 75 08 75 08 75 08 75 73 08 73 08 73 08 73 69 08 69 08 69 08 69 76 08 76 08 76 08 76 65   ┆l lu u u us s s si i i iv v v ve┆
0x0320…0340 08 65 08 65 08 65 20 6c 08 6c 08 6c 08 6c 6f 08 6f 08 6f 08 6f 63 08 63 08 63 08 63 6b 08 6b 08   ┆ e e e l l l lo o o oc c c ck k ┆
0x0340…0360 6b 08 6b 20 2a 08 2a 08 2a 08 2a 2f 08 2f 08 2f 08 2f 0a 20 20 20 20 20 23 08 23 08 23 08 23 64   ┆k k * * * */ / / /      # # # #d┆
0x0360…0380 08 64 08 64 08 64 65 08 65 08 65 08 65 66 08 66 08 66 08 66 69 08 69 08 69 08 69 6e 08 6e 08 6e   ┆ d d de e e ef f f fi i i in n n┆
0x0380…03a0 08 6e 65 08 65 08 65 08 65 20 20 20 4c 08 4c 08 4c 08 4c 4f 08 4f 08 4f 08 4f 43 08 43 08 43 08   ┆ ne e e e   L L L LO O O OC C C ┆
0x03a0…03c0 43 4b 08 4b 08 4b 08 4b 5f 08 5f 08 5f 08 5f 4e 08 4e 08 4e 08 4e 42 08 42 08 42 08 42 20 20 20   ┆CK K K K_ _ _ _N N N NB B B B   ┆
0x03c0…03e0 20 20 20 20 20 34 08 34 08 34 08 34 20 20 20 20 2f 08 2f 08 2f 08 2f 2a 08 2a 08 2a 08 2a 20 64   ┆     4 4 4 4    / / / /* * * * d┆
0x03e0…0400 08 64 08 64 08 64 6f 08 6f 08 6f 08 6f 6e 08 6e 08 6e 08 6e 27 08 27 08 27 08 27 74 08 74 08 74   ┆ d d do o o on n n n' ' ' 't t t┆
0x0400…0420 08 74 20 62 08 62 08 62 08 62 6c 08 6c 08 6c 08 6c 6f 08 6f 08 6f 08 6f 63 08 63 08 63 08 63 6b   ┆ t b b b bl l l lo o o oc c c ck┆
0x0420…0440 08 6b 08 6b 08 6b 20 77 08 77 08 77 08 77 68 08 68 08 68 08 68 65 08 65 08 65 08 65 6e 08 6e 08   ┆ k k k w w w wh h h he e e en n ┆
0x0440…0460 6e 08 6e 20 6c 08 6c 08 6c 08 6c 6f 08 6f 08 6f 08 6f 63 08 63 08 63 08 63 6b 08 6b 08 6b 08 6b   ┆n n l l l lo o o oc c c ck k k k┆
0x0460…0480 69 08 69 08 69 08 69 6e 08 6e 08 6e 08 6e 67 08 67 08 67 08 67 20 2a 08 2a 08 2a 08 2a 2f 08 2f   ┆i i i in n n ng g g g * * * */ /┆
0x0480…04a0 08 2f 08 2f 0a 20 20 20 20 20 23 08 23 08 23 08 23 64 08 64 08 64 08 64 65 08 65 08 65 08 65 66   ┆ / /      # # # #d d d de e e ef┆
0x04a0…04c0 08 66 08 66 08 66 69 08 69 08 69 08 69 6e 08 6e 08 6e 08 6e 65 08 65 08 65 08 65 20 20 20 4c 08   ┆ f f fi i i in n n ne e e e   L ┆
0x04c0…04e0 4c 08 4c 08 4c 4f 08 4f 08 4f 08 4f 43 08 43 08 43 08 43 4b 08 4b 08 4b 08 4b 5f 08 5f 08 5f 08   ┆L L LO O O OC C C CK K K K_ _ _ ┆
0x04e0…0500 5f 55 08 55 08 55 08 55 4e 08 4e 08 4e 08 4e 20 20 20 20 20 20 20 20 38 08 38 08 38 08 38 20 20   ┆_U U U UN N N N        8 8 8 8  ┆
0x0500…0520 20 20 2f 08 2f 08 2f 08 2f 2a 08 2a 08 2a 08 2a 20 72 08 72 08 72 08 72 65 08 65 08 65 08 65 6c   ┆  / / / /* * * * r r r re e e el┆
0x0520…0540 08 6c 08 6c 08 6c 65 08 65 08 65 08 65 61 08 61 08 61 08 61 73 08 73 08 73 08 73 65 08 65 08 65   ┆ l l le e e ea a a as s s se e e┆
0x0540…0560 08 65 20 6c 08 6c 08 6c 08 6c 6f 08 6f 08 6f 08 6f 63 08 63 08 63 08 63 6b 08 6b 08 6b 08 6b 73   ┆ e l l l lo o o oc c c ck k k ks┆
0x0560…0580 08 73 08 73 08 73 20 62 08 62 08 62 08 62 65 08 65 08 65 08 65 74 08 74 08 74 08 74 77 08 77 08   ┆ s s s b b b be e e et t t tw w ┆
0x0580…05a0 77 08 77 65 08 65 08 65 08 65 65 08 65 08 65 08 65 6e 08 6e 08 6e 08 6e 20 2a 08 2a 08 2a 08 2a   ┆w we e e ee e e en n n n * * * *┆
0x05a0…05c0 2f 08 2f 08 2f 08 2f 0a 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20   ┆/ / / /                         ┆
0x05c0…05e0 20 20 20 20 20 20 2f 08 2f 08 2f 08 2f 2a 08 2a 08 2a 08 2a 20 6f 08 6f 08 6f 08 6f 66 08 66 08   ┆      / / / /* * * * o o o of f ┆
0x05e0…0600 66 08 66 66 08 66 08 66 08 66 73 08 73 08 73 08 73 65 08 65 08 65 08 65 74 08 74 08 74 08 74 20   ┆f ff f f fs s s se e e et t t t ┆
0x0600…0620 6f 08 6f 08 6f 08 6f 66 08 66 08 66 08 66 20 6c 08 6c 08 6c 08 6c 61 08 61 08 61 08 61 73 08 73   ┆o o o of f f f l l l la a a as s┆
0x0620…0640 08 73 08 73 74 08 74 08 74 08 74 20 73 08 73 08 73 08 73 65 08 65 08 65 08 65 65 08 65 08 65 08   ┆ s st t t t s s s se e e ee e e ┆
0x0640…0660 65 6b 08 6b 08 6b 08 6b 20 61 08 61 08 61 08 61 6e 08 6e 08 6e 08 6e 64 08 64 08 64 08 64 20 6f   ┆ek k k k a a a an n n nd d d d o┆
0x0660…0680 08 6f 08 6f 08 6f 66 08 66 08 66 08 66 66 08 66 08 66 08 66 73 08 73 08 73 08 73 65 08 65 08 65   ┆ o o of f f ff f f fs s s se e e┆
0x0680…06a0 08 65 74 08 74 08 74 08 74 2b 08 2b 08 2b 08 2b 6e 08 6e 08 6e 08 6e 62 08 62 08 62 08 62 79 08   ┆ et t t t+ + + +n n n nb b b by ┆
0x06a0…06c0 79 08 79 08 79 74 08 74 08 74 08 74 65 08 65 08 65 08 65 73 08 73 08 73 08 73 20 2a 08 2a 08 2a   ┆y y yt t t te e e es s s s * * *┆
0x06c0…06e0 08 2a 2f 08 2f 08 2f 08 2f 0a 20 20 20 20 20 23 08 23 08 23 08 23 64 08 64 08 64 08 64 65 08 65   ┆ */ / / /      # # # #d d d de e┆
0x06e0…0700 08 65 08 65 66 08 66 08 66 08 66 69 08 69 08 69 08 69 6e 08 6e 08 6e 08 6e 65 08 65 08 65 08 65   ┆ e ef f f fi i i in n n ne e e e┆
0x0700…0720 20 20 20 4c 08 4c 08 4c 08 4c 4f 08 4f 08 4f 08 4f 43 08 43 08 43 08 43 4b 08 4b 08 4b 08 4b 5f   ┆   L L L LO O O OC C C CK K K K_┆
0x0720…0740 08 5f 08 5f 08 5f 55 08 55 08 55 08 55 4e 08 4e 08 4e 08 4e 41 08 41 08 41 08 41 4c 08 4c 08 4c   ┆ _ _ _U U U UN N N NA A A AL L L┆
0x0740…0760 08 4c 4c 08 4c 08 4c 08 4c 20 20 20 20 20 20 20 20 20 20 31 08 31 08 31 08 31 36 08 36 08 36 08   ┆ LL L L L          1 1 1 16 6 6 ┆
0x0760…0780 36 20 20 20 2f 08 2f 08 2f 08 2f 2a 08 2a 08 2a 08 2a 20 75 08 75 08 75 08 75 6e 08 6e 08 6e 08   ┆6   / / / /* * * * u u u un n n ┆
0x0780…07a0 6e 6c 08 6c 08 6c 08 6c 6f 08 6f 08 6f 08 6f 63 08 63 08 63 08 63 6b 08 6b 08 6b 08 6b 20 61 08   ┆nl l l lo o o oc c c ck k k k a ┆
0x07a0…07c0 61 08 61 08 61 6c 08 6c 08 6c 08 6c 6c 08 6c 08 6c 08 6c 20 6c 08 6c 08 6c 08 6c 6f 08 6f 08 6f   ┆a a al l l ll l l l l l l lo o o┆
0x07c0…07e0 08 6f 63 08 63 08 63 08 63 6b 08 6b 08 6b 08 6b 73 08 73 08 73 08 73 20 6f 08 6f 08 6f 08 6f 6e   ┆ oc c c ck k k ks s s s o o o on┆
0x07e0…0800 08 6e 08 6e 08 6e 20 74 08 74 08 74 08 74 68 08 68 08 68 08 68 65 08 65 08 65 08 65 20 66 08 66   ┆ n n n t t t th h h he e e e f f┆
0x0800…0820 08 66 08 66 69 08 69 08 69 08 69 6c 08 6c 08 6c 08 6c 65 08 65 08 65 08 65 2a 08 2a 08 2a 08 2a   ┆ f fi i i il l l le e e e* * * *┆
0x0820…0840 2f 08 2f 08 2f 08 2f 0a 0a 20 20 20 20 20 6d 08 6d 08 6d 08 6d 62 08 62 08 62 08 62 6c 08 6c 08   ┆/ / / /       m m m mb b b bl l ┆
0x0840…0860 6c 08 6c 6f 08 6f 08 6f 08 6f 63 08 63 08 63 08 63 6b 08 6b 08 6b 08 6b 28 08 28 08 28 08 28 66   ┆l lo o o oc c c ck k k k( ( ( (f┆
0x0860…0880 08 66 08 66 08 66 64 08 64 08 64 08 64 2c 08 2c 08 2c 08 2c 20 6f 08 6f 08 6f 08 6f 70 08 70 08   ┆ f f fd d d d, , , , o o o op p ┆
0x0880…08a0 70 08 70 65 08 65 08 65 08 65 72 08 72 08 72 08 72 61 08 61 08 61 08 61 74 08 74 08 74 08 74 69   ┆p pe e e er r r ra a a at t t ti┆
0x08a0…08c0 08 69 08 69 08 69 6f 08 6f 08 6f 08 6f 6e 08 6e 08 6e 08 6e 2c 08 2c 08 2c 08 2c 20 6e 08 6e 08   ┆ i i io o o on n n n, , , , n n ┆
0x08c0…08e0 6e 08 6e 62 08 62 08 62 08 62 79 08 79 08 79 08 79 74 08 74 08 74 08 74 65 08 65 08 65 08 65 73   ┆n nb b b by y y yt t t te e e es┆
0x08e0…0900 08 73 08 73 08 73 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   ┆ s s s) ) ) )      i i i in n n ┆
0x0900…0920 6e 74 08 74 08 74 08 74 20 66 08 66 08 66 08 66 64 08 64 08 64 08 64 2c 08 2c 08 2c 08 2c 20 6f   ┆nt t t t f f f fd d d d, , , , o┆
0x0920…0940 08 6f 08 6f 08 6f 70 08 70 08 70 08 70 65 08 65 08 65 08 65 72 08 72 08 72 08 72 61 08 61 08 61   ┆ o o op p p pe e e er r r ra a a┆
0x0940…0960 08 61 74 08 74 08 74 08 74 69 08 69 08 69 08 69 6f 08 6f 08 6f 08 6f 6e 08 6e 08 6e 08 6e 2c 08   ┆ at t t ti i i io o o on n n n, ┆
0x0960…0980 2c 08 2c 08 2c 20 6e 08 6e 08 6e 08 6e 62 08 62 08 62 08 62 79 08 79 08 79 08 79 74 08 74 08 74   ┆, , , n n n nb b b by y y yt t t┆
0x0980…09a0 08 74 65 08 65 08 65 08 65 73 08 73 08 73 08 73 3b 08 3b 08 3b 08 3b 0a 0a 44 08 44 08 44 08 44   ┆ te e e es s s s; ; ; ;  D D D D┆
0x09a0…09c0 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 49 08   ┆E E E ES S S SC C C CR R R RI I ┆
0x09c0…09e0 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 4f 4e   ┆I IP P P PT T T TI I I IO O O ON┆
0x09e0…0a00 08 4e 08 4e 08 4e 0a 20 20 20 20 20 54 68 65 20 5f 08 6d 5f 08 62 5f 08 6c 5f 08 6f 5f 08 63 5f   ┆ N N N      The _ m_ b_ l_ o_ c_┆
0x0a00…0a20 08 6b 20 63 61 6c 6c 20 6d 61 6e 75 61 6c 6c 79 20 61 70 70 6c 69 65 73 20 6f 72 20 72 65 6d 6f   ┆ k call manually applies or remo┆
0x0a20…0a40 76 65 73 20 61 20 62 6c 6f 63 6b 2d 6c 65 76 65 6c 0a 20 20 20 20 20 6c 6f 63 6b 20 6f 6e 20 74   ┆ves a block-level      lock on t┆
0x0a40…0a60 68 65 20 64 69 73 6b 20 66 69 6c 65 20 61 73 73 6f 63 69 61 74 65 64 20 77 69 74 68 20 74 68 65   ┆he disk file associated with the┆
0x0a60…0a80 20 66 69 6c 65 20 64 65 73 63 72 69 70 74 6f 72 0a 20 20 20 20 20 5f 08 66 5f 08 64 2e 20 20 54   ┆ file descriptor      _ f_ d.  T┆
0x0a80…0aa0 68 65 20 66 69 6c 65 20 6d 75 73 74 20 6e 6f 74 20 62 65 20 6f 70 65 6e 20 66 6f 72 20 63 6f 6e   ┆he file must not be open for con┆
0x0aa0…0ac0 74 72 6f 6c 6c 65 64 20 49 2f 4f 20 62 79 20 61 6e 79 0a 20 20 20 20 20 70 72 6f 63 65 73 73 3b   ┆trolled I/O by any      process;┆
0x0ac0…0ae0 20 74 68 61 74 20 69 73 2c 20 74 68 65 20 4f 5f 43 4f 4e 54 52 4f 4c 20 66 6c 61 67 20 6d 75 73   ┆ that is, the O_CONTROL flag mus┆
0x0ae0…0b00 74 20 6e 6f 74 20 62 65 20 73 65 74 2e 0a 20 20 20 20 20 47 72 61 6e 75 6c 61 72 69 74 79 20 6f   ┆t not be set.      Granularity o┆
0x0b00…0b20 66 20 74 68 69 73 20 63 61 6c 6c 20 69 73 20 31 30 32 34 20 62 79 74 65 73 2e 0a 0a 20 20 20 20   ┆f this call is 1024 bytes.      ┆
0x0b20…0b40 20 4c 6f 63 6b 73 20 6d 61 79 20 62 65 20 65 69 74 68 65 72 20 73 68 61 72 65 64 20 6f 72 20 65   ┆ Locks may be either shared or e┆
0x0b40…0b60 78 63 6c 75 73 69 76 65 2e 20 20 43 6f 6f 70 65 72 61 74 69 6e 67 20 70 72 6f 2d 0a 20 20 20 20   ┆xclusive.  Cooperating pro-     ┆
0x0b60…0b80 20 67 72 61 6d 73 20 75 73 65 20 73 68 61 72 65 64 20 6c 6f 63 6b 73 20 74 6f 20 72 65 61 64 20   ┆ grams use shared locks to read ┆
0x0b80…0ba0 61 20 63 6f 6e 73 69 73 74 65 6e 74 20 76 65 72 73 69 6f 6e 20 6f 66 20 74 68 65 0a 20 20 20 20   ┆a consistent version of the     ┆
0x0ba0…0bc0 20 62 6c 6f 63 6b 2e 20 20 45 78 63 6c 75 73 69 76 65 20 6c 6f 63 6b 73 20 61 72 65 20 75 73 65   ┆ block.  Exclusive locks are use┆
0x0bc0…0be0 64 20 74 6f 20 77 72 69 74 65 20 61 20 62 6c 6f 63 6b 2e 0a 0a 20 20 20 20 20 6f 08 6f 08 6f 08   ┆d to write a block.       o o o ┆
0x0be0…0c00 6f 70 08 70 08 70 08 70 65 08 65 08 65 08 65 72 08 72 08 72 08 72 61 08 61 08 61 08 61 74 08 74   ┆op p p pe e e er r r ra a a at t┆
0x0c00…0c20 08 74 08 74 69 08 69 08 69 08 69 6f 08 6f 08 6f 08 6f 6e 08 6e 08 6e 08 6e 0a 20 20 20 20 20 20   ┆ t ti i i io o o on n n n       ┆
0x0c20…0c40 20 20 20 20 53 70 65 63 69 66 69 65 73 20 77 68 65 74 68 65 72 20 74 6f 20 61 70 70 6c 79 20 6f   ┆    Specifies whether to apply o┆
0x0c40…0c60 72 20 72 65 6d 6f 76 65 20 61 20 6c 6f 63 6b 2e 20 20 49 66 20 61 20 6c 6f 63 6b 0a 20 20 20 20   ┆r remove a lock.  If a lock     ┆
0x0c60…0c80 20 20 20 20 20 20 69 73 20 61 70 70 6c 69 65 64 2c 20 74 68 69 73 20 70 61 72 61 6d 65 74 65 72   ┆      is applied, this parameter┆
0x0c80…0ca0 20 61 6c 73 6f 20 73 70 65 63 69 66 69 65 73 20 74 68 65 20 74 79 70 65 20 6f 66 0a 20 20 20 20   ┆ also specifies the type of     ┆
0x0ca0…0cc0 20 20 20 20 20 20 74 68 65 20 6c 6f 63 6b 2e 0a 0a 20 20 20 20 20 20 20 20 20 20 54 6f 20 61 70   ┆      the lock.            To ap┆
0x0cc0…0ce0 70 6c 79 20 61 20 6c 6f 63 6b 2c 20 73 70 65 63 69 66 79 20 74 68 65 20 6c 6f 63 6b 20 74 79 70   ┆ply a lock, specify the lock typ┆
0x0ce0…0d00 65 20 62 79 20 74 68 65 20 69 6e 63 6c 75 73 69 76 65 0a 20 20 20 20 20 20 20 20 20 20 5f 08 6f   ┆e by the inclusive           _ o┆
0x0d00…0d20 5f 08 72 20 6f 66 3a 20 4c 4f 43 4b 5f 53 48 2c 20 4c 4f 43 4b 5f 45 58 2c 20 61 6e 64 20 4c 4f   ┆_ r of: LOCK_SH, LOCK_EX, and LO┆
0x0d20…0d40 43 4b 5f 4e 42 2e 20 20 4c 4f 43 4b 5f 4e 42 20 73 70 65 63 69 2d 0a 20 20 20 20 20 20 20 20 20   ┆CK_NB.  LOCK_NB speci-          ┆
0x0d40…0d60 20 66 69 65 73 20 74 68 65 20 61 63 74 69 6f 6e 20 74 6f 20 74 61 6b 65 20 69 66 20 74 68 65 20   ┆ fies the action to take if the ┆
0x0d60…0d80 66 69 6c 65 20 69 73 20 61 6c 72 65 61 64 79 20 6c 6f 63 6b 65 64 2e 0a 20 20 20 20 20 20 20 20   ┆file is already locked.         ┆
0x0d80…0da0 20 20 4e 6f 72 6d 61 6c 6c 79 2c 20 74 68 69 73 20 63 61 73 65 20 63 61 75 73 65 73 20 74 68 65   ┆  Normally, this case causes the┆
0x0da0…0dc0 20 63 61 6c 6c 65 72 20 74 6f 20 62 65 20 62 6c 6f 63 6b 65 64 0a 20 20 20 20 20 20 20 20 20 20   ┆ caller to be blocked           ┆
0x0dc0…0de0 75 6e 74 69 6c 20 74 68 65 20 6c 6f 63 6b 20 69 73 20 61 76 61 69 6c 61 62 6c 65 2e 20 20 4c 4f   ┆until the lock is available.  LO┆
0x0de0…0e00 43 4b 5f 4e 42 20 63 61 75 73 65 73 20 74 68 65 20 63 61 6c 6c 0a 20 20 20 20 20 20 20 20 20 20   ┆CK_NB causes the call           ┆
0x0e00…0e20 74 6f 20 66 61 69 6c 20 28 69 6e 73 74 65 61 64 20 6f 66 20 62 6c 6f 63 6b 69 6e 67 20 74 68 65   ┆to fail (instead of blocking the┆
0x0e20…0e40 20 63 61 6c 6c 65 72 29 20 61 6e 64 20 74 6f 20 72 65 74 75 72 6e 0a 20 20 20 20 20 20 20 20 20   ┆ caller) and to return          ┆
0x0e40…0e60 20 74 68 65 20 65 72 72 6f 72 20 45 57 4f 55 4c 44 42 4c 4f 43 4b 2e 0a 0a 20 20 20 20 20 20 20   ┆ the error EWOULDBLOCK.         ┆
0x0e60…0e80 20 20 20 54 6f 20 72 65 6d 6f 76 65 20 61 20 6c 6f 63 6b 2c 20 74 68 65 20 6f 70 65 72 61 74 69   ┆   To remove a lock, the operati┆
0x0e80…0ea0 6f 6e 20 69 73 20 6f 6e 65 20 6f 66 20 4c 4f 43 4b 5f 55 4e 20 6f 72 0a 20 20 20 20 20 20 20 20   ┆on is one of LOCK_UN or         ┆
0x0ea0…0ec0 20 20 4c 4f 43 4b 5f 55 4e 41 4c 4c 2e 20 20 54 68 65 20 4c 4f 43 4b 5f 55 4e 20 6f 70 65 72 61   ┆  LOCK_UNALL.  The LOCK_UN opera┆
0x0ec0…0ee0 74 69 6f 6e 20 69 73 20 6d 6f 72 65 20 65 78 70 65 6e 73 69 76 65 0a 20 20 20 20 20 20 20 20 20   ┆tion is more expensive          ┆
0x0ee0…0f00 20 28 69 6e 20 70 65 72 66 6f 72 6d 61 6e 63 65 29 20 74 68 61 6e 20 4c 4f 43 4b 5f 55 4e 41 4c   ┆ (in performance) than LOCK_UNAL┆
0x0f00…0f20 4c 2e 0a 0a 20 20 20 20 20 43 08 43 08 43 08 43 68 08 68 08 68 08 68 61 08 61 08 61 08 61 6e 08   ┆L.       C C C Ch h h ha a a an ┆
0x0f20…0f40 6e 08 6e 08 6e 67 08 67 08 67 08 67 69 08 69 08 69 08 69 6e 08 6e 08 6e 08 6e 67 08 67 08 67 08   ┆n n ng g g gi i i in n n ng g g ┆
0x0f40…0f60 67 20 45 08 45 08 45 08 45 78 08 78 08 78 08 78 69 08 69 08 69 08 69 73 08 73 08 73 08 73 74 08   ┆g E E E Ex x x xi i i is s s st ┆
0x0f60…0f80 74 08 74 08 74 69 08 69 08 69 08 69 6e 08 6e 08 6e 08 6e 67 08 67 08 67 08 67 20 4c 08 4c 08 4c   ┆t t ti i i in n n ng g g g L L L┆
0x0f80…0fa0 08 4c 6f 08 6f 08 6f 08 6f 63 08 63 08 63 08 63 6b 08 6b 08 6b 08 6b 73 08 73 08 73 08 73 0a 20   ┆ Lo o o oc c c ck k k ks s s s  ┆
0x0fa0…0fc0 20 20 20 20 41 20 70 72 6f 67 72 61 6d 20 6d 61 79 20 63 68 61 6e 67 65 20 74 68 65 20 74 79 70   ┆    A program may change the typ┆
0x0fc0…0fe0 65 20 6f 66 20 6c 6f 63 6b 20 69 74 20 63 75 72 72 65 6e 74 6c 79 20 68 6f 6c 64 73 20 6f 6e 0a   ┆e of lock it currently holds on ┆
0x0fe0…1000 20 20 20 20 20 61 20 62 6c 6f 63 6b 20 75 73 69 6e 67 20 74 68 65 20 5f 08 6d 5f 08 62 5f 08 6c   ┆     a block using the _ m_ b_ l┆
0x1000…1020 5f 08 6f 5f 08 63 5f 08 6b 20 63 61 6c 6c 2e 20 20 4c 6f 63 6b 20 63 68 61 6e 67 65 73 20 6f 63   ┆_ o_ c_ k call.  Lock changes oc┆
0x1020…1040 63 75 72 20 69 6d 6d 65 64 69 2d 0a 20 20 20 20 20 61 74 65 6c 79 2e 20 20 54 68 65 20 72 75 6c   ┆cur immedi-      ately.  The rul┆
0x1040…1060 65 73 20 66 6f 72 20 6c 6f 63 6b 20 75 70 67 72 61 64 65 73 20 61 6e 64 20 64 6f 77 6e 67 72 61   ┆es for lock upgrades and downgra┆
0x1060…1080 64 65 73 20 28 66 6f 72 20 61 6c 6c 0a 20 20 20 20 20 66 69 6c 65 20 64 65 73 63 72 69 70 74 6f   ┆des (for all      file descripto┆
0x1080…10a0 72 73 29 20 61 72 65 20 6c 69 73 74 65 64 20 62 65 6c 6f 77 2e 0a 0a 20 20 20 20 20 49 66 20 6e   ┆rs) are listed below.       If n┆
0x10a0…10c0 08 6e 08 6e 08 6e 6f 08 6f 08 6f 08 6f 20 6c 08 6c 08 6c 08 6c 6f 08 6f 08 6f 08 6f 63 08 63 08   ┆ n n no o o o l l l lo o o oc c ┆
0x10c0…10e0 63 08 63 6b 08 6b 08 6b 08 6b 73 08 73 08 73 08 73 20 61 72 65 20 68 65 6c 64 2c 20 6f 6e 6c 79   ┆c ck k k ks s s s are held, only┆
0x10e0…1100 20 75 70 67 72 61 64 65 20 69 73 20 70 6f 73 73 69 62 6c 65 2e 20 20 54 68 65 20 75 70 67 72 61   ┆ upgrade is possible.  The upgra┆
0x1100…1120 64 65 0a 20 20 20 20 20 63 61 6e 20 62 65 20 65 69 74 68 65 72 20 61 20 73 68 61 72 65 64 20 6f   ┆de      can be either a shared o┆
0x1120…1140 72 20 65 78 63 6c 75 73 69 76 65 20 6c 6f 63 6b 2e 0a 0a 20 20 20 20 20 49 66 20 61 20 73 08 73   ┆r exclusive lock.       If a s s┆
0x1140…1160 08 73 08 73 68 08 68 08 68 08 68 61 08 61 08 61 08 61 72 08 72 08 72 08 72 65 08 65 08 65 08 65   ┆ s sh h h ha a a ar r r re e e e┆
0x1160…1180 64 08 64 08 64 08 64 20 6c 08 6c 08 6c 08 6c 6f 08 6f 08 6f 08 6f 63 08 63 08 63 08 63 6b 08 6b   ┆d d d d l l l lo o o oc c c ck k┆
0x1180…11a0 08 6b 08 6b 20 69 73 20 68 65 6c 64 2c 20 65 69 74 68 65 72 20 75 70 67 72 61 64 65 20 74 6f 20   ┆ k k is held, either upgrade to ┆
0x11a0…11c0 61 6e 20 65 78 63 6c 75 73 69 76 65 0a 20 20 20 20 20 6c 6f 63 6b 20 6f 72 20 64 6f 77 6e 67 72   ┆an exclusive      lock or downgr┆
0x11c0…11e0 61 64 65 20 74 6f 20 6e 6f 20 6c 6f 63 6b 20 69 73 20 61 6c 6c 6f 77 65 64 2e 0a 0a 20 20 20 20   ┆ade to no lock is allowed.      ┆
0x11e0…1200 20 49 66 20 61 6e 20 65 08 65 08 65 08 65 78 08 78 08 78 08 78 63 08 63 08 63 08 63 6c 08 6c 08   ┆ If an e e e ex x x xc c c cl l ┆
0x1200…1220 6c 08 6c 75 08 75 08 75 08 75 73 08 73 08 73 08 73 69 08 69 08 69 08 69 76 08 76 08 76 08 76 65   ┆l lu u u us s s si i i iv v v ve┆
0x1220…1240 08 65 08 65 08 65 20 6c 08 6c 08 6c 08 6c 6f 08 6f 08 6f 08 6f 63 08 63 08 63 08 63 6b 08 6b 08   ┆ e e e l l l lo o o oc c c ck k ┆
0x1240…1260 6b 08 6b 20 69 73 20 68 65 6c 64 2c 20 6f 6e 6c 79 20 64 6f 77 6e 67 72 61 64 65 20 69 73 20 70   ┆k k is held, only downgrade is p┆
0x1260…1280 6f 73 73 69 62 6c 65 2e 0a 20 20 20 20 20 54 68 65 20 64 6f 77 6e 67 72 61 64 65 20 63 61 6e 20   ┆ossible.      The downgrade can ┆
0x1280…12a0 62 65 20 65 69 74 68 65 72 20 74 6f 20 61 20 73 68 61 72 65 64 20 6c 6f 63 6b 20 6f 72 20 74 6f   ┆be either to a shared lock or to┆
0x12a0…12c0 20 6e 6f 20 6c 6f 63 6b 2e 0a 0a 0a 0a 0a 0a 0a 0a 20 20 20 20 20 43 08 43 08 43 08 43 6f 08 6f   ┆ no lock.             C C C Co o┆
0x12c0…12e0 08 6f 08 6f 6e 08 6e 08 6e 08 6e 73 08 73 08 73 08 73 69 08 69 08 69 08 69 64 08 64 08 64 08 64   ┆ o on n n ns s s si i i id d d d┆
0x12e0…1300 65 08 65 08 65 08 65 72 08 72 08 72 08 72 61 08 61 08 61 08 61 74 08 74 08 74 08 74 69 08 69 08   ┆e e e er r r ra a a at t t ti i ┆
0x1300…1320 69 08 69 6f 08 6f 08 6f 08 6f 6e 08 6e 08 6e 08 6e 73 08 73 08 73 08 73 0a 20 20 20 20 20 41 74   ┆i io o o on n n ns s s s      At┆
0x1320…1340 20 70 72 6f 63 65 73 73 20 74 65 72 6d 69 6e 61 74 69 6f 6e 2c 20 61 6c 6c 20 6c 6f 63 6b 73 20   ┆ process termination, all locks ┆
0x1340…1360 61 70 70 6c 69 65 64 20 62 79 20 74 68 69 73 20 70 72 6f 63 65 73 73 0a 20 20 20 20 20 61 72 65   ┆applied by this process      are┆
0x1360…1380 20 72 65 6c 65 61 73 65 64 2e 0a 0a 20 20 20 20 20 41 66 74 65 72 20 61 20 73 69 67 6e 61 6c 20   ┆ released.       After a signal ┆
0x1380…13a0 69 6e 74 65 72 72 75 70 74 2c 20 6c 6f 63 6b 73 20 61 72 65 20 61 70 70 6c 69 65 64 20 61 6c 6c   ┆interrupt, locks are applied all┆
0x13a0…13c0 20 61 74 20 6f 6e 63 65 20 6f 72 0a 20 20 20 20 20 6e 6f 74 20 61 74 20 61 6c 6c 2e 20 20 54 68   ┆ at once or      not at all.  Th┆
0x13c0…13e0 65 20 63 61 6c 6c 20 69 73 20 72 65 73 74 61 72 74 65 64 20 61 75 74 6f 6d 61 74 69 63 61 6c 6c   ┆e call is restarted automaticall┆
0x13e0…1400 79 20 69 66 20 74 68 65 20 73 69 67 2d 0a 20 20 20 20 20 6e 61 6c 20 64 65 6c 69 76 65 72 79 20   ┆y if the sig-      nal delivery ┆
0x1400…1420 63 61 75 73 65 73 20 70 72 65 6d 61 74 75 72 65 20 74 65 72 6d 69 6e 61 74 69 6f 6e 2e 0a 0a 52   ┆causes premature termination.  R┆
0x1420…1440 08 52 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   ┆ R R RE E E ET T T TU U U UR R R┆
0x1440…1460 08 52 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   ┆ RN N N N V V V VA A A AL L L LU┆
0x1460…1480 08 55 08 55 08 55 45 08 45 08 45 08 45 0a 20 20 20 20 20 30 20 69 73 20 72 65 74 75 72 6e 65 64   ┆ U U UE E E E      0 is returned┆
0x1480…14a0 20 69 66 20 74 68 65 20 6f 70 65 72 61 74 69 6f 6e 20 77 61 73 20 73 75 63 63 65 73 73 66 75 6c   ┆ if the operation was successful┆
0x14a0…14c0 2e 0a 20 20 20 20 20 4f 6e 20 61 6e 20 65 72 72 6f 72 2c 20 2d 31 20 69 73 20 72 65 74 75 72 6e   ┆.      On an error, -1 is return┆
0x14c0…14e0 65 64 20 61 6e 64 20 61 6e 20 65 72 72 6f 72 20 63 6f 64 65 20 69 73 20 69 6e 20 74 68 65 20 67   ┆ed and an error code is in the g┆
0x14e0…1500 6c 6f 2d 0a 20 20 20 20 20 62 61 6c 20 5f 08 65 5f 08 72 5f 08 72 5f 08 6e 5f 08 6f 2e 0a 0a 45   ┆lo-      bal _ e_ r_ r_ n_ o.  E┆
0x1500…1520 08 45 08 45 08 45 52 08 52 08 52 08 52 52 08 52 08 52 08 52 4f 08 4f 08 4f 08 4f 52 08 52 08 52   ┆ E E ER R R RR R R RO O O OR R R┆
0x1520…1540 08 52 53 08 53 08 53 08 53 0a 20 20 20 20 20 54 68 65 20 5f 08 6d 5f 08 62 5f 08 6c 5f 08 6f 5f   ┆ RS S S S      The _ m_ b_ l_ o_┆
0x1540…1560 08 63 5f 08 6b 20 63 61 6c 6c 20 66 61 69 6c 73 20 69 66 20 61 6e 79 20 6f 66 20 74 68 65 20 66   ┆ c_ k call fails if any of the f┆
0x1560…1580 6f 6c 6c 6f 77 69 6e 67 20 6f 63 63 75 72 73 3a 0a 0a 20 20 20 20 20 5b 45 42 41 44 46 5d 20 20   ┆ollowing occurs:       [EBADF]  ┆
0x1580…15a0 20 20 20 20 20 20 20 20 20 20 20 54 68 65 20 61 72 67 75 6d 65 6e 74 20 5f 08 66 5f 08 64 20 69   ┆           The argument _ f_ d i┆
0x15a0…15c0 73 20 65 69 74 68 65 72 20 61 6e 20 69 6e 76 61 6c 69 64 0a 20 20 20 20 20 20 20 20 20 20 20 20   ┆s either an invalid             ┆
0x15c0…15e0 20 20 20 20 20 20 20 20 20 20 20 20 20 64 65 73 63 72 69 70 74 6f 72 20 6f 72 20 73 70 65 63 69   ┆             descriptor or speci┆
0x15e0…1600 66 69 65 73 20 61 20 74 72 61 6e 73 61 63 74 69 6f 6e 2d 0a 20 20 20 20 20 20 20 20 20 20 20 20   ┆fies a transaction-             ┆
0x1600…1620 20 20 20 20 20 20 20 20 20 20 20 20 20 6f 72 69 65 6e 74 65 64 20 28 4f 5f 43 4f 4e 54 52 4f 4c   ┆             oriented (O_CONTROL┆
0x1620…1640 29 20 66 69 6c 65 2e 0a 0a 20 20 20 20 20 5b 45 44 45 41 44 42 4c 4f 43 4b 5d 20 20 20 20 20 20   ┆) file.       [EDEADBLOCK]      ┆
0x1640…1660 20 20 54 68 65 20 5f 08 6d 5f 08 62 5f 08 6c 5f 08 6f 5f 08 63 5f 08 6b 20 6f 70 65 72 61 74 69   ┆  The _ m_ b_ l_ o_ c_ k operati┆
0x1660…1680 6f 6e 20 77 6f 75 6c 64 20 72 65 73 75 6c 74 20 69 6e 20 61 0a 20 20 20 20 20 20 20 20 20 20 20   ┆on would result in a            ┆
0x1680…16a0 20 20 20 20 20 20 20 20 20 20 20 20 20 20 74 72 61 6e 73 61 63 74 69 6f 6e 20 64 65 61 64 6c 6f   ┆              transaction deadlo┆
0x16a0…16c0 63 6b 2e 0a 0a 20 20 20 20 20 5b 45 49 4e 56 41 4c 5d 20 20 20 20 20 20 20 20 20 20 20 20 54 68   ┆ck.       [EINVAL]            Th┆
0x16c0…16e0 65 20 6f 66 66 73 65 74 20 6f 66 20 74 68 65 20 6c 61 73 74 20 73 65 65 6b 20 69 73 20 6e 65 67   ┆e offset of the last seek is neg┆
0x16e0…1700 61 74 69 76 65 2e 0a 0a 20 20 20 20 20 5b 45 4f 50 4e 4f 54 53 55 50 50 5d 20 20 20 20 20 20 20   ┆ative.       [EOPNOTSUPP]       ┆
0x1700…1720 20 54 68 65 20 66 69 6c 65 20 64 65 73 63 72 69 70 74 6f 72 20 73 70 65 63 69 66 69 65 64 20 69   ┆ The file descriptor specified i┆
0x1720…1740 73 20 6e 6f 74 20 66 6f 72 0a 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20   ┆s not for                       ┆
0x1740…1760 20 20 20 61 20 64 69 73 6b 20 66 69 6c 65 2e 0a 0a 20 20 20 20 20 5b 45 57 4f 55 4c 44 42 4c 4f   ┆   a disk file.       [EWOULDBLO┆
0x1760…1780 43 4b 5d 20 20 20 20 20 20 20 54 68 65 20 66 69 6c 65 20 69 73 20 6c 6f 63 6b 65 64 20 61 6e 64   ┆CK]       The file is locked and┆
0x1780…17a0 20 74 68 65 20 4c 4f 43 4b 5f 4e 42 0a 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20   ┆ the LOCK_NB                    ┆
0x17a0…17c0 20 20 20 20 20 20 6f 70 74 69 6f 6e 20 77 61 73 20 73 70 65 63 69 66 69 65 64 2e 0a 0a 53 08 53   ┆      option was specified.  S S┆
0x17c0…17e0 08 53 08 53 45 08 45 08 45 08 45 45 08 45 08 45 08 45 20 41 08 41 08 41 08 41 4c 08 4c 08 4c 08   ┆ S SE E E EE E E E A A A AL L L ┆
0x17e0…1800 4c 53 08 53 08 53 08 53 4f 08 4f 08 4f 08 4f 0a 20 20 20 20 20 53 79 73 74 65 6d 20 43 61 6c 6c   ┆LS S S SO O O O      System Call┆
0x1800…1820 73 20 28 32 29 3a 20 20 63 6c 6f 73 65 2c 20 64 75 70 2c 20 65 78 65 63 76 65 2c 20 66 6f 72 6b   ┆s (2):  close, dup, execve, fork┆
0x1820…1840 2c 20 6f 70 65 6e 2c 20 72 65 61 64 28 76 29 2c 0a 20 20 20 20 20 74 72 61 6e 73 2c 20 77 72 69   ┆, open, read(v),      trans, wri┆
0x1840…1860 74 65 28 76 29 0a 20 20 20 20 20 53 79 73 74 65 6d 20 46 61 63 69 6c 69 74 69 65 73 20 28 34 29   ┆te(v)      System Facilities (4)┆
0x1860…1880 3a 20 20 6c 6f 63 6b 0a 0a 4d 61 72 63 68 20 31 39 38 39 20 20 20 20 20 20 20 20 20 20 20 20 20   ┆:  lock  March 1989             ┆
0x1880…18a0 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 73   ┆                 TX Programmer's┆
0x18a0…18c0 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 0a   ┆ Reference                      ┆
0x18c0…18c2 0a 0a                                                                                             ┆  ┆