MyWebUniversity.com Home Page
 



OpenSolaris man pages main menu


Standard C Library Functions    posixspawnattrgetschedparam(3C)



NAME
     posixspawnattrgetschedparam, posixspawnattrsetschedparam
     - get and set spawn-schedparam attribute of spawn attributes
     object

SYNOPSIS
     #include 
     #include 

     int posixspawnattrgetschedparam(const posixspawnattrt *restrict attr,
          struct schedparam *restrict schedparam);


     int posixspawnattrsetschedparam(posixspawnattrt *restrict attr,
          const struct schedparam *restrict schedparam);


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


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


     The spawn-schedparam  attribute  represents  the  scheduling
     parameters  to  be  assigned  to  the new process image in a
     spawn    operation    (if    POSIXSPAWNSETSCHEDULER     or
     POSIXSPAWNSETSCHEDPARAM  is  set in the spawn-flags attri-
     bute). The default value of this attribute is unspecified.

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


     Upon successful completion,  posixspawnattrsetschedparam()
     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    posixspawnattrgetschedparam(3C)



     The posixspawnattrsetschedparam() 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),
     posixspawnattrgetschedpolicy(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 ™