88    3.  ++-   

 . 3.5
                                

ink posix_spawnattr_setsigmask      _ss, -
(posix_spawnattr_t               ,  

restrict attr,       attr,   sigmask,   -
const sigset t                    r    ,, '    "

^   ~  ,        ,,,       _flags      

restrict sigmask);   posiX_SPAWN_SETSIGMASK

int posix_spawnattr_destroy       ,  
(posix_spawnattr_t *attr) ;     attr.      -
         

posix_spawnattr_init()

int posix_spawnattr_init          ,  -
(posix_spawnattr_t *attr) ;      attr, ,  
   , -
   

   posix_spawn ()    
  3.3.

//  3.3.    
//               posix_spawn(), 
//                ps

ttinclude <spawn.h>
ftinclude <stdio.h>
^include <errno.h>
#include <iostream>
{

//. . .

posix_spawnattr_t X;

posix_spawn_file_actions_t Y;

pid_t Pid;

char *const argv[] = {"/bin/ps","-If".NULL};

char *const envp[] = {"PROCESSES=2"} ;

posix_spawnattr_init(&X) ;

posix_spawn_file_actions_init(&Y) ;

posix_spawn(&Pid,"/bin/ps",&Y,&X,argv,envp) ;

perror("posix_spawn") ;

cout  "spawned PID: "  Pid  endl;

//. . .

return(0) ;

}

  3.3   posix_spawnattr_t  posix_spawn_
?ile_actions_t.  posix_spawn()    : Pid,
 " /bin/ps", Y, X,  argv (     
     )   envp,   -
 .     posix_spawn () , -
   Pid,   (PID)  ,
  perror ()   :

posix_spawn: Success