|
|
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: 9335 (0x2477)
Names: »wait.2«
└─⟦50656ff4a⟧ Bits:30010538 TX 3.1 Coldstart
└─⟦bbf173f5c⟧ »0004«
└─⟦this⟧ »./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 70 69 64 20 2d 20 77 61 69 74 20 66 6f 72 20 70 72 6f 63 65 ┆ wait, waitpid - wait for proce┆ 0x00a0…00c0 73 73 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 ┆ss to terminate S S S SY Y Y YN┆ 0x00c0…00e0 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 20 20 20 ┆ N N NT T T TA A A AX X X X ┆ 0x00e0…0100 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 6c 08 6c ┆ # # # #i i i in n n nc c c cl l┆ 0x0100…0120 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 08 3c 08 ┆ l lu u u ud d d de e e e < < < ┆ 0x0120…0140 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 74 08 74 ┆<s s s sy y y ys s s s/ / / /t t┆ 0x0140…0160 08 74 08 74 79 08 79 08 79 08 79 70 08 70 08 70 08 70 65 08 65 08 65 08 65 73 08 73 08 73 08 73 ┆ t ty y y yp p p pe e e es s s s┆ 0x0160…0180 2e 08 2e 08 2e 08 2e 68 08 68 08 68 08 68 3e 08 3e 08 3e 08 3e 0a 20 20 20 20 20 23 08 23 08 23 ┆. . . .h h h h> > > > # # #┆ 0x0180…01a0 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 08 6c 75 08 ┆ #i i i in n n nc c c cl l l lu ┆ 0x01a0…01c0 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 08 73 08 73 ┆u u ud d d de e e e < < < <s s s┆ 0x01c0…01e0 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 08 77 61 08 ┆ sy y y ys s s s/ / / /w w w wa ┆ 0x01e0…0200 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 68 08 68 08 ┆a a ai i i it t t t. . . .h h h ┆ 0x0200…0220 68 3e 08 3e 08 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 ┆h> > > > p p p pi i i id d┆ 0x0220…0240 08 64 08 64 5f 08 5f 08 5f 08 5f 74 08 74 08 74 08 74 20 77 08 77 08 77 08 77 61 08 61 08 61 08 ┆ d d_ _ _ _t t t t w w w wa a a ┆ 0x0240…0260 61 69 08 69 08 69 08 69 74 08 74 08 74 08 74 28 08 28 08 28 08 28 73 08 73 08 73 08 73 74 08 74 ┆ai i i it t t t( ( ( (s s s st t┆ 0x0260…0280 08 74 08 74 61 08 61 08 61 08 61 74 08 74 08 74 08 74 5f 08 5f 08 5f 08 5f 6c 08 6c 08 6c 08 6c ┆ t ta a a at t t t_ _ _ _l l l l┆ 0x0280…02a0 6f 08 6f 08 6f 08 6f 63 08 63 08 63 08 63 29 08 29 08 29 08 29 0a 20 20 20 20 20 69 08 69 08 69 ┆o o o oc c c c) ) ) ) i i i┆ 0x02a0…02c0 08 69 6e 08 6e 08 6e 08 6e 74 08 74 08 74 08 74 20 2a 08 2a 08 2a 08 2a 73 08 73 08 73 08 73 74 ┆ in n n nt t t t * * * *s s s st┆ 0x02c0…02e0 08 74 08 74 08 74 61 08 61 08 61 08 61 74 08 74 08 74 08 74 5f 08 5f 08 5f 08 5f 6c 08 6c 08 6c ┆ t t ta a a at t t t_ _ _ _l l l┆ 0x02e0…0300 08 6c 6f 08 6f 08 6f 08 6f 63 08 63 08 63 08 63 3b 08 3b 08 3b 08 3b 0a 0a 20 20 20 20 20 70 08 ┆ lo o o oc c c c; ; ; ; p ┆ 0x0300…0320 70 08 70 08 70 69 08 69 08 69 08 69 64 08 64 08 64 08 64 5f 08 5f 08 5f 08 5f 74 08 74 08 74 08 ┆p p pi i i id d d d_ _ _ _t t t ┆ 0x0320…0340 74 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 70 08 ┆t w w w wa a a ai i i it t t tp ┆ 0x0340…0360 70 08 70 08 70 69 08 69 08 69 08 69 64 08 64 08 64 08 64 28 08 28 08 28 08 28 70 08 70 08 70 08 ┆p p pi i i id d d d( ( ( (p p p ┆ 0x0360…0380 70 69 08 69 08 69 08 69 64 08 64 08 64 08 64 2c 08 2c 08 2c 08 2c 20 73 08 73 08 73 08 73 74 08 ┆pi i i id d d d, , , , s s s st ┆ 0x0380…03a0 74 08 74 08 74 61 08 61 08 61 08 61 74 08 74 08 74 08 74 5f 08 5f 08 5f 08 5f 6c 08 6c 08 6c 08 ┆t t ta a a at t t t_ _ _ _l l l ┆ 0x03a0…03c0 6c 6f 08 6f 08 6f 08 6f 63 08 63 08 63 08 63 2c 08 2c 08 2c 08 2c 20 6f 08 6f 08 6f 08 6f 70 08 ┆lo o o oc c c c, , , , o o o op ┆ 0x03c0…03e0 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 6e 08 6e 08 6e 08 ┆p p pt t t ti i i io o o on n n ┆ 0x03e0…0400 6e 73 08 73 08 73 08 73 29 08 29 08 29 08 29 0a 20 20 20 20 20 70 08 70 08 70 08 70 69 08 69 08 ┆ns s s s) ) ) ) p p p pi i ┆ 0x0400…0420 69 08 69 64 08 64 08 64 08 64 5f 08 5f 08 5f 08 5f 74 08 74 08 74 08 74 20 70 08 70 08 70 08 70 ┆i id d d d_ _ _ _t t t t p p p p┆ 0x0420…0440 69 08 69 08 69 08 69 64 08 64 08 64 08 64 3b 08 3b 08 3b 08 3b 0a 20 20 20 20 20 69 08 69 08 69 ┆i i i id d d d; ; ; ; i i i┆ 0x0440…0460 08 69 6e 08 6e 08 6e 08 6e 74 08 74 08 74 08 74 20 2a 08 2a 08 2a 08 2a 73 08 73 08 73 08 73 74 ┆ in n n nt t t t * * * *s s s st┆ 0x0460…0480 08 74 08 74 08 74 61 08 61 08 61 08 61 74 08 74 08 74 08 74 5f 08 5f 08 5f 08 5f 6c 08 6c 08 6c ┆ t t ta a a at t t t_ _ _ _l l l┆ 0x0480…04a0 08 6c 6f 08 6f 08 6f 08 6f 63 08 63 08 63 08 63 2c 08 2c 08 2c 08 2c 20 6f 08 6f 08 6f 08 6f 70 ┆ lo o o oc c c c, , , , o o o op┆ 0x04a0…04c0 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 6e 08 6e 08 6e ┆ p p pt t t ti i i io o o on n n┆ 0x04c0…04e0 08 6e 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 ┆ ns s s s; ; ; ; D D D DE E E E┆ 0x04e0…0500 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 ┆ 0x0500…0520 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 ┆ 0x0520…0540 20 20 20 20 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 ┆ _ w_ a_ i_ t and _ w_ a_ i_┆ 0x0540…0560 08 74 5f 08 70 5f 08 69 5f 08 64 20 61 6c 6c 6f 77 20 74 68 65 20 63 61 6c 6c 69 6e 67 20 70 72 ┆ t_ p_ i_ d allow the calling pr┆ 0x0560…0580 6f 63 65 73 73 20 74 6f 20 74 68 65 20 6f 62 74 61 69 6e 0a 20 20 20 20 20 73 74 61 74 75 73 20 ┆ocess to the obtain status ┆ 0x0580…05a0 69 6e 66 6f 72 6d 61 74 69 6f 6e 20 70 65 72 74 61 69 6e 69 6e 67 20 74 6f 20 6f 6e 65 20 6f 66 ┆information pertaining to one of┆ 0x05a0…05c0 20 69 74 73 20 63 68 69 6c 64 20 70 72 6f 63 65 73 73 65 73 2e 0a 20 20 20 20 20 56 61 72 69 6f ┆ its child processes. Vario┆ 0x05c0…05e0 75 73 20 6f 70 74 69 6f 6e 73 20 70 65 72 6d 69 74 20 73 74 61 74 75 73 20 69 6e 66 6f 72 6d 61 ┆us options permit status informa┆ 0x05e0…0600 74 69 6f 6e 20 74 6f 20 62 65 20 6f 62 74 61 69 6e 65 64 20 66 6f 72 0a 20 20 20 20 20 63 68 69 ┆tion to be obtained for chi┆ 0x0600…0620 6c 64 20 70 72 6f 63 65 73 73 65 73 20 74 68 61 74 20 68 61 76 65 20 74 65 72 6d 69 6e 61 74 65 ┆ld processes that have terminate┆ 0x0620…0640 64 20 6f 72 20 73 74 6f 70 70 65 64 2e 20 49 66 20 73 74 61 74 75 73 0a 20 20 20 20 20 69 6e 66 ┆d or stopped. If status inf┆ 0x0640…0660 6f 72 6d 61 74 69 6f 6e 20 69 73 20 61 76 61 69 6c 61 62 6c 65 20 66 6f 72 20 74 77 6f 20 6f 72 ┆ormation is available for two or┆ 0x0660…0680 20 6d 6f 72 65 20 63 68 69 6c 64 20 70 72 6f 63 65 73 73 65 73 2c 0a 20 20 20 20 20 74 68 65 20 ┆ more child processes, the ┆ 0x0680…06a0 6f 72 64 65 72 20 69 6e 20 77 68 69 63 68 20 74 68 65 69 72 20 73 74 61 74 75 73 20 69 73 20 72 ┆order in which their status is r┆ 0x06a0…06c0 65 70 6f 72 74 65 64 20 69 73 20 75 6e 73 70 65 63 69 66 69 65 64 2e 0a 0a 20 20 20 20 20 54 68 ┆eported is unspecified. Th┆ 0x06c0…06e0 65 20 5f 08 77 5f 08 61 5f 08 69 5f 08 74 20 66 75 6e 63 74 69 6f 6e 20 77 69 6c 6c 20 73 75 73 ┆e _ w_ a_ i_ t function will sus┆ 0x06e0…0700 70 65 6e 64 20 65 78 65 63 75 74 69 6f 6e 20 6f 66 20 74 68 65 20 63 61 6c 6c 69 6e 67 20 70 72 ┆pend execution of the calling pr┆ 0x0700…0720 6f 2d 0a 20 20 20 20 20 63 65 73 73 20 75 6e 74 69 6c 20 73 74 61 74 75 73 20 69 6e 66 6f 72 6d ┆o- cess until status inform┆ 0x0720…0740 61 74 69 6f 6e 20 66 6f 72 20 6f 6e 65 20 6f 66 20 69 74 73 20 74 65 72 6d 69 6e 61 74 65 64 0a ┆ation for one of its terminated ┆ 0x0740…0760 20 20 20 20 20 63 68 69 6c 64 20 70 72 6f 63 65 73 73 65 73 20 69 73 20 61 76 61 69 6c 61 62 6c ┆ child processes is availabl┆ 0x0760…0780 65 2c 20 6f 72 20 75 6e 74 69 6c 20 64 65 6c 69 76 65 72 79 20 6f 66 20 61 20 73 69 67 6e 61 6c ┆e, or until delivery of a signal┆ 0x0780…07a0 0a 20 20 20 20 20 77 68 6f 73 65 20 61 63 74 69 6f 6e 20 69 73 20 65 69 74 68 65 72 20 74 6f 20 ┆ whose action is either to ┆ 0x07a0…07c0 65 78 65 63 75 74 65 20 61 20 73 69 67 6e 61 6c 2d 63 61 74 63 68 69 6e 67 20 66 75 6e 63 74 69 ┆execute a signal-catching functi┆ 0x07c0…07e0 6f 6e 0a 20 20 20 20 20 6f 72 20 74 6f 20 74 65 72 6d 69 6e 61 74 65 20 74 68 65 20 70 72 6f 63 ┆on or to terminate the proc┆ 0x07e0…0800 65 73 73 2e 20 49 66 20 73 74 61 74 75 73 20 69 6e 66 6f 72 6d 61 74 69 6f 6e 20 69 73 20 61 76 ┆ess. If status information is av┆ 0x0800…0820 61 69 6c 2d 0a 20 20 20 20 20 61 62 6c 65 20 70 72 69 6f 72 20 74 6f 20 74 68 65 20 63 61 6c 6c ┆ail- able prior to the call┆ 0x0820…0840 20 74 6f 20 5f 08 77 5f 08 61 5f 08 69 5f 08 74 2c 20 72 65 74 75 72 6e 20 77 69 6c 6c 20 62 65 ┆ to _ w_ a_ i_ t, return will be┆ 0x0840…0860 20 69 6d 6d 65 64 69 61 74 65 2e 0a 0a 20 20 20 20 20 5f 08 77 5f 08 61 5f 08 69 5f 08 74 5f 08 ┆ immediate. _ w_ a_ i_ t_ ┆ 0x0860…0880 70 5f 08 69 5f 08 64 20 77 69 6c 6c 20 62 65 68 61 76 65 20 69 64 65 6e 74 69 63 61 6c 6c 79 20 ┆p_ i_ d will behave identically ┆ 0x0880…08a0 74 6f 20 5f 08 77 5f 08 61 5f 08 69 5f 08 74 2c 20 69 66 20 74 68 65 20 5f 08 70 5f 08 69 5f 08 ┆to _ w_ a_ i_ t, if the _ p_ i_ ┆ 0x08a0…08c0 64 20 61 72 67 75 6d 65 6e 74 0a 20 20 20 20 20 68 61 73 20 61 20 76 61 6c 75 65 20 6f 66 20 2d ┆d argument has a value of -┆ 0x08c0…08e0 31 20 61 6e 64 20 74 68 65 20 5f 08 6f 5f 08 70 5f 08 74 5f 08 69 5f 08 6f 5f 08 6e 5f 08 73 20 ┆1 and the _ o_ p_ t_ i_ o_ n_ s ┆ 0x08e0…0900 61 72 67 75 6d 65 6e 74 20 20 68 61 73 20 61 20 76 61 6c 75 65 20 6f 66 0a 20 20 20 20 20 7a 65 ┆argument has a value of ze┆ 0x0900…0920 72 6f 2e 20 4f 74 68 65 72 77 69 73 65 2c 20 69 74 73 20 62 65 68 61 76 69 6f 75 72 20 77 69 6c ┆ro. Otherwise, its behaviour wil┆ 0x0920…0940 6c 20 62 65 20 6d 6f 64 69 66 69 65 64 20 62 79 20 74 68 65 0a 20 20 20 20 20 76 61 6c 75 65 73 ┆l be modified by the values┆ 0x0940…0960 20 6f 66 20 74 68 65 20 5f 08 70 5f 08 69 5f 08 64 20 61 6e 64 20 5f 08 6f 5f 08 70 5f 08 74 5f ┆ of the _ p_ i_ d and _ o_ p_ t_┆ 0x0960…0980 08 69 5f 08 6f 5f 08 6e 5f 08 73 20 61 72 67 75 6d 65 6e 74 73 2e 0a 0a 20 20 20 20 20 54 68 65 ┆ i_ o_ n_ s arguments. The┆ 0x0980…09a0 20 5f 08 70 5f 08 69 5f 08 64 20 61 72 67 75 6d 65 6e 74 20 73 70 65 63 69 66 69 65 73 20 61 20 ┆ _ p_ i_ d argument specifies a ┆ 0x09a0…09c0 73 65 74 20 6f 66 20 63 68 69 6c 64 20 70 72 6f 63 65 73 73 65 73 20 66 6f 72 0a 20 20 20 20 20 ┆set of child processes for ┆ 0x09c0…09e0 77 68 69 63 68 20 73 74 61 74 75 73 20 69 73 20 72 65 71 75 65 73 74 65 64 2e 20 54 68 65 20 5f ┆which status is requested. The _┆ 0x09e0…0a00 08 77 5f 08 61 5f 08 69 5f 08 74 5f 08 70 5f 08 69 5f 08 64 20 66 75 6e 63 74 69 6f 6e 20 77 69 ┆ w_ a_ i_ t_ p_ i_ d function wi┆ 0x0a00…0a20 6c 6c 20 6f 6e 6c 79 0a 20 20 20 20 20 72 65 74 75 72 6e 20 74 68 65 20 73 74 61 74 75 73 20 6f ┆ll only return the status o┆ 0x0a20…0a40 66 20 61 20 63 68 69 6c 64 20 70 72 6f 63 65 73 73 20 66 72 6f 6d 20 74 68 69 73 20 73 65 74 3a ┆f a child process from this set:┆ 0x0a40…0a60 0a 0a 20 20 20 20 20 6f 08 2b 20 20 49 66 20 5f 08 70 5f 08 69 5f 08 64 20 69 73 20 65 71 75 61 ┆ o + If _ p_ i_ d is equa┆ 0x0a60…0a80 6c 20 74 6f 20 2d 31 2c 20 73 74 61 74 75 73 20 69 73 20 72 65 71 75 65 73 74 65 64 20 66 6f 72 ┆l to -1, status is requested for┆ 0x0a80…0aa0 20 61 6e 79 20 63 68 69 6c 64 0a 20 20 20 20 20 20 20 20 70 72 6f 63 65 73 73 2e 20 49 6e 20 74 ┆ any child process. In t┆ 0x0aa0…0ac0 68 69 73 20 72 65 73 70 65 63 74 2c 20 5f 08 77 5f 08 61 5f 08 69 5f 08 74 5f 08 70 5f 08 69 5f ┆his respect, _ w_ a_ i_ t_ p_ i_┆ 0x0ac0…0ae0 08 64 20 69 73 20 74 68 65 6e 20 65 71 75 69 76 61 6c 65 6e 74 20 74 6f 0a 20 20 20 20 20 20 20 ┆ d is then equivalent to ┆ 0x0ae0…0b00 20 5f 08 77 5f 08 61 5f 08 69 5f 08 74 2e 0a 0a 20 20 20 20 20 6f 08 2b 20 20 49 66 20 5f 08 70 ┆ _ w_ a_ i_ t. o + If _ p┆ 0x0b00…0b20 5f 08 69 5f 08 64 20 69 73 20 67 72 65 61 74 65 72 20 74 68 61 6e 20 7a 65 72 6f 2c 20 69 74 20 ┆_ i_ d is greater than zero, it ┆ 0x0b20…0b40 73 70 65 63 69 66 65 73 20 74 68 65 20 70 72 6f 63 65 73 73 20 49 44 0a 20 20 20 20 20 20 20 20 ┆specifes the process ID ┆ 0x0b40…0b60 6f 66 20 61 20 73 69 6e 67 6c 65 20 63 68 69 6c 64 20 70 72 6f 63 65 73 73 20 66 6f 72 20 77 68 ┆of a single child process for wh┆ 0x0b60…0b80 69 63 68 20 73 74 61 74 75 73 20 69 73 20 72 65 71 75 65 73 74 65 64 2e 0a 0a 20 20 20 20 20 6f ┆ich status is requested. o┆ 0x0b80…0ba0 08 2b 20 20 49 66 20 5f 08 70 5f 08 69 5f 08 64 20 69 73 20 65 71 75 61 6c 20 74 6f 20 7a 65 72 ┆ + If _ p_ i_ d is equal to zer┆ 0x0ba0…0bc0 6f 2c 20 73 74 61 74 75 73 20 69 73 20 72 65 71 75 65 73 74 65 64 20 66 6f 72 20 61 6e 79 0a 20 ┆o, status is requested for any ┆ 0x0bc0…0be0 20 20 20 20 20 20 20 63 68 69 6c 64 20 70 72 6f 63 65 73 73 20 77 68 6f 73 65 20 70 72 6f 63 65 ┆ child process whose proce┆ 0x0be0…0c00 73 73 20 67 72 6f 75 70 20 49 44 20 69 73 20 65 71 75 61 6c 20 74 6f 20 74 68 61 74 20 6f 66 0a ┆ss group ID is equal to that of ┆ 0x0c00…0c20 20 20 20 20 20 20 20 20 74 68 65 20 63 61 6c 6c 69 6e 67 20 70 72 6f 63 65 73 73 2e 0a 0a 20 20 ┆ the calling process. ┆ 0x0c20…0c40 20 20 20 6f 08 2b 20 20 49 66 20 5f 08 70 5f 08 69 5f 08 64 20 69 73 20 6c 65 73 73 20 74 68 61 ┆ o + If _ p_ i_ d is less tha┆ 0x0c40…0c60 6e 20 2d 31 2c 20 73 74 61 74 75 73 20 69 73 20 72 65 71 75 65 73 74 65 64 20 66 6f 72 20 61 6e ┆n -1, status is requested for an┆ 0x0c60…0c80 79 20 63 68 69 6c 64 0a 20 20 20 20 20 20 20 20 70 72 6f 63 65 73 73 20 77 68 6f 73 65 20 70 72 ┆y child process whose pr┆ 0x0c80…0ca0 6f 63 65 73 73 20 67 72 6f 75 70 20 49 44 20 69 73 20 65 71 75 61 6c 20 74 6f 20 74 68 65 20 61 ┆ocess group ID is equal to the a┆ 0x0ca0…0cc0 62 73 6f 6c 75 74 65 0a 20 20 20 20 20 20 20 20 76 61 6c 75 65 20 6f 66 20 5f 08 70 5f 08 69 5f ┆bsolute value of _ p_ i_┆ 0x0cc0…0ce0 08 64 2e 0a 0a 20 20 20 20 20 54 68 65 20 5f 08 6f 5f 08 70 5f 08 74 5f 08 69 5f 08 6f 5f 08 6e ┆ d. The _ o_ p_ t_ i_ o_ n┆ 0x0ce0…0d00 5f 08 73 20 61 72 67 75 6d 65 6e 74 20 69 73 20 63 6f 6e 73 74 72 75 63 74 65 64 20 66 72 6f 6d ┆_ s argument is constructed from┆ 0x0d00…0d20 20 74 68 65 20 62 69 74 77 69 73 65 2d 0a 20 20 20 20 20 69 6e 63 6c 75 73 69 76 65 20 4f 52 20 ┆ the bitwise- inclusive OR ┆ 0x0d20…0d40 6f 66 20 7a 65 72 6f 20 6f 72 20 6d 6f 72 65 20 6f 66 20 74 68 65 20 66 6f 6c 6c 6f 77 69 6e 67 ┆of zero or more of the following┆ 0x0d40…0d60 20 66 6c 61 67 73 2c 20 64 65 66 69 6e 65 64 0a 20 20 20 20 20 69 6e 20 74 68 65 20 68 65 61 64 ┆ flags, defined in the head┆ 0x0d60…0d80 65 72 20 3c 08 3c 08 3c 08 3c 73 08 73 08 73 08 73 79 08 79 08 79 08 79 73 08 73 08 73 08 73 2f ┆er < < < <s s s sy y y ys s s s/┆ 0x0d80…0da0 08 2f 08 2f 08 2f 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 ┆ / / /w w w wa a a ai i i it t t┆ 0x0da0…0dc0 08 74 2e 08 2e 08 2e 08 2e 68 08 68 08 68 08 68 3e 08 3e 08 3e 08 3e 2e 0a 0a 20 20 20 20 20 57 ┆ t. . . .h h h h> > > >. W┆ 0x0dc0…0de0 4e 4f 48 41 4e 47 20 20 20 20 20 20 20 20 54 68 65 20 5f 08 77 5f 08 61 5f 08 69 5f 08 74 5f 08 ┆NOHANG The _ w_ a_ i_ t_ ┆ 0x0de0…0e00 70 5f 08 69 5f 08 64 20 66 75 6e 63 74 69 6f 6e 20 77 69 6c 6c 20 6e 6f 74 20 73 75 73 70 65 6e ┆p_ i_ d function will not suspen┆ 0x0e00…0e20 64 20 65 78 65 63 75 2d 0a 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 74 69 6f ┆d execu- tio┆ 0x0e20…0e40 6e 20 6f 66 20 74 68 65 20 63 61 6c 6c 69 6e 67 20 70 72 6f 63 65 73 73 20 69 66 20 73 74 61 74 ┆n of the calling process if stat┆ 0x0e40…0e60 75 73 20 69 73 20 6e 6f 74 0a 0a 0a 0a 0a 0a 0a 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 ┆us is not ┆ 0x0e60…0e80 20 20 20 20 69 6d 6d 65 64 69 61 74 65 6c 79 20 61 76 61 69 6c 61 62 6c 65 20 66 6f 72 20 6f 6e ┆ immediately available for on┆ 0x0e80…0ea0 65 20 6f 66 20 74 68 65 20 63 68 69 6c 64 0a 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 ┆e of the child ┆ 0x0ea0…0ec0 20 20 20 70 72 6f 63 65 73 73 65 73 20 73 70 65 63 69 66 69 65 64 20 62 79 20 5f 08 70 5f 08 69 ┆ processes specified by _ p_ i┆ 0x0ec0…0ee0 5f 08 64 2e 0a 0a 20 20 20 20 20 57 55 4e 54 52 41 43 45 44 20 20 20 20 20 20 54 68 65 20 73 74 ┆_ d. WUNTRACED The st┆ 0x0ee0…0f00 61 74 75 73 20 6f 66 20 61 6e 79 20 63 68 69 6c 64 20 70 72 6f 63 65 73 73 65 73 20 73 70 65 63 ┆atus of any child processes spec┆ 0x0f00…0f20 69 66 69 65 64 0a 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 62 79 20 5f 08 70 ┆ified by _ p┆ 0x0f20…0f40 5f 08 69 5f 08 64 20 74 68 61 74 20 61 72 65 20 73 74 6f 70 70 65 64 2c 20 61 6e 64 20 77 68 6f ┆_ i_ d that are stopped, and who┆ 0x0f40…0f60 73 65 20 73 74 61 74 75 73 20 68 61 73 0a 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 ┆se status has ┆ 0x0f60…0f80 20 20 6e 6f 74 20 79 65 74 20 62 65 65 6e 20 72 65 70 6f 72 74 65 64 20 73 69 6e 63 65 20 74 68 ┆ not yet been reported since th┆ 0x0f80…0fa0 65 79 20 73 74 6f 70 70 65 64 2c 0a 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 ┆ey stopped, ┆ 0x0fa0…0fc0 77 69 6c 6c 20 61 6c 73 6f 20 62 65 20 72 65 70 6f 72 74 65 64 20 74 6f 20 74 68 65 20 72 65 71 ┆will also be reported to the req┆ 0x0fc0…0fe0 75 65 73 74 69 6e 67 20 70 72 6f 2d 0a 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 ┆uesting pro- ┆ 0x0fe0…1000 20 63 65 73 73 2e 0a 0a 20 20 20 20 20 49 66 20 5f 08 77 5f 08 61 5f 08 69 5f 08 74 20 6f 72 20 ┆ cess. If _ w_ a_ i_ t or ┆ 0x1000…1020 5f 08 77 5f 08 61 5f 08 69 5f 08 74 5f 08 70 5f 08 69 5f 08 64 20 72 65 74 75 72 6e 20 62 65 63 ┆_ w_ a_ i_ t_ p_ i_ d return bec┆ 0x1020…1040 61 75 73 65 20 74 68 65 20 73 74 61 74 75 73 20 6f 66 20 61 20 63 68 69 6c 64 20 70 72 6f 2d 0a ┆ause the status of a child pro- ┆ 0x1040…1060 20 20 20 20 20 63 65 73 73 20 69 73 20 61 76 61 69 6c 61 62 6c 65 2c 20 74 68 65 73 65 20 66 75 ┆ cess is available, these fu┆ 0x1060…1080 6e 63 74 69 6f 6e 73 20 77 69 6c 6c 20 72 65 74 75 72 6e 20 61 20 76 61 6c 75 65 20 65 71 75 61 ┆nctions will return a value equa┆ 0x1080…10a0 6c 0a 20 20 20 20 20 74 6f 20 74 68 65 20 70 72 6f 63 65 73 73 20 49 44 20 6f 66 20 74 68 65 20 ┆l to the process ID of the ┆ 0x10a0…10c0 63 68 69 6c 64 20 70 72 6f 63 65 73 73 2e 20 49 6e 20 74 68 69 73 20 63 61 73 65 2c 20 69 66 20 ┆child process. In this case, if ┆ 0x10c0…10e0 74 68 65 0a 20 20 20 20 20 76 61 6c 75 65 20 6f 66 20 74 68 65 20 61 72 67 75 6d 65 6e 74 20 5f ┆the value of the argument _┆ 0x10e0…1100 08 73 5f 08 74 5f 08 61 5f 08 74 5f 5f 08 6c 5f 08 6f 5f 08 63 20 69 73 20 6e 6f 74 20 6e 75 6c ┆ s_ t_ a_ t__ l_ o_ c is not nul┆ 0x1100…1120 6c 2c 20 69 6e 66 6f 72 6d 61 74 69 6f 6e 20 77 69 6c 6c 0a 20 20 20 20 20 62 65 20 73 74 6f 72 ┆l, information will be stor┆ 0x1120…1140 65 64 20 69 6e 20 74 68 65 20 6c 6f 63 61 74 69 6f 6e 20 70 6f 69 6e 74 65 64 20 74 6f 20 62 79 ┆ed in the location pointed to by┆ 0x1140…1160 20 5f 08 73 5f 08 74 5f 08 61 5f 08 74 5f 5f 08 6c 5f 08 6f 5f 08 63 2e 20 20 49 66 20 61 6e 64 ┆ _ s_ t_ a_ t__ l_ o_ c. If and┆ 0x1160…1180 0a 20 20 20 20 20 6f 6e 6c 79 20 69 66 20 74 68 65 20 73 74 61 74 75 73 20 72 65 74 75 72 6e 65 ┆ only if the status returne┆ 0x1180…11a0 64 20 69 73 20 66 72 6f 6d 20 61 20 74 65 72 6d 69 6e 61 74 65 64 20 63 68 69 6c 64 20 70 72 6f ┆d is from a terminated child pro┆ 0x11a0…11c0 2d 0a 20 20 20 20 20 63 65 73 73 20 74 68 61 74 20 72 65 74 75 72 6e 65 64 20 61 20 76 61 6c 75 ┆- cess that returned a valu┆ 0x11c0…11e0 65 20 6f 66 20 7a 65 72 6f 20 66 72 6f 6d 20 5f 08 6d 5f 08 61 5f 08 69 5f 08 6e 28 29 20 6f 72 ┆e of zero from _ m_ a_ i_ n() or┆ 0x11e0…1200 20 70 61 73 73 65 64 20 61 0a 20 20 20 20 20 76 61 6c 75 65 20 6f 66 20 7a 65 72 6f 20 61 73 20 ┆ passed a value of zero as ┆ 0x1200…1220 74 68 65 20 5f 08 73 5f 08 74 5f 08 61 5f 08 74 5f 08 75 5f 08 73 20 61 72 67 75 6d 65 6e 74 20 ┆the _ s_ t_ a_ t_ u_ s argument ┆ 0x1220…1240 74 6f 20 5f 5f 08 65 5f 08 78 5f 08 69 5f 08 74 28 29 20 6f 72 20 5f 08 65 5f 08 78 5f 08 69 5f ┆to __ e_ x_ i_ t() or _ e_ x_ i_┆ 0x1240…1260 08 74 28 29 2c 0a 20 20 20 20 20 74 68 65 20 76 61 6c 75 65 20 73 74 6f 72 65 64 20 61 74 20 74 ┆ t(), the value stored at t┆ 0x1260…1280 68 65 20 6c 6f 63 61 74 69 6f 6e 20 70 6f 69 6e 74 65 64 20 74 6f 20 62 79 20 5f 08 73 5f 08 74 ┆he location pointed to by _ s_ t┆ 0x1280…12a0 5f 08 61 5f 08 74 5f 5f 08 6c 5f 08 6f 5f 08 63 20 77 69 6c 6c 0a 20 20 20 20 20 62 65 20 7a 65 ┆_ a_ t__ l_ o_ c will be ze┆ 0x12a0…12c0 72 6f 2e 20 52 65 67 61 72 64 6c 65 73 73 20 6f 66 20 69 74 73 20 76 61 6c 75 65 2c 20 74 68 69 ┆ro. Regardless of its value, thi┆ 0x12c0…12e0 73 20 69 6e 66 6f 72 6d 61 74 69 6f 6e 20 6d 61 79 20 62 65 0a 20 20 20 20 20 69 6e 74 65 72 70 ┆s information may be interp┆ 0x12e0…1300 72 65 74 65 64 20 75 73 69 6e 67 20 74 68 65 20 66 6f 6c 6c 6f 77 69 6e 67 20 6d 61 63 72 6f 73 ┆reted using the following macros┆ 0x1300…1320 2c 20 77 68 69 63 68 20 61 72 65 20 64 65 66 69 6e 65 64 20 69 6e 0a 20 20 20 20 20 3c 08 3c 08 ┆, which are defined in < < ┆ 0x1320…1340 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 77 ┆< <s s s sy y y ys s s s/ / / /w┆ 0x1340…1360 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 2e 08 2e 08 2e ┆ w w wa a a ai i i it t t t. . .┆ 0x1360…1380 08 2e 68 08 68 08 68 08 68 3e 08 3e 08 3e 08 3e 20 61 6e 64 20 65 76 61 6c 75 61 74 65 20 74 6f ┆ .h h h h> > > > and evaluate to┆ 0x1380…13a0 20 69 6e 74 65 67 72 61 6c 20 65 78 70 72 65 73 73 69 6f 6e 73 3b 20 74 68 65 0a 20 20 20 20 20 ┆ integral expressions; the ┆ 0x13a0…13c0 5f 08 73 5f 08 74 5f 08 61 5f 08 74 5f 5f 08 76 5f 08 61 5f 08 6c 20 61 72 67 75 6d 65 6e 74 20 ┆_ s_ t_ a_ t__ v_ a_ l argument ┆ 0x13c0…13e0 69 73 20 74 68 65 20 69 6e 74 65 67 65 72 20 76 61 6c 75 65 20 70 6f 69 6e 74 65 64 20 74 6f 20 ┆is the integer value pointed to ┆ 0x13e0…1400 62 79 0a 20 20 20 20 20 5f 08 73 5f 08 74 5f 08 61 5f 08 74 5f 5f 08 6c 5f 08 6f 5f 08 63 2e 0a ┆by _ s_ t_ a_ t__ l_ o_ c. ┆ 0x1400…1420 0a 20 20 20 20 20 57 49 46 45 58 49 54 45 44 28 73 74 61 74 5f 76 61 6c 29 20 45 76 61 6c 75 61 ┆ WIFEXITED(stat_val) Evalua┆ 0x1420…1440 74 65 73 20 74 6f 20 61 20 6e 6f 6e 2d 7a 65 72 6f 20 76 61 6c 75 65 20 69 66 20 73 74 61 74 75 ┆tes to a non-zero value if statu┆ 0x1440…1460 73 0a 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 77 61 73 20 72 ┆s was r┆ 0x1460…1480 65 74 75 72 6e 65 64 20 66 6f 72 20 61 20 63 68 69 6c 64 20 70 72 6f 63 65 73 73 20 74 68 61 74 ┆eturned for a child process that┆ 0x1480…14a0 0a 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 74 65 72 6d 69 6e ┆ termin┆ 0x14a0…14c0 61 74 65 64 20 6e 6f 72 6d 61 6c 6c 79 2e 0a 0a 20 20 20 20 20 57 45 58 49 54 53 54 41 54 55 53 ┆ated normally. WEXITSTATUS┆ 0x14c0…14e0 28 73 74 61 74 5f 76 61 6c 29 0a 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 ┆(stat_val) ┆ 0x14e0…1500 20 20 20 20 49 66 20 74 68 65 20 76 61 6c 75 65 20 6f 66 20 57 49 46 45 58 49 54 45 44 28 5f 08 ┆ If the value of WIFEXITED(_ ┆ 0x1500…1520 73 5f 08 74 5f 08 61 5f 08 74 5f 5f 08 76 5f 08 61 5f 08 6c 29 20 69 73 0a 20 20 20 20 20 20 20 ┆s_ t_ a_ t__ v_ a_ l) is ┆ 0x1520…1540 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 6e 6f 6e 2d 7a 65 72 6f 2c 20 74 68 69 73 ┆ non-zero, this┆ 0x1540…1560 20 6d 61 63 72 6f 20 65 76 61 6c 75 61 74 65 73 20 74 6f 20 74 68 65 0a 20 20 20 20 20 20 20 20 ┆ macro evaluates to the ┆ 0x1560…1580 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 6c 6f 77 2d 6f 72 64 65 72 20 38 20 62 69 74 ┆ low-order 8 bit┆ 0x1580…15a0 73 20 6f 66 20 74 68 65 20 5f 08 73 5f 08 74 5f 08 61 5f 08 74 5f 08 75 5f 08 73 20 61 72 67 75 ┆s of the _ s_ t_ a_ t_ u_ s argu┆ 0x15a0…15c0 6d 65 6e 74 0a 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 74 68 ┆ment th┆ 0x15c0…15e0 61 74 20 74 68 65 20 63 68 69 6c 64 20 70 72 6f 63 65 73 73 20 70 61 73 73 65 64 20 74 6f 20 5f ┆at the child process passed to _┆ 0x15e0…1600 5f 08 65 5f 08 78 5f 08 69 5f 08 74 0a 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 ┆_ e_ x_ i_ t ┆ 0x1600…1620 20 20 20 20 20 20 6f 72 20 5f 08 65 5f 08 78 5f 08 69 5f 08 74 2c 20 6f 72 20 74 68 65 20 76 61 ┆ or _ e_ x_ i_ t, or the va┆ 0x1620…1640 6c 75 65 20 74 68 65 20 63 68 69 6c 64 20 70 72 6f 63 65 73 73 0a 20 20 20 20 20 20 20 20 20 20 ┆lue the child process ┆ 0x1640…1660 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 72 65 74 75 72 6e 65 64 20 66 72 6f 6d 20 5f 08 6d ┆ returned from _ m┆ 0x1660…1680 5f 08 61 5f 08 69 5f 08 6e 28 29 2e 0a 0a 20 20 20 20 20 57 49 46 53 49 47 4e 41 4c 45 44 28 73 ┆_ a_ i_ n(). WIFSIGNALED(s┆ 0x1680…16a0 74 61 74 5f 76 61 6c 29 0a 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 ┆tat_val) ┆ 0x16a0…16c0 20 20 45 76 61 6c 75 61 74 65 73 20 74 6f 20 6e 6f 6e 2d 7a 65 72 6f 20 76 61 6c 75 65 20 69 66 ┆ Evaluates to non-zero value if┆ 0x16c0…16e0 20 73 74 61 74 75 73 0a 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 ┆ status ┆ 0x16e0…1700 20 77 61 73 20 72 65 74 75 72 6e 65 64 20 66 6f 72 20 61 20 63 68 69 6c 64 20 70 72 6f 63 65 73 ┆ was returned for a child proces┆ 0x1700…1720 73 20 74 68 61 74 0a 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 ┆s that ┆ 0x1720…1740 74 65 72 6d 69 6e 61 74 65 64 20 64 75 65 20 74 6f 20 74 68 65 20 72 65 63 65 69 70 74 20 6f 66 ┆terminated due to the receipt of┆ 0x1740…1760 20 61 20 73 69 67 2d 0a 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 ┆ a sig- ┆ 0x1760…1780 20 6e 61 6c 20 74 68 61 74 20 77 61 73 20 6e 6f 74 20 63 61 75 67 68 74 2e 0a 0a 20 20 20 20 20 ┆ nal that was not caught. ┆ 0x1780…17a0 57 54 45 52 4d 53 49 47 28 73 74 61 74 5f 76 61 6c 29 20 20 49 66 20 74 68 65 20 76 61 6c 75 65 ┆WTERMSIG(stat_val) If the value┆ 0x17a0…17c0 20 6f 66 20 57 49 46 53 49 47 4e 41 4c 45 44 28 5f 08 73 5f 08 74 5f 08 61 5f 08 74 5f 5f 08 76 ┆ of WIFSIGNALED(_ s_ t_ a_ t__ v┆ 0x17c0…17e0 5f 08 61 5f 08 6c 29 20 69 73 0a 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 ┆_ a_ l) is ┆ 0x17e0…1800 20 20 20 20 6e 6f 6e 2d 7a 65 72 6f 2c 20 74 68 69 73 20 6d 61 63 72 6f 20 65 76 61 6c 75 61 74 ┆ non-zero, this macro evaluat┆ 0x1800…1820 65 73 20 74 6f 20 74 68 65 0a 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 ┆es to the ┆ 0x1820…1840 20 20 20 6e 75 6d 62 65 72 20 6f 66 20 74 68 65 20 73 69 67 6e 61 6c 20 74 68 61 74 20 63 61 75 ┆ number of the signal that cau┆ 0x1840…1860 73 65 64 20 74 68 65 0a 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 ┆sed the ┆ 0x1860…1880 20 74 65 72 6d 69 6e 61 74 69 6f 6e 20 6f 66 20 74 68 65 20 63 68 69 6c 64 20 70 72 6f 63 65 73 ┆ termination of the child proces┆ 0x1880…18a0 73 2e 0a 0a 20 20 20 20 20 57 49 46 53 54 4f 50 50 45 44 28 73 74 61 74 5f 76 61 6c 29 0a 20 20 ┆s. WIFSTOPPED(stat_val) ┆ 0x18a0…18c0 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 45 76 61 6c 75 61 74 65 73 ┆ Evaluates┆ 0x18c0…18e0 20 74 6f 20 61 20 6e 6f 6e 2d 7a 65 72 6f 20 76 61 6c 75 65 20 69 66 20 73 74 61 74 75 73 0a 20 ┆ to a non-zero value if status ┆ 0x18e0…1900 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 77 61 73 20 72 65 74 75 ┆ was retu┆ 0x1900…1920 72 6e 65 64 20 66 6f 72 20 61 20 63 68 69 6c 64 20 70 72 6f 63 65 73 73 20 74 68 61 74 20 69 73 ┆rned for a child process that is┆ […truncated at 200 lines…]