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

⟦63a2c613a⟧

    Length: 12225 (0x2fc1)
    Names: »fcntl.2«

Derivation

└─⟦50656ff4a⟧ Bits:30010538 TX 3.1 Coldstart
    └─⟦bbf173f5c⟧ »0004« 
        └─⟦this⟧ »./bsd/usr/man/cat2/fcntl.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 66 63 6e 74 6c 28 32 29 0a 0a 0a 0a   ┆s                   fcntl(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 66 63 6e 74 6c 20 2d 20 66 69 6c 65 20 63 6f 6e 74 72 6f 6c 0a 0a 53 08 53 08 53 08 53 59   ┆  fcntl - file control  S S S SY┆
0x00a0…00c0 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 58   ┆ Y Y YN N N NT T T TA A A AX X X┆
0x00c0…00e0 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 63   ┆ X      # # # #i i i in n n nc c┆
0x00e0…0100 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 65   ┆ c cl l l lu u u ud d d de e e e┆
0x0100…0120 20 3c 08 3c 08 3c 08 3c 66 08 66 08 66 08 66 63 08 63 08 63 08 63 6e 08 6e 08 6e 08 6e 74 08 74   ┆ < < < <f f f fc c c cn n n nt t┆
0x0120…0140 08 74 08 74 6c 08 6c 08 6c 08 6c 2e 08 2e 08 2e 08 2e 68 08 68 08 68 08 68 3e 08 3e 08 3e 08 3e   ┆ t tl l l l. . . .h h h h> > > >┆
0x0140…0160 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 66 08 66   ┆       i i i in n n nt t t t f f┆
0x0160…0180 08 66 08 66 63 08 63 08 63 08 63 6e 08 6e 08 6e 08 6e 74 08 74 08 74 08 74 6c 08 6c 08 6c 08 6c   ┆ f fc c c cn n n nt t t tl l l l┆
0x0180…01a0 28 08 28 08 28 08 28 66 08 66 08 66 08 66 69 08 69 08 69 08 69 6c 08 6c 08 6c 08 6c 64 08 64 08   ┆( ( ( (f f f fi i i il l l ld d ┆
0x01a0…01c0 64 08 64 65 08 65 08 65 08 65 73 08 73 08 73 08 73 2c 08 2c 08 2c 08 2c 20 63 08 63 08 63 08 63   ┆d de e e es s s s, , , , c c c c┆
0x01c0…01e0 6d 08 6d 08 6d 08 6d 64 08 64 08 64 08 64 2c 08 2c 08 2c 08 2c 20 61 08 61 08 61 08 61 72 08 72   ┆m m m md d d d, , , , a a a ar r┆
0x01e0…0200 08 72 08 72 67 08 67 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   ┆ r rg g g g) ) ) )      i i i in┆
0x0200…0220 08 6e 08 6e 08 6e 74 08 74 08 74 08 74 20 66 08 66 08 66 08 66 69 08 69 08 69 08 69 6c 08 6c 08   ┆ n n nt t t t f f f fi i i il l ┆
0x0220…0240 6c 08 6c 64 08 64 08 64 08 64 65 08 65 08 65 08 65 73 08 73 08 73 08 73 2c 08 2c 08 2c 08 2c 20   ┆l ld d d de e e es s s s, , , , ┆
0x0240…0260 63 08 63 08 63 08 63 6d 08 6d 08 6d 08 6d 64 08 64 08 64 08 64 3b 08 3b 08 3b 08 3b 0a 0a 44 08   ┆c c c cm m m md d d d; ; ; ;  D ┆
0x0260…0280 44 08 44 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   ┆D D DE E E ES S S SC C C CR R R ┆
0x0280…02a0 52 49 08 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   ┆RI I I IP P P PT T T TI I I IO O┆
0x02a0…02c0 08 4f 08 4f 4e 08 4e 08 4e 08 4e 0a 20 20 20 20 20 54 68 65 20 66 75 6e 63 74 69 6f 6e 20 5f 08   ┆ O ON N N N      The function _ ┆
0x02c0…02e0 66 5f 08 63 5f 08 6e 5f 08 74 5f 08 6c 20 70 72 6f 76 69 64 65 73 20 66 6f 72 20 63 6f 6e 74 72   ┆f_ c_ n_ t_ l provides for contr┆
0x02e0…0300 6f 6c 20 6f 76 65 72 20 6f 70 65 6e 20 66 69 6c 65 73 2e 0a 0a 20 20 20 20 20 54 68 65 20 61 72   ┆ol over open files.       The ar┆
0x0300…0320 67 75 6d 65 6e 74 20 5f 08 66 5f 08 69 5f 08 6c 5f 08 64 5f 08 65 5f 08 73 20 69 73 20 61 6e 20   ┆gument _ f_ i_ l_ d_ e_ s is an ┆
0x0320…0340 6f 70 65 6e 20 66 69 6c 65 2d 64 65 73 63 72 69 70 74 6f 72 2e 0a 0a 20 20 20 20 20 54 68 65 20   ┆open file-descriptor.       The ┆
0x0340…0360 64 61 74 61 20 74 79 70 65 20 61 6e 64 20 76 61 6c 75 65 20 6f 66 20 5f 08 61 5f 08 72 5f 08 67   ┆data type and value of _ a_ r_ g┆
0x0360…0380 20 61 72 65 20 73 70 65 63 69 66 69 63 20 74 6f 20 74 68 65 20 74 79 70 65 20 6f 66 0a 20 20 20   ┆ are specific to the type of    ┆
0x0380…03a0 20 20 63 6f 6d 6d 61 6e 64 20 73 70 65 63 69 66 69 65 64 20 62 79 20 5f 08 63 5f 08 6d 5f 08 64   ┆  command specified by _ c_ m_ d┆
0x03a0…03c0 2e 20 54 68 65 20 73 79 6d 62 6f 6c 69 63 20 6e 61 6d 65 73 20 66 6f 72 20 63 6f 6d 6d 61 6e 64   ┆. The symbolic names for command┆
0x03c0…03e0 20 61 6e 64 0a 20 20 20 20 20 66 69 6c 65 20 73 74 61 74 75 73 20 66 6c 61 67 73 20 61 72 65 20   ┆ and      file status flags are ┆
0x03e0…0400 64 65 66 69 6e 65 64 20 62 79 20 3c 66 63 6e 74 6c 2e 68 3e 20 68 65 61 64 65 72 20 66 69 6c 65   ┆defined by <fcntl.h> header file┆
0x0400…0420 2e 0a 0a 20 20 20 20 20 43 08 43 08 43 08 43 6f 08 6f 08 6f 08 6f 6d 08 6d 08 6d 08 6d 6d 08 6d   ┆.       C C C Co o o om m m mm m┆
0x0420…0440 08 6d 08 6d 61 08 61 08 61 08 61 6e 08 6e 08 6e 08 6e 64 08 64 08 64 08 64 73 08 73 08 73 08 73   ┆ m ma a a an n n nd d d ds s s s┆
0x0440…0460 0a 0a 20 20 20 20 20 46 5f 44 55 50 46 44 20 20 20 20 20 52 65 74 75 72 6e 20 61 20 6e 65 77 20   ┆       F_DUPFD     Return a new ┆
0x0460…0480 66 69 6c 65 2d 64 65 73 63 72 69 70 74 6f 72 20 61 73 20 66 6f 6c 6c 6f 77 73 3a 0a 20 20 20 20   ┆file-descriptor as follows:     ┆
0x0480…04a0 20 20 20 20 20 20 20 20 20 20 20 20 20 2d 20 53 6d 61 6c 6c 65 73 74 20 61 76 61 69 6c 61 62 6c   ┆             - Smallest availabl┆
0x04a0…04c0 65 20 64 65 73 63 72 69 70 74 6f 72 20 3e 20 6f 72 20 3d 20 5f 08 61 5f 08 72 5f 08 67 2e 0a 20   ┆e descriptor > or = _ a_ r_ g.  ┆
0x04c0…04e0 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 2d 20 48 61 73 20 74 68 65 20 73 61 6d 65 20 6f   ┆                - Has the same o┆
0x04e0…0500 62 6a 65 63 74 20 72 65 66 65 72 65 6e 63 65 73 20 61 73 20 74 68 65 20 6f 72 69 67 69 6e 61 6c   ┆bject references as the original┆
0x0500…0520 20 64 65 73 63 72 69 70 74 6f 72 2e 0a 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 2d 20   ┆ descriptor.                  - ┆
0x0520…0540 48 61 73 20 74 68 65 20 73 61 6d 65 20 61 63 63 65 73 73 20 6d 6f 64 65 20 28 72 65 61 64 2c 20   ┆Has the same access mode (read, ┆
0x0540…0560 77 72 69 74 65 2c 20 6f 72 20 72 65 61 64 2f 77 72 69 74 65 20 70 65 72 6d 69 73 73 69 6f 6e 73   ┆write, or read/write permissions┆
0x0560…0580 29 2e 0a 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 2d 20 53 68 61 72 65 73 20 74 68 65   ┆).                  - Shares the┆
0x0580…05a0 20 73 61 6d 65 20 66 69 6c 65 20 70 6f 69 6e 74 65 72 2c 20 69 66 20 74 68 65 20 6f 62 6a 65 63   ┆ same file pointer, if the objec┆
0x05a0…05c0 74 20 77 61 73 20 61 20 66 69 6c 65 2e 0a 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 2d   ┆t was a file.                  -┆
0x05c0…05e0 20 53 68 61 72 65 73 20 74 68 65 20 73 61 6d 65 20 66 69 6c 65 2d 73 74 61 74 75 73 20 66 6c 61   ┆ Shares the same file-status fla┆
0x05e0…0600 67 73 2e 0a 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 2d 20 54 68 65 20 63 6c 6f 73 65   ┆gs.                  - The close┆
0x0600…0620 2d 6f 6e 2d 65 78 65 63 20 66 6c 61 67 20 69 73 20 73 65 74 20 74 6f 20 72 65 6d 61 69 6e 20 6f   ┆-on-exec flag is set to remain o┆
0x0620…0640 70 65 6e 20 61 63 72 6f 73 73 20 5f 08 65 5f 08 78 5f 08 65 5f 08 63 5f 08 76 20 63 61 6c 6c 73   ┆pen across _ e_ x_ e_ c_ v calls┆
0x0640…0660 2e 0a 0a 20 20 20 20 20 46 5f 47 45 54 46 44 20 20 20 20 20 47 65 74 20 74 68 65 20 63 6c 6f 73   ┆.       F_GETFD     Get the clos┆
0x0660…0680 65 2d 6f 6e 2d 65 78 65 63 20 66 6c 61 67 20 61 73 73 6f 63 69 61 74 65 64 20 77 69 74 68 20 74   ┆e-on-exec flag associated with t┆
0x0680…06a0 68 65 0a 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 66 69 6c 65 2d 64 65 73 63 72 69 70   ┆he                  file-descrip┆
0x06a0…06c0 74 6f 72 20 5f 08 66 5f 08 69 5f 08 6c 5f 08 64 5f 08 65 5f 08 73 2e 20 49 66 20 74 68 65 20 6c   ┆tor _ f_ i_ l_ d_ e_ s. If the l┆
0x06c0…06e0 6f 77 2d 6f 72 64 65 72 20 62 69 74 20 69 73 0a 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20   ┆ow-order bit is                 ┆
0x06e0…0700 20 30 2c 20 74 68 65 20 66 69 6c 65 20 77 69 6c 6c 20 72 65 6d 61 69 6e 20 6f 70 65 6e 20 61 63   ┆ 0, the file will remain open ac┆
0x0700…0720 72 6f 73 73 20 63 61 6c 6c 73 20 74 6f 20 74 68 65 0a 20 20 20 20 20 20 20 20 20 20 20 20 20 20   ┆ross calls to the               ┆
0x0720…0740 20 20 20 5f 08 65 5f 08 78 5f 08 65 5f 08 63 20 72 6f 75 74 69 6e 65 73 3b 20 6f 74 68 65 72 77   ┆   _ e_ x_ e_ c routines; otherw┆
0x0740…0760 69 73 65 2c 20 74 68 65 20 66 69 6c 65 20 77 69 6c 6c 20 62 65 0a 20 20 20 20 20 20 20 20 20 20   ┆ise, the file will be           ┆
0x0760…0780 20 20 20 20 20 20 20 63 6c 6f 73 65 64 20 75 70 6f 6e 20 65 78 65 63 75 74 69 6f 6e 20 6f 66 20   ┆       closed upon execution of ┆
0x0780…07a0 61 6e 79 20 5f 08 65 5f 08 78 5f 08 65 5f 08 63 20 72 6f 75 74 69 6e 65 73 2e 0a 0a 20 20 20 20   ┆any _ e_ x_ e_ c routines.      ┆
0x07a0…07c0 20 46 5f 53 45 54 46 44 20 20 20 20 20 53 65 74 20 74 68 65 20 63 6c 6f 73 65 2d 6f 6e 2d 65 78   ┆ F_SETFD     Set the close-on-ex┆
0x07c0…07e0 65 63 20 66 6c 61 67 20 61 73 73 6f 63 69 61 74 65 64 20 77 69 74 68 0a 20 20 20 20 20 20 20 20   ┆ec flag associated with         ┆
0x07e0…0800 20 20 20 20 20 20 20 20 20 5f 08 66 5f 08 69 5f 08 6c 5f 08 64 5f 08 65 5f 08 73 20 74 6f 20 74   ┆         _ f_ i_ l_ d_ e_ s to t┆
0x0800…0820 68 65 20 6c 6f 77 2d 6f 72 64 65 72 20 62 69 74 20 6f 66 20 5f 08 61 5f 08 72 5f 08 67 20 28 30   ┆he low-order bit of _ a_ r_ g (0┆
0x0820…0840 20 6f 72 20 31 20 61 73 0a 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 61 62 6f 76 65 29   ┆ or 1 as                  above)┆
0x0840…0860 2e 0a 0a 20 20 20 20 20 46 5f 47 45 54 46 4c 20 20 20 20 20 47 65 74 20 5f 08 66 5f 08 69 5f 08   ┆.       F_GETFL     Get _ f_ i_ ┆
0x0860…0880 6c 5f 08 64 5f 08 65 5f 08 73 20 73 74 61 74 75 73 20 66 6c 61 67 73 2c 20 61 73 20 64 65 73 63   ┆l_ d_ e_ s status flags, as desc┆
0x0880…08a0 72 69 62 65 64 20 62 65 6c 6f 77 2e 0a 0a 20 20 20 20 20 46 5f 53 45 54 46 4c 20 20 20 20 20 53   ┆ribed below.       F_SETFL     S┆
0x08a0…08c0 65 74 20 5f 08 66 5f 08 69 5f 08 6c 5f 08 64 5f 08 65 5f 08 73 20 73 74 61 74 75 73 20 66 6c 61   ┆et _ f_ i_ l_ d_ e_ s status fla┆
0x08c0…08e0 67 73 20 74 6f 20 5f 08 61 5f 08 72 5f 08 67 2c 20 61 73 20 64 65 73 63 72 69 62 65 64 0a 20 20   ┆gs to _ a_ r_ g, as described   ┆
0x08e0…0900 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 62 65 6c 6f 77 0a 0a 20 20 20 20 20 46 5f 47 45 54   ┆               below       F_GET┆
0x0900…0920 4f 57 4e 20 20 20 20 47 65 74 20 74 68 65 20 70 72 6f 63 65 73 73 20 49 08 49 08 49 08 49 44 08   ┆OWN    Get the process I I I ID ┆
0x0920…0940 44 08 44 08 44 20 28 70 69 64 29 20 6f 72 20 67 72 6f 75 70 20 63 75 72 72 65 6e 74 6c 79 0a 20   ┆D D D (pid) or group currently  ┆
0x0940…0960 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 72 65 63 65 69 76 69 6e 67 20 53 08 53 08 53 08   ┆                receiving S S S ┆
0x0960…0980 53 49 08 49 08 49 08 49 47 08 47 08 47 08 47 49 08 49 08 49 08 49 4f 08 4f 08 4f 08 4f 20 61 6e   ┆SI I I IG G G GI I I IO O O O an┆
0x0980…09a0 64 20 53 08 53 08 53 08 53 49 08 49 08 49 08 49 47 08 47 08 47 08 47 55 08 55 08 55 08 55 52 08   ┆d S S S SI I I IG G G GU U U UR ┆
0x09a0…09c0 52 08 52 08 52 47 08 47 08 47 08 47 20 73 69 67 6e 61 6c 73 2e 20 20 50 72 6f 63 65 73 73 0a 20   ┆R R RG G G G signals.  Process  ┆
0x09c0…09e0 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 67 72 6f 75 70 73 20 61 72 65 20 72 65 74 75 72   ┆                groups are retur┆
0x09e0…0a00 6e 65 64 20 61 73 20 6e 65 67 61 74 69 76 65 20 76 61 6c 75 65 73 2e 0a 0a 20 20 20 20 20 46 5f   ┆ned as negative values.       F_┆
0x0a00…0a20 53 45 54 4f 57 4e 20 20 20 20 53 65 74 20 74 68 65 20 70 72 6f 63 65 73 73 20 6f 72 20 70 72 6f   ┆SETOWN    Set the process or pro┆
0x0a20…0a40 63 65 73 73 20 67 72 6f 75 70 20 74 6f 20 72 65 63 65 69 76 65 0a 20 20 20 20 20 20 20 20 20 20   ┆cess group to receive           ┆
0x0a40…0a60 20 20 20 20 20 20 20 53 08 53 08 53 08 53 49 08 49 08 49 08 49 47 08 47 08 47 08 47 49 08 49 08   ┆       S S S SI I I IG G G GI I ┆
0x0a60…0a80 49 08 49 4f 08 4f 08 4f 08 4f 20 61 6e 64 20 53 08 53 08 53 08 53 49 08 49 08 49 08 49 47 08 47   ┆I IO O O O and S S S SI I I IG G┆
0x0a80…0aa0 08 47 08 47 55 08 55 08 55 08 55 52 08 52 08 52 08 52 47 08 47 08 47 08 47 20 73 69 67 6e 61 6c   ┆ G GU U U UR R R RG G G G signal┆
0x0aa0…0ac0 73 2e 20 20 50 72 6f 63 65 73 73 20 67 72 6f 75 70 73 20 61 72 65 0a 20 20 20 20 20 20 20 20 20   ┆s.  Process groups are          ┆
0x0ac0…0ae0 20 20 20 20 20 20 20 20 73 70 65 63 69 66 69 65 64 20 62 79 20 73 70 65 63 69 66 79 69 6e 67 20   ┆        specified by specifying ┆
0x0ae0…0b00 5f 08 61 5f 08 72 5f 08 67 20 61 73 20 6e 65 67 61 74 69 76 65 2c 20 6f 74 68 65 72 2d 0a 20 20   ┆_ a_ r_ g as negative, other-   ┆
0x0b00…0b20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 77 69 73 65 20 5f 08 61 5f 08 72 5f 08 67 20 69 73   ┆               wise _ a_ r_ g is┆
0x0b20…0b40 20 69 6e 74 65 72 70 72 65 74 65 64 20 61 73 20 61 20 70 72 6f 63 65 73 73 20 49 08 49 08 49 08   ┆ interpreted as a process I I I ┆
0x0b40…0b60 49 44 08 44 08 44 08 44 2e 0a 0a 20 20 20 20 20 54 68 65 20 66 6f 6c 6c 6f 77 69 6e 67 20 63 6f   ┆ID D D D.       The following co┆
0x0b60…0b80 6d 6d 61 6e 64 73 20 61 72 65 20 75 73 65 64 20 66 6f 72 20 72 65 63 6f 72 64 2d 6c 6f 63 6b 69   ┆mmands are used for record-locki┆
0x0b80…0ba0 6e 67 2e 20 20 4c 6f 63 6b 73 0a 20 20 20 20 20 6d 61 79 20 62 65 20 70 6c 61 63 65 64 20 6f 6e   ┆ng.  Locks      may be placed on┆
0x0ba0…0bc0 20 61 6e 20 65 6e 74 69 72 65 20 66 69 6c 65 20 6f 72 20 73 65 67 6d 65 6e 74 73 20 6f 66 20 61   ┆ an entire file or segments of a┆
0x0bc0…0be0 20 66 69 6c 65 2e 0a 0a 20 20 20 20 20 46 5f 47 45 54 4c 4b 20 20 20 20 20 47 65 74 20 74 68 65   ┆ file.       F_GETLK     Get the┆
0x0be0…0c00 20 66 69 72 73 74 20 6c 6f 63 6b 20 77 68 69 63 68 20 62 6c 6f 63 6b 73 20 74 68 65 20 6c 6f 63   ┆ first lock which blocks the loc┆
0x0c00…0c20 6b 0a 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 64 65 73 63 72 69 70 74 69 6f 6e 20 67   ┆k                  description g┆
0x0c20…0c40 69 76 65 6e 20 62 79 20 74 68 65 20 76 61 72 69 61 62 6c 65 20 6f 66 20 74 79 70 65 20 73 08 73   ┆iven by the variable of type s s┆
0x0c40…0c60 08 73 08 73 74 08 74 08 74 08 74 72 08 72 08 72 08 72 75 08 75 08 75 08 75 63 08 63 08 63 08 63   ┆ s st t t tr r r ru u u uc c c c┆
0x0c60…0c80 74 08 74 08 74 08 74 0a 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 66 08 66 08 66 08 66   ┆t t t t                  f f f f┆
0x0c80…0ca0 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 28 73 65   ┆l l l lo o o oc c c ck k k k (se┆
0x0ca0…0cc0 65 20 62 65 6c 6f 77 29 20 70 6f 69 6e 74 65 64 20 74 6f 20 62 79 20 5f 08 61 5f 08 72 5f 08 67   ┆e below) pointed to by _ a_ r_ g┆
0x0cc0…0ce0 2e 20 54 68 65 20 69 6e 66 6f 72 2d 0a 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 6d 61   ┆. The infor-                  ma┆
0x0ce0…0d00 74 69 6f 6e 20 72 65 74 72 69 65 76 65 64 20 6f 76 65 72 77 72 69 74 65 72 73 20 74 68 65 20 69   ┆tion retrieved overwriters the i┆
0x0d00…0d20 6e 66 6f 72 6d 61 74 69 6f 6e 0a 0a 0a 0a 0a 0a 0a 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20   ┆nformation                      ┆
0x0d20…0d40 20 20 70 61 73 73 65 64 20 74 6f 20 5f 08 66 5f 08 63 5f 08 6e 5f 08 74 5f 08 6c 20 69 6e 20 74   ┆  passed to _ f_ c_ n_ t_ l in t┆
0x0d40…0d60 68 65 20 73 74 72 75 63 74 75 72 65 20 66 08 66 08 66 08 66 6c 08 6c 08 6c 08 6c 6f 08 6f 08 6f   ┆he structure f f f fl l l lo o o┆
0x0d60…0d80 08 6f 63 08 63 08 63 08 63 6b 08 6b 08 6b 08 6b 2e 20 49 66 20 6e 6f 0a 20 20 20 20 20 20 20 20   ┆ oc c c ck k k k. If no         ┆
0x0d80…0da0 20 20 20 20 20 20 20 20 20 6c 6f 63 6b 20 69 73 20 66 6f 75 6e 64 20 74 68 61 74 20 77 6f 75 6c   ┆         lock is found that woul┆
0x0da0…0dc0 64 20 70 72 65 76 65 6e 74 20 74 68 69 73 20 6c 6f 63 6b 20 66 6f 72 6d 0a 20 20 20 20 20 20 20   ┆d prevent this lock form        ┆
0x0dc0…0de0 20 20 20 20 20 20 20 20 20 20 62 65 69 6e 67 20 63 72 65 61 74 65 64 2c 20 74 68 65 6e 20 74 68   ┆          being created, then th┆
0x0de0…0e00 65 20 73 74 72 75 63 74 75 72 65 20 69 73 20 70 61 73 73 65 64 20 62 61 63 6b 0a 20 20 20 20 20   ┆e structure is passed back      ┆
0x0e00…0e20 20 20 20 20 20 20 20 20 20 20 20 20 75 6e 63 68 61 6e 67 65 64 20 65 78 63 65 70 74 20 66 6f 72   ┆            unchanged except for┆
0x0e20…0e40 20 74 68 65 20 6c 6f 63 6b 20 74 79 70 65 20 77 68 69 63 68 20 77 69 6c 6c 20 62 65 0a 20 20 20   ┆ the lock type which will be    ┆
0x0e40…0e60 20 20 20 20 20 20 20 20 20 20 20 20 20 20 73 65 74 20 74 6f 20 46 5f 55 4e 4c 43 4b 2e 0a 0a 20   ┆              set to F_UNLCK.   ┆
0x0e60…0e80 20 20 20 20 46 5f 53 45 54 4c 4b 20 20 20 20 20 53 65 74 20 6f 72 20 63 6c 65 61 72 20 61 20 66   ┆    F_SETLK     Set or clear a f┆
0x0e80…0ea0 69 6c 65 20 73 65 67 6d 65 6e 74 20 6c 6f 63 6b 20 61 63 63 6f 72 64 69 6e 67 20 74 6f 0a 20 20   ┆ile segment lock according to   ┆
0x0ea0…0ec0 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 74 68 65 20 76 61 72 69 61 62 6c 65 20 6f 66 20 74   ┆               the variable of t┆
0x0ec0…0ee0 79 70 65 20 73 08 73 08 73 08 73 74 08 74 08 74 08 74 72 08 72 08 72 08 72 75 08 75 08 75 08 75   ┆ype s s s st t t tr r r ru u u u┆
0x0ee0…0f00 63 08 63 08 63 08 63 74 08 74 08 74 08 74 20 66 08 66 08 66 08 66 6c 08 6c 08 6c 08 6c 6f 08 6f   ┆c c c ct t t t f f f fl l l lo o┆
0x0f00…0f20 08 6f 08 6f 63 08 63 08 63 08 63 6b 08 6b 08 6b 08 6b 20 28 73 65 65 20 62 65 6c 6f 77 29 0a 20   ┆ o oc c c ck k k k (see below)  ┆
0x0f20…0f40 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 70 6f 69 6e 74 65 64 20 74 6f 20 62 79 20 5f 08   ┆                pointed to by _ ┆
0x0f40…0f60 61 5f 08 72 5f 08 67 2e 20 46 5f 53 45 54 4c 4b 20 69 73 20 75 73 65 64 20 74 6f 20 65 73 74 61   ┆a_ r_ g. F_SETLK is used to esta┆
0x0f60…0f80 62 6c 69 73 68 0a 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 72 65 61 64 20 28 46 5f 52   ┆blish                  read (F_R┆
0x0f80…0fa0 44 4c 43 4b 29 20 61 6e 64 20 77 72 69 74 65 20 28 46 5f 57 52 4c 43 4b 29 20 6c 6f 63 6b 73 2c   ┆DLCK) and write (F_WRLCK) locks,┆
0x0fa0…0fc0 20 61 73 0a 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 77 65 6c 6c 20 61 73 20 72 65 6d   ┆ as                  well as rem┆
0x0fc0…0fe0 6f 76 65 20 65 69 74 68 65 72 20 74 79 70 65 20 6f 66 20 6c 6f 63 6b 20 28 46 5f 55 4e 4c 43 4b   ┆ove either type of lock (F_UNLCK┆
0x0fe0…1000 29 2e 0a 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 46 5f 52 44 4c 43 4b 2c 20 46 5f 57   ┆).                  F_RDLCK, F_W┆
0x1000…1020 52 4c 43 4b 2c 20 61 6e 64 20 46 5f 55 4e 4c 43 4b 20 61 72 65 20 64 65 66 69 6e 65 64 20 62 79   ┆RLCK, and F_UNLCK are defined by┆
0x1020…1040 20 74 68 65 0a 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 3c 66 63 6e 74 6c 2e 68 3e 20   ┆ the                  <fcntl.h> ┆
0x1040…1060 68 65 61 64 65 72 20 66 69 6c 65 2e 20 49 66 20 61 20 72 65 61 64 20 6f 72 20 77 72 69 74 65 20   ┆header file. If a read or write ┆
0x1060…1080 6c 6f 63 6b 0a 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 63 61 6e 6e 6f 74 20 62 65 20   ┆lock                  cannot be ┆
0x1080…10a0 73 65 74 2c 20 5f 08 66 5f 08 63 5f 08 6e 5f 08 74 5f 08 6c 20 77 69 6c 6c 20 72 65 74 75 72 6e   ┆set, _ f_ c_ n_ t_ l will return┆
0x10a0…10c0 20 69 6d 6d 65 64 69 61 74 65 6c 79 0a 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 77 69   ┆ immediately                  wi┆
0x10c0…10e0 74 68 20 61 6e 20 65 72 72 6f 72 20 76 61 6c 75 65 20 6f 66 20 2d 31 2e 0a 0a 20 20 20 20 20 46   ┆th an error value of -1.       F┆
0x10e0…1100 5f 53 45 54 4c 4b 57 20 20 20 20 54 68 69 73 20 63 6f 6d 6d 61 6e 64 20 69 73 20 74 68 65 20 73   ┆_SETLKW    This command is the s┆
0x1100…1120 61 6d 65 20 61 73 20 46 5f 53 45 54 4c 4b 20 65 78 63 65 70 74 20 74 68 61 74 0a 20 20 20 20 20   ┆ame as F_SETLK except that      ┆
0x1120…1140 20 20 20 20 20 20 20 20 20 20 20 20 69 66 20 61 20 72 65 61 64 20 6f 72 20 77 72 69 74 65 20 6c   ┆            if a read or write l┆
0x1140…1160 6f 63 6b 20 69 73 20 62 6c 6f 63 6b 65 64 20 62 79 20 6f 74 68 65 72 0a 20 20 20 20 20 20 20 20   ┆ock is blocked by other         ┆
0x1160…1180 20 20 20 20 20 20 20 20 20 6c 6f 63 6b 73 2c 20 74 68 65 20 70 72 6f 63 65 73 73 20 77 69 6c 6c   ┆         locks, the process will┆
0x1180…11a0 20 73 6c 65 65 70 20 75 6e 74 69 6c 20 74 68 65 20 73 65 67 6d 65 6e 74 0a 20 20 20 20 20 20 20   ┆ sleep until the segment        ┆
0x11a0…11c0 20 20 20 20 20 20 20 20 20 20 69 73 20 66 72 65 65 20 74 6f 20 62 65 20 62 6c 6f 63 6b 65 64 2e   ┆          is free to be blocked.┆
0x11c0…11e0 0a 0a 20 20 20 20 20 54 68 65 20 73 74 72 75 63 74 75 72 65 20 66 08 66 08 66 08 66 6c 08 6c 08   ┆       The structure f f f fl l ┆
0x11e0…1200 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 64 65 66 69 6e 65 64   ┆l lo o o oc c c ck k k k defined┆
0x1200…1220 20 62 79 20 74 68 65 20 3c 66 63 6e 74 6c 2e 68 3e 20 68 65 61 64 65 72 20 66 69 6c 65 0a 20 20   ┆ by the <fcntl.h> header file   ┆
0x1220…1240 20 20 20 64 65 73 63 72 69 62 65 73 20 61 20 6c 6f 63 6b 2e 20 49 74 20 64 65 73 63 72 69 62 65   ┆   describes a lock. It describe┆
0x1240…1260 73 20 74 68 65 20 74 79 70 65 20 28 6c 08 6c 08 6c 08 6c 5f 08 5f 08 5f 08 5f 74 08 74 08 74 08   ┆s the type (l l l l_ _ _ _t t t ┆
0x1260…1280 74 79 08 79 08 79 08 79 70 08 70 08 70 08 70 65 08 65 08 65 08 65 29 2c 20 73 74 61 72 74 69 6e   ┆ty y y yp p p pe e e e), startin┆
0x1280…12a0 67 0a 20 20 20 20 20 6f 66 66 73 65 74 20 28 6c 08 6c 08 6c 08 6c 5f 08 5f 08 5f 08 5f 77 08 77   ┆g      offset (l l l l_ _ _ _w w┆
0x12a0…12c0 08 77 08 77 68 08 68 08 68 08 68 65 08 65 08 65 08 65 6e 08 6e 08 6e 08 6e 63 08 63 08 63 08 63   ┆ w wh h h he e e en n n nc c c c┆
0x12c0…12e0 65 08 65 08 65 08 65 29 2c 20 72 65 6c 61 74 69 76 65 20 6f 66 66 73 65 74 20 28 6c 08 6c 08 6c   ┆e e e e), relative offset (l l l┆
0x12e0…1300 08 6c 5f 08 5f 08 5f 08 5f 73 08 73 08 73 08 73 74 08 74 08 74 08 74 61 08 61 08 61 08 61 72 08   ┆ l_ _ _ _s s s st t t ta a a ar ┆
0x1300…1320 72 08 72 08 72 74 08 74 08 74 08 74 29 2c 20 73 69 7a 65 20 28 6c 08 6c 08 6c 08 6c 5f 08 5f 08   ┆r r rt t t t), size (l l l l_ _ ┆
0x1320…1340 5f 08 5f 6c 08 6c 08 6c 08 6c 65 08 65 08 65 08 65 6e 08 6e 08 6e 08 6e 29 2c 0a 20 20 20 20 20   ┆_ _l l l le e e en n n n),      ┆
0x1340…1360 61 6e 64 20 70 72 6f 63 65 73 73 2d 49 44 20 28 6c 08 6c 08 6c 08 6c 5f 08 5f 08 5f 08 5f 70 08   ┆and process-ID (l l l l_ _ _ _p ┆
0x1360…1380 70 08 70 08 70 69 08 69 08 69 08 69 64 08 64 08 64 08 64 29 3a 0a 0a 20 20 20 20 20 20 20 20 20   ┆p p pi i i id d d d):           ┆
0x1380…13a0 20 73 68 6f 72 74 20 20 20 6c 5f 74 79 70 65 3b 20 20 20 20 20 20 20 20 20 2f 2a 20 46 5f 52 44   ┆ short   l_type;         /* F_RD┆
0x13a0…13c0 4c 43 4b 2c 20 46 5f 57 52 4c 43 4b 2c 20 46 5f 55 4e 4c 43 4b 20 2a 2f 0a 20 20 20 20 20 20 20   ┆LCK, F_WRLCK, F_UNLCK */        ┆
0x13c0…13e0 20 20 20 73 68 6f 72 74 20 20 20 6c 5f 77 68 65 6e 63 65 3b 20 20 20 20 20 20 20 2f 2a 20 66 6c   ┆   short   l_whence;       /* fl┆
0x13e0…1400 61 67 20 66 6f 72 20 73 74 61 72 74 69 6e 67 20 6f 66 66 73 65 74 20 2a 2f 0a 20 20 20 20 20 20   ┆ag for starting offset */       ┆
0x1400…1420 20 20 20 20 6c 6f 6e 67 20 20 20 20 6c 5f 73 74 61 72 74 3b 20 20 20 20 20 20 20 20 2f 2a 20 72   ┆    long    l_start;        /* r┆
0x1420…1440 65 6c 61 74 69 76 65 20 6f 66 66 73 65 74 20 69 6e 20 62 79 74 65 73 20 2a 2f 0a 20 20 20 20 20   ┆elative offset in bytes */      ┆
0x1440…1460 20 20 20 20 20 6c 6f 6e 67 20 20 20 20 6c 5f 6c 65 6e 3b 20 20 20 20 20 20 20 20 20 20 2f 2a 20   ┆     long    l_len;          /* ┆
0x1460…1480 69 66 20 30 20 74 68 65 6e 20 75 6e 74 69 6c 20 45 4f 46 20 2a 2f 0a 20 20 20 20 20 20 20 20 20   ┆if 0 then until EOF */          ┆
0x1480…14a0 20 73 68 6f 72 74 20 20 20 6c 5f 70 69 64 3b 20 20 20 20 20 20 20 20 20 20 2f 2a 20 72 65 74 75   ┆ short   l_pid;          /* retu┆
0x14a0…14c0 72 6e 65 64 20 77 69 74 68 20 46 5f 47 45 54 4c 4b 20 2a 2f 0a 0a 20 20 20 20 20 57 68 65 6e 20   ┆rned with F_GETLK */       When ┆
0x14c0…14e0 61 20 72 65 61 64 2d 6c 6f 63 6b 20 68 61 73 20 62 65 65 6e 20 73 65 74 20 6f 6e 20 61 20 73 65   ┆a read-lock has been set on a se┆
0x14e0…1500 67 6d 65 6e 74 20 6f 66 20 61 20 66 69 6c 65 2c 20 6f 74 68 65 72 0a 20 20 20 20 20 70 72 6f 63   ┆gment of a file, other      proc┆
0x1500…1520 65 73 73 65 73 20 6d 61 79 20 61 6c 73 6f 20 73 65 74 20 72 65 61 64 2d 6c 6f 63 6b 73 20 6f 6e   ┆esses may also set read-locks on┆
0x1520…1540 20 74 68 61 74 20 73 65 67 6d 65 6e 74 20 6f 72 20 61 20 70 6f 72 2d 0a 20 20 20 20 20 74 69 6f   ┆ that segment or a por-      tio┆
0x1540…1560 6e 20 6f 66 20 69 74 2e 20 41 20 72 65 61 64 2d 6c 6f 63 6b 20 70 72 65 76 65 6e 74 73 20 61 6e   ┆n of it. A read-lock prevents an┆
0x1560…1580 79 20 6f 74 68 65 72 20 70 72 6f 63 65 73 73 20 66 72 6f 6d 20 73 65 74 2d 0a 20 20 20 20 20 74   ┆y other process from set-      t┆
0x1580…15a0 69 6e 67 20 61 20 77 72 69 74 65 2d 6c 6f 63 6b 20 6f 6e 20 61 6e 79 20 70 6f 72 74 69 6f 6e 20   ┆ing a write-lock on any portion ┆
0x15a0…15c0 6f 66 20 74 68 65 20 70 72 6f 74 65 63 74 65 64 20 61 72 65 61 2e 20 54 68 65 0a 20 20 20 20 20   ┆of the protected area. The      ┆
0x15c0…15e0 66 69 6c 65 2d 64 65 73 63 72 69 70 74 6f 72 20 6f 6e 20 77 68 69 63 68 20 61 20 72 65 61 64 2d   ┆file-descriptor on which a read-┆
0x15e0…1600 6c 6f 63 6b 20 69 73 20 62 65 69 6e 67 20 70 6c 61 63 65 64 20 6d 75 73 74 0a 20 20 20 20 20 68   ┆lock is being placed must      h┆
0x1600…1620 61 76 65 20 62 65 65 6e 20 6f 70 65 6e 65 64 20 77 69 74 68 20 61 20 72 65 61 64 2d 70 72 6f 63   ┆ave been opened with a read-proc┆
0x1620…1640 65 73 73 2e 0a 0a 20 20 20 20 20 41 20 77 72 69 74 65 2d 6c 6f 63 6b 20 70 72 65 76 65 6e 74 73   ┆ess.       A write-lock prevents┆
0x1640…1660 20 61 6e 79 20 6f 74 68 65 72 20 70 72 6f 63 65 73 73 20 66 72 6f 6d 20 73 65 74 74 69 6e 67 20   ┆ any other process from setting ┆
0x1660…1680 61 0a 20 20 20 20 20 72 65 61 64 2d 6c 6f 63 6b 20 6f 72 20 61 20 77 72 69 74 65 2d 6c 6f 63 6b   ┆a      read-lock or a write-lock┆
0x1680…16a0 20 6f 6e 20 61 6e 79 20 70 6f 72 74 69 6f 6e 20 6f 66 20 74 68 65 20 70 72 6f 74 65 63 74 65 64   ┆ on any portion of the protected┆
0x16a0…16c0 0a 20 20 20 20 20 61 72 65 61 2e 20 4f 6e 6c 79 20 6f 6e 65 20 77 72 69 74 65 2d 6c 6f 63 6b 20   ┆      area. Only one write-lock ┆
0x16c0…16e0 61 6e 64 20 6e 6f 20 72 65 61 64 2d 6c 6f 63 6b 73 20 6d 61 79 20 65 78 69 73 74 20 66 6f 72 20   ┆and no read-locks may exist for ┆
0x16e0…1700 61 0a 20 20 20 20 20 67 69 76 65 6e 20 73 65 67 6d 65 6e 74 20 6f 66 20 61 20 66 69 6c 65 20 61   ┆a      given segment of a file a┆
0x1700…1720 74 20 61 20 67 69 76 65 6e 20 74 69 6d 65 2e 20 54 68 65 20 66 69 6c 65 2d 64 65 73 63 72 69 70   ┆t a given time. The file-descrip┆
0x1720…1740 74 6f 72 0a 20 20 20 20 20 6f 6e 20 77 68 69 63 68 20 61 20 77 72 69 74 65 2d 6c 6f 63 6b 20 69   ┆tor      on which a write-lock i┆
0x1740…1760 73 20 62 65 69 6e 67 20 70 6c 61 63 65 64 20 6d 75 73 74 20 68 61 76 65 20 62 65 65 6e 20 6f 70   ┆s being placed must have been op┆
0x1760…1780 65 6e 65 64 0a 20 20 20 20 20 77 69 74 68 20 61 20 77 72 69 74 65 2d 61 63 63 65 73 73 2e 0a 0a   ┆ened      with a write-access.  ┆
0x1780…17a0 20 20 20 20 20 54 68 65 20 76 61 6c 75 65 20 6f 66 20 6c 08 6c 08 6c 08 6c 5f 08 5f 08 5f 08 5f   ┆     The value of l l l l_ _ _ _┆
0x17a0…17c0 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 6e 08 6e 63 08 63 08   ┆w w w wh h h he e e en n n nc c ┆
0x17c0…17e0 63 08 63 65 08 65 08 65 08 65 20 69 73 20 30 2c 20 31 2c 20 6f 72 20 32 20 74 6f 20 69 6e 64 69   ┆c ce e e e is 0, 1, or 2 to indi┆
0x17e0…1800 63 61 74 65 20 74 68 61 74 20 74 68 65 0a 20 20 20 20 20 72 65 6c 61 74 69 76 65 20 6f 66 66 73   ┆cate that the      relative offs┆
0x1800…1820 65 74 2c 20 6c 08 6c 08 6c 08 6c 73 08 73 08 73 08 73 73 08 73 08 73 08 73 74 08 74 08 74 08 74   ┆et, l l l ls s s ss s s st t t t┆
0x1820…1840 61 08 61 08 61 08 61 72 08 72 08 72 08 72 74 08 74 08 74 08 74 20 62 79 74 65 73 2c 20 77 69 6c   ┆a a a ar r r rt t t t bytes, wil┆
0x1840…1860 6c 20 62 65 20 6d 65 61 73 75 72 65 64 20 66 72 6f 6d 20 74 68 65 0a 20 20 20 20 20 73 74 61 72   ┆l be measured from the      star┆
0x1860…1880 74 20 6f 66 20 74 68 65 20 66 69 6c 65 2c 20 63 75 72 72 65 6e 74 20 70 6f 73 69 74 69 6f 6e 2c   ┆t of the file, current position,┆
0x1880…18a0 20 6f 72 20 65 6e 64 20 6f 66 20 74 68 65 20 66 69 6c 65 2c 0a 20 20 20 20 20 72 65 73 70 65 63   ┆ or end of the file,      respec┆
0x18a0…18c0 74 69 76 65 6c 79 2e 20 54 68 65 20 76 61 6c 75 65 20 6f 66 20 6c 08 6c 08 6c 08 6c 5f 08 5f 08   ┆tively. The value of l l l l_ _ ┆
0x18c0…18e0 5f 08 5f 6c 08 6c 08 6c 08 6c 65 08 65 08 65 08 65 6e 08 6e 08 6e 08 6e 20 69 73 20 74 68 65 20   ┆_ _l l l le e e en n n n is the ┆
0x18e0…1900 6e 75 6d 62 65 72 20 6f 66 20 63 6f 6e 73 65 63 75 2d 0a 20 20 20 20 20 74 69 76 65 20 62 79 74   ┆number of consecu-      tive byt┆
0x1900…1920 65 73 20 74 6f 20 62 65 20 6c 6f 63 6b 65 64 2e 20 20 54 68 65 20 70 72 6f 63 65 73 73 2d 49 44   ┆es to be locked.  The process-ID┆
[…truncated at 200 lines…]