|
|
DataMuseum.dkPresents historical artifacts from the history of: RC9000 |
This is an automatic "excavation" of a thematic subset of
See our Wiki for more about RC9000 Excavated with: AutoArchaeologist - Free & Open Source Software. |
top - downloadIndex: f
Length: 4666 (0x123a)
Names: »fork.2«
└─⟦50656ff4a⟧ Bits:30010538 TX 3.1 Coldstart
└─⟦bbf173f5c⟧ »0004«
└─⟦this⟧ »./usr/man/cat2/fork.2«
0x0000…0020 0a 0a 0a 5f 08 4f 5f 08 6e 5f 08 6c 5f 08 69 5f 08 6e 5f 08 65 20 5f 08 4d 5f 08 61 5f 08 6e 5f ┆ _ O_ n_ l_ i_ n_ e _ M_ a_ n_┆
0x0020…0040 08 75 5f 08 61 5f 08 6c 20 20 20 20 20 20 20 20 20 20 20 20 20 53 79 73 74 65 6d 20 43 61 6c 6c ┆ u_ a_ l System Call┆
0x0040…0060 73 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 66 6f 72 6b 28 32 29 0a 0a 0a 0a ┆s fork(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 6f 72 6b 20 2d 20 63 72 65 61 74 65 20 61 20 6e 65 77 20 70 72 6f 63 65 73 73 0a 0a 53 ┆ fork - create a new process S┆
0x00a0…00c0 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 41 08 41 08 41 ┆ S S SY Y Y YN N N NT T T TA A A┆
0x00c0…00e0 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 08 69 6e 08 6e ┆ AX X X X # # # #i i i in n┆
0x00e0…0100 08 6e 08 6e 63 08 63 08 63 08 63 6c 08 6c 08 6c 08 6c 75 08 75 08 75 08 75 64 08 64 08 64 08 64 ┆ n nc c c cl l l lu u u ud d d d┆
0x0100…0120 65 08 65 08 65 08 65 20 3c 08 3c 08 3c 08 3c 73 08 73 08 73 08 73 79 08 79 08 79 08 79 73 08 73 ┆e e e e < < < <s s s sy y y ys s┆
0x0120…0140 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 70 08 70 08 70 ┆ s s/ / / /t t t ty y y yp p p p┆
0x0140…0160 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 68 3e 08 3e 08 ┆e e e es s s s. . . .h h h h> > ┆
0x0160…0180 3e 08 3e 0a 0a 20 20 20 20 20 70 08 70 08 70 08 70 69 08 69 08 69 08 69 64 08 64 08 64 08 64 5f ┆> > p p p pi i i id d d d_┆
0x0180…01a0 08 5f 08 5f 08 5f 74 08 74 08 74 08 74 20 66 08 66 08 66 08 66 6f 08 6f 08 6f 08 6f 72 08 72 08 ┆ _ _ _t t t t f f f fo o o or r ┆
0x01a0…01c0 72 08 72 6b 08 6b 08 6b 08 6b 20 28 08 28 08 28 08 28 29 08 29 08 29 08 29 0a 0a 44 08 44 08 44 ┆r rk k k k ( ( ( () ) ) ) D D D┆
0x01c0…01e0 08 44 45 08 45 08 45 08 45 53 08 53 08 53 08 53 43 08 43 08 43 08 43 52 08 52 08 52 08 52 49 08 ┆ DE E E ES S S SC C C CR R R RI ┆
0x01e0…0200 49 08 49 08 49 50 08 50 08 50 08 50 54 08 54 08 54 08 54 49 08 49 08 49 08 49 4f 08 4f 08 4f 08 ┆I I IP P P PT T T TI I I IO O O ┆
0x0200…0220 4f 4e 08 4e 08 4e 08 4e 0a 20 20 20 20 20 5f 08 66 5f 08 6f 5f 08 72 5f 08 6b 20 63 61 75 73 65 ┆ON N N N _ f_ o_ r_ k cause┆
0x0220…0240 73 20 63 72 65 61 74 69 6f 6e 20 6f 66 20 61 20 6e 65 77 20 70 72 6f 63 65 73 73 2e 20 20 54 68 ┆s creation of a new process. Th┆
0x0240…0260 65 20 6e 65 77 20 70 72 6f 63 65 73 73 0a 20 20 20 20 20 28 63 68 69 6c 64 20 70 72 6f 63 65 73 ┆e new process (child proces┆
0x0260…0280 73 29 20 69 73 20 61 6e 20 65 78 61 63 74 20 63 6f 70 79 20 6f 66 20 74 68 65 20 63 61 6c 6c 69 ┆s) is an exact copy of the calli┆
0x0280…02a0 6e 67 20 70 72 6f 63 65 73 73 0a 20 20 20 20 20 28 70 61 72 65 6e 74 20 70 72 6f 63 65 73 73 29 ┆ng process (parent process)┆
0x02a0…02c0 2e 20 20 54 68 65 20 63 68 69 6c 64 20 70 72 6f 63 65 73 73 20 69 6e 68 65 72 69 74 73 20 74 68 ┆. The child process inherits th┆
0x02c0…02e0 65 20 66 6f 6c 6c 6f 77 69 6e 67 0a 20 20 20 20 20 61 74 74 72 69 62 75 74 65 73 20 66 72 6f 6d ┆e following attributes from┆
0x02e0…0300 20 74 68 65 20 70 61 72 65 6e 74 20 70 72 6f 63 65 73 73 3a 0a 0a 20 20 20 20 20 20 20 20 20 20 ┆ the parent process: ┆
0x0300…0320 65 6e 76 69 72 6f 6e 6d 65 6e 74 20 28 72 65 61 6c 20 61 6e 64 20 65 66 66 65 63 74 69 76 65 20 ┆environment (real and effective ┆
0x0320…0340 75 73 65 72 20 49 44 73 2c 20 72 65 61 6c 20 61 6e 64 0a 20 20 20 20 20 20 20 20 20 20 65 66 66 ┆user IDs, real and eff┆
0x0340…0360 65 63 74 69 76 65 20 67 72 6f 75 70 20 49 44 73 29 0a 20 20 20 20 20 20 20 20 20 20 63 6c 6f 73 ┆ective group IDs) clos┆
0x0360…0380 65 2d 6f 6e 2d 65 78 65 63 20 66 6c 61 67 20 28 73 65 65 20 5f 08 65 5f 08 78 5f 08 65 5f 08 63 ┆e-on-exec flag (see _ e_ x_ e_ c┆
0x0380…03a0 20 63 61 6c 6c 29 0a 20 20 20 20 20 20 20 20 20 20 73 69 67 6e 61 6c 20 68 61 6e 64 6c 69 6e 67 ┆ call) signal handling┆
0x03a0…03c0 20 73 65 74 74 69 6e 67 73 20 28 74 68 61 74 20 69 73 2c 20 53 49 47 5f 44 46 4c 2c 20 53 49 47 ┆ settings (that is, SIG_DFL, SIG┆
0x03c0…03e0 5f 49 47 4e 0a 20 20 20 20 20 20 20 20 20 20 53 49 47 5f 48 4f 4c 44 20 66 75 6e 63 74 69 6f 6e ┆_IGN SIG_HOLD function┆
0x03e0…0400 20 61 64 64 72 65 73 73 29 0a 20 20 20 20 20 20 20 20 20 20 73 65 74 2d 75 73 65 72 2d 49 44 20 ┆ address) set-user-ID ┆
0x0400…0420 6d 6f 64 65 20 62 69 74 0a 20 20 20 20 20 20 20 20 20 20 73 65 74 2d 67 72 6f 75 70 2d 49 44 20 ┆mode bit set-group-ID ┆
0x0420…0440 6d 6f 64 65 20 62 69 74 0a 20 20 20 20 20 20 20 20 20 20 70 72 6f 63 65 73 73 20 67 72 6f 75 70 ┆mode bit process group┆
0x0440…0460 20 49 44 0a 20 20 20 20 20 20 20 20 20 20 63 75 72 72 65 6e 74 20 77 6f 72 6b 69 6e 67 20 64 69 ┆ ID current working di┆
0x0460…0480 72 65 63 74 6f 72 79 0a 20 20 20 20 20 20 20 20 20 20 72 6f 6f 74 20 64 69 72 65 63 74 6f 72 79 ┆rectory root directory┆
0x0480…04a0 0a 20 20 20 20 20 20 20 20 20 20 66 69 6c 65 20 6d 6f 64 65 20 63 72 65 61 74 69 6f 6e 20 6d 61 ┆ file mode creation ma┆
0x04a0…04c0 73 6b 20 28 73 65 65 20 5f 08 75 5f 08 6d 5f 08 61 5f 08 73 5f 08 6b 28 32 29 29 0a 20 20 20 20 ┆sk (see _ u_ m_ a_ s_ k(2)) ┆
0x04c0…04e0 20 20 20 20 20 20 66 69 6c 65 20 73 69 7a 65 20 6c 69 6d 69 74 20 28 73 65 65 20 5f 08 75 5f 08 ┆ file size limit (see _ u_ ┆
0x04e0…0500 6c 5f 08 69 5f 08 6d 5f 08 69 5f 08 74 28 32 29 29 0a 0a 20 20 20 20 20 54 68 65 20 63 68 69 6c ┆l_ i_ m_ i_ t(2)) The chil┆
0x0500…0520 64 20 70 72 6f 63 65 73 73 20 64 69 66 66 65 72 73 20 66 72 6f 6d 20 74 68 65 20 70 61 72 65 6e ┆d process differs from the paren┆
0x0520…0540 74 20 70 72 6f 63 65 73 73 20 69 6e 20 74 68 65 0a 20 20 20 20 20 66 6f 6c 6c 6f 77 69 6e 67 20 ┆t process in the following ┆
0x0540…0560 77 61 79 73 3a 0a 0a 20 20 20 20 20 20 20 20 20 20 54 68 65 20 63 68 69 6c 64 20 70 72 6f 63 65 ┆ways: The child proce┆
0x0560…0580 73 73 20 68 61 73 20 61 20 75 6e 69 71 75 65 20 70 72 6f 63 65 73 73 20 49 44 2e 0a 0a 20 20 20 ┆ss has a unique process ID. ┆
0x0580…05a0 20 20 20 20 20 20 20 54 68 65 20 63 68 69 6c 64 20 70 72 6f 63 65 73 73 20 49 44 20 61 6c 73 6f ┆ The child process ID also┆
0x05a0…05c0 20 64 6f 65 73 20 6e 6f 74 20 6d 61 74 63 68 20 61 6e 79 20 61 63 74 69 76 65 0a 20 20 20 20 20 ┆ does not match any active ┆
0x05c0…05e0 20 20 20 20 20 70 72 6f 63 65 73 73 20 67 72 6f 75 70 20 49 44 2e 0a 0a 20 20 20 20 20 20 20 20 ┆ process group ID. ┆
0x05e0…0600 20 20 54 68 65 20 63 68 69 6c 64 20 70 72 6f 63 65 73 73 20 68 61 73 20 61 20 64 69 66 66 65 72 ┆ The child process has a differ┆
0x0600…0620 65 6e 74 20 70 61 72 65 6e 74 20 70 72 6f 63 65 73 73 20 49 44 0a 20 20 20 20 20 20 20 20 20 20 ┆ent parent process ID ┆
0x0620…0640 28 74 68 61 74 20 69 73 2c 20 74 68 65 20 70 72 6f 63 65 73 73 20 49 44 20 6f 66 20 74 68 65 20 ┆(that is, the process ID of the ┆
0x0640…0660 70 61 72 65 6e 74 20 70 72 6f 63 65 73 73 29 2e 0a 0a 20 20 20 20 20 20 20 20 20 20 54 68 65 20 ┆parent process). The ┆
0x0660…0680 63 68 69 6c 64 20 70 72 6f 63 65 73 73 20 68 61 73 20 69 74 73 20 6f 77 6e 20 63 6f 70 79 20 6f ┆child process has its own copy o┆
0x0680…06a0 66 20 74 68 65 20 70 61 72 65 6e 74 27 73 20 66 69 6c 65 0a 20 20 20 20 20 20 20 20 20 20 64 65 ┆f the parent's file de┆
0x06a0…06c0 73 63 72 69 70 74 6f 72 73 2e 20 20 45 61 63 68 20 6f 66 20 74 68 65 20 63 68 69 6c 64 27 73 20 ┆scriptors. Each of the child's ┆
0x06c0…06e0 66 69 6c 65 20 64 65 73 63 72 69 70 74 6f 72 73 0a 20 20 20 20 20 20 20 20 20 20 73 68 61 72 65 ┆file descriptors share┆
0x06e0…0700 73 20 61 20 63 6f 6d 6d 6f 6e 20 66 69 6c 65 20 70 6f 69 6e 74 65 72 20 77 69 74 68 20 74 68 65 ┆s a common file pointer with the┆
0x0700…0720 20 63 6f 72 72 65 73 70 6f 6e 64 69 6e 67 0a 20 20 20 20 20 20 20 20 20 20 66 69 6c 65 20 64 65 ┆ corresponding file de┆
0x0720…0740 73 63 72 69 70 74 6f 72 20 6f 66 20 74 68 65 20 70 61 72 65 6e 74 2e 0a 0a 20 20 20 20 20 20 20 ┆scriptor of the parent. ┆
0x0740…0760 20 20 20 54 68 65 20 63 68 69 6c 64 20 70 72 6f 63 65 73 73 20 68 61 73 20 69 74 73 20 6f 77 6e ┆ The child process has its own┆
0x0760…0780 20 63 6f 70 79 20 6f 66 20 74 68 65 20 70 61 72 65 6e 74 27 73 20 6f 70 65 6e 0a 20 20 20 20 20 ┆ copy of the parent's open ┆
0x0780…07a0 20 20 20 20 20 64 69 72 65 63 74 6f 72 79 20 73 74 72 65 61 6d 73 2e 0a 0a 20 20 20 20 20 20 20 ┆ directory streams. ┆
0x07a0…07c0 20 20 20 54 68 65 20 63 68 69 6c 64 20 68 61 73 20 69 74 73 20 6f 77 6e 20 63 6f 70 79 20 6f 66 ┆ The child has its own copy of┆
0x07c0…07e0 20 74 68 65 20 70 61 72 65 6e 74 27 73 20 6d 65 73 73 61 67 65 0a 20 20 20 20 20 20 20 20 20 20 ┆ the parent's message ┆
0x07e0…0800 63 61 74 61 6c 6f 67 75 65 20 64 65 73 63 72 69 70 74 6f 72 73 2e 0a 0a 20 20 20 20 20 20 20 20 ┆catalogue descriptors. ┆
0x0800…0820 20 20 41 6c 6c 20 73 65 6d 61 64 6a 20 76 61 6c 75 65 73 20 61 72 65 20 63 6c 65 61 72 65 64 20 ┆ All semadj values are cleared ┆
0x0820…0840 28 73 65 65 20 5f 08 73 5f 08 65 5f 08 6d 5f 08 6f 5f 08 70 28 32 29 29 2e 0a 0a 20 20 20 20 20 ┆(see _ s_ e_ m_ o_ p(2)). ┆
0x0840…0860 20 20 20 20 20 54 68 65 20 63 68 69 6c 64 20 70 72 6f 63 65 73 73 27 73 20 5f 08 74 5f 08 6d 5f ┆ The child process's _ t_ m_┆
0x0860…0880 08 73 5f 5f 08 75 5f 08 74 5f 08 69 5f 08 6d 5f 08 65 2c 20 5f 08 74 5f 08 6d 5f 08 73 5f 5f 08 ┆ s__ u_ t_ i_ m_ e, _ t_ m_ s__ ┆
0x0880…08a0 73 5f 08 74 5f 08 69 5f 08 6d 5f 08 65 2c 20 5f 08 74 5f 08 6d 5f 08 73 5f 5f 08 63 5f 08 75 5f ┆s_ t_ i_ m_ e, _ t_ m_ s__ c_ u_┆
0x08a0…08c0 08 74 5f 08 69 5f 08 6d 5f 08 65 2c 0a 20 20 20 20 20 20 20 20 20 20 61 6e 64 20 5f 08 74 5f 08 ┆ t_ i_ m_ e, and _ t_ ┆
0x08c0…08e0 6d 5f 08 73 5f 5f 08 63 5f 08 73 5f 08 74 5f 08 69 5f 08 6d 5f 08 65 20 61 72 65 20 73 65 74 20 ┆m_ s__ c_ s_ t_ i_ m_ e are set ┆
0x08e0…0900 74 6f 20 30 2e 0a 0a 20 20 20 20 20 20 20 20 20 20 54 68 65 20 74 69 6d 65 20 6c 65 66 74 20 75 ┆to 0. The time left u┆
0x0900…0920 6e 74 69 6c 20 61 6e 20 61 6c 61 72 6d 20 63 6c 6f 63 6b 20 73 69 67 6e 61 6c 20 69 73 20 72 65 ┆ntil an alarm clock signal is re┆
0x0920…0940 73 65 74 20 74 6f 0a 20 20 20 20 20 20 20 20 20 20 30 2e 0a 0a 20 20 20 20 20 20 20 20 20 20 54 ┆set to 0. T┆
0x0940…0960 68 65 20 73 65 74 20 6f 66 20 73 69 67 6e 61 6c 73 20 70 65 6e 64 69 6e 67 20 66 6f 72 20 74 68 ┆he set of signals pending for th┆
0x0960…0980 65 20 63 68 69 6c 64 20 70 72 6f 63 65 73 73 20 69 73 0a 20 20 20 20 20 20 20 20 20 20 69 6e 69 ┆e child process is ini┆
0x0980…09a0 74 69 61 6c 69 7a 65 64 20 74 6f 20 74 68 65 20 65 6d 70 74 79 20 73 65 74 2e 0a 0a 0a 0a 0a 0a ┆tialized to the empty set. ┆
0x09a0…09c0 0a 20 20 20 20 20 4c 08 4c 08 4c 08 4c 6f 08 6f 08 6f 08 6f 63 08 63 08 63 08 63 6b 08 6b 08 6b ┆ L L L Lo o o oc c c ck k k┆
0x09c0…09e0 08 6b 73 08 73 08 73 08 73 0a 20 20 20 20 20 52 65 63 6f 72 64 20 6c 6f 63 6b 73 20 73 65 74 20 ┆ ks s s s Record locks set ┆
0x09e0…0a00 62 79 20 74 68 65 20 70 61 72 65 6e 74 20 70 72 6f 63 65 73 73 20 61 72 65 20 6e 6f 74 20 69 6e ┆by the parent process are not in┆
0x0a00…0a20 68 65 72 69 74 65 64 20 62 79 0a 20 20 20 20 20 74 68 65 20 63 68 69 6c 64 20 70 72 6f 63 65 73 ┆herited by the child proces┆
0x0a20…0a40 73 20 28 73 65 65 20 5f 08 66 5f 08 63 5f 08 6e 5f 08 74 5f 08 6c 2c 20 5f 08 6c 5f 08 6f 5f 08 ┆s (see _ f_ c_ n_ t_ l, _ l_ o_ ┆
0x0a40…0a60 63 5f 08 6b 5f 08 66 20 63 61 6c 6c 73 29 2e 0a 0a 20 20 20 20 20 54 68 65 20 63 68 69 6c 64 20 ┆c_ k_ f calls). The child ┆
0x0a60…0a80 70 72 6f 63 65 73 73 20 72 65 63 65 69 76 65 73 20 6e 65 77 20 66 69 6c 65 2d 6c 65 76 65 6c 20 ┆process receives new file-level ┆
0x0a80…0aa0 6c 6f 63 6b 73 20 28 73 65 65 20 5f 08 66 5f 08 6c 5f 08 6f 5f 08 63 5f 08 6b 2c 0a 20 20 20 20 ┆locks (see _ f_ l_ o_ c_ k, ┆
0x0aa0…0ac0 20 5f 08 6f 5f 08 70 5f 08 65 5f 08 6e 20 63 61 6c 6c 73 29 20 74 68 61 74 20 61 72 65 20 64 69 ┆ _ o_ p_ e_ n calls) that are di┆
0x0ac0…0ae0 66 66 65 72 65 6e 74 20 66 72 6f 6d 20 74 68 65 20 70 61 72 65 6e 74 27 73 2e 20 20 54 6f 0a 20 ┆fferent from the parent's. To ┆
0x0ae0…0b00 20 20 20 20 70 72 65 76 65 6e 74 20 64 65 61 64 6c 6f 63 6b 73 20 62 65 74 77 65 65 6e 20 70 61 ┆ prevent deadlocks between pa┆
0x0b00…0b20 72 65 6e 74 20 61 6e 64 20 63 68 69 6c 64 2c 20 5f 08 66 5f 08 6f 5f 08 72 5f 08 6b 20 64 6f 77 ┆rent and child, _ f_ o_ r_ k dow┆
0x0b20…0b40 6e 67 72 61 64 65 73 0a 20 20 20 20 20 63 65 72 74 61 69 6e 20 66 69 6c 65 2d 61 63 63 65 73 73 ┆ngrades certain file-access┆
0x0b40…0b60 20 6d 6f 64 65 73 20 66 6f 72 20 74 68 65 20 63 68 69 6c 64 2e 0a 0a 20 20 20 20 20 41 20 64 65 ┆ modes for the child. A de┆
0x0b60…0b80 73 63 72 69 70 74 6f 72 20 74 68 61 74 20 69 73 20 6f 70 65 6e 20 66 6f 72 20 72 65 61 64 2d 77 ┆scriptor that is open for read-w┆
0x0b80…0ba0 72 69 74 65 20 61 63 63 65 73 73 20 61 6e 64 20 68 61 73 20 61 0a 20 20 20 20 20 73 68 61 72 65 ┆rite access and has a share┆
0x0ba0…0bc0 64 20 66 69 6c 65 2d 6c 65 76 65 6c 20 6c 6f 63 6b 20 28 6d 6f 64 65 20 53 49 58 29 20 69 6e 20 ┆d file-level lock (mode SIX) in ┆
0x0bc0…0be0 74 68 65 20 70 61 72 65 6e 74 20 69 73 20 64 6f 77 6e 2d 0a 20 20 20 20 20 67 72 61 64 65 64 20 ┆the parent is down- graded ┆
0x0be0…0c00 69 6e 20 74 68 65 20 63 68 69 6c 64 20 74 6f 20 61 20 72 65 61 64 2d 6f 6e 6c 79 20 64 65 73 63 ┆in the child to a read-only desc┆
0x0c00…0c20 72 69 70 74 6f 72 2c 20 77 69 74 68 6f 75 74 20 61 0a 20 20 20 20 20 73 68 61 72 65 64 20 6c 6f ┆riptor, without a shared lo┆
0x0c20…0c40 63 6b 20 28 6d 6f 64 65 20 49 53 29 2e 20 20 49 6e 20 74 68 61 74 20 63 61 73 65 2c 20 74 68 65 ┆ck (mode IS). In that case, the┆
0x0c40…0c60 20 66 69 6c 65 20 6f 62 6a 65 63 74 20 69 73 0a 20 20 20 20 20 61 6c 73 6f 20 64 75 70 6c 69 63 ┆ file object is also duplic┆
0x0c60…0c80 61 74 65 64 20 73 6f 20 74 68 61 74 20 74 68 65 20 70 61 72 65 6e 74 20 61 6e 64 20 63 68 69 6c ┆ated so that the parent and chil┆
0x0c80…0ca0 64 20 6e 6f 20 6c 6f 6e 67 65 72 20 72 65 66 65 72 0a 20 20 20 20 20 74 6f 20 74 68 65 20 73 61 ┆d no longer refer to the sa┆
0x0ca0…0cc0 6d 65 20 6f 62 6a 65 63 74 20 61 6e 64 20 5f 08 6c 5f 08 73 5f 08 65 5f 08 65 5f 08 6b 20 63 61 ┆me object and _ l_ s_ e_ e_ k ca┆
0x0cc0…0ce0 6c 6c 73 20 77 69 6c 6c 20 6f 70 65 72 61 74 65 20 69 6e 64 65 70 65 6e 2d 0a 20 20 20 20 20 64 ┆lls will operate indepen- d┆
0x0ce0…0d00 65 6e 74 6c 79 2e 0a 0a 20 20 20 20 20 41 20 64 65 73 63 72 69 70 74 6f 72 20 74 68 61 74 20 69 ┆ently. A descriptor that i┆
0x0d00…0d20 73 20 6f 70 65 6e 20 66 6f 72 20 65 78 63 6c 75 73 69 76 65 20 61 63 63 65 73 73 20 69 6e 20 74 ┆s open for exclusive access in t┆
0x0d20…0d40 68 65 20 70 61 72 65 6e 74 0a 20 20 20 20 20 28 6d 6f 64 65 20 58 29 20 69 73 20 63 6c 6f 73 65 ┆he parent (mode X) is close┆
0x0d40…0d60 64 20 69 6e 20 74 68 65 20 63 68 69 6c 64 2e 0a 0a 20 20 20 20 20 54 08 54 08 54 08 54 72 08 72 ┆d in the child. T T T Tr r┆
0x0d60…0d80 08 72 08 72 61 08 61 08 61 08 61 6e 08 6e 08 6e 08 6e 73 08 73 08 73 08 73 61 08 61 08 61 08 61 ┆ r ra a a an n n ns s s sa a a a┆
0x0d80…0da0 63 08 63 08 63 08 63 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 ┆c c c ct t t ti i i io o o on n ┆
0x0da0…0dc0 6e 08 6e 73 08 73 08 73 08 73 0a 20 20 20 20 20 54 68 69 73 20 63 61 6c 6c 20 69 73 20 6e 6f 74 ┆n ns s s s This call is not┆
0x0dc0…0de0 20 61 6c 6c 6f 77 65 64 20 69 6e 73 69 64 65 20 74 72 61 6e 73 61 63 74 69 6f 6e 73 2e 0a 0a 45 ┆ allowed inside transactions. E┆
0x0de0…0e00 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┆
0x0e00…0e20 08 52 53 08 53 08 53 08 53 0a 20 20 20 20 20 5f 08 66 5f 08 6f 5f 08 72 5f 08 6b 20 77 69 6c 6c ┆ RS S S S _ f_ o_ r_ k will┆
0x0e20…0e40 20 66 61 69 6c 20 61 6e 64 20 6e 6f 20 63 68 69 6c 64 20 70 72 6f 63 65 73 73 20 77 69 6c 6c 20 ┆ fail and no child process will ┆
0x0e40…0e60 62 65 20 63 72 65 61 74 65 64 20 69 66 20 6f 6e 65 0a 20 20 20 20 20 6f 72 20 6d 6f 72 65 20 6f ┆be created if one or more o┆
0x0e60…0e80 66 20 74 68 65 20 66 6f 6c 6c 6f 77 69 6e 67 20 61 72 65 20 74 72 75 65 3a 0a 0a 0a 20 20 20 20 ┆f the following are true: ┆
0x0e80…0ea0 20 5b 45 41 47 41 49 4e 5d 20 20 20 20 20 20 20 54 68 65 20 73 79 73 74 65 6d 2d 69 6d 70 6f 73 ┆ [EAGAIN] The system-impos┆
0x0ea0…0ec0 65 64 20 6c 69 6d 69 74 20 6f 6e 20 74 68 65 20 74 6f 74 61 6c 20 6e 75 6d 62 65 72 0a 20 20 20 ┆ed limit on the total number ┆
0x0ec0…0ee0 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 6f 66 20 70 72 6f 63 65 73 73 65 73 20 75 6e ┆ of processes un┆
0x0ee0…0f00 64 65 72 20 65 78 65 63 75 74 69 6f 6e 20 73 79 73 74 65 6d 2d 77 69 64 65 0a 20 20 20 20 20 20 ┆der execution system-wide ┆
0x0f00…0f20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 7b 50 52 4f 43 5f 4d 41 58 7d 20 6f 72 20 62 79 20 61 ┆ {PROC_MAX} or by a┆
0x0f20…0f40 20 73 69 6e 67 6c 65 20 75 73 65 72 2d 69 64 20 7b 43 48 49 4c 44 5f 4d 41 58 7d 0a 20 20 20 20 ┆ single user-id {CHILD_MAX} ┆
0x0f40…0f60 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 77 6f 75 6c 64 20 62 65 20 65 78 63 65 65 64 65 ┆ would be exceede┆
0x0f60…0f80 64 2e 0a 0a 20 20 20 20 20 5b 45 4e 4f 4d 45 4d 5d 20 20 20 20 20 20 20 54 68 65 20 70 72 6f 63 ┆d. [ENOMEM] The proc┆
0x0f80…0fa0 65 73 73 20 72 65 71 75 69 72 65 73 20 6d 6f 72 65 20 73 70 61 63 65 20 74 68 61 6e 20 74 68 65 ┆ess requires more space than the┆
0x0fa0…0fc0 20 73 79 73 2d 0a 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 74 65 6d 20 69 73 ┆ sys- tem is┆
0x0fc0…0fe0 20 61 62 6c 65 20 74 6f 20 73 75 70 70 6c 79 2e 0a 0a 52 08 52 08 52 08 52 45 08 45 08 45 08 45 ┆ able to supply. R R R RE E E E┆
0x0fe0…1000 54 08 54 08 54 08 54 55 08 55 08 55 08 55 52 08 52 08 52 08 52 4e 08 4e 08 4e 08 4e 20 56 08 56 ┆T T T TU U U UR R R RN N N N V V┆
0x1000…1020 08 56 08 56 41 08 41 08 41 08 41 4c 08 4c 08 4c 08 4c 55 08 55 08 55 08 55 45 08 45 08 45 08 45 ┆ V VA A A AL L L LU U U UE E E E┆
0x1020…1040 0a 20 20 20 20 20 55 70 6f 6e 20 73 75 63 63 65 73 73 66 75 6c 20 63 6f 6d 70 6c 65 74 69 6f 6e ┆ Upon successful completion┆
0x1040…1060 2c 20 5f 08 66 5f 08 6f 5f 08 72 5f 08 6b 20 72 65 74 75 72 6e 73 20 61 20 76 61 6c 75 65 20 6f ┆, _ f_ o_ r_ k returns a value o┆
0x1060…1080 66 20 30 20 74 6f 20 74 68 65 0a 20 20 20 20 20 63 68 69 6c 64 20 70 72 6f 63 65 73 73 20 61 6e ┆f 0 to the child process an┆
0x1080…10a0 64 20 72 65 74 75 72 6e 73 20 74 68 65 20 70 72 6f 63 65 73 73 20 49 44 20 6f 66 20 74 68 65 20 ┆d returns the process ID of the ┆
0x10a0…10c0 63 68 69 6c 64 20 70 72 6f 2d 0a 20 20 20 20 20 63 65 73 73 20 74 6f 20 74 68 65 20 70 61 72 65 ┆child pro- cess to the pare┆
0x10c0…10e0 6e 74 20 70 72 6f 63 65 73 73 2e 20 20 4f 74 68 65 72 77 69 73 65 2c 20 61 20 76 61 6c 75 65 20 ┆nt process. Otherwise, a value ┆
0x10e0…1100 6f 66 20 2d 31 20 69 73 0a 20 20 20 20 20 72 65 74 75 72 6e 65 64 20 74 6f 20 74 68 65 20 70 61 ┆of -1 is returned to the pa┆
0x1100…1120 72 65 6e 74 20 70 72 6f 63 65 73 73 2c 20 6e 6f 20 63 68 69 6c 64 20 70 72 6f 63 65 73 73 20 69 ┆rent process, no child process i┆
0x1120…1140 73 20 63 72 65 61 74 65 64 2c 0a 20 20 20 20 20 61 6e 64 20 5f 08 65 5f 08 72 5f 08 72 5f 08 6e ┆s created, and _ e_ r_ r_ n┆
0x1140…1160 5f 08 6f 20 69 73 20 73 65 74 20 74 6f 20 69 6e 64 69 63 61 74 65 20 74 68 65 20 65 72 72 6f 72 ┆_ o is set to indicate the error┆
0x1160…1180 2e 0a 0a 53 08 53 08 53 08 53 45 08 45 08 45 08 45 45 08 45 08 45 08 45 20 41 08 41 08 41 08 41 ┆. S S S SE E E EE E E E A A A A┆
0x1180…11a0 4c 08 4c 08 4c 08 4c 53 08 53 08 53 08 53 4f 08 4f 08 4f 08 4f 0a 20 20 20 20 20 53 79 73 74 65 ┆L L L LS S S SO O O O Syste┆
0x11a0…11c0 6d 20 43 61 6c 6c 73 20 28 32 29 3a 20 20 65 78 65 63 2c 20 66 63 6e 74 6c 2c 20 6c 6f 63 6b 66 ┆m Calls (2): exec, fcntl, lockf┆
0x11c0…11e0 2c 20 73 69 67 6e 61 6c 2c 20 66 6c 6f 63 6b 2c 20 61 6c 61 72 6d 2c 0a 20 20 20 20 20 73 65 6d ┆, signal, flock, alarm, sem┆
0x11e0…1200 6f 70 2c 20 74 69 6d 65 73 2e 0a 0a 44 65 63 65 6d 62 65 72 20 31 39 39 30 20 20 20 20 20 20 20 ┆op, times. December 1990 ┆
0x1200…1220 20 20 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 ┆ TX Programme┆
0x1220…123a 72 27 73 20 52 65 66 65 72 65 6e 63 65 0a 0a 0a 0a 0a 0a 0a 0a 0a 0a 0a 0a 0a ┆r's Reference ┆