|
NAMEgetloginclass , setloginclass
—
get/set login class
LIBRARYStandard C Library (libc, -lc)SYNOPSIS#include <unistd.h>
int
int
DESCRIPTIONThegetloginclass () routine returns the login class name
associated with the calling process, as previously set by
setloginclass (). The caller must provide the buffer
name with length len bytes to hold
the result. The buffer should be at least MAXLOGNAME
bytes in length.
The RETURN VALUESUpon successful completion, the value 0 is returned; otherwise the value -1 is returned and the global variable errno is set to indicate the error.ERRORSThe following errors may be returned by these calls:
SEE ALSOps(1), setusercontext(3), login.conf(5), rctl(8)HISTORYThegetloginclass () and
setloginclass () system calls first appeared in
FreeBSD 9.0.
Visit the GSP FreeBSD Man Page Interface. |