Changes for version 0.487 - 2023-09-08

  • New Features
    • The following methods in the Sys class are added.
      • static method truncate : int ($fd : int, $legnth : long);
      • static method sysread : int ($fd : int, $buf : mutable string, $count : int, $buf_offset : int = 0);
      • static method syswrite : int ($fd : int, $buf : string, $count : int = -1, $buf_offset : int = 0);
      • static method read : int ($stream : Sys::IO::FileStream, $buf : mutable string, $count : int, $buf_offset : int = 0);
      • static method fileno : int ($stream : Sys::IO::Stream);
      • static method eof : int ($stream : Sys::IO::Stream);
      • static method readline : mutable string ($stream : Sys::IO::FileStream);
      • static method getc : int ($stream : Sys::IO::FileStream);
      • static method flock : int ($fd : int, $operation : int);
      • static method print : int ($stream : Sys::IO::FileStream, $string : string);
      • static method printf : int ($stream, $format : string, $args : object[]);
      • static method read : int ($stream : Sys::IO::FileStream, $buf : mutable string, $count : int, $buf_offset : int = 0);
      • static method rewinddir : void ($dirp : Sys::IO::DirStream);
      • static method readdir : Sys::IO::Dirent ($dirp : Sys::IO::DirStream);
      • static method seek : int ($stream : Sys::IO::FileStream, $offset : long, $whence : int);
      • static method sysseek : long ($fd : int, $offset : long, $whence : int);
      • static method tell : long ($stream : Sys::IO::FileStream);
      • static method telldir : long ($dirp : Sys::IO::DirStream);
      • static method lstat : Sys::IO::Stat ($path : string);
      • static method utime : int ($atime : long, $mtime : long, $filename : string);
      • static method chown : int ($owner : int, $group : int, $path : string);
  • Deprecation
    • The following methods in the Sys::IO class are deprecated. Use the readline method in the Sys class.
      • static method readline : string ($stream : Sys::IO::FileStream);

Modules

System Calls for File IO, User, Process, Signal, Socket
Environemnt Variable
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
The stat Functions and The struct stat in C language
struct utimbuf in C language
IO System Call on Windows
ioctl System Call
Constant values for ioctl.
System Calls for OS
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
Signal System Call
Sys::Signal::Constant is a SPVM module
Sys::Signal::Handler is a SPVM module
Signal Handler that Represents SIG_DFL in C language.
Signal Handler that Represents SIG_IGN in C language
Signal Handler to Monitor Signals
Signal Handler that is unknwon.
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
struct sockaddr_storage in C language
struct sockaddr_un in C language
Socket Utilities
System Calls for Time Manipulation
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 tm in C language
struct tms in C language
User System Call
Entry of Group Database
Entry of Password Database