Name
SPVM::Sys::User - User System Call
Usage
use Sys::User;
my $effective_user_id = Sys::User->geteuid;
Description
Sys::User
is the class for the user manipulation.
Class Methods
getuid
native static method getuid : int ()
Get the real user ID.
geteuid
native static method geteuid : int ()
Get the effective user ID.
getgid
native static method getgid : int ()
Get the real group ID.
getegid
native static method getegid : int ()
Get the effective group ID.
setuid
native static method setuid : int ($uid : int)
Set the user ID.
seteuid
native static method seteuid : int ($euid : int)
Set the effective user ID.
setgid
native static method setgid : int ($gid : int)
Set the real user ID.
setegid
native static method setegid : int ($egid : int)
Set the effective group ID.
setpwent
native static method setpwent : void ()
Move to the head of the group database.
endpwent
native static method endpwent : void ()
Close the group database.
getpwent
native static method getpwent : Sys::User::Passwd ()
Get a group entry. The group entry is a Sys::User::Passwd object.
setgrent
native static method setgrent : void ()
Move to the head of the group database.
endgrent
native static method endgrent : void ()
Close the group database.
getgrent
native static method getgrent : Sys::User::Group ()
Get a group entry as Sys::User::Group
getgroups
native static method getgroups : int[] ()
Get group IDs.
setgroups
native static method setgroups : void ($groups : int[])
Set group IDs.
getpwuid
native static method getpwuid : Sys::User::Passwd ($id : int)
Get a group entry by the user id. The group entry is a Sys::User::Passwd object.
getpwnam
native static method getpwnam : Sys::User::Passwd ($name : string)
Get a group entry by the user name. The group entry is a Sys::User::Passwd object.
getgrgid
native static method getgrgid : Sys::User::Group ($id : int)
Get a group entry by the user id. The group entry is a Sys::User::Group object.
getgrnam
native static method getgrnam : Sys::User::Group ($name : string)
Get a group entry by the user id. The group entry is a Sys::User::Group object.
Copyright & License
Copyright (c) 2023 Yuki Kimoto
MIT License