Calls the L<fread|https://linux.die.net/man/3/fread> function and returns its returnvalue.
Exceptions:
$ptrmust be defined. Otherwise an exception is thrown.
$sizemust be more than or equal to 0. Otherwise an exception is thrown.
$nmembmust be more than or equal to 0. Otherwise an exception is thrown.
$streammust be defined. Otherwise an exception is thrown.
$nmemb* $sizemust be less than or equal to the lengthof $ptr- $ptr_offset. Otherwise an exception is thrown.
If the returnvalue is less than $nmemband C<ferror(stream)> is non-zero, an exception is thrown withC<eval_error_id> set to the basic type ID of the L<Error::System|SPVM::Error::System> class.
Calls the L<getc|https://linux.die.net/man/3/getc> function and returns its returnvalue.
Exceptions:
$streammust be defined. Otherwise an exception is thrown.
If the returnvalue is C<EOF> and C<ferror(stream)> is non-zero, an exception is thrown withC<eval_error_id> set to the basic type ID of the L<Error::System|SPVM::Error::System> class.
Calls the L<fwrite|https://linux.die.net/man/3/fwrite> function and returns its returnvalue.
Exceptions:
$ptrmust be defined. Otherwise an exception is thrown.
$sizemust be more than or equal to 0. Otherwise an exception is thrown.
$nmembmust be more than or equal to 0. Otherwise an exception is thrown.
$streammust be defined. Otherwise an exception is thrown.
$nmemb* $sizemust be less than or equal to the lengthof $ptr- $ptr_offset. Otherwise an exception is thrown.
If the returnvalue is less than $nmemband C<ferror(stream)> is non-zero, an exception is thrown withC<eval_error_id> set to the basic type ID of the L<Error::System|SPVM::Error::System> class.
Calls the L<freopen|https://linux.die.net/man/3/freopen> function and returns its returnvalue.
Exceptions:
$pathmust be defined. Otherwise an exception is thrown.
$modemust be defined. Otherwise an exception is thrown.
$streammust be defined. Otherwise an exception is thrown.
If the freopen function failed, an exception is thrown withC<eval_error_id> set to the basic type ID of the L<Error::System|SPVM::Error::System> class.
Calls the L<setvbuf|https://linux.die.net/man/3/setvbuf> function and returns its returnvalue.
See L<Sys::IO::Constant|SPVM::Sys::IO::Constant> about constant valuesgivento $mode.
Exceptions:
$streammust be defined. Otherwise an exception is thrown.
If $bufis defined, $sizemust be greater than or equal to 0. Otherwise an exception is thrown.
If $bufis defined, $sizemust be less than or equal to the lengthof $buf. Otherwise an exception is thrown.
If the setvbuf function failed, an exception is thrown withC<eval_error_id> set to the basic type ID of the L<Error::System|SPVM::Error::System> class.
Calls the L<ftruncate|https://linux.die.net/man/2/ftruncate> function and returns its returnvalue.
Exceptions:
If the ftruncate function failed, an exception is thrown withC<eval_error_id> set to the basic type ID of the L<Error::System|SPVM::Error::System> class.
Calls the L<faccessat|https://linux.die.net/man/2/faccessat> function and returns its returnvalue.
See L<Sys::IO::Constant|SPVM::Sys::IO::Constant> about constant valuesgivento the mode $modeand the flag $flag.
Exceptions:
$pathnamemust be defined. Otherwise an exception is thrown.
If the faccessat function failed, an exception is thrown withC<eval_error_id> set to the basic type ID of the L<Error::System|SPVM::Error::System> class.
Calls the L<truncate|https://linux.die.net/man/2/truncate> function and returns its returnvalue.
Exceptions:
$pathmust be defined. Otherwise an exception is thrown.
$lengthmust be less than or equal to 0.
If the truncatefunction failed, an exception is thrown withC<eval_error_id> set to the basic type ID of the L<Error::System|SPVM::Error::System> class.
Calls the L<mkdir|https://linux.die.net/man/2/mkdir> function and returnits returnvalue.
Exceptions:
If the mkdir(or _mkdir) function failed, an exception is thrown withC<eval_error_id> set to the basic type ID of the L<Error::System|SPVM::Error::System> class.
=head2 umask
C<static method umask: int($mode: int);>
Calls the L<umask|https://linux.die.net/man/2/umask> function and returnits returnvalue.
=head2 rmdir
C<static method rmdir: int($path: string);>
Calls the L<rmdir|https://linux.die.net/man/2/rmdir> function and returnits returnvalue.
Exceptions:
$pathmust be defined. Otherwise an exception is thrown.
If the rmdirfunction failed, an exception is thrown withC<eval_error_id> set to the basic type ID of the L<Error::System|SPVM::Error::System> class.
=head2 unlink
C<static method unlink: int($pathname: string);>
Calls the L<unlink|https://linux.die.net/man/2/unlink> function and returnits returnvalue.
Exceptions:
$pathnamemust be defined. Otherwise an exception is thrown.
If the unlinkfunction failed, an exception is thrown withC<eval_error_id> set to the basic type ID of the L<Error::System|SPVM::Error::System> class.
$maxlenmust be greater than 0. Otherwise an exception is thrown.
$maxlenmust be less than or equal to the lenght of $buffer. Otherwise an exception is thrown.
If the _getdcwd function failed, an exception is thrown withC<eval_error_id> set to the basic type ID of the L<Error::System|SPVM::Error::System> class.
Calls the L<realpath|https://linux.die.net/man/3/realpath> function and returnits returnvalue.
Exceptions:
$pathmust be defined. Otherwise an exception is thrown.
If the realpath function failed, an exception is thrown withC<eval_error_id> set to the basic type ID of the L<Error::System|SPVM::Error::System> class.
$relPathmust be defined. Otherwise an exception is thrown.
If the _fullpath function failed, an exception is thrown withC<eval_error_id> set to the basic type ID of the L<Error::System|SPVM::Error::System> class.
=head2 chdir
C<static method chdir: int($path: string);>
Calls the L<chdir|https://linux.die.net/man/2/chdir> function and returnits returnvalue.
Exceptions:
$pathmust be defined. Otherwise an exception is thrown.
If the chdirfunction failed, an exception is thrown withC<eval_error_id> set to the basic type ID of the L<Error::System|SPVM::Error::System> class.
Calls the L<readlink|https://linux.die.net/man/2/readlink> function and returnits returnvalue.
Exceptions:
$pathmust be defined. Otherwise an exception is thrown.
$bufmust be defined. Otherwise an exception is thrown.
$bufsizmust be greater than or equal to 0. Otherwise an exception is thrown.
$bufsizmust be less than or equal to the lengthof $buf. Otherwise an exception is thrown.
If the readlinkfunction failed, an exception is thrown withC<eval_error_id> set to the basic type ID of the L<Error::System|SPVM::Error::System> class.
Calls the L<closedir|https://linux.die.net/man/3/closedir> function and returnits returnvalue.
Exceptions:
$dirpmust be defined. Otherwise an exception is thrown.
If the closedirfunction failed, an exception is thrown withC<eval_error_id> set to the basic type ID of the L<Error::System|SPVM::Error::System> class.
$streammust be defined. Otherwise an exception is thrown.
If the _pclose function failed, an exception is thrown withC<eval_error_id> set to the basic type ID of the L<Error::System|SPVM::Error::System> class.
=head1 Copyright & License
Copyright (c) 2023 Yuki Kimoto
MIT License
Keyboard Shortcuts
Global
s
Focus search bar
?
Bring up this help dialog
GitHub
gp
Go to pull requests
gi
go to github issues (only if github is preferred repository)