MyWebUniversity.com Home Page
 



OpenSolaris man pages main menu


Standard C Library Functions   posixspawnattrgetschedpolicy(3C)



NAME
     posixspawnattrgetschedpolicy,
     posixspawnattrsetschedpolicy   -   get   and   set  spawn-
     schedpolicy attribute of spawn attributes object

SYNOPSIS
     #include 
     #include 

     int posixspawnattrgetschedpolicy(
          const posixspawnattrt *restrict attr,
          int *restrict schedpolicy);


     int posixspawnattrsetschedpolicy(posixspawnattrt *attr,
          int schedpolicy);


DESCRIPTION
     The posixspawnattrgetschedpolicy()  function  obtains  the
     value of the spawn-schedpolicy attribute from the attributes
     object referenced by attr.


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


     The spawn-schedpolicy attribute  represents  the  scheduling
     policy  to  be  assigned to the new process image in a spawn
     operation (if POSIXSPAWNSETSCHEDULER is set in the  spawn-
     flags  attribute).  The  default  value of this attribute is
     unspecified.

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


     Upon successful completion, posixspawnattrsetschedpolicy()
     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.




SunOS 5.11          Last change: 30 Jan 2004                    1






Standard C Library Functions   posixspawnattrgetschedpolicy(3C)



     The posixspawnattrsetschedpolicy() 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          Standard                    
    
     MT-Level                     MT-Safe                     
    


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





























SunOS 5.11          Last change: 30 Jan 2004                    2



OpenSolaris man pages main menu

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