Print this page
10067 Miscellaneous man page typos
Reviewed by: Robert Mustacchi <rm@joyent.com>
Reviewed by: Andy Fiddaman <andy@omniosce.org>
Reviewed by: Volker A. Brandt <vab@bb-c.de>

Split Close
Expand all
Collapse all
          --- old/usr/src/man/man3c/pthread_getschedparam.3c
          +++ new/usr/src/man/man3c/pthread_getschedparam.3c
↓ open down ↓ 57 lines elided ↑ open up ↑
  58   58       \fBstruct sched_param *restrict\fR \fIparam\fR);
  59   59  .fi
  60   60  
  61   61  .LP
  62   62  .nf
  63   63  \fBint\fR \fBpthread_setschedparam\fR(\fBpthread_t\fR \fIthread\fR, \fBint\fR \fIpolicy\fR,
  64   64       \fBconst struct sched_param *\fR\fIparam\fR);
  65   65  .fi
  66   66  
  67   67  .SH DESCRIPTION
  68      -.sp
  69   68  .LP
  70   69  The \fBpthread_getschedparam()\fR and \fBpthread_setschedparam()\fR functions
  71   70  allow the scheduling policy and scheduling parameters of individual threads
  72   71  within a multithreaded process to be retrieved and set. Supported policies are
  73   72  :
  74   73  .sp
  75   74  .ne 2
  76   75  .na
  77   76  \fB\fBSCHED_OTHER\fR\fR
  78   77  .ad
↓ open down ↓ 61 lines elided ↑ open up ↑
 140  139  any temporary adjustments to its priority as a result of any priority
 141  140  inheritance or ceiling functions. The \fBpthread_setschedparam()\fR function
 142  141  sets the scheduling policy and associated scheduling parameters for the thread
 143  142  whose thread  \fBID\fR is given by \fIthread\fR to the policy and associated
 144  143  parameters provided in \fIpolicy\fR and \fIparam\fR, respectively.
 145  144  .sp
 146  145  .LP
 147  146  If the \fBpthread_setschedparam()\fR function fails, no scheduling parameters
 148  147  will be changed  for the target thread.
 149  148  .SH RETURN VALUES
 150      -.sp
 151  149  .LP
 152  150  If successful, the \fBpthread_getschedparam()\fR and
 153  151  \fBpthread_setschedparam()\fR functions return  \fB0\fR. Otherwise, an error
 154  152  number is returned to indicate the error.
 155  153  .SH ERRORS
 156      -.sp
 157  154  .LP
 158      -The \fBpthread_getschedparam()\fR and \fBpthread_gsetschedparam()\fR functions
      155 +The \fBpthread_getschedparam()\fR and \fBpthread_setschedparam()\fR functions
 159  156  will fail if:
 160  157  .sp
 161  158  .ne 2
 162  159  .na
 163  160  \fB\fBESRCH\fR\fR
 164  161  .ad
 165  162  .RS 9n
 166  163  The value specified by \fIthread\fR does not refer to an existing thread.
 167  164  .RE
 168  165  
↓ open down ↓ 14 lines elided ↑ open up ↑
 183  180  .ne 2
 184  181  .na
 185  182  \fB\fBEPERM\fR\fR
 186  183  .ad
 187  184  .RS 10n
 188  185  The caller does not have the appropriate permission to set either the
 189  186  scheduling parameters or the scheduling policy of the specified thread.
 190  187  .RE
 191  188  
 192  189  .SH ATTRIBUTES
 193      -.sp
 194  190  .LP
 195  191  See \fBattributes\fR(5) for descriptions of the following attributes:
 196  192  .sp
 197  193  
 198  194  .sp
 199  195  .TS
 200  196  box;
 201  197  c | c
 202  198  l | l .
 203  199  ATTRIBUTE TYPE  ATTRIBUTE VALUE
 204  200  _
 205  201  Interface Stability     Committed
 206  202  _
 207  203  MT-Level        MT-Safe
 208  204  _
 209  205  Standard        See \fBstandards\fR(5).
 210  206  .TE
 211  207  
 212  208  .SH SEE ALSO
 213      -.sp
 214  209  .LP
 215  210  \fBpthread_attr_init\fR(3C), \fBsched_getparam\fR(3C),
 216  211  \fBsched_get_priority_max\fR(3C), \fBsched_get_priority_max\fR(3C),
 217  212  \fBsched_get_priority_min\fR(3C), \fBsched_setparam\fR(3C),
 218  213  \fBsched_getscheduler\fR(3C), \fBsched_setscheduler\fR(3C),
 219  214  \fBattributes\fR(5), \fBpthreads\fR(5), \fBstandards\fR(5)
    
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX