*** UNIX MANUAL PAGE BROWSER ***

A Nergahak database for man pages research.

Navigation

Directory Browser

1Browse 4.4BSD4.4BSD
1Browse Digital UNIXDigital UNIX 4.0e
1Browse FreeBSDFreeBSD 14.3
1Browse MINIXMINIX 3.4.0rc6-d5e4fc0
1Browse NetBSDNetBSD 10.1
1Browse OpenBSDOpenBSD 7.7
1Browse UNIX v7Version 7 UNIX
1Browse UNIX v10Version 10 UNIX

Manual Page Search

Manual Page Result

0 Command: getpriority | Section: 2 | Source: MINIX | File: getpriority.2
GETPRIORITY(2) System Calls Manual GETPRIORITY(2) NAME getpriority, setpriority - get and set scheduling priority SYNOPSIS #include <sys/resource.h> int getpriority(int which, int who) int setpriority(int which, int who, int prio) DESCRIPTION Getpriority returns the scheduling priority of the process, process group, or user referred to in who. Which of the three is indicated in which, by PRIO_PROCESS, PRIO_PGRP and PRIO_USER, respectively. In MINIX 3, currently only PRIO_PROCESS is implemented. The range of the returned value is between PRIO_MIN and PRIO_MAX, cur- rently between -20 and 20, and is the so-called nice value of a process. The higher the nice value, the less favourable the scheduling priority. Setpriority sets the priority indicated by who and which to prio. prio, which is the nice value, may only be lowered by the super-user. RETURN VALUES These functions both return -1 on failure, and set errno in this case. Because getpriority can return -1 as the real nice value, the caller has to reset errno and check errno afterwards to distinguish between an error condition and a negative nice value. SEE ALSO nice(1) AUTHOR Ben Gras <[email protected]> 4th Berkeley Distribution Jul 1, 2005 GETPRIORITY(2)

Navigation Options