MyWebUniversity.com Home Page
 



OpenSolaris man pages main menu


Standard C Library Functions         posixspawnattrgetflags(3C)



NAME
     posixspawnattrgetflags, posixspawnattrsetflags - get and
     set spawn-flags attribute of spawn attributes object

SYNOPSIS
     #include 

     int posixspawnattrgetflags(const posixspawnattrt *restrict attr,
          short *restrict flags);


     int posixspawnattrsetflags(posixspawnattrt * attr, short flags);


DESCRIPTION
     The posixspawnattrgetflags() function obtains the value of
     the  spawn-flags attribute from the attributes object refer-
     enced by attr.


     The posixspawnattrsetflags() function sets the spawn-flags
     attribute  in an initialized attributes object referenced by
     attr.


     The spawn-flags attribute is used to indicate which  process
     attributes  are  to be changed in the new process image when
     invoking posixspawn(3C) or posixspawnp(3C). It is the bit-
     wise inclusive-OR of zero or more of the following flags:
       POSIXSPAWNRESETIDS
       POSIXSPAWNSETPGROUP
       POSIXSPAWNSETSIGDEF
       POSIXSPAWNSETSIGMASK
       POSIXSPAWNSETSCHEDPARAM
       POSIXSPAWNSETSCHEDULER
       POSIXSPAWNOSIGCHLDNP
       POSIXSPAWNWAITPIDNP
       POSIXSPAWNOEXECERNP


     These flags are defined in . The default  value  of
     this attribute is as if no flags were set.

RETURN VALUES
     Upon   successful   completion,   posixspawnattrgetflags()
     returns  0 and stores the value of the spawn-flags attribute
     of attr into the object referenced by the  flags  parameter.
     Otherwise,  an  error  number  is  returned  to indicate the
     error.






SunOS 5.11          Last change: 25 Sep 2008                    1






Standard C Library Functions         posixspawnattrgetflags(3C)



     Upon   successful   completion,   posixspawnattrsetflags()
     returns  0.  Otherwise, an error number is returned to indi-
     cate the error.

ERORS
     These functions may fail if:

     EINVAL    The value specified by attr is invalid.



     The posixspawnattrsetflags() function may fail if:

     EINVAL    The value of the attribute being set is not valid.


ATRIBUTES
     See attributes(5) for descriptions of the  following  attri-
     butes:



     
           ATRIBUTE TYPE               ATRIBUTE VALUE       
    
     Interface Stability          Committed                   
    
     MT-Level                     MT-Safe                     
    
     Standard                     See standards(5).           
    


SEE ALSO
     posixspawn(3C),                posixspawnattrdestroy(3C),
     posixspawnattrgetpgroup(3C),
     posixspawnattrgetschedparam(3C),
     posixspawnattrgetschedpolicy(3C),
     posixspawnattrgetsigdefault(3C),
     posixspawnattrgetsigmask(3C), attributes(5), standards(5)















SunOS 5.11          Last change: 25 Sep 2008                    2



OpenSolaris man pages main menu

Contact us      |       About us      |       Term of use      |       Copyright © 2000-2010 MyWebUniversity.com ™