|
|
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: w
Length: 4836 (0x12e4)
Names: »wait.2«
└─⟦50656ff4a⟧ Bits:30010538 TX 3.1 Coldstart
└─⟦bbf173f5c⟧ »0004«
└─⟦this⟧ »./bsd/usr/man/cat2/wait.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 77 61 69 74 28 32 29 0a 0a 0a 0a ┆s wait(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 77 61 69 74 2c 20 77 61 69 74 33 20 2d 20 77 61 69 74 20 66 6f 72 20 70 72 6f 63 65 73 73 ┆ wait, wait3 - wait for process┆ 0x00a0…00c0 20 74 6f 20 74 65 72 6d 69 6e 61 74 65 0a 0a 53 08 53 08 53 08 53 59 08 59 08 59 08 59 4e 08 4e ┆ to terminate S S S SY Y Y YN N┆ 0x00c0…00e0 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 20 20 20 20 23 ┆ N NT T T TA A A AX X X X #┆ 0x00e0…0100 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 6c 08 6c 08 6c ┆ # # #i i i in n n nc c c cl l l┆ 0x0100…0120 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 08 3c 08 3c 73 ┆ lu u u ud d d de e e e < < < <s┆ 0x0120…0140 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 77 08 77 08 77 ┆ s s sy y y ys s s s/ / / /w w w┆ 0x0140…0160 08 77 61 08 61 08 61 08 61 69 08 69 08 69 08 69 74 08 74 08 74 08 74 2e 08 2e 08 2e 08 2e 68 08 ┆ wa a a ai i i it t t t. . . .h ┆ 0x0160…0180 68 08 68 08 68 3e 08 3e 08 3e 08 3e 0a 20 20 20 20 20 23 69 6e 63 6c 75 64 65 20 3c 73 69 67 6e ┆h h h> > > > #include <sign┆ 0x0180…01a0 61 6c 2e 68 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 ┆al.h> p p p pi i i id d d ┆ 0x01a0…01c0 64 20 3d 08 3d 08 3d 08 3d 20 77 08 77 08 77 08 77 61 08 61 08 61 08 61 69 08 69 08 69 08 69 74 ┆d = = = = w w w wa a a ai i i it┆ 0x01c0…01e0 08 74 08 74 08 74 28 08 28 08 28 08 28 73 08 73 08 73 08 73 74 08 74 08 74 08 74 61 08 61 08 61 ┆ t t t( ( ( (s s s st t t ta a a┆ 0x01e0…0200 08 61 74 08 74 08 74 08 74 75 08 75 08 75 08 75 73 08 73 08 73 08 73 29 08 29 08 29 08 29 0a 20 ┆ at t t tu u u us s s s) ) ) ) ┆ 0x0200…0220 20 20 20 20 69 6e 74 20 70 69 64 3b 0a 20 20 20 20 20 75 6e 69 6f 6e 20 77 61 69 74 20 2a 73 74 ┆ int pid; union wait *st┆ 0x0220…0240 61 74 75 73 3b 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 ┆atus; p p p pi i i id d d ┆ 0x0240…0260 64 20 3d 08 3d 08 3d 08 3d 20 77 08 77 08 77 08 77 61 08 61 08 61 08 61 69 08 69 08 69 08 69 74 ┆d = = = = w w w wa a a ai i i it┆ 0x0260…0280 08 74 08 74 08 74 28 08 28 08 28 08 28 30 08 30 08 30 08 30 29 08 29 08 29 08 29 0a 20 20 20 20 ┆ t t t( ( ( (0 0 0 0) ) ) ) ┆ 0x0280…02a0 20 69 6e 74 20 70 69 64 3b 0a 0a 20 20 20 20 20 23 08 23 08 23 08 23 69 08 69 08 69 08 69 6e 08 ┆ int pid; # # # #i i i in ┆ 0x02a0…02c0 6e 08 6e 08 6e 63 08 63 08 63 08 63 6c 08 6c 08 6c 08 6c 75 08 75 08 75 08 75 64 08 64 08 64 08 ┆n n nc c c cl l l lu u u ud d d ┆ 0x02c0…02e0 64 65 08 65 08 65 08 65 20 3c 08 3c 08 3c 08 3c 73 08 73 08 73 08 73 79 08 79 08 79 08 79 73 08 ┆de e e e < < < <s s s sy y y ys ┆ 0x02e0…0300 73 08 73 08 73 2f 08 2f 08 2f 08 2f 74 08 74 08 74 08 74 69 08 69 08 69 08 69 6d 08 6d 08 6d 08 ┆s s s/ / / /t t t ti i i im m m ┆ 0x0300…0320 6d 65 08 65 08 65 08 65 2e 08 2e 08 2e 08 2e 68 08 68 08 68 08 68 3e 08 3e 08 3e 08 3e 0a 20 20 ┆me e e e. . . .h h h h> > > > ┆ 0x0320…0340 20 20 20 23 69 6e 63 6c 75 64 65 20 3c 73 79 73 2f 72 65 73 6f 75 72 63 65 2e 68 3e 0a 0a 20 20 ┆ #include <sys/resource.h> ┆ 0x0340…0360 20 20 20 70 08 70 08 70 08 70 69 08 69 08 69 08 69 64 08 64 08 64 08 64 20 3d 08 3d 08 3d 08 3d ┆ p p p pi i i id d d d = = = =┆ 0x0360…0380 20 77 08 77 08 77 08 77 61 08 61 08 61 08 61 69 08 69 08 69 08 69 74 08 74 08 74 08 74 33 08 33 ┆ w w w wa a a ai i i it t t t3 3┆ 0x0380…03a0 08 33 08 33 28 08 28 08 28 08 28 73 08 73 08 73 08 73 74 08 74 08 74 08 74 61 08 61 08 61 08 61 ┆ 3 3( ( ( (s s s st t t ta a a a┆ 0x03a0…03c0 74 08 74 08 74 08 74 75 08 75 08 75 08 75 73 08 73 08 73 08 73 2c 08 2c 08 2c 08 2c 20 6f 08 6f ┆t t t tu u u us s s s, , , , o o┆ 0x03c0…03e0 08 6f 08 6f 70 08 70 08 70 08 70 74 08 74 08 74 08 74 69 08 69 08 69 08 69 6f 08 6f 08 6f 08 6f ┆ o op p p pt t t ti i i io o o o┆ 0x03e0…0400 6e 08 6e 08 6e 08 6e 73 08 73 08 73 08 73 2c 08 2c 08 2c 08 2c 20 72 08 72 08 72 08 72 75 08 75 ┆n n n ns s s s, , , , r r r ru u┆ 0x0400…0420 08 75 08 75 73 08 73 08 73 08 73 61 08 61 08 61 08 61 67 08 67 08 67 08 67 65 08 65 08 65 08 65 ┆ u us s s sa a a ag g g ge e e e┆ 0x0420…0440 29 08 29 08 29 08 29 0a 20 20 20 20 20 69 6e 74 20 70 69 64 3b 0a 20 20 20 20 20 75 6e 69 6f 6e ┆) ) ) ) int pid; union┆ 0x0440…0460 20 77 61 69 74 20 2a 73 74 61 74 75 73 3b 0a 20 20 20 20 20 69 6e 74 20 6f 70 74 69 6f 6e 73 3b ┆ wait *status; int options;┆ 0x0460…0480 0a 20 20 20 20 20 73 74 72 75 63 74 20 72 75 73 61 67 65 20 2a 72 75 73 61 67 65 3b 0a 0a 44 08 ┆ struct rusage *rusage; D ┆ 0x0480…04a0 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 ┆ 0x04a0…04c0 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┆ 0x04c0…04e0 08 4f 08 4f 4e 08 4e 08 4e 08 4e 0a 20 20 20 20 20 54 68 65 20 5f 08 77 5f 08 61 5f 08 69 5f 08 ┆ O ON N N N The _ w_ a_ i_ ┆ 0x04e0…0500 74 20 63 61 6c 6c 20 63 61 75 73 65 73 20 74 68 65 20 63 61 6c 6c 65 72 20 74 6f 20 64 65 6c 61 ┆t call causes the caller to dela┆ 0x0500…0520 79 20 75 6e 74 69 6c 20 65 69 74 68 65 72 20 61 20 73 69 67 2d 0a 20 20 20 20 20 6e 61 6c 20 69 ┆y until either a sig- nal i┆ 0x0520…0540 73 20 72 65 63 65 69 76 65 64 20 6f 72 20 61 20 63 68 69 6c 64 20 70 72 6f 63 65 73 73 20 74 65 ┆s received or a child process te┆ 0x0540…0560 72 6d 69 6e 61 74 65 73 2e 20 20 52 65 74 75 72 6e 20 69 73 0a 20 20 20 20 20 69 6d 6d 65 64 69 ┆rminates. Return is immedi┆ 0x0560…0580 61 74 65 20 69 66 20 61 6e 79 20 63 68 69 6c 64 20 64 69 65 64 20 73 69 6e 63 65 20 74 68 65 20 ┆ate if any child died since the ┆ 0x0580…05a0 6c 61 73 74 20 5f 08 77 5f 08 61 5f 08 69 5f 08 74 2e 20 20 49 6e 20 74 68 69 73 0a 20 20 20 20 ┆last _ w_ a_ i_ t. In this ┆ 0x05a0…05c0 20 63 61 73 65 2c 20 61 20 74 65 72 6d 69 6e 61 74 65 64 20 63 68 69 6c 64 27 73 20 70 72 6f 63 ┆ case, a terminated child's proc┆ 0x05c0…05e0 65 73 73 20 69 64 20 61 6e 64 20 65 78 69 74 20 73 74 61 74 75 73 20 61 72 65 0a 20 20 20 20 20 ┆ess id and exit status are ┆ 0x05e0…0600 72 65 74 75 72 6e 65 64 2e 20 20 49 66 20 74 68 65 72 65 20 61 72 65 20 6e 6f 20 63 68 69 6c 64 ┆returned. If there are no child┆ 0x0600…0620 72 65 6e 2c 20 61 6e 20 69 6d 6d 65 64 69 61 74 65 20 65 72 72 6f 72 0a 20 20 20 20 20 72 65 74 ┆ren, an immediate error ret┆ 0x0620…0640 75 72 6e 20 28 2d 31 20 72 65 74 75 72 6e 20 76 61 6c 75 65 29 20 6f 63 63 75 72 73 2e 0a 0a 20 ┆urn (-1 return value) occurs. ┆ 0x0640…0660 20 20 20 20 4f 6e 20 73 75 63 63 65 73 73 66 75 6c 20 72 65 74 75 72 6e 2c 20 73 74 61 74 75 73 ┆ On successful return, status┆ 0x0660…0680 2e 77 5f 72 65 74 63 6f 64 65 20 63 6f 6e 74 61 69 6e 73 20 74 68 65 20 6c 6f 77 20 62 79 74 65 ┆.w_retcode contains the low byte┆ 0x0680…06a0 0a 20 20 20 20 20 6f 66 20 74 68 65 20 61 72 67 75 6d 65 6e 74 20 74 6f 20 5f 08 65 5f 08 78 5f ┆ of the argument to _ e_ x_┆ 0x06a0…06c0 08 69 5f 08 74 20 73 75 70 70 6c 69 65 64 20 62 79 20 74 68 65 20 63 68 69 6c 64 20 70 72 6f 63 ┆ i_ t supplied by the child proc┆ 0x06c0…06e0 65 73 73 3b 0a 20 20 20 20 20 73 74 61 74 75 73 2e 77 5f 74 65 72 6d 73 69 67 20 5f 08 63 5f 08 ┆ess; status.w_termsig _ c_ ┆ 0x06e0…0700 6f 5f 08 6e 5f 08 74 5f 08 61 5f 08 69 5f 08 6e 5f 08 73 20 5f 08 74 5f 08 68 5f 08 65 20 5f 08 ┆o_ n_ t_ a_ i_ n_ s _ t_ h_ e _ ┆ 0x0700…0720 63 5f 08 68 5f 08 69 5f 08 6c 5f 08 64 27 5f 08 73 20 5f 08 74 5f 08 65 5f 08 72 5f 08 6d 5f 08 ┆c_ h_ i_ l_ d'_ s _ t_ e_ r_ m_ ┆ 0x0720…0740 69 5f 08 6e 5f 08 61 5f 08 74 5f 08 69 5f 08 6f 5f 08 6e 20 5f 08 73 5f 08 74 5f 08 61 5f 08 74 ┆i_ n_ a_ t_ i_ o_ n _ s_ t_ a_ t┆ 0x0740…0760 5f 08 75 5f 08 73 0a 20 20 20 20 20 28 5f 08 73 5f 08 69 5f 08 67 5f 08 6e 5f 08 61 5f 08 6c 20 ┆_ u_ s (_ s_ i_ g_ n_ a_ l ┆ 0x0760…0780 5f 08 6e 5f 08 75 5f 08 6d 5f 08 62 5f 08 65 5f 08 72 29 3b 20 5f 08 61 5f 08 6e 5f 08 64 20 5f ┆_ n_ u_ m_ b_ e_ r); _ a_ n_ d _┆ 0x0780…07a0 08 73 5f 08 74 5f 08 61 5f 08 74 5f 08 75 5f 08 73 2e 5f 08 77 5f 5f 08 73 5f 08 69 5f 08 67 5f ┆ s_ t_ a_ t_ u_ s._ w__ s_ i_ g_┆ 0x07a0…07c0 08 63 5f 08 6f 5f 08 64 5f 08 65 20 63 6f 6e 74 61 69 6e 73 20 74 68 65 20 73 69 67 6e 61 6c 0a ┆ c_ o_ d_ e contains the signal ┆ 0x07c0…07e0 20 20 20 20 20 73 75 62 63 6c 61 73 73 20 63 6f 64 65 2e 20 20 52 65 66 65 72 20 74 6f 20 74 68 ┆ subclass code. Refer to th┆ 0x07e0…0800 65 20 73 79 73 2f 77 61 69 74 2e 68 20 5f 08 68 5f 08 65 5f 08 61 5f 08 64 5f 08 65 5f 08 72 20 ┆e sys/wait.h _ h_ e_ a_ d_ e_ r ┆ 0x0800…0820 5f 08 66 5f 08 69 5f 08 6c 5f 08 65 20 5f 08 6f 5f 08 6e 20 5f 08 79 5f 08 6f 5f 08 75 5f 08 72 ┆_ f_ i_ l_ e _ o_ n _ y_ o_ u_ r┆ 0x0820…0840 0a 20 20 20 20 20 5f 08 73 5f 08 79 5f 08 73 5f 08 74 5f 08 65 5f 08 6d 2e 0a 0a 20 20 20 20 20 ┆ _ s_ y_ s_ t_ e_ m. ┆ 0x0840…0860 5f 08 77 5f 08 61 5f 08 69 5f 08 74 5f 08 33 20 70 72 6f 76 69 64 65 73 20 61 6e 20 61 6c 74 65 ┆_ w_ a_ i_ t_ 3 provides an alte┆ 0x0860…0880 72 6e 61 74 65 20 69 6e 74 65 72 66 61 63 65 20 66 6f 72 20 70 72 6f 67 72 61 6d 73 20 77 68 69 ┆rnate interface for programs whi┆ 0x0880…08a0 63 68 0a 20 20 20 20 20 6d 75 73 74 20 6e 6f 74 20 62 6c 6f 63 6b 20 77 68 65 6e 20 63 6f 6c 6c ┆ch must not block when coll┆ 0x08a0…08c0 65 63 74 69 6e 67 20 74 68 65 20 73 74 61 74 75 73 20 6f 66 20 63 68 69 6c 64 0a 20 20 20 20 20 ┆ecting the status of child ┆ 0x08c0…08e0 70 72 6f 63 65 73 73 65 73 2e 20 20 54 68 65 20 5f 08 73 5f 08 74 5f 08 61 5f 08 74 5f 08 75 5f ┆processes. The _ s_ t_ a_ t_ u_┆ 0x08e0…0900 08 73 20 70 61 72 61 6d 65 74 65 72 20 69 73 20 64 65 66 69 6e 65 64 20 61 73 20 61 62 6f 76 65 ┆ s parameter is defined as above┆ 0x0900…0920 2e 20 20 54 68 65 0a 20 20 20 20 20 5f 08 6f 5f 08 70 5f 08 74 5f 08 69 5f 08 6f 5f 08 6e 5f 08 ┆. The _ o_ p_ t_ i_ o_ n_ ┆ 0x0920…0940 73 20 70 61 72 61 6d 65 74 65 72 20 69 73 20 75 73 65 64 20 74 6f 20 69 6e 64 69 63 61 74 65 20 ┆s parameter is used to indicate ┆ 0x0940…0960 74 68 65 20 63 61 6c 6c 20 73 68 6f 75 6c 64 20 6e 6f 74 0a 20 20 20 20 20 62 6c 6f 63 6b 20 69 ┆the call should not block i┆ 0x0960…0980 66 20 6e 6f 20 70 72 6f 63 65 73 73 65 73 20 77 69 73 68 20 74 6f 20 72 65 70 6f 72 74 20 73 74 ┆f no processes wish to report st┆ 0x0980…09a0 61 74 75 73 20 28 57 4e 4f 48 41 4e 47 29 2c 0a 20 20 20 20 20 61 6e 64 2f 6f 72 20 74 68 61 74 ┆atus (WNOHANG), and/or that┆ 0x09a0…09c0 20 6f 6e 6c 79 20 63 68 69 6c 64 72 65 6e 20 6f 66 20 74 68 65 20 63 75 72 72 65 6e 74 20 70 72 ┆ only children of the current pr┆ 0x09c0…09e0 6f 63 65 73 73 20 77 68 69 63 68 20 61 72 65 0a 20 20 20 20 20 73 74 6f 70 70 65 64 20 64 75 65 ┆ocess which are stopped due┆ 0x09e0…0a00 20 74 6f 20 61 20 53 49 47 54 54 49 4e 2c 20 53 49 47 54 54 4f 55 2c 20 53 49 47 54 53 54 50 2c ┆ to a SIGTTIN, SIGTTOU, SIGTSTP,┆ 0x0a00…0a20 20 6f 72 20 53 49 47 53 54 4f 50 20 73 69 67 2d 0a 20 20 20 20 20 6e 61 6c 20 73 68 6f 75 6c 64 ┆ or SIGSTOP sig- nal should┆ 0x0a20…0a40 20 68 61 76 65 20 74 68 65 69 72 20 73 74 61 74 75 73 20 72 65 70 6f 72 74 65 64 20 28 57 55 4e ┆ have their status reported (WUN┆ 0x0a40…0a60 54 52 41 43 45 44 29 2e 20 20 49 66 0a 20 20 20 20 20 5f 08 72 5f 08 75 5f 08 73 5f 08 61 5f 08 ┆TRACED). If _ r_ u_ s_ a_ ┆ 0x0a60…0a80 67 5f 08 65 20 69 73 20 6e 6f 6e 2d 7a 65 72 6f 2c 20 61 20 73 75 6d 6d 61 72 79 20 6f 66 20 74 ┆g_ e is non-zero, a summary of t┆ 0x0a80…0aa0 68 65 20 72 65 73 6f 75 72 63 65 73 20 75 73 65 64 20 62 79 20 74 68 65 0a 20 20 20 20 20 74 65 ┆he resources used by the te┆ 0x0aa0…0ac0 72 6d 69 6e 61 74 65 64 20 70 72 6f 63 65 73 73 20 61 6e 64 20 61 6c 6c 20 69 74 73 20 63 68 69 ┆rminated process and all its chi┆ 0x0ac0…0ae0 6c 64 72 65 6e 20 69 73 20 72 65 74 75 72 6e 65 64 2e 20 20 28 54 68 69 73 0a 20 20 20 20 20 69 ┆ldren is returned. (This i┆ 0x0ae0…0b00 6e 66 6f 72 6d 61 74 69 6f 6e 20 69 73 20 63 75 72 72 65 6e 74 6c 79 20 6e 6f 74 20 61 76 61 69 ┆nformation is currently not avai┆ 0x0b00…0b20 6c 61 62 6c 65 20 66 6f 72 20 73 74 6f 70 70 65 64 0a 20 20 20 20 20 70 72 6f 63 65 73 73 65 73 ┆lable for stopped processes┆ 0x0b20…0b40 29 2e 0a 0a 20 20 20 20 20 57 68 65 6e 20 74 68 65 20 57 4e 4f 48 41 4e 47 20 6f 70 74 69 6f 6e ┆). When the WNOHANG option┆ 0x0b40…0b60 20 69 73 20 73 70 65 63 69 66 69 65 64 20 61 6e 64 20 6e 6f 20 70 72 6f 63 65 73 73 65 73 20 77 ┆ is specified and no processes w┆ 0x0b60…0b80 69 73 68 0a 20 20 20 20 20 74 6f 20 72 65 70 6f 72 74 20 73 74 61 74 75 73 2c 20 5f 08 77 5f 08 ┆ish to report status, _ w_ ┆ 0x0b80…0ba0 61 5f 08 69 5f 08 74 5f 08 33 20 72 65 74 75 72 6e 73 20 61 20 5f 08 70 5f 08 69 5f 08 64 20 6f ┆a_ i_ t_ 3 returns a _ p_ i_ d o┆ 0x0ba0…0bc0 66 20 30 2e 20 20 54 68 65 20 57 4e 4f 48 41 4e 47 20 61 6e 64 0a 20 20 20 20 20 57 55 4e 54 52 ┆f 0. The WNOHANG and WUNTR┆ 0x0bc0…0be0 41 43 45 44 20 6f 70 74 69 6f 6e 73 20 6d 61 79 20 62 65 20 63 6f 6d 62 69 6e 65 64 20 62 79 20 ┆ACED options may be combined by ┆ 0x0be0…0c00 5f 08 6f 5f 08 72 69 6e 67 20 74 68 65 20 32 20 76 61 6c 75 65 73 2e 0a 0a 4e 08 4e 08 4e 08 4e ┆_ o_ ring the 2 values. N N N N┆ 0x0c00…0c20 4f 08 4f 08 4f 08 4f 54 08 54 08 54 08 54 45 08 45 08 45 08 45 53 08 53 08 53 08 53 0a 20 20 20 ┆O O O OT T T TE E E ES S S S ┆ 0x0c20…0c40 20 20 53 65 65 20 5f 08 73 5f 08 69 5f 08 67 5f 08 76 5f 08 65 5f 08 63 28 32 29 20 66 6f 72 20 ┆ See _ s_ i_ g_ v_ e_ c(2) for ┆ 0x0c40…0c60 61 20 6c 69 73 74 20 6f 66 20 74 65 72 6d 69 6e 61 74 69 6f 6e 20 73 74 61 74 75 73 65 73 20 28 ┆a list of termination statuses (┆ 0x0c60…0c80 73 69 67 6e 61 6c 73 29 3b 0a 20 20 20 20 20 30 20 73 74 61 74 75 73 20 69 6e 64 69 63 61 74 65 ┆signals); 0 status indicate┆ 0x0c80…0ca0 73 20 6e 6f 72 6d 61 6c 20 74 65 72 6d 69 6e 61 74 69 6f 6e 2e 20 20 41 20 73 70 65 63 69 61 6c ┆s normal termination. A special┆ 0x0ca0…0cc0 20 73 74 61 74 75 73 0a 20 20 20 20 20 28 57 53 54 4f 50 50 45 44 29 20 69 73 20 72 65 74 75 72 ┆ status (WSTOPPED) is retur┆ 0x0cc0…0ce0 6e 65 64 20 66 6f 72 20 61 20 73 74 6f 70 70 65 64 20 70 72 6f 63 65 73 73 2c 20 77 68 69 63 68 ┆ned for a stopped process, which┆ 0x0ce0…0d00 20 68 61 73 20 6e 6f 74 0a 0a 0a 0a 0a 0a 0a 20 20 20 20 20 74 65 72 6d 69 6e 61 74 65 64 20 61 ┆ has not terminated a┆ 0x0d00…0d20 6e 64 20 63 61 6e 20 62 65 20 72 65 73 74 61 72 74 65 64 2e 20 20 49 66 20 74 68 65 20 77 5f 63 ┆nd can be restarted. If the w_c┆ 0x0d20…0d40 6f 72 65 64 75 6d 70 20 66 69 65 6c 64 20 6f 66 0a 20 20 20 20 20 73 74 61 74 75 73 20 69 73 20 ┆oredump field of status is ┆ 0x0d40…0d60 73 65 74 2c 20 61 20 63 6f 72 65 20 69 6d 61 67 65 20 6f 66 20 74 68 65 20 70 72 6f 63 65 73 73 ┆set, a core image of the process┆ 0x0d60…0d80 20 77 61 73 20 70 72 6f 64 75 63 65 64 20 62 79 0a 20 20 20 20 20 74 68 65 20 73 79 73 74 65 6d ┆ was produced by the system┆ 0x0d80…0da0 2e 0a 0a 20 20 20 20 20 49 66 20 74 68 65 20 70 61 72 65 6e 74 20 70 72 6f 63 65 73 73 20 74 65 ┆. If the parent process te┆ 0x0da0…0dc0 72 6d 69 6e 61 74 65 73 20 77 69 74 68 6f 75 74 20 77 61 69 74 69 6e 67 20 6f 6e 20 69 74 73 0a ┆rminates without waiting on its ┆ 0x0dc0…0de0 20 20 20 20 20 63 68 69 6c 64 72 65 6e 2c 20 74 68 65 20 69 6e 69 74 69 61 6c 69 7a 61 74 69 6f ┆ children, the initializatio┆ 0x0de0…0e00 6e 20 70 72 6f 63 65 73 73 20 28 70 72 6f 63 65 73 73 20 49 44 20 3d 20 31 29 20 69 6e 68 65 72 ┆n process (process ID = 1) inher┆ 0x0e00…0e20 2d 0a 20 20 20 20 20 69 74 73 20 74 68 65 20 63 68 69 6c 64 72 65 6e 2e 0a 0a 20 20 20 20 20 42 ┆- its the children. B┆ 0x0e20…0e40 6f 74 68 20 5f 08 77 5f 08 61 5f 08 69 5f 08 74 20 61 6e 64 20 5f 08 77 5f 08 61 5f 08 69 5f 08 ┆oth _ w_ a_ i_ t and _ w_ a_ i_ ┆ 0x0e40…0e60 74 5f 08 33 20 61 72 65 20 61 75 74 6f 6d 61 74 69 63 61 6c 6c 79 20 72 65 73 74 61 72 74 65 64 ┆t_ 3 are automatically restarted┆ 0x0e60…0e80 20 77 68 65 6e 20 61 20 70 72 6f 2d 0a 20 20 20 20 20 63 65 73 73 20 72 65 63 65 69 76 65 73 20 ┆ when a pro- cess receives ┆ 0x0e80…0ea0 61 20 73 69 67 6e 61 6c 20 77 68 69 6c 65 20 61 77 61 69 74 69 6e 67 20 74 65 72 6d 69 6e 61 74 ┆a signal while awaiting terminat┆ 0x0ea0…0ec0 69 6f 6e 20 6f 66 20 61 20 63 68 69 6c 64 0a 20 20 20 20 20 70 72 6f 63 65 73 73 2e 0a 0a 52 08 ┆ion of a child process. R ┆ 0x0ec0…0ee0 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 08 ┆R R RE E E ET T T TU U U UR R R ┆ 0x0ee0…0f00 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 08 ┆RN N N N V V V VA A A AL L L LU ┆ 0x0f00…0f20 55 08 55 08 55 45 08 45 08 45 08 45 0a 20 20 20 20 20 49 66 20 5f 08 77 5f 08 61 5f 08 69 5f 08 ┆U U UE E E E If _ w_ a_ i_ ┆ 0x0f20…0f40 74 20 72 65 74 75 72 6e 73 20 64 75 65 20 74 6f 20 61 20 73 74 6f 70 70 65 64 20 6f 72 20 74 65 ┆t returns due to a stopped or te┆ 0x0f40…0f60 72 6d 69 6e 61 74 65 64 20 63 68 69 6c 64 20 70 72 6f 2d 0a 20 20 20 20 20 63 65 73 73 2c 20 74 ┆rminated child pro- cess, t┆ 0x0f60…0f80 68 65 20 70 72 6f 63 65 73 73 20 49 44 20 6f 66 20 74 68 65 20 63 68 69 6c 64 20 69 73 20 72 65 ┆he process ID of the child is re┆ 0x0f80…0fa0 74 75 72 6e 65 64 20 74 6f 20 74 68 65 20 63 61 6c 6c 69 6e 67 0a 20 20 20 20 20 70 72 6f 63 65 ┆turned to the calling proce┆ 0x0fa0…0fc0 73 73 2e 20 20 4f 74 68 65 72 77 69 73 65 2c 20 61 20 76 61 6c 75 65 20 6f 66 20 2d 31 20 69 73 ┆ss. Otherwise, a value of -1 is┆ 0x0fc0…0fe0 20 72 65 74 75 72 6e 65 64 20 61 6e 64 20 5f 08 65 5f 08 72 5f 08 72 5f 08 6e 5f 08 6f 20 69 73 ┆ returned and _ e_ r_ r_ n_ o is┆ 0x0fe0…1000 0a 20 20 20 20 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 2e ┆ set to indicate the error.┆ 0x1000…1020 0a 0a 20 20 20 20 20 5f 08 77 5f 08 61 5f 08 69 5f 08 74 5f 08 33 20 72 65 74 75 72 6e 73 20 2d ┆ _ w_ a_ i_ t_ 3 returns -┆ 0x1020…1040 31 20 69 66 20 6e 6f 20 63 68 69 6c 64 72 65 6e 20 77 65 72 65 20 70 72 65 76 69 6f 75 73 6c 79 ┆1 if no children were previously┆ 0x1040…1060 20 61 77 61 69 74 65 64 3b 20 30 0a 20 20 20 20 20 69 73 20 72 65 74 75 72 6e 65 64 20 69 66 20 ┆ awaited; 0 is returned if ┆ 0x1060…1080 57 4e 4f 48 41 4e 47 20 69 73 20 73 70 65 63 69 66 69 65 64 20 61 6e 64 20 74 68 65 72 65 20 61 ┆WNOHANG is specified and there a┆ 0x1080…10a0 72 65 20 6e 6f 20 73 74 6f 70 70 65 64 0a 20 20 20 20 20 6f 72 20 65 78 69 74 65 64 20 63 68 69 ┆re no stopped or exited chi┆ 0x10a0…10c0 6c 64 72 65 6e 2e 0a 0a 45 08 45 08 45 08 45 52 08 52 08 52 08 52 52 08 52 08 52 08 52 4f 08 4f ┆ldren. E E E ER R R RR R R RO O┆ 0x10c0…10e0 08 4f 08 4f 52 08 52 08 52 08 52 53 08 53 08 53 08 53 0a 20 20 20 20 20 5f 08 77 5f 08 61 5f 08 ┆ O OR R R RS S S S _ w_ a_ ┆ 0x10e0…1100 69 5f 08 74 20 66 61 69 6c 73 20 61 6e 64 20 72 65 74 75 72 6e 73 20 69 6d 6d 65 64 69 61 74 65 ┆i_ t fails and returns immediate┆ 0x1100…1120 6c 79 20 69 66 20 6f 6e 65 20 6f 72 20 6d 6f 72 65 20 6f 66 20 74 68 65 0a 20 20 20 20 20 66 6f ┆ly if one or more of the fo┆ 0x1120…1140 6c 6c 6f 77 69 6e 67 20 69 73 20 74 72 75 65 3a 0a 0a 20 20 20 20 20 5b 45 43 48 49 4c 44 5d 20 ┆llowing is true: [ECHILD] ┆ 0x1140…1160 20 20 20 20 20 20 54 68 65 20 63 61 6c 6c 69 6e 67 20 70 72 6f 63 65 73 73 20 68 61 73 20 6e 6f ┆ The calling process has no┆ 0x1160…1180 20 65 78 69 73 74 69 6e 67 20 63 68 69 6c 64 0a 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 ┆ existing child ┆ 0x1180…11a0 20 20 20 20 70 72 6f 63 65 73 73 65 73 20 74 68 61 74 20 61 72 65 20 6e 6f 74 20 61 6c 72 65 61 ┆ processes that are not alrea┆ 0x11a0…11c0 64 79 20 61 77 61 69 74 65 64 2e 0a 0a 20 20 20 20 20 5b 45 46 41 55 4c 54 5d 20 20 20 20 20 20 ┆dy awaited. [EFAULT] ┆ 0x11c0…11e0 20 45 69 74 68 65 72 20 74 68 65 20 5f 08 73 5f 08 74 5f 08 61 5f 08 74 5f 08 75 5f 08 73 20 6f ┆ Either the _ s_ t_ a_ t_ u_ s o┆ 0x11e0…1200 72 20 5f 08 72 5f 08 75 5f 08 73 5f 08 61 5f 08 67 5f 08 65 20 61 72 67 75 6d 65 6e 74 73 20 70 ┆r _ r_ u_ s_ a_ g_ e arguments p┆ 0x1200…1220 6f 69 6e 74 0a 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 74 6f 20 61 6e 20 69 ┆oint to an i┆ 0x1220…1240 6c 6c 65 67 61 6c 20 61 64 64 72 65 73 73 2e 0a 0a 53 08 53 08 53 08 53 45 08 45 08 45 08 45 45 ┆llegal address. S S S SE E E EE┆ 0x1240…1260 08 45 08 45 08 45 20 41 08 41 08 41 08 41 4c 08 4c 08 4c 08 4c 53 08 53 08 53 08 53 4f 08 4f 08 ┆ E E E A A A AL L L LS S S SO O ┆ 0x1260…1280 4f 08 4f 0a 20 20 20 20 20 53 79 73 74 65 6d 20 43 61 6c 6c 73 20 28 32 29 3a 20 20 65 78 69 74 ┆O O System Calls (2): exit┆ 0x1280…12a0 2c 20 73 69 67 76 65 63 0a 0a 4d 61 72 63 68 20 31 39 38 39 20 20 20 20 20 20 20 20 20 20 20 20 ┆, sigvec March 1989 ┆ 0x12a0…12c0 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 54 58 20 50 72 6f 67 72 61 6d 6d 65 72 27 ┆ TX Programmer'┆ 0x12c0…12e0 73 20 52 65 66 65 72 65 6e 63 65 0a 0a 0a 0a 0a 0a 0a 0a 0a 0a 0a 0a 0a 0a 0a 0a 0a 0a 0a 0a 0a ┆s Reference ┆ 0x12e0…12e4 0a 0a 0a 0a ┆ ┆