   C++,  C++Builder, API Windows________________877

        -
:

 0-7         1                          

2                          

3                           -


 8-15        

    wait   -
 .    -1,    
EINTR    ,  ECHILD   -
 .

 cwait  wait,    .  
statloc,       : pid  action.  -
 pid   0,  ,     -
  .     pid    -
   .    -
   .

 action      : WAIT_CHILD 
    ,  WAIT_GRANDCHILD 
      ,    
,  .

    spawn... .   
 ...,       -
  mode,     . 
    :

P_WAIT          ,
     

P_NOWAIT      -
  .    ID -
 ,    cwait 
wait,      -
.     16- Windows  DOS

P_NOWAITO  P_NOWAIT,  ID    -
  ,    
cwait  wait 

P_DETACH   P_NOWAITO,    
  ,         -


P_OVERLAY      .  ,
    ...

 . 

if(spawnip(P_WAIT,"arj","arj","e doc.arj al.txt", NULL))
ShowMessage(" arj  ");

else
f
Memol->Clear();