Changes for version 0.03 - 2022-09-15

  • New Features
    • Add the getcwd method to the Sys::IO class.
      • static method getcwd : mutable string ($buf : mutable string, $size : int); static method realpath : mutable string ($path : string, $resolved_path : mutable string); static method _getdcwd : mutable string ($drive : int, $buffer : mutable string, $maxlen : int);
    • Add the following methods to the Sys class.
      • static method getenv : string ($name : string); static method setenv : int ($name : string, $value : string, $overwrite : int); static method unsetenv : int ($name : string);
  • Incompatible Changes
    • Change the definition of the following method in the Sys::IO class.
      • Before
        • static method fwrite : int ($buffer : mutable string, $size : int, $data_length : int, $stream : Sys::IO::FileStream);
      • After
        • static method fwrite : int ($ptr : string, $size : int, $nmemb : int, $stream : Sys::IO::FileStream);
    • Change the definition of the following method in the Sys::IO class.
      • Before
        • static method truncate : long ($path : string, $offset : long);
      • After
        • static method truncate : int ($path : string, $length : long);
  • Bug Fix
    • Fix the bug that lseek return value is wrong.
    • Fix the bug that truncate return value is wrong.
    • Fix the bug that the length argument of the truncate method in the Sys::IO class is int, not long.
  • Test Improvement
    • Add many tests.
  • Test Fix
    • Fix Github Action Windows 2019 test by adding ".gitattribute"
      • All files are binary files. CRLF is always CRLF. LF is always LF.
      • -text
    • Fix reference count tests.
  • Document Improvement
    • Add the link to this repository.

Documentation

get, unpack build and install modules from CPAN

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
Array of struct pollfd in C language
struct stat in C language
struct utimbuf in C language
Process System Call
Sys::Process::Constant is a SPVM module
Sys::Process::Tms is a SPVM module
Socket System Call
struct addrinfo in C language
Socket Constant Values
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
Sys::Socket::Sockaddr is a SPVM module
struct sockaddr_in in C language
struct sockaddr_in6 in C language
struct sockaddr_storage in C language
struct sockaddr_un in C language
User System Call
Entry of Group Database
Entry of Password Database