84    3.  ++-   

    ;

  .

 posix_spawn()   ,   , -
  ,     -
   ,   .  -
         
,   .    
     ,    
    . ,   -
         .



ftinclude <spawn.h>

int posix_spawn(pid_t ""restrict pid, const char *restrict path,
const posix_spawn_file_actions_t *file_actions,
const posix_spawnattr_t *restrict attrp,
char *const argv[restrict],
char *const envp[restrict]);

int posix_spawnp(pid_t *restrict pid, const char *restrict file,
const posix_spawn_?ile_actions_t *?ile_actions,
const posix_spawnattr_t *restrict attrp,
char *const argv[restrict],
char *const envp[restrict]);

       ,   posix_spawn ()
  path,   posix_spawnp ()   file.  path
  posix_spawn ()       -
 ,   file   posix_spawnp ()    -
 .      " ",   -
 file      .   
         PATH.

 file_actions     
posix_spawn_file_actions_t:

struct posix_spawn_file_actions_t{
{

int _allocated;

int _used;

struct _spawn_action *actions;

int _pad[16] ;

};

 posix_spawn_file_actions_t    ,
      . 
?ile_actions      -
         
.       , 
   ,        -
  .       -
      , , 