summaryrefslogtreecommitdiff
path: root/lib/libc/sys/getpriority.2
diff options
context:
space:
mode:
Diffstat (limited to 'lib/libc/sys/getpriority.2')
-rw-r--r--lib/libc/sys/getpriority.216
1 files changed, 11 insertions, 5 deletions
diff --git a/lib/libc/sys/getpriority.2 b/lib/libc/sys/getpriority.2
index a0481e6c5a3..e3d18fb3736 100644
--- a/lib/libc/sys/getpriority.2
+++ b/lib/libc/sys/getpriority.2
@@ -1,4 +1,4 @@
-.\" $OpenBSD: getpriority.2,v 1.12 2007/05/31 19:19:32 jmc Exp $
+.\" $OpenBSD: getpriority.2,v 1.13 2013/03/31 22:11:26 guenther Exp $
.\" $NetBSD: getpriority.2,v 1.4 1995/02/27 12:33:15 cgd Exp $
.\"
.\" Copyright (c) 1980, 1991, 1993
@@ -30,15 +30,14 @@
.\"
.\" @(#)getpriority.2 8.1 (Berkeley) 6/4/93
.\"
-.Dd $Mdocdate: May 31 2007 $
+.Dd $Mdocdate: March 31 2013 $
.Dt GETPRIORITY 2
.Os
.Sh NAME
.Nm getpriority ,
.Nm setpriority
-.Nd get/set program scheduling priority
+.Nd get/set process scheduling priority
.Sh SYNOPSIS
-.Fd #include <sys/time.h>
.Fd #include <sys/resource.h>
.Ft int
.Fn getpriority "int which" "id_t who"
@@ -123,7 +122,7 @@ or
.Dv PRIO_USER .
.El
.Pp
-In addition to the errors indicated above,
+In addition,
.Fn setpriority
will fail if:
.Bl -tag -width Er
@@ -137,6 +136,13 @@ A non-superuser attempted to lower a process priority.
.Xr nice 1 ,
.Xr fork 2 ,
.Xr renice 8
+.Sh STANDARDS
+The
+.Fn getpriority
+and
+.Fn setpriority
+functions conform to
+.St -p1003.1-2008 .
.Sh HISTORY
The
.Fn getpriority