Since setclasscpumask() is not static, assume that it is intended to be

part of the public API.  Accordingly, add a prototype and document it.
This commit is contained in:
Dag-Erling Smørgrav 2008-10-20 17:03:05 +00:00
parent 93b5982b3c
commit 92657d3cbd
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=184084
2 changed files with 10 additions and 5 deletions

View File

@ -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);

View File

@ -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