OSDN Git Service

LDP: Update original to LDP v3.68
[linuxjm/LDP_man-pages.git] / original / man2 / getpriority.2
index 869db33..78dc24a 100644 (file)
@@ -45,7 +45,7 @@
 .\" FIXME Oct 2008: Denys Vlasenko is working on a PRIO_THREAD feature that
 .\" is likely to get included in mainline; this will need to be documented.
 .\"
-.TH GETPRIORITY 2 2013-02-12 "Linux" "Linux Programmer's Manual"
+.TH GETPRIORITY 2 2014-05-10 "Linux" "Linux Programmer's Manual"
 .SH NAME
 getpriority, setpriority \- get/set program scheduling priority
 .SH SYNOPSIS
@@ -53,9 +53,9 @@ getpriority, setpriority \- get/set program scheduling priority
 .br
 .B #include <sys/resource.h>
 .sp
-.BI "int getpriority(int " which ", int " who );
+.BI "int getpriority(int " which ", id_t " who );
 .br
-.BI "int setpriority(int " which ", int " who ", int " prio );
+.BI "int setpriority(int " which ", id_t " who ", int " prio );
 .SH DESCRIPTION
 The scheduling priority of the process, process group, or user, as
 indicated by
@@ -143,7 +143,7 @@ The caller attempted to lower a process priority, but did not
 have the required privilege (on Linux: did not have the
 .B CAP_SYS_NICE
 capability).
-Since Linux 2.6.12, this error only occurs if the caller attempts
+Since Linux 2.6.12, this error occurs only if the caller attempts
 to set a process priority outside the range of the
 .B RLIMIT_NICE
 soft resource limit of the target process; see
@@ -182,7 +182,7 @@ The details on the condition for
 .B EPERM
 depend on the system.
 The above description is what POSIX.1-2001 says, and seems to be followed on
-all System V-like systems.
+all System\ V-like systems.
 Linux kernels before 2.6.12 required the real or
 effective user ID of the caller to match
 the real user of the process \fIwho\fP (instead of its effective user ID).
@@ -195,7 +195,7 @@ manner as Linux 2.6.12 and later.
 .LP
 The actual priority range varies between kernel versions.
 Linux before 1.3.36 had \-infinity..15.
-Since kernel 1.3.43 Linux has the range \-20..19.
+Since kernel 1.3.43, Linux has the range \-20..19.
 Within the kernel, nice values are actually represented
 using the corresponding range 40..1
 (since negative numbers are error codes) and these are the values
@@ -233,7 +233,17 @@ which may be made standards conformant in the future.
 .BR nice (1),
 .BR renice (1),
 .BR fork (2),
-.BR capabilities (7)
+.BR capabilities (7),
+.BR sched (7)
 
 .I Documentation/scheduler/sched-nice-design.txt
 in the Linux kernel source tree (since Linux 2.6.23)
+.SH COLOPHON
+This page is part of release 3.68 of the Linux
+.I man-pages
+project.
+A description of the project,
+information about reporting bugs,
+and the latest version of this page,
+can be found at
+\%http://www.kernel.org/doc/man\-pages/.