Deleted Added
full compact
getpriority.2 (108087) getpriority.2 (131504)
1.\" Copyright (c) 1980, 1991, 1993
2.\" The Regents of the University of California. All rights reserved.
3.\"
4.\" Redistribution and use in source and binary forms, with or without
5.\" modification, are permitted provided that the following conditions
6.\" are met:
7.\" 1. Redistributions of source code must retain the above copyright
8.\" notice, this list of conditions and the following disclaimer.

--- 16 unchanged lines hidden (view full) ---

25.\" DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
26.\" OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
27.\" HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
28.\" LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
29.\" OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
30.\" SUCH DAMAGE.
31.\"
32.\" @(#)getpriority.2 8.1 (Berkeley) 6/4/93
1.\" Copyright (c) 1980, 1991, 1993
2.\" The Regents of the University of California. All rights reserved.
3.\"
4.\" Redistribution and use in source and binary forms, with or without
5.\" modification, are permitted provided that the following conditions
6.\" are met:
7.\" 1. Redistributions of source code must retain the above copyright
8.\" notice, this list of conditions and the following disclaimer.

--- 16 unchanged lines hidden (view full) ---

25.\" DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
26.\" OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
27.\" HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
28.\" LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
29.\" OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
30.\" SUCH DAMAGE.
31.\"
32.\" @(#)getpriority.2 8.1 (Berkeley) 6/4/93
33.\" $FreeBSD: head/lib/libc/sys/getpriority.2 108087 2002-12-19 09:40:28Z ru $
33.\" $FreeBSD: head/lib/libc/sys/getpriority.2 131504 2004-07-02 23:52:20Z ru $
34.\"
35.Dd June 4, 1993
36.Dt GETPRIORITY 2
37.Os
38.Sh NAME
39.Nm getpriority ,
40.Nm setpriority
41.Nd get/set program scheduling priority

--- 37 unchanged lines hidden (view full) ---

79and a user ID for
80.Dv PRIO_USER ) .
81A zero value of
82.Fa who
83denotes the current process, process group, or user.
84The
85.Fa prio
86argument
34.\"
35.Dd June 4, 1993
36.Dt GETPRIORITY 2
37.Os
38.Sh NAME
39.Nm getpriority ,
40.Nm setpriority
41.Nd get/set program scheduling priority

--- 37 unchanged lines hidden (view full) ---

79and a user ID for
80.Dv PRIO_USER ) .
81A zero value of
82.Fa who
83denotes the current process, process group, or user.
84The
85.Fa prio
86argument
87is a value in the range -20 to 20. The default priority is 0;
87is a value in the range -20 to 20.
88The default priority is 0;
88lower priorities cause more favorable scheduling.
89.Pp
90The
91.Fn getpriority
92system call returns the highest priority (lowest numerical value)
89lower priorities cause more favorable scheduling.
90.Pp
91The
92.Fn getpriority
93system call returns the highest priority (lowest numerical value)
93enjoyed by any of the specified processes. The
94enjoyed by any of the specified processes.
95The
94.Fn setpriority
95system call sets the priorities of all of the specified processes
96.Fn setpriority
97system call sets the priorities of all of the specified processes
96to the specified value. Only the super-user may lower priorities.
98to the specified value.
99Only the super-user may lower priorities.
97.Sh RETURN VALUES
98Since
99.Fn getpriority
100can legitimately return the value -1, it is necessary
101to clear the external variable
102.Va errno
103prior to the
104call, then check it afterward to determine

--- 47 unchanged lines hidden ---
100.Sh RETURN VALUES
101Since
102.Fn getpriority
103can legitimately return the value -1, it is necessary
104to clear the external variable
105.Va errno
106prior to the
107call, then check it afterward to determine

--- 47 unchanged lines hidden ---