summaryrefslogtreecommitdiffstats
path: root/lib
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
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')
-rw-r--r--lib/libutil/login_cap.h1
-rw-r--r--lib/libutil/login_class.314
2 files changed, 10 insertions, 5 deletions
diff --git a/lib/libutil/login_cap.h b/lib/libutil/login_cap.h
index 32183b6..2e3d3e8 100644
--- a/lib/libutil/login_cap.h
+++ b/lib/libutil/login_cap.h
@@ -116,6 +116,7 @@ int login_getcapbool(login_cap_t *, const char *, int);
const char *login_setcryptfmt(login_cap_t *, const char *, const char *);
int setclasscontext(const char *, unsigned int);
+void setclasscpumask(login_cap_t *);
int setusercontext(login_cap_t *, const struct passwd *, uid_t, unsigned int);
void setclassresources(login_cap_t *);
void setclassenvironment(login_cap_t *, const struct passwd *, int);
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