getpriority.2 (108028) | getpriority.2 (108087) |
---|---|
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 108028 2002-12-18 09:22:32Z ru $ | 33.\" $FreeBSD: head/lib/libc/sys/getpriority.2 108087 2002-12-19 09:40:28Z 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 --- 12 unchanged lines hidden (view full) --- 54.Fa which 55and 56.Fa who 57is obtained with the 58.Fn getpriority 59system call and set with the 60.Fn setpriority 61system call. | 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 --- 12 unchanged lines hidden (view full) --- 54.Fa which 55and 56.Fa who 57is obtained with the 58.Fn getpriority 59system call and set with the 60.Fn setpriority 61system call. |
62.Fa Which | 62The 63.Fa which 64argument |
63is one of 64.Dv PRIO_PROCESS , 65.Dv PRIO_PGRP , 66or 67.Dv PRIO_USER , 68and 69.Fa who 70is interpreted relative to 71.Fa which 72(a process identifier for 73.Dv PRIO_PROCESS , 74process group 75identifier for 76.Dv PRIO_PGRP , 77and a user ID for 78.Dv PRIO_USER ) . 79A zero value of 80.Fa who 81denotes the current process, process group, or user. | 65is one of 66.Dv PRIO_PROCESS , 67.Dv PRIO_PGRP , 68or 69.Dv PRIO_USER , 70and 71.Fa who 72is interpreted relative to 73.Fa which 74(a process identifier for 75.Dv PRIO_PROCESS , 76process group 77identifier for 78.Dv PRIO_PGRP , 79and a user ID for 80.Dv PRIO_USER ) . 81A zero value of 82.Fa who 83denotes the current process, process group, or user. |
82.Fa Prio | 84The 85.Fa prio 86argument |
83is a value in the range -20 to 20. The default priority is 0; 84lower priorities cause more favorable scheduling. 85.Pp 86The 87.Fn getpriority 88system call returns the highest priority (lowest numerical value) 89enjoyed by any of the specified processes. The 90.Fn setpriority --- 20 unchanged lines hidden (view full) --- 111.Bl -tag -width Er 112.It Bq Er ESRCH 113No process was located using the 114.Fa which 115and 116.Fa who 117values specified. 118.It Bq Er EINVAL | 87is a value in the range -20 to 20. The 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) 93enjoyed by any of the specified processes. The 94.Fn setpriority --- 20 unchanged lines hidden (view full) --- 115.Bl -tag -width Er 116.It Bq Er ESRCH 117No process was located using the 118.Fa which 119and 120.Fa who 121values specified. 122.It Bq Er EINVAL |
119.Fa Which | 123The 124.Fa which 125argument |
120was not one of 121.Dv PRIO_PROCESS , 122.Dv PRIO_PGRP , 123or 124.Dv PRIO_USER . 125.El 126.Pp 127.Bl -tag -width Er --- 18 unchanged lines hidden --- | 126was not one of 127.Dv PRIO_PROCESS , 128.Dv PRIO_PGRP , 129or 130.Dv PRIO_USER . 131.El 132.Pp 133.Bl -tag -width Er --- 18 unchanged lines hidden --- |