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

⟦d82fbe4a4⟧

    Length: 5778 (0x1692)
    Names: »createfile.2«

Derivation

└─⟦50656ff4a⟧ Bits:30010538 TX 3.1 Coldstart
    └─⟦bbf173f5c⟧ »0004« 
        └─⟦this⟧ »./bsd/usr/man/cat2/createfile.2« 
        └─⟦this⟧ »./usr/man/cat2/createfile.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 63 72 65 61 74 65 66 69 6c 65 28 32 29 0a 0a 0a 0a   ┆s              createfile(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 63 72 65 61 74 65 66 69 6c 65 20 2d 20 63 72 65 61 74 65 20 61 6e 64 20 6f 70 65 6e 20 61   ┆  createfile - create and open a┆
0x00a0…00c0 20 66 69 6c 65 20 77 69 74 68 20 70 72 65 2d 73 65 74 20 76 61 6c 75 65 73 0a 20 20 20 20 20 28   ┆ file with pre-set values      (┆
0x00c0…00e0 6f 77 6e 65 72 2c 20 67 72 6f 75 70 2c 20 2e 2e 2e 29 0a 0a 53 08 53 08 53 08 53 59 08 59 08 59   ┆owner, group, ...)  S S S SY Y Y┆
0x00e0…0100 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 08 58 0a 20   ┆ YN N N NT T T TA A A AX X X X  ┆
0x0100…0120 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 08 63 08 63   ┆    # # # #i i i in n n nc c c c┆
0x0120…0140 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 20 3c 08 3c   ┆l l l lu u u ud d d de e e e < <┆
0x0140…0160 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 2f 08 2f 08 2f   ┆ < <s s s sy y y ys s s s/ / / /┆
0x0160…0180 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 65 2e 08 2e 08   ┆f f f fi i i il l l le e e e. . ┆
0x0180…01a0 2e 08 2e 68 08 68 08 68 08 68 3e 08 3e 08 3e 08 3e 0a 0a 20 20 20 20 20 66 08 66 08 66 08 66 64   ┆. .h h h h> > > >       f f f fd┆
0x01a0…01c0 08 64 08 64 08 64 20 3d 08 3d 08 3d 08 3d 20 63 08 63 08 63 08 63 72 08 72 08 72 08 72 65 08 65   ┆ d d d = = = = c c c cr r r re e┆
0x01c0…01e0 08 65 08 65 61 08 61 08 61 08 61 74 08 74 08 74 08 74 65 08 65 08 65 08 65 66 08 66 08 66 08 66   ┆ e ea a a at t t te e e ef f f f┆
0x01e0…0200 69 08 69 08 69 08 69 6c 08 6c 08 6c 08 6c 65 08 65 08 65 08 65 28 08 28 08 28 08 28 70 08 70 08   ┆i i i il l l le e e e( ( ( (p p ┆
0x0200…0220 70 08 70 61 08 61 08 61 08 61 74 08 74 08 74 08 74 68 08 68 08 68 08 68 2c 08 2c 08 2c 08 2c 20   ┆p pa a a at t t th h h h, , , , ┆
0x0220…0240 66 08 66 08 66 08 66 6c 08 6c 08 6c 08 6c 61 08 61 08 61 08 61 67 08 67 08 67 08 67 73 08 73 08   ┆f f f fl l l la a a ag g g gs s ┆
0x0240…0260 73 08 73 2c 08 2c 08 2c 08 2c 20 70 08 70 08 70 08 70 61 08 61 08 61 08 61 72 08 72 08 72 08 72   ┆s s, , , , p p p pa a a ar r r r┆
0x0260…0280 61 08 61 08 61 08 61 6d 08 6d 08 6d 08 6d 73 08 73 08 73 08 73 29 08 29 08 29 08 29 0a 20 20 20   ┆a a a am m m ms s s s) ) ) )    ┆
0x0280…02a0 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 72 08 72 20 2a   ┆  c c c ch h h ha a a ar r r r *┆
0x02a0…02c0 08 2a 08 2a 08 2a 70 08 70 08 70 08 70 61 08 61 08 61 08 61 74 08 74 08 74 08 74 68 08 68 08 68   ┆ * * *p p p pa a a at t t th h h┆
0x02c0…02e0 08 68 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   ┆ h; ; ; ;      i i i in n n nt t┆
0x02e0…0300 08 74 08 74 20 66 08 66 08 66 08 66 6c 08 6c 08 6c 08 6c 61 08 61 08 61 08 61 67 08 67 08 67 08   ┆ t t f f f fl l l la a a ag g g ┆
0x0300…0320 67 73 08 73 08 73 08 73 3b 08 3b 08 3b 08 3b 0a 20 20 20 20 20 73 08 73 08 73 08 73 74 08 74 08   ┆gs s s s; ; ; ;      s s s st t ┆
0x0320…0340 74 08 74 72 08 72 08 72 08 72 75 08 75 08 75 08 75 63 08 63 08 63 08 63 74 08 74 08 74 08 74 20   ┆t tr r r ru u u uc c c ct t t t ┆
0x0340…0360 63 08 63 08 63 08 63 72 08 72 08 72 08 72 65 08 65 08 65 08 65 61 08 61 08 61 08 61 74 08 74 08   ┆c c c cr r r re e e ea a a at t ┆
0x0360…0380 74 08 74 65 08 65 08 65 08 65 66 08 66 08 66 08 66 69 08 69 08 69 08 69 6c 08 6c 08 6c 08 6c 65   ┆t te e e ef f f fi i i il l l le┆
0x0380…03a0 08 65 08 65 08 65 5f 08 5f 08 5f 08 5f 70 08 70 08 70 08 70 61 08 61 08 61 08 61 72 08 72 08 72   ┆ e e e_ _ _ _p p p pa a a ar r r┆
0x03a0…03c0 08 72 61 08 61 08 61 08 61 6d 08 6d 08 6d 08 6d 73 08 73 08 73 08 73 20 2a 08 2a 08 2a 08 2a 70   ┆ ra a a am m m ms s s s * * * *p┆
0x03c0…03e0 08 70 08 70 08 70 61 08 61 08 61 08 61 72 08 72 08 72 08 72 61 08 61 08 61 08 61 6d 08 6d 08 6d   ┆ p p pa a a ar r r ra a a am m m┆
0x03e0…0400 08 6d 73 08 73 08 73 08 73 3b 08 3b 08 3b 08 3b 0a 0a 44 08 44 08 44 08 44 45 08 45 08 45 08 45   ┆ ms s s s; ; ; ;  D D D DE E E E┆
0x0400…0420 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 50 08 50 08   ┆S S S SC C C CR R R RI I I IP P ┆
0x0420…0440 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 4e 08 4e 0a   ┆P PT T T TI I I IO O O ON N N N ┆
0x0440…0460 20 20 20 20 20 54 68 69 73 20 63 61 6c 6c 20 69 73 20 61 6e 20 65 78 74 65 6e 64 65 64 20 66 6f   ┆     This call is an extended fo┆
0x0460…0480 72 6d 20 6f 66 20 74 68 65 20 5f 08 6f 5f 08 70 5f 08 65 5f 08 6e 28 32 29 20 73 79 73 74 65 6d   ┆rm of the _ o_ p_ e_ n(2) system┆
0x0480…04a0 20 63 61 6c 6c 2e 0a 20 20 20 20 20 5f 08 63 5f 08 72 5f 08 65 5f 08 61 5f 08 74 5f 08 65 5f 08   ┆ call.      _ c_ r_ e_ a_ t_ e_ ┆
0x04a0…04c0 66 5f 08 69 5f 08 6c 5f 08 65 20 69 6e 63 6c 75 64 65 73 20 69 6e 66 6f 72 6d 61 74 69 6f 6e 20   ┆f_ i_ l_ e includes information ┆
0x04c0…04e0 66 6f 72 20 61 20 60 60 66 61 73 74 20 6f 70 65 6e 27 27 20 74 68 61 74 0a 20 20 20 20 20 61 76   ┆for a ``fast open'' that      av┆
0x04e0…0500 6f 69 64 73 20 75 6e 6e 65 63 65 73 73 61 72 79 20 6c 6f 67 20 77 72 69 74 65 73 2c 20 66 6f 72   ┆oids unnecessary log writes, for┆
0x0500…0520 20 65 78 61 6d 70 6c 65 2e 20 20 28 4e 6f 74 65 20 74 68 61 74 20 74 68 65 0a 20 20 20 20 20 70   ┆ example.  (Note that the      p┆
0x0520…0540 08 70 08 70 08 70 61 08 61 08 61 08 61 74 08 74 08 74 08 74 68 08 68 08 68 08 68 20 61 6e 64 20   ┆ p p pa a a at t t th h h h and ┆
0x0540…0560 66 08 66 08 66 08 66 6c 08 6c 08 6c 08 6c 61 08 61 08 61 08 61 67 08 67 08 67 08 67 73 08 73 08   ┆f f f fl l l la a a ag g g gs s ┆
0x0560…0580 73 08 73 20 61 72 67 75 6d 65 6e 74 73 20 61 72 65 20 74 68 65 20 73 61 6d 65 20 61 73 20 74 68   ┆s s arguments are the same as th┆
0x0580…05a0 65 20 63 6f 72 72 65 73 70 6f 6e 64 69 6e 67 0a 20 20 20 20 20 61 72 67 75 6d 65 6e 74 73 20 74   ┆e corresponding      arguments t┆
0x05a0…05c0 6f 20 74 68 65 20 5f 08 6f 5f 08 70 5f 08 65 5f 08 6e 20 73 79 73 74 65 6d 20 63 61 6c 6c 2e 20   ┆o the _ o_ p_ e_ n system call. ┆
0x05c0…05e0 20 54 68 65 20 55 4e 4c 49 4e 4b 20 66 6c 61 67 20 68 61 73 20 62 65 65 6e 0a 20 20 20 20 20 61   ┆ The UNLINK flag has been      a┆
0x05e0…0600 64 64 65 64 20 74 6f 20 74 68 65 20 5f 08 6f 5f 08 70 5f 08 65 5f 08 6e 20 63 61 6c 6c 2e 29 0a   ┆dded to the _ o_ p_ e_ n call.) ┆
0x0600…0620 0a 20 20 20 20 20 54 68 65 20 64 69 66 66 65 72 65 6e 63 65 73 20 62 65 74 77 65 65 6e 20 5f 08   ┆      The differences between _ ┆
0x0620…0640 63 5f 08 72 5f 08 65 5f 08 61 5f 08 74 5f 08 65 5f 08 66 5f 08 69 5f 08 6c 5f 08 65 20 61 6e 64   ┆c_ r_ e_ a_ t_ e_ f_ i_ l_ e and┆
0x0640…0660 20 5f 08 6f 5f 08 70 5f 08 65 5f 08 6e 20 61 72 65 20 6c 69 73 74 65 64 20 68 65 72 65 3a 0a 0a   ┆ _ o_ p_ e_ n are listed here:  ┆
0x0660…0680 20 20 20 20 20 4f 5f 43 52 45 41 54 20 61 6e 64 20 4f 5f 55 4e 4c 49 4e 4b 0a 20 20 20 20 20 20   ┆     O_CREAT and O_UNLINK       ┆
0x0680…06a0 20 20 20 20 61 72 65 20 61 6c 77 61 79 73 20 69 6d 70 6c 69 63 69 74 6c 79 20 73 65 74 2e 20 20   ┆    are always implicitly set.  ┆
0x06a0…06c0 5f 08 63 5f 08 72 5f 08 65 5f 08 61 5f 08 74 5f 08 65 5f 08 66 5f 08 69 5f 08 6c 5f 08 65 20 75   ┆_ c_ r_ e_ a_ t_ e_ f_ i_ l_ e u┆
0x06c0…06e0 6e 6c 69 6e 6b 73 20 74 68 65 20 66 69 6c 65 0a 20 20 20 20 20 20 20 20 20 20 61 74 20 5f 08 70   ┆nlinks the file           at _ p┆
0x06e0…0700 5f 08 61 5f 08 74 5f 08 68 20 61 6e 64 20 63 72 65 61 74 65 73 20 61 6e 64 20 6f 70 65 6e 73 20   ┆_ a_ t_ h and creates and opens ┆
0x0700…0720 61 20 6e 65 77 20 66 69 6c 65 2e 20 20 48 6f 77 65 76 65 72 2c 20 69 66 0a 20 20 20 20 20 20 20   ┆a new file.  However, if        ┆
0x0720…0740 20 20 20 74 68 65 20 65 78 69 73 74 69 6e 67 20 66 69 6c 65 20 69 73 20 6f 70 65 6e 20 77 69 74   ┆   the existing file is open wit┆
0x0740…0760 68 20 4f 5f 45 58 43 4c 20 73 65 74 2c 20 74 68 65 20 75 6e 6c 69 6e 6b 0a 20 20 20 20 20 20 20   ┆h O_EXCL set, the unlink        ┆
0x0760…0780 20 20 20 69 73 20 6e 6f 74 20 64 6f 6e 65 20 61 6e 64 20 45 45 58 49 53 54 20 69 73 20 72 65 74   ┆   is not done and EEXIST is ret┆
0x0780…07a0 75 72 6e 65 64 2e 0a 0a 20 20 20 20 20 5f 08 70 5f 08 61 5f 08 72 5f 08 61 5f 08 6d 5f 08 73 0a   ┆urned.       _ p_ a_ r_ a_ m_ s ┆
0x07a0…07c0 20 20 20 20 20 20 20 20 20 20 54 68 65 20 75 73 65 72 20 69 64 2c 20 67 72 6f 75 70 20 69 64 2c   ┆          The user id, group id,┆
0x07c0…07e0 20 70 72 69 6d 61 72 79 2d 20 61 6e 64 20 73 65 63 6f 6e 64 61 72 79 2d 65 78 74 65 6e 74 0a 20   ┆ primary- and secondary-extent  ┆
0x07e0…0800 20 20 20 20 20 20 20 20 20 73 69 7a 65 73 2c 20 61 6e 64 20 74 68 65 20 66 69 6c 65 27 73 20 70   ┆         sizes, and the file's p┆
0x0800…0820 65 72 6d 69 73 73 69 6f 6e 73 2c 20 61 6e 64 20 61 63 63 65 73 73 2d 6d 6f 64 65 20 62 69 74 73   ┆ermissions, and access-mode bits┆
0x0820…0840 0a 20 20 20 20 20 20 20 20 20 20 63 61 6e 20 62 65 20 73 65 74 20 75 73 69 6e 67 20 74 68 65 20   ┆           can be set using the ┆
0x0840…0860 63 72 65 61 74 65 66 69 6c 65 5f 70 61 72 61 6d 73 20 73 74 72 75 63 74 75 72 65 3a 0a 0a 20 20   ┆createfile_params structure:    ┆
0x0860…0880 20 20 20 20 20 20 20 20 20 20 20 20 20 23 64 65 66 69 6e 65 20 43 52 45 41 54 45 46 49 4c 45 5f   ┆             #define CREATEFILE_┆
0x0880…08a0 56 45 52 53 49 4f 4e 20 20 20 20 31 0a 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 73 74 72 75   ┆VERSION    1                stru┆
0x08a0…08c0 63 74 20 63 72 65 61 74 65 66 69 6c 65 5f 70 61 72 61 6d 73 0a 20 20 20 20 20 20 20 20 20 20 20   ┆ct createfile_params            ┆
0x08c0…08e0 20 20 20 20 7b 0a 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 69 6e 74 20 20 20   ┆    {                     int   ┆
0x08e0…0900 20 20 20 20 63 66 70 5f 76 65 72 73 69 6f 6e 3b 0a 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20   ┆    cfp_version;                ┆
0x0900…0920 20 20 20 20 20 69 6e 74 20 20 20 20 20 20 20 63 66 70 5f 75 73 65 72 3b 0a 20 20 20 20 20 20 20   ┆     int       cfp_user;        ┆
0x0920…0940 20 20 20 20 20 20 20 20 20 20 20 20 20 69 6e 74 20 20 20 20 20 20 20 63 66 70 5f 67 72 6f 75 70   ┆             int       cfp_group┆
0x0940…0960 3b 0a 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 69 6e 74 20 20 20 20 20 20 20   ┆;                     int       ┆
0x0960…0980 63 66 70 5f 70 74 69 65 72 3b 0a 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 69   ┆cfp_ptier;                     i┆
0x0980…09a0 6e 74 20 20 20 20 20 20 20 63 66 70 5f 73 74 69 65 72 3b 0a 20 20 20 20 20 20 20 20 20 20 20 20   ┆nt       cfp_stier;             ┆
0x09a0…09c0 20 20 20 20 20 20 20 20 69 6e 74 20 20 20 20 20 20 20 63 66 70 5f 6d 6f 64 65 3b 0a 20 20 20 20   ┆        int       cfp_mode;     ┆
0x09c0…09e0 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 69 6e 74 20 20 20 20 20 20 20 63 66 70 5f 73 70   ┆                int       cfp_sp┆
0x09e0…0a00 61 72 65 5b 34 5d 3b 0a 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 7d 3b 0a 0a 0a 20 20 20 20   ┆are[4];                };       ┆
0x0a00…0a20 20 50 08 50 08 50 08 50 61 08 61 08 61 08 61 72 08 72 08 72 08 72 61 08 61 08 61 08 61 6d 08 6d   ┆ P P P Pa a a ar r r ra a a am m┆
0x0a20…0a40 08 6d 08 6d 65 08 65 08 65 08 65 74 08 74 08 74 08 74 65 08 65 08 65 08 65 72 08 72 08 72 08 72   ┆ m me e e et t t te e e er r r r┆
0x0a40…0a60 73 08 73 08 73 08 73 0a 20 20 20 20 20 54 68 65 20 63 72 65 61 74 65 66 69 6c 65 5f 70 61 72 61   ┆s s s s      The createfile_para┆
0x0a60…0a80 6d 73 20 73 74 72 75 63 74 75 72 65 20 63 6f 6e 74 61 69 6e 73 20 74 68 65 20 66 6f 6c 6c 6f 77   ┆ms structure contains the follow┆
0x0a80…0aa0 69 6e 67 0a 20 20 20 20 20 66 69 65 6c 64 73 3a 0a 0a 20 20 20 20 20 63 66 70 5f 76 65 72 73 69   ┆ing      fields:       cfp_versi┆
0x0aa0…0ac0 6f 6e 0a 20 20 20 20 20 20 20 20 20 20 54 68 65 20 76 65 72 73 69 6f 6e 20 6f 66 20 74 68 65 20   ┆on           The version of the ┆
0x0ac0…0ae0 70 61 72 61 6d 73 20 73 74 72 75 63 74 75 72 65 20 62 65 69 6e 67 20 75 73 65 64 2c 20 63 68 65   ┆params structure being used, che┆
0x0ae0…0b00 63 6b 65 64 0a 20 20 20 20 20 20 20 20 20 20 61 67 61 69 6e 73 74 20 74 68 65 20 43 52 45 41 54   ┆cked           against the CREAT┆
0x0b00…0b20 45 46 49 4c 45 5f 56 45 52 53 49 4f 4e 20 23 64 65 66 69 6e 65 20 74 68 61 74 20 74 68 65 20 6b   ┆EFILE_VERSION #define that the k┆
0x0b20…0b40 65 72 6e 65 6c 0a 20 20 20 20 20 20 20 20 20 20 77 61 73 20 63 6f 6d 70 69 6c 65 64 20 77 69 74   ┆ernel           was compiled wit┆
0x0b40…0b60 68 2e 0a 0a 20 20 20 20 20 63 66 70 5f 75 73 65 72 0a 20 20 20 20 20 20 20 20 20 20 54 68 65 20   ┆h.       cfp_user           The ┆
0x0b60…0b80 75 73 65 72 20 69 64 20 74 6f 20 62 65 20 75 73 65 64 20 66 6f 72 20 74 68 65 20 6e 65 77 20 66   ┆user id to be used for the new f┆
0x0b80…0ba0 69 6c 65 2e 20 20 53 70 65 63 69 66 79 20 2d 31 20 74 6f 0a 20 20 20 20 20 20 20 20 20 20 75 73   ┆ile.  Specify -1 to           us┆
0x0ba0…0bc0 65 20 74 68 65 20 64 65 66 61 75 6c 74 2c 20 77 68 69 63 68 20 69 73 20 74 68 65 20 70 72 6f 63   ┆e the default, which is the proc┆
0x0bc0…0be0 65 73 73 27 73 20 65 66 66 65 63 74 69 76 65 20 75 73 65 72 0a 20 20 20 20 20 20 20 20 20 20 69   ┆ess's effective user           i┆
0x0be0…0c00 64 2e 20 20 49 66 20 74 68 65 20 70 72 6f 63 65 73 73 20 64 6f 65 73 20 6e 6f 74 20 68 61 76 65   ┆d.  If the process does not have┆
0x0c00…0c20 20 73 75 70 65 72 2d 75 73 65 72 0a 0a 0a 0a 0a 0a 0a 20 20 20 20 20 20 20 20 20 20 70 65 72 6d   ┆ super-user                 perm┆
0x0c20…0c40 69 73 73 69 6f 6e 73 2c 20 74 68 69 73 20 66 69 65 6c 64 20 69 73 20 66 6f 72 63 65 64 20 74 6f   ┆issions, this field is forced to┆
0x0c40…0c60 20 2d 31 2c 20 61 6e 64 20 74 68 65 0a 20 20 20 20 20 20 20 20 20 20 64 65 66 61 75 6c 74 20 6f   ┆ -1, and the           default o┆
0x0c60…0c80 77 6e 65 72 73 68 69 70 20 72 75 6c 65 73 20 61 72 65 20 75 73 65 64 2e 0a 0a 20 20 20 20 20 63   ┆wnership rules are used.       c┆
0x0c80…0ca0 66 70 5f 67 72 6f 75 70 0a 20 20 20 20 20 20 20 20 20 20 54 68 65 20 67 72 6f 75 70 20 69 64 20   ┆fp_group           The group id ┆
0x0ca0…0cc0 74 6f 20 62 65 20 75 73 65 64 20 66 6f 72 20 74 68 65 20 6e 65 77 20 66 69 6c 65 2e 20 20 53 70   ┆to be used for the new file.  Sp┆
0x0cc0…0ce0 65 63 69 66 79 20 2d 31 0a 20 20 20 20 20 20 20 20 20 20 74 6f 20 75 73 65 20 74 68 65 20 64 65   ┆ecify -1           to use the de┆
0x0ce0…0d00 66 61 75 6c 74 2c 20 77 68 69 63 68 20 69 73 20 74 68 65 20 67 72 6f 75 70 20 69 64 20 6f 66 20   ┆fault, which is the group id of ┆
0x0d00…0d20 74 68 65 20 70 61 72 65 6e 74 0a 20 20 20 20 20 20 20 20 20 20 64 69 72 65 63 74 6f 72 79 2e 20   ┆the parent           directory. ┆
0x0d20…0d40 20 49 66 20 74 68 65 20 70 72 6f 63 65 73 73 20 64 6f 65 73 20 6e 6f 74 20 68 61 76 65 20 73 75   ┆ If the process does not have su┆
0x0d40…0d60 70 65 72 2d 75 73 65 72 0a 20 20 20 20 20 20 20 20 20 20 70 65 72 6d 69 73 73 69 6f 6e 73 2c 20   ┆per-user           permissions, ┆
0x0d60…0d80 74 68 69 73 20 66 69 65 6c 64 20 69 73 20 66 6f 72 63 65 64 20 74 6f 20 2d 31 2c 20 61 6e 64 20   ┆this field is forced to -1, and ┆
0x0d80…0da0 74 68 65 0a 20 20 20 20 20 20 20 20 20 20 64 65 66 61 75 6c 74 20 67 72 6f 75 70 20 72 75 6c 65   ┆the           default group rule┆
0x0da0…0dc0 73 20 61 72 65 20 75 73 65 64 2e 0a 0a 20 20 20 20 20 63 66 70 5f 70 74 69 65 72 0a 20 20 20 20   ┆s are used.       cfp_ptier     ┆
0x0dc0…0de0 20 20 20 20 20 20 54 68 65 20 70 72 69 6d 61 72 79 2d 65 78 74 65 6e 74 20 73 69 7a 65 20 5f 08   ┆      The primary-extent size _ ┆
0x0de0…0e00 69 5f 08 6e 20 5f 08 62 5f 08 79 5f 08 74 5f 08 65 5f 08 73 2e 20 20 54 68 69 73 20 6d 75 73 74   ┆i_ n _ b_ y_ t_ e_ s.  This must┆
0x0e00…0e20 20 62 65 20 61 20 70 6f 77 65 72 0a 20 20 20 20 20 20 20 20 20 20 6f 66 20 32 20 62 65 74 77 65   ┆ be a power           of 2 betwe┆
0x0e20…0e40 65 6e 20 32 5e 31 30 20 61 6e 64 20 32 5e 32 33 2e 20 20 53 70 65 63 69 66 79 20 2d 31 20 74 6f   ┆en 2^10 and 2^23.  Specify -1 to┆
0x0e40…0e60 20 75 73 65 20 74 68 65 0a 20 20 20 20 20 20 20 20 20 20 64 65 66 61 75 6c 74 20 70 72 69 6d 61   ┆ use the           default prima┆
0x0e60…0e80 72 79 2d 65 78 74 65 6e 74 20 73 69 7a 65 20 66 6f 72 20 74 68 65 20 66 69 6c 65 2d 73 79 73 74   ┆ry-extent size for the file-syst┆
0x0e80…0ea0 65 6d 20 77 68 65 72 65 0a 20 20 20 20 20 20 20 20 20 20 74 68 65 20 66 69 6c 65 20 69 73 20 63   ┆em where           the file is c┆
0x0ea0…0ec0 72 65 61 74 65 64 2e 20 20 49 66 20 74 68 65 20 66 69 6c 65 20 69 73 20 6e 6f 74 20 61 20 72 65   ┆reated.  If the file is not a re┆
0x0ec0…0ee0 67 75 6c 61 72 0a 20 20 20 20 20 20 20 20 20 20 66 69 6c 65 2c 20 74 68 65 20 65 78 74 65 6e 74   ┆gular           file, the extent┆
0x0ee0…0f00 20 73 69 7a 65 73 20 61 72 65 20 73 65 74 20 74 6f 20 7a 65 72 6f 2e 0a 0a 20 20 20 20 20 63 66   ┆ sizes are set to zero.       cf┆
0x0f00…0f20 70 5f 73 74 69 65 72 0a 20 20 20 20 20 20 20 20 20 20 74 68 65 20 73 65 63 6f 6e 64 61 72 79 2d   ┆p_stier           the secondary-┆
0x0f20…0f40 65 78 74 65 6e 74 20 73 69 7a 65 20 5f 08 69 5f 08 6e 20 5f 08 62 5f 08 79 5f 08 74 5f 08 65 5f   ┆extent size _ i_ n _ b_ y_ t_ e_┆
0x0f40…0f60 08 73 2e 20 20 54 68 69 73 20 6d 75 73 74 20 62 65 20 61 0a 20 20 20 20 20 20 20 20 20 20 70 6f   ┆ s.  This must be a           po┆
0x0f60…0f80 77 65 72 20 6f 66 20 32 20 62 65 74 77 65 65 6e 20 32 5e 31 30 20 61 6e 64 20 32 5e 32 33 2e 20   ┆wer of 2 between 2^10 and 2^23. ┆
0x0f80…0fa0 20 53 70 65 63 69 66 79 20 2d 31 20 74 6f 20 75 73 65 0a 20 20 20 20 20 20 20 20 20 20 74 68 65   ┆ Specify -1 to use           the┆
0x0fa0…0fc0 20 64 65 66 61 75 6c 74 20 73 65 63 6f 6e 64 61 72 79 20 65 78 74 65 6e 74 20 73 69 7a 65 20 66   ┆ default secondary extent size f┆
0x0fc0…0fe0 6f 72 20 74 68 65 20 66 69 6c 65 2d 73 79 73 74 65 6d 0a 20 20 20 20 20 20 20 20 20 20 77 68 65   ┆or the file-system           whe┆
0x0fe0…1000 72 65 20 74 68 65 20 66 69 6c 65 20 69 73 20 63 72 65 61 74 65 64 2e 20 20 49 66 20 74 68 65 20   ┆re the file is created.  If the ┆
0x1000…1020 66 69 6c 65 20 69 73 20 6e 6f 74 20 61 20 72 65 67 75 2d 0a 20 20 20 20 20 20 20 20 20 20 6c 61   ┆file is not a regu-           la┆
0x1020…1040 72 20 66 69 6c 65 2c 20 74 68 65 20 65 78 74 65 6e 74 20 73 69 7a 65 73 20 61 72 65 20 73 65 74   ┆r file, the extent sizes are set┆
0x1040…1060 20 74 6f 20 7a 65 72 6f 2e 0a 0a 20 20 20 20 20 63 66 70 5f 6d 6f 64 65 0a 20 20 20 20 20 20 20   ┆ to zero.       cfp_mode        ┆
0x1060…1080 20 20 20 54 68 65 20 66 69 6c 65 27 73 20 70 65 72 6d 69 73 73 69 6f 6e 73 20 61 6e 64 20 61 63   ┆   The file's permissions and ac┆
0x1080…10a0 63 65 73 73 20 6d 6f 64 65 73 20 28 61 73 20 64 65 73 63 72 69 62 65 64 0a 20 20 20 20 20 20 20   ┆cess modes (as described        ┆
0x10a0…10c0 20 20 20 66 6f 72 20 5f 08 6f 5f 08 70 5f 08 65 5f 08 6e 29 2e 20 20 54 68 65 20 70 72 6f 63 65   ┆   for _ o_ p_ e_ n).  The proce┆
0x10c0…10e0 73 73 27 73 20 75 6d 61 73 6b 20 76 61 6c 75 65 20 69 73 20 69 67 6e 6f 72 65 64 20 77 68 65 6e   ┆ss's umask value is ignored when┆
0x10e0…1100 0a 20 20 20 20 20 20 20 20 20 20 73 65 74 74 69 6e 67 20 74 68 65 20 66 69 6c 65 27 73 20 70 65   ┆           setting the file's pe┆
0x1100…1120 72 6d 69 73 73 69 6f 6e 73 2e 20 20 54 68 69 73 20 70 61 72 61 6d 65 74 65 72 20 68 61 73 20 6e   ┆rmissions.  This parameter has n┆
0x1120…1140 6f 0a 20 20 20 20 20 20 20 20 20 20 64 65 66 61 75 6c 74 20 76 61 6c 75 65 2e 0a 0a 20 20 20 20   ┆o           default value.      ┆
0x1140…1160 20 63 66 70 5f 73 70 61 72 65 0a 20 20 20 20 20 20 20 20 20 20 52 65 73 65 72 76 65 64 2e 0a 0a   ┆ cfp_spare           Reserved.  ┆
0x1160…1180 45 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   ┆E E E ER R R RR R R RO O O OR R ┆
0x1180…11a0 52 08 52 53 08 53 08 53 08 53 0a 20 20 20 20 20 54 68 65 20 6e 61 6d 65 64 20 66 69 6c 65 20 77   ┆R RS S S S      The named file w┆
0x11a0…11c0 61 73 20 75 6e 6c 69 6e 6b 65 64 2c 20 63 72 65 61 74 65 64 2c 20 61 6e 64 20 6f 70 65 6e 65 64   ┆as unlinked, created, and opened┆
0x11c0…11e0 20 75 6e 6c 65 73 73 20 6f 6e 65 0a 20 20 20 20 20 6f 66 20 74 68 65 20 65 72 72 6f 72 73 20 64   ┆ unless one      of the errors d┆
0x11e0…1200 65 73 63 72 69 62 65 64 20 66 6f 72 20 6f 70 65 6e 28 29 20 74 6f 6f 6b 20 70 6c 61 63 65 20 6f   ┆escribed for open() took place o┆
0x1200…1220 72 20 6f 6e 65 20 6f 66 20 74 68 65 0a 20 20 20 20 20 66 6f 6c 6c 6f 77 69 6e 67 20 61 72 65 20   ┆r one of the      following are ┆
0x1220…1240 74 72 75 65 3a 0a 0a 20 20 20 20 20 5b 45 45 58 49 53 54 5d 20 20 20 20 20 20 20 54 68 65 20 66   ┆true:       [EEXIST]       The f┆
0x1240…1260 69 6c 65 20 61 74 20 5f 08 70 5f 08 61 5f 08 74 5f 08 68 20 63 6f 75 6c 64 20 6e 6f 74 20 62 65   ┆ile at _ p_ a_ t_ h could not be┆
0x1260…1280 20 75 6e 6c 69 6e 6b 65 64 2c 0a 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 63   ┆ unlinked,                     c┆
0x1280…12a0 72 65 61 74 65 64 2c 20 61 6e 64 20 6f 70 65 6e 65 64 20 62 65 63 61 75 73 65 20 69 74 20 69 73   ┆reated, and opened because it is┆
0x12a0…12c0 20 61 6c 72 65 61 64 79 0a 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 6f 70 65   ┆ already                     ope┆
0x12c0…12e0 6e 20 77 69 74 68 20 74 68 65 20 4f 5f 45 58 43 4c 20 66 6c 61 67 20 73 65 74 2e 0a 0a 20 20 20   ┆n with the O_EXCL flag set.     ┆
0x12e0…1300 20 20 5b 45 46 41 55 4c 54 5d 20 20 20 20 20 20 20 5f 08 70 5f 08 61 5f 08 74 5f 08 68 20 6f 72   ┆  [EFAULT]       _ p_ a_ t_ h or┆
0x1300…1320 20 5f 08 70 5f 08 61 5f 08 72 5f 08 61 5f 08 6d 5f 08 73 20 70 6f 69 6e 74 73 20 6f 75 74 73 69   ┆ _ p_ a_ r_ a_ m_ s points outsi┆
0x1320…1340 64 65 20 74 68 65 20 70 72 6f 63 65 73 73 27 73 0a 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20   ┆de the process's                ┆
0x1340…1360 20 20 20 20 20 61 6c 6c 6f 63 61 74 65 64 20 61 64 64 72 65 73 73 20 73 70 61 63 65 2e 0a 0a 20   ┆     allocated address space.   ┆
0x1360…1380 20 20 20 20 5b 45 49 4e 56 41 4c 5d 20 20 20 20 20 20 20 4f 6e 65 20 6f 66 20 74 68 65 20 66 6f   ┆    [EINVAL]       One of the fo┆
0x1380…13a0 6c 6c 6f 77 69 6e 67 20 63 6f 6e 64 69 74 69 6f 6e 73 20 6f 63 63 75 72 72 65 64 2e 20 20 31 29   ┆llowing conditions occurred.  1)┆
0x13a0…13c0 0a 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 54 68 65 20 65 78 74 65 6e 74 20   ┆                     The extent ┆
0x13c0…13e0 73 69 7a 65 73 20 73 70 65 63 69 66 69 65 64 20 77 65 72 65 20 6e 6f 74 20 65 69 74 68 65 72 20   ┆sizes specified were not either ┆
0x13e0…1400 2d 31 0a 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 6f 72 20 70 6f 77 65 72 73   ┆-1                     or powers┆
0x1400…1420 20 6f 66 20 32 20 62 65 74 77 65 65 6e 20 32 5e 31 30 20 61 6e 64 20 32 5e 32 33 2e 20 20 32 29   ┆ of 2 between 2^10 and 2^23.  2)┆
0x1420…1440 0a 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 42 69 74 73 20 6f 74 68 65 72 20   ┆                     Bits other ┆
0x1440…1460 74 68 61 6e 20 49 53 45 43 55 52 45 20 61 6e 64 20 49 48 49 53 54 4f 52 59 20 77 65 72 65 20 73   ┆than ISECURE and IHISTORY were s┆
0x1460…1480 65 74 0a 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 69 6e 20 70 61 72 61 6d 73   ┆et                     in params┆
0x1480…14a0 2e 6d 6f 64 65 2e 20 20 33 29 20 41 20 76 65 72 73 69 6f 6e 20 6c 65 76 65 6c 20 77 61 73 0a 20   ┆.mode.  3) A version level was  ┆
0x14a0…14c0 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 73 70 65 63 69 66 69 65 64 20 74 68 61   ┆                   specified tha┆
0x14c0…14e0 74 20 69 73 20 69 6e 63 6f 6d 70 61 74 69 62 6c 65 20 77 69 74 68 20 74 68 65 0a 20 20 20 20 20   ┆t is incompatible with the      ┆
0x14e0…1500 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 63 75 72 72 65 6e 74 20 6b 65 72 6e 65 6c 2e 0a 0a   ┆               current kernel.  ┆
0x1500…1520 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 08 4c   ┆S S S SE E E EE E E E A A A AL L┆
0x1520…1540 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 20 43   ┆ L LS S S SO O O O      System C┆
0x1540…1560 61 6c 6c 73 20 28 32 29 3a 20 20 61 74 74 61 63 68 2c 20 63 68 66 6c 61 67 73 2c 20 63 68 6d 6f   ┆alls (2):  attach, chflags, chmo┆
0x1560…1580 64 2c 20 63 6c 6f 73 65 2c 20 64 65 74 61 63 68 2c 0a 20 20 20 20 20 64 75 70 2c 20 69 6f 63 74   ┆d, close, detach,      dup, ioct┆
0x1580…15a0 6c 2c 20 6c 73 65 65 6b 2c 20 6f 70 65 6e 2c 20 72 65 61 64 2c 20 72 65 61 64 72 61 6e 64 6f 6d   ┆l, lseek, open, read, readrandom┆
0x15a0…15c0 2c 20 75 6d 61 73 6b 2c 20 77 72 69 74 65 2c 0a 20 20 20 20 20 77 72 69 74 65 72 61 6e 64 6f 6d   ┆, umask, write,      writerandom┆
0x15c0…15e0 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 33 29 3a 20 20 63 72   ┆      Library Functions (3):  cr┆
0x15e0…1600 65 61 74 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 3a 20   ┆eat      System Facilities (4): ┆
0x1600…1620 20 6d 78 69 70 63 2c 20 74 78 69 70 63 0a 0a 0a 0a 0a 0a 0a 0a 41 70 72 69 6c 20 31 39 39 30 20   ┆ mxipc, txipc        April 1990 ┆
0x1620…1640 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 54 58 20   ┆                             TX ┆
0x1640…1660 50 72 6f 67 72 61 6d 6d 65 72 27 73 20 52 65 66 65 72 65 6e 63 65 0a 0a 0a 0a 0a 0a 0a 0a 0a 0a   ┆Programmer's Reference          ┆
0x1660…1680 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 0a 0a 0a 0a   ┆                                ┆
0x1680…1692 0a 0a 0a 0a 0a 0a 0a 0a 0a 0a 0a 0a 0a 0a 0a 0a 0a 0a                                             ┆                  ┆