summaryrefslogtreecommitdiffstats
path: root/lib/libutil/login_class.3
diff options
context:
space:
mode:
authordes <des@FreeBSD.org>2008-10-20 17:03:05 +0000
committerdes <des@FreeBSD.org>2008-10-20 17:03:05 +0000
commit767e2b5352529689cd56527d48a82d7cf49ce9c6 (patch)
treecc04acecd0dee05f898297df90bda06d894c82b2 /lib/libutil/login_class.3
parent70afe705b80ca06113e645584cdba8ff19980c14 (diff)
downloadFreeBSD-src-767e2b5352529689cd56527d48a82d7cf49ce9c6.zip
FreeBSD-src-767e2b5352529689cd56527d48a82d7cf49ce9c6.tar.gz
Since setclasscpumask() is not static, assume that it is intended to be
part of the public API. Accordingly, add a prototype and document it.
Diffstat (limited to 'lib/libutil/login_class.3')
-rw-r--r--lib/libutil/login_class.314
1 files changed, 9 insertions, 5 deletions
diff --git a/lib/libutil/login_class.3 b/lib/libutil/login_class.3
index c91f9a9..75ccccc 100644
--- a/lib/libutil/login_class.3
+++ b/lib/libutil/login_class.3
@@ -19,11 +19,12 @@
.\"
.\" $FreeBSD$
.\"
-.Dd December 28, 1996
+.Dd October 20, 2008
.Os
.Dt LOGIN_CLASS 3
.Sh NAME
.Nm setclasscontext ,
+.Nm setclasscpumask ,
.Nm setclassenvironment ,
.Nm setclassresources ,
.Nm setusercontext
@@ -35,12 +36,14 @@
.In login_cap.h
.Ft int
.Fn setclasscontext "const char *classname" "unsigned int flags"
-.Ft int
-.Fn setusercontext "login_cap_t *lc" "const struct passwd *pwd" "uid_t uid" "unsigned int flags"
.Ft void
-.Fn setclassresources "login_cap_t *lc"
+.Fn setclasscpumask "login_cap_t *lc"
.Ft void
.Fn setclassenvironment "login_cap_t *lc" "const struct passwd *pwd" "int paths"
+.Ft void
+.Fn setclassresources "login_cap_t *lc"
+.Ft int
+.Fn setusercontext "login_cap_t *lc" "const struct passwd *pwd" "uid_t uid" "unsigned int flags"
.Sh DESCRIPTION
These functions provide a higher level interface to the login class
database than those documented in
@@ -162,7 +165,7 @@ and set the cpu affinity to the specified mask.
The string may contain a comma separated list of numbers and/or number
ranges as handled by the
.Xr cpuset 1
-utility or the case-insensitive string
+utility or the case-insensitive string
.Ql default .
If the string is
.Ql default
@@ -182,6 +185,7 @@ are substituted for the user's home directory and login name
respectively.
.Pp
The
+.Fn setclasscpumask ,
.Fn setclassresources
and
.Fn setclassenvironment
OpenPOWER on IntegriCloud