3.6.     85

          
 .   file_actions   ,  -
 ,   ,     -
  - . ,    
     posix_spawn_file_actions,  . 3.4.

 3.4. ,      

   posix_spawn_?iie_actions

                            

int                                       close ()  
posix_spawn_file_actions_addclose       ,  -
(posix_spawn_file_actions_t          file_actions.  -

-. - , .       1 eac lc)ns'          
int fildes);                                     ,     ,   '

     

  tildes

int                                       open ()  
posix_spawn_file_actions_addopen         ,  -

(posix_spawn_file_actions_t         file actions.  -

*?ile actions,           -       -           /
.     .                                 

const^char' ^restrict path,              
int oflag, mode_t mode);           ^'   path,
   fildes

int                                       dup2 ()  
posix_spawn_file_actions_adddup2         ,  -
(posix_spawn_fne_actions_t          file_actions.  -

-. - -    .      actions,       ^      
int fildes, int new fildes ;              '             1

     

    
fildes   
 newfildes

int                                      ,  -
posix_spawn_?ile_actions_destroy       file_actions,  
(posix_spawn_?ne_actions_t            . -
ti exactions) ,      ^.^ ^^   -
         
posix_spawn_file_actions_init()

int                                      , 
posix_spawn_file_actions_init           ?ile_actions. 
(posix_spawn_fne_actions_t             
1 ^^ lons) '       , 
   

 attrp    posix_spawnattr_t:

struct posix_spawnattr_t
{

short int _flags;

pid_t _pgrp;