Changes for version 0.11 - 2022-10-18

  • New Features
    • Added the following methods to Sys class.
      • static method defined : int ($macro_name : string, $value = undef : object of Int|Long|Double) static method get_osname : string ()
    • Added the following method to the Sys::IO class.
      • static method access_raw : int ($pathname : string, $mode : int) static method faccessat_raw : int ($dirfd : int, $pathname : string, $mode : int, $flags : int) static method faccessat : int ($dirfd : int, $pathname : string, $mode : int, $flags : int) static method eaccess_emulate_raw : int ($pathname : string, $mode : int) static method eaccess_emulate : int ($pathname : string, $mode : int) static method stat_raw : int ($path : string, $stat : Sys::IO::Stat); static method lstat_raw : int ($path : string, $stat : Sys::IO::Stat); static method FD_ZERO : void ($set : Sys::IO::Fd_set); static method FD_SET : void ($fd : int, $set : Sys::IO::Fd_set); static method FD_CLR : void ($fd : int, $set : Sys::IO::Fd_set); static method FD_ISSET : int ($fd : int, $set : Sys::IO::Fd_set); static method select : int ($nfds : int, $readfds : Sys::IO::Fd_set, $writefds : Sys::IO::Fd_set, $exceptfds : Sys::IO::Fd_set, $timeout : Sys::Time::Timeval);
    • Added the following methods to Sys::FileTest class.
      • static method r : int ($file : string); static method w : int ($file : string); static method x : int ($file : string);
    • Added the following methods to Sys::IO::Constant class.
      • static method FD_SETSIZE : int ()
    • Added the Sys::Select::Fd_set class.
    • Added the Sys::Select class.
    • Added the Sys::Select::Constant class.
    • Added the Sys::Poll class.
    • Added the Sys::Poll::Constant class.
    • Added the Sys::Ioctl class.
    • Added the Sys::Ioctl::Constant class.
  • Changes
    • The close method in the Sys::Socket is re-implemented as a native method.
  • Incompativle Changes
    • Removed the is_D_WIN32 method in the Sys class. Please use Sys->defined("_WIN32") instead.
    • The access method in the Sys::IO gets to raise an exception. Use the access_raw method instead if the original behavior is needed.
    • Moved the poll method from the Sys::IO class to Sys::Poll.
    • Rename the Sys::IO::PollfdArray class to the Sys::Poll::PollfdArray class.
    • Moved the poll constant functions(POLL*) from the Sys::IO::Constant to the Sys::Poll::Constant class.
    • Removed the closesocket method in the Sys::Socket class.
    • Moved the FIONBIO method from Sys::Socket::Constant to Sys::Ioctl::Constant.
    • Removed the ioctl method and the ioctlsocket method in the Sys::Socket class. Use the ioctl method in the Sys::Ioctl instead.
    • Removed the ioctl method in the Sys::IO class. Use the ioctl method in the Sys::Ioctl instead.

Modules

System Calls such as File IO, User, Process, Socket,
File Tests
IO System Call
Constant values for IO.
the class for the DIR type in C language.
struct dirent in C language
the class for the FILE type in C language.
struct flock in C language
struct stat in C language
struct utimbuf in C language
ioctl System Call
Constant values for ioctl.
Poll System Call
Constant values for Poll.
Array of struct pollfd in C language
Process System Call
Constant Values for Process
Select System Call
Constant values for Select.
fd_set Type in C Language
Socket System Call
struct addrinfo in C language
Sys::Socket::AddrinfoLinkedList is a SPVM module
Socket Constant Values
The address is not a valid network address.
struct in6_addr in C language
struct in_addr in C language
struct ip_mreq in C language
struct ip_mreq_source in C language
struct ipv6_mreq in C language
struct sockaddr in C language
struct sockaddr_in in C language
struct sockaddr_in6 in C language
Interface for Sys::Socket::Sockaddr
struct sockaddr_storage in C language
struct sockaddr_un in C language
Time System Call
Constant Values for Time
struct timeval in C language
struct timespec in C language
struct timeval in C language
struct timezone in C language
struct tms in C language
User System Call
Entry of Group Database
Entry of Password Database