GSP
Quick Navigator

Search Site

Unix VPS
A - Starter
B - Basic
C - Preferred
D - Commercial
MPS - Dedicated
Previous VPSs
* Sign Up! *

Support
Contact Us
Online Help
Handbooks
Domain Status
Man Pages

FAQ
Virtual Servers
Pricing
Billing
Technical

Network
Facilities
Connectivity
Topology Map

Miscellaneous
Server Agreement
Year 2038
Credits
 

USA Flag

 

 

Man Pages


Manual Reference Pages  -  GETLOGINCLASS (2)

NAME

getloginclass, setloginclass - get/set login class

CONTENTS

Library
Synopsis
Description
Return Values
Errors
See Also
History

LIBRARY


.Lb libc

SYNOPSIS


.In unistd.h int getloginclass char *name size_t len int setloginclass const char *name

DESCRIPTION

The getloginclass 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 setloginclass system call sets the login class of the calling process to name. This system call is restricted to the super-user, and is normally used only when a new session is being created on behalf of the named user (for example, at login time, or when a remote shell is invoked). Processes inherit login class from their parents.

RETURN VALUES


.Rv -std

ERRORS

The following errors may be returned by these calls:
[EFAULT]
  The name argument gave an invalid address.
[EINVAL]
  The name argument pointed to a string that was too long. Login class names are limited to MAXLOGNAME (from
.In sys/param.h ) characters, currently 17 including null.
[EPERM]
  The caller tried to set the login class and was not the super-user.
[ENAMETOOLONG]
  The size of the buffer is smaller than the result to be returned.

SEE ALSO

setusercontext(3)

HISTORY

The getloginclass and setloginclass system calls first appeared in
.Fx 9.0 .
Search for    or go to Top of page |  Section 2 |  Main Index


Powered by GSP Visit the GSP FreeBSD Man Page Interface.
Output converted with manServer 1.07.