SPVM-Sys
view release on metacpan or search on metacpan
lib/SPVM/Sys/User.pm view on Meta::CPAN
In Windows the following exception is thrown. getpwent is not supported in this system(defined(_WIN32)).
=head2 setgrent
C<static method setgrent : void ();>
Calls the L<setgrent|https://linux.die.net/man/3/setgrent> function.
Exceptions:
In Windows the following exception is thrown. setgrent is not supported in this system(defined(_WIN32)).
=head2 endgrent
C<static method endgrent : void ();>
Calls the L<endgrent|https://linux.die.net/man/3/endgrent> function.
Exceptions:
In Windows the following exception is thrown. endgrent is not supported in this system(defined(_WIN32)).
=head2 getgrent
C<static method getgrent : L<Sys::User::Group|SPVM::Sys::User::Group> ();>
Calls the L<getgrent|https://linux.die.net/man/3/getgrent> function.
And if its return value is NULL, returns undef, otherwise creates a new L<Sys::User::Group|SPVM::Sys::User::Group> object whose pointer is set to function's return value, and returns it.
Exceptions:
If the getgrent function failed, an exception is thrown with C<eval_error_id> set to the basic type ID of the L<Error::System|SPVM::Error::System> class.
In Windows the following exception is thrown. getgrent is not supported in this system(defined(_WIN32)).
=head2 getgroups
C<static method getgroups : int ($size : int, $list : int[]);>
Calls the L<getgroups|https://linux.die.net/man/2/getgroups> function, and returns its return value.
Exceptions:
If the getgroups function failed, an exception is thrown with C<eval_error_id> set to the basic type ID of the L<Error::System|SPVM::Error::System> class.
In Windows the following exception is thrown. getgroups is not supported in this system(defined(_WIN32)).
=head2 setgroups
C<static method setgroups : void ($groups : int[]);>
Calls the L<setgroups|https://linux.die.net/man/2/setgroups> function.
Exceptions:
If the setgroups function failed, an exception is thrown with C<eval_error_id> set to the basic type ID of the L<Error::System|SPVM::Error::System> class.
In Windows the following exception is thrown. setgroups is not supported in this system(defined(_WIN32)).
=head2 getpwuid
C<static method getpwuid : L<Sys::User::Passwd|SPVM::Sys::User::Passwd> ($id : int);>
Calls the L<getpwuid|https://linux.die.net/man/3/getpwuid> function.
And if its return value is NULL, returns undef, otherwise creates a new L<Sys::User::Passwd|SPVM::Sys::User::Passwd> object whose pointer is set to function's return value, and returns it.
Exceptions:
If the getpwuid function failed, an exception is thrown with C<eval_error_id> set to the basic type ID of the L<Error::System|SPVM::Error::System> class.
In Windows the following exception is thrown. getpwuid is not supported in this system(defined(_WIN32)).
=head2 getpwnam
C<static method getpwnam : L<Sys::User::Passwd|SPVM::Sys::User::Passwd> ($name : string);>
Calls the L<getpwnam|https://linux.die.net/man/3/getpwnam> function.
And if its return value is NULL, returns undef, otherwise creates a new L<Sys::User::Passwd|SPVM::Sys::User::Passwd> object whose pointer is set to function's return value, and returns it.
Exceptions:
If the getpwnam function failed, an exception is thrown with C<eval_error_id> set to the basic type ID of the L<Error::System|SPVM::Error::System> class.
In Windows the following exception is thrown. getpwnam is not supported in this system(defined(_WIN32)).
=head2 getgrgid
C<static method getgrgid : L<Sys::User::Group|SPVM::Sys::User::Group> ($id : int);>
Calls the L<getgrgid|https://linux.die.net/man/3/getgrgid> function.
And if its return value is NULL, returns undef, otherwise creates a new L<Sys::User::Group|SPVM::Sys::User::Group> object whose pointer is set to function's return value, and returns it.
Exceptions:
If the getgrgid function failed, an exception is thrown with C<eval_error_id> set to the basic type ID of the L<Error::System|SPVM::Error::System> class.
In Windows the following exception is thrown. getgrgid is not supported in this system(defined(_WIN32)).
=head2 getgrnam
C<static method getgrnam : L<Sys::User::Group|SPVM::Sys::User::Group> ($name : string);>
Calls the L<getgrnam|https://linux.die.net/man/3/getgrnam> function.
And if its return value is NULL, returns undef, otherwise creates a new L<Sys::User::Group|SPVM::Sys::User::Group> object whose pointer is set to function's return value, and returns it.
Exceptions:
If the getgrnam function failed, an exception is thrown with C<eval_error_id> set to the basic type ID of the L<Error::System|SPVM::Error::System> class.
In Windows the following exception is thrown. getgrnam is not supported in this system(defined(_WIN32)).
=head1 Copyright & License
Copyright (c) 2023 Yuki Kimoto
MIT License
( run in 0.504 second using v1.01-cache-2.11-cpan-437f7b0c052 )