SPVM-Sys
view release on metacpan or search on metacpan
lib/SPVM/Sys/IO.spvm view on Meta::CPAN
}
static method setlinebuf : void ($stream : Sys::IO::FileStream) {
my $mode = IO->_IOLBF;
&setvbuf($stream, undef, $mode, IO->BUFSIZ);
}
native static method open : int ($path : string, $flags : int, $mode : int = 0);
native static method read : int ($fd : int, $buf : mutable string, $count : int, $buf_offset : int = 0);
native static method write : int ($fd : int, $buf : string, $count : int = -1, $buf_offset : int = 0);
native static method lseek : long ($fd : int, $offset : long, $whence : int);
native static method close : int ($fd : int);
native static method fsync : int ($fd : int);
native static method fcntl : int ($fd : int, $command : int, $command_arg : object of Int|Sys::IO::Flock|object = undef);
native static method ftruncate : int ($fd : int, $length : long);
native static method flock : int ($fd : int, $operation : int);
native static method access : int ($pathname : string, $mode : int);
native static method faccessat : int ($dirfd : int, $pathname : string, $mode : int, $flags : int);
static method eaccess : int ($pathname : string, $mode : int) {
my $status = &faccessat(IO->AT_FDCWD, $pathname, $mode, IO->AT_EACCESS);
return $status;
}
native static method truncate : int ($path : string, $length : long);
native static method mkdir : int ($path : string, $mode : int);
native static method umask : int ($mode : int);
native static method rmdir : int ($path : string);
native static method unlink : int ($pathname : string);
native static method rename : int ($oldpath : string, $newpath : string);
native static method getcwd : mutable string ($buf : mutable string, $size : int);
native static method _getdcwd : mutable string ($drive : int, $buffer : mutable string, $maxlen : int);
native static method realpath : mutable string ($path : string, $resolved_path : mutable string);
native static method _fullpath : mutable string ($absPath : mutable string, $relPath : string, $maxLength : int);
native static method chdir : int ($path : string);
native static method chmod : int ($path : string, $mode :int);
native static method chown : int ($path : string, $owner : int, $group : int);
native static method symlink : int ($oldpath : string, $newpath : string);
native static method readlink : int ($path : string, $buf : mutable string, $bufsiz : int);
native static method opendir : Sys::IO::DirStream ($dir : string);
native static method closedir : int ($dirp : Sys::IO::DirStream);
native static method readdir : Sys::IO::Dirent ($dirp : Sys::IO::DirStream);
native static method rewinddir : void ($dirp : Sys::IO::DirStream);
native static method telldir : long ($dirp : Sys::IO::DirStream);
native static method seekdir : void ($dirp : Sys::IO::DirStream, $offset : long);
native static method popen : Sys::IO::FileStream ($command : string, $type : string);
native static method _popen : Sys::IO::FileStream ($command : string, $mode : string);
native static method pclose : int ($stream : Sys::IO::FileStream);
native static method _pclose : int ($stream : Sys::IO::FileStream);
native private static method INIT_STDIN : Sys::IO::FileStream ();
native private static method INIT_STDOUT : Sys::IO::FileStream ();
native private static method INIT_STDERR : Sys::IO::FileStream ();
native private static method INIT_SPVM_STDIN : Sys::IO::FileStream ();
native private static method INIT_SPVM_STDOUT : Sys::IO::FileStream ();
native private static method INIT_SPVM_STDERR : Sys::IO::FileStream ();
}
( run in 0.443 second using v1.01-cache-2.11-cpan-5511b514fd6 )