508  



 posix_spawn ()  posix_spawnp ()    
()     .    
    ,     .

       -,   
       :

int main (int argc, char *argv[]);

 argc  , a argv     -
 .  ,  

extern char **environ;

         
   .

 argv         -
 .     (   
argc)    .     ,
    .   argv[0]  -
   ,     ,  
posix_spawn()  posix_spawnp().

 envp         -
 .        . 
   .

 ,      
     ,  {ARG_MAX}.   -
   (.  Base Definitions  IEEE Std 1003.1-
2001, Chapter 2, Conformance)   ,      -
  ,    ,    .

 pa kh,   posix_spawn (),   ,
     .

 file,   posix_spawnp (),   -
  ,      .
  file   " ",   file  -
       .    -
           , 
    PATH (.  Base Definitions  IEEE Std
1003.1-2001, Chapter 8, Environment Variables).      -
,     .

  file_actions   ,   -
,    ,     , 
   ,     "  "
FD_CLOEXEC (.   fcntIO).    -
       , -
   (.   fcnti ()),   .

  flle_actions    NULL,   -
,    ,    -
   ,    , -
      ,  