.\" Copyright (c) 1980, 1991 The Regents of the University of California. .\" All rights reserved. .\" .\" Redistribution and use in source and binary forms, with or without .\" modification, are permitted provided that the following conditions .\" are met: .\" 1. Redistributions of source code must retain the above copyright .\" notice, this list of conditions and the following disclaimer. .\" 2. Redistributions in binary form must reproduce the above copyright .\" notice, this list of conditions and the following disclaimer in the .\" documentation and/or other materials provided with the distribution. .\" 3. All advertising materials mentioning features or use of this software .\" must display the following acknowledgement: .\" This product includes software developed by the University of .\" California, Berkeley and its contributors. .\" 4. Neither the name of the University nor the names of its contributors .\" may be used to endorse or promote products derived from this software .\" without specific prior written permission. .\" .\" THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND .\" ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE .\" IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE .\" ARE DISCLAIMED. IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE .\" FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL .\" DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS .\" OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) .\" HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT .\" LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY .\" OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF .\" SUCH DAMAGE. .\" .\" @(#)getpriority.2 6.9 (Berkeley) 3/10/91 .\" .\" Modified Sat Jul 24 16:33:19 1993 by Rik Faith .\" Modified Mon Jul 1 21:59:57 1996 by Andries Brouwer .\" Modified Wed Nov 6 03:55:47 1996 by Eric S. Raymond .TH GETPRIORITY 2 "24 Juli 1993" "BSD Man Page" "Linux Programmeurs Handleiding" .SH NAAM getpriority, setpriority \- krijg/zet programma in-rooster prioriteit .SH OVERZICHT .B #include .br .B #include .sp .BI "int getpriority(int " welk ", int " wie ); .br .BI "int setpriority(int " welk ", int " wie ", int " prio ); .SH BESCHRIJVING De in-rooster prioriteit van het proces, proces groep of gebruiker aangeduid door .I welk en .I wie wordt verkregen met de .B getpriority {krijg prioriteit} aanroep en wordt gezet met de .B setpriority {zet prioriteit} aanroep. .I Welk is één van .BR PRIO_PROCESS " {prioriteit proces}," .BR PRIO_PGRP " {prioriteit proces groep}," of .BR PRIO_USER " {prioriteit gebruiker}," en .I wie wordt geïnterpreteerd afhankelijk van .I welk (een proces identificeerder voor .BR PRIO_PROCESS , proces groep identificeerder voor .BR PRIO_PGRP , en een gebruiker ID voor .BR PRIO_USER ). Een nul waarde van .I wie duidt het huidige proces, proces groep of gebruiker aan. .I Prio is een waarde in het interval \-20 tot 20. De standaard prioriteit is 0; lagere prioriteiten veroorzaken een gunstigere inroostering. De .B getpriority aanroep geeft de hoogste prioriteit (laagste genummerde waarde) die één van de opgegeven processen geniet. De .B setpriority aanroep zet de prioriteiten van alle opgegeven processen naar de opgegeven waarde. Alleen de super-gebruiker mag de prioriteiten verlagen. .SH "TERUGGEEF WAARDE" Omdat .B getpriority volgens de regels terug kan keren met een waarde van \-1 is het nodig om de uitwendige {"external"} variabele .I errno vóór de aanroep te wissen, en hem dan naderhand te testen om te bepalen of een \-1 een fout was of een geldige waarde. De .B setpriority aanroep geeft 0 als er geen, of \-1 als wel een fout is. .SH FOUTEN .TP .B ESRCH {zoek} geen proces gevonden dat de .I welke en .I who opgegeven waardes gebruikt. .TP .B EINVAL {ongeldig} .I Welk was niet een van .BR PRIO_PROCESS , .BR PRIO_PGRP , of .BR PRIO_USER . .PP In aanvulling op de bovenstaande fouten hierboven zal .B setpriority falen als: .TP .B EPERM {toestemming} Een proces werd gevonden, maar nog zijn geldende nog zijn echte gebruiker ID kwam overeen met het geldende ID van de aanroeper. .TP .B EACCES {toegang} Een niet super-gebruiker probeerde een proces prioriteit te verlagen. .SH VOLDOET AAN SVr4, 4.4BSD (deze functie aanroepen verschenen voor het eerst in 4.2BSD). .SH "ZIE OOK" .BR nice "(1) {vriendelijk}," .BR fork "(2) {splits}," .BR renice "(8) {her-vriendelijk}" .\" Translated Sun Nov 19 10:42:14 CET 2000 Jos Boersema .\" .SH VERTALING Dit is een handleiding uit \fBmanpages-dev 1.29\fR. Alles wat tussen `\fB{\fR'..`\fB}\fR' staat is \fBaanvullende vertaling\fR, en hoort \fBniet\fR bij de originele handleiding. Email naar . .\"Vertaling Jos Boersema $Id: getpriority.2,v 1.1 2003/04/28 18:43:34 bokkie Exp $