Date: Mon, 20 Oct 2008 17:03:06 +0000 (UTC) From: Dag-Erling Smorgrav <des@FreeBSD.org> To: src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org Subject: svn commit: r184084 - head/lib/libutil Message-ID: <200810201703.m9KH36IJ075947@svn.freebsd.org>
next in thread | raw e-mail | index | archive | help
Author: des Date: Mon Oct 20 17:03:05 2008 New Revision: 184084 URL: http://svn.freebsd.org/changeset/base/184084 Log: Since setclasscpumask() is not static, assume that it is intended to be part of the public API. Accordingly, add a prototype and document it. Modified: head/lib/libutil/login_cap.h head/lib/libutil/login_class.3 Modified: head/lib/libutil/login_cap.h ============================================================================== --- head/lib/libutil/login_cap.h Mon Oct 20 16:54:53 2008 (r184083) +++ head/lib/libutil/login_cap.h Mon Oct 20 17:03:05 2008 (r184084) @@ -116,6 +116,7 @@ int login_getcapbool(login_cap_t *, cons 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); Modified: head/lib/libutil/login_class.3 ============================================================================== --- head/lib/libutil/login_class.3 Mon Oct 20 16:54:53 2008 (r184083) +++ head/lib/libutil/login_class.3 Mon Oct 20 17:03:05 2008 (r184084) @@ -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 specifie 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 dire respectively. .Pp The +.Fn setclasscpumask , .Fn setclassresources and .Fn setclassenvironment
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200810201703.m9KH36IJ075947>