Libraries updates and cleanup
* Updating common/lib * Updating lib/csu * Updating lib/libc * Updating libexec/ld.elf_so * Corrected test on __minix in featuretest to actually follow the meaning of the comment. * Cleaned up _REENTRANT-related defintions. * Disabled -D_REENTRANT for libfetch * Removing some unneeded __NBSD_LIBC defines and tests Change-Id: Ic1394baef74d11b9f86b312f5ff4bbc3cbf72ce2
This commit is contained in:
@@ -1,4 +1,4 @@
|
||||
.\" $NetBSD: getpriority.2,v 1.18 2009/03/11 13:39:14 joerg Exp $
|
||||
.\" $NetBSD: getpriority.2,v 1.20 2012/04/13 16:32:15 wiz Exp $
|
||||
.\"
|
||||
.\" Copyright (c) 1980, 1991, 1993
|
||||
.\" The Regents of the University of California. All rights reserved.
|
||||
@@ -29,7 +29,7 @@
|
||||
.\"
|
||||
.\" @(#)getpriority.2 8.1 (Berkeley) 6/4/93
|
||||
.\"
|
||||
.Dd April 25, 2004
|
||||
.Dd April 13, 2012
|
||||
.Dt GETPRIORITY 2
|
||||
.Os
|
||||
.Sh NAME
|
||||
@@ -55,6 +55,12 @@ is obtained with the
|
||||
call and set with the
|
||||
.Fn setpriority
|
||||
call.
|
||||
.Pp
|
||||
The priority is maintained in a per-process basis and
|
||||
affects scheduling of LWPs which belong to the process and use the
|
||||
.Dv SCHED_OTHER
|
||||
scheduling class.
|
||||
.Pp
|
||||
.Fa which
|
||||
is one of
|
||||
.Dv PRIO_PROCESS ,
|
||||
@@ -78,7 +84,7 @@ denotes the current process, process group, or user.
|
||||
.Fa prio
|
||||
is a value in the range -20 to 20.
|
||||
The default priority is 0;
|
||||
lower priorities cause more favorable scheduling.
|
||||
numerically lower priority values cause more favorable scheduling.
|
||||
A value of 19 or 20
|
||||
will schedule a process only when nothing at priority \*(Le 0 is runnable.
|
||||
.Pp
|
||||
@@ -90,7 +96,7 @@ The
|
||||
.Fn setpriority
|
||||
call sets the priorities of all of the specified processes
|
||||
to the specified value.
|
||||
Only the super-user may lower priorities.
|
||||
Only the super-user may lower priority values.
|
||||
.Sh RETURN VALUES
|
||||
Since
|
||||
.Fn getpriority
|
||||
@@ -110,12 +116,6 @@ and
|
||||
.Fn setpriority
|
||||
will fail if:
|
||||
.Bl -tag -width Er
|
||||
.It Bq Er ESRCH
|
||||
No process was located using the
|
||||
.Fa which
|
||||
and
|
||||
.Fa who
|
||||
values specified.
|
||||
.It Bq Er EINVAL
|
||||
.Fa which
|
||||
was not one of
|
||||
@@ -123,21 +123,28 @@ was not one of
|
||||
.Dv PRIO_PGRP ,
|
||||
or
|
||||
.Dv PRIO_USER .
|
||||
.It Bq Er ESRCH
|
||||
No process was located using the
|
||||
.Fa which
|
||||
and
|
||||
.Fa who
|
||||
values specified.
|
||||
.El
|
||||
.Pp
|
||||
In addition to the errors indicated above,
|
||||
.Fn setpriority
|
||||
will fail if:
|
||||
.Bl -tag -width Er
|
||||
.It Bq Er EACCES
|
||||
A non super-user attempted to lower a process priority value.
|
||||
.It Bq Er EPERM
|
||||
A process was located, but neither its effective nor real user
|
||||
ID matched the effective user ID of the caller.
|
||||
.It Bq Er EACCES
|
||||
A non super-user attempted to lower a process priority.
|
||||
.El
|
||||
.Sh SEE ALSO
|
||||
.Xr nice 1 ,
|
||||
.Xr fork 2 ,
|
||||
.Xr sched 3 ,
|
||||
.Xr renice 8
|
||||
.Sh HISTORY
|
||||
The
|
||||
|
||||
Reference in New Issue
Block a user