diff options
| author | Dag-Erling Smørgrav <des@FreeBSD.org> | 2008-10-20 17:03:05 +0000 |
|---|---|---|
| committer | Dag-Erling Smørgrav <des@FreeBSD.org> | 2008-10-20 17:03:05 +0000 |
| commit | 92657d3cbd049ad8083cfa8d43aba21cf1815d54 (patch) | |
| tree | cc04acecd0dee05f898297df90bda06d894c82b2 /lib/libutil | |
| parent | 93b5982b3c77d3cdc88f4912aff23f6dc24f9248 (diff) | |
Notes
Diffstat (limited to 'lib/libutil')
| -rw-r--r-- | lib/libutil/login_cap.h | 1 | ||||
| -rw-r--r-- | lib/libutil/login_class.3 | 14 |
2 files changed, 10 insertions, 5 deletions
diff --git a/lib/libutil/login_cap.h b/lib/libutil/login_cap.h index 32183b6e6520..2e3d3e8f5d45 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 c91f9a9ef68e..75ccccc14499 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 |
