SPVM::Sys::OS - System Calls for OS
SPVM::Sys::OS is the Sys::OS class in SPVM language. It provides system calls for OS.
SPVM::Sys::OS
Sys::OS
use Sys::OS; my $is_windows = Sys::OS->defined("_WIN32");
static method defined : int ($macro_name : string, $value = undef : object of Int|Long|Double);
Checks if the macro in C langauge is defined. If the macro is defined, returns 1. Otherwise returns 0.
C langauge
1
0
If $value is specifed and $macro_name is defined, the macro value converted to the given type is set to $value.
$value
$macro_name
Supports the following macro names.
__GNUC__
__clang__
__BORLANDC__
__INTEL_COMPILER
__unix
__unix__
__linux
__linux__
__FreeBSD__
__NetBSD__
__OpenBSD__
_WIN32
WIN32
_WIN64
_WINDOWS
_CONSOLE
WINVER
_WIN32_WINDOWS
_WIN32_WINNT
WINCEOSVER
__CYGWIN__
__CYGWIN32__
__MINGW32__
__MINGW64__
__APPLE__
__MACH__
__sun
__solaris
static method is_windows : int ();
If the OS is Windows, returns 1, otherwise returns 0.
Windows
All modules that is included in this distribution.
Sys::OS::FileTest
Sys::OS::IO
Sys::OS::IO::Constant
Sys::OS::Ioctl
Sys::OS::Ioctl::Constant
Sys::OS::IO::Dirent
Sys::OS::IO::DirStream
Sys::OS::IO::FileStream
Sys::OS::IO::Flock
Sys::OS::IO::Stat
Sys::OS::IO::Utimbuf
Sys::OS::Poll
Sys::OS::Poll::Constant
Sys::OS::Poll::PollfdArray
Sys::OS::Process
Sys::OS::Process::Constant
Sys::OS::Select
Sys::OS::Select::Constant
Sys::OS::Select::Fd_set
Sys::OS::Signal
Sys::OS::Signal::Constant
Sys::OS::Signal::Handler
Sys::OS::Signal::Handler::Default
Sys::OS::Signal::Handler::Ignore
Sys::OS::Signal::Handler::Monitor
Sys::OS::Signal::Handler::Unknown
Sys::OS::Socket
Sys::OS::Socket::Addrinfo
Sys::OS::Socket::AddrinfoLinkedList
Sys::OS::Socket::Constant
Sys::OS::Socket::Error
Sys::OS::Socket::Error::InetInvalidNetworkAddress
Sys::OS::Socket::In6_addr
Sys::OS::Socket::In_addr
Sys::OS::Socket::Ip_mreq
Sys::OS::Socket::Ip_mreq_source
Sys::OS::Socket::Ipv6_mreq
Sys::OS::Socket::Sockaddr
Sys::OS::Socket::Sockaddr::In
Sys::OS::Socket::Sockaddr::In6
Sys::OS::Socket::Sockaddr::Interface
Sys::OS::Socket::Sockaddr::Storage
Sys::OS::Socket::Sockaddr::Un
Sys::OS::Time
Sys::OS::Time::Constant
Sys::OS::Time::Itimerval
Sys::OS::Time::Timespec
Sys::OS::Time::Timeval
Sys::OS::Time::Timezone
Sys::OS::Time::Tms
Sys::OS::User
Sys::OS::User::Group
Sys::OS::User::Passwd
Yuki Kimoto(https://github.com/yuki-kimoto)
Gabor Szabo(https://github.com/szabgab)
SPVM::Sys::OS - Github
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.