SPVM::Sys - System Calls such as File IO, User, Process, Socket,
The Sys module and the system modules will be highly changed without warnings.
Sys
SPVM itself is yet experimental release.
use Sys; my $is_windows = Sys->is_D_WIN32;
Sys is the class for system utilities such as file IO, user manipulation, process, socket,
static method is_D_WIN32 : int ()
If _WIN32 in C language is defined, return 1. Otherwize return 0.
_WIN32
C language
1
0
static method getenv : string ($name : string);
The getenv() function searches the environment list to find the environment variable name, and returns a pointer to the corresponding value string.
See the detail of the getenv function in the case of Linux.
static method setenv : int ($name : string, $value : string, $overwrite : int);
The setenv() function adds the variable name to the environment with the value value, if name does not already exist. If name does exist in the environment, then its value is changed to value if overwrite is nonzero; if overwrite is zero, then the value of name is not changed. This function makes copies of the strings pointed to by name and value (by contrast with putenv(3)).
See the detail of the setenv function in the case of Linux.
static method unsetenv : int ($name : string);
The unsetenv() function deletes the variable name from the environment. If name does not exist in the environment, then the function succeeds, and the environment is unchanged.
See the detail of the unsetenv function in the case of Linux.
Sys::IO
Sys::Socket
Sys::Process
Sys::User
Sys::FiteTest
https://github.com/yuki-kimoto/SPVM-Sys
Copyright Yuki Kimoto 2022-2022, all rights reserved.
This program is free software; you can redistribute it and/or modify it under the same terms as Perl itself.
To install SPVM::Sys, copy and paste the appropriate command in to your terminal.
cpanm
cpanm SPVM::Sys
CPAN shell
perl -MCPAN -e shell install SPVM::Sys
For more information on module installation, please visit the detailed CPAN module installation guide.