SPVM-Sys
view release on metacpan or search on metacpan
lib/SPVM/Sys/IO.pm view on Meta::CPAN
Calls the L<_getdcwd|https://docs.microsoft.com/en-us/cpp/c-runtime-library/reference/getdcwd-wgetdcwd?view=msvc-170> function and return its return value.
Exceptions:
$maxlen must be greater than 0. Otherwise an exception is thrown.
$maxlen must be less than or equal to the lenght of $buffer. Otherwise an exception is thrown.
If the _getdcwd function failed, an exception is thrown with C<eval_error_id> set to the basic type ID of the L<Error::System|SPVM::Error::System> class.
=head2 realpath
C<static method realpath : mutable string ($path : string, $resolved_path : mutable string);>
Calls the L<realpath|https://linux.die.net/man/3/realpath> function and return its return value.
Exceptions:
$path must be defined. Otherwise an exception is thrown.
If the realpath function failed, an exception is thrown with C<eval_error_id> set to the basic type ID of the L<Error::System|SPVM::Error::System> class.
=head2 _fullpath
C<native static method _fullpath : mutable string ($absPath : mutable string, $relPath : string, $maxLength : int);>
Calls the L<_fullpath|https://docs.microsoft.com/en-us/cpp/c-runtime-library/reference/fullpath-wfullpath?view=msvc-170> function and return its return value.
Exceptions:
$relPath must be defined. Otherwise an exception is thrown.
If the _fullpath function failed, an exception is thrown with C<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 return its return value.
Exceptions:
$path must be defined. Otherwise an exception is thrown.
If the chdir function failed, an exception is thrown with C<eval_error_id> set to the basic type ID of the L<Error::System|SPVM::Error::System> class.
=head2 chmod
C<static method chmod : int ($path : string, $mode :int);>
Calls the L<chmod|https://linux.die.net/man/2/chmod> function and return its return value.
See L<Sys::IO::Constant|SPVM::Sys::IO::Constant> about constant values given to the mode $mode.
Exceptions:
$path must be defined. Otherwise an exception is thrown.
If the chmod function failed, an exception is thrown with C<eval_error_id> set to the basic type ID of the L<Error::System|SPVM::Error::System> class.
=head2 chown
C<static method chown : int ($path : string, $owner : int, $group : int);>
Calls the L<chown|https://linux.die.net/man/2/chown> and return its return value.
Exceptions:
$path must be defined. Otherwise an exception is thrown.
If the chown function failed, an exception is thrown with C<eval_error_id> set to the basic type ID of the L<Error::System|SPVM::Error::System> class.
=head2 symlink
C<static method symlink : int ($oldpath : string, $newpath : string);>
Calls the L<symlink|https://linux.die.net/man/2/symlink> function and return its return value.
Exceptions:
$oldpath must be defined. Otherwise an exception is thrown.
$newpath must be defined. Otherwise an exception is thrown.
If the symlink function failed, an exception is thrown with C<eval_error_id> set to the basic type ID of the L<Error::System|SPVM::Error::System> class.
=head2 readlink
C<static method readlink : int ($path : string, $buf : mutable string, $bufsiz : int);>
Calls the L<readlink|https://linux.die.net/man/2/readlink> function and return its return value.
Exceptions:
$path must be defined. Otherwise an exception is thrown.
$buf must be defined. Otherwise an exception is thrown.
$bufsiz must be greater than or equal to 0. Otherwise an exception is thrown.
$bufsiz must be less than or equal to the length of $buf. Otherwise an exception is thrown.
If the readlink function failed, an exception is thrown with C<eval_error_id> set to the basic type ID of the L<Error::System|SPVM::Error::System> class.
=head2 opendir
C<static method opendir : L<Sys::IO::DirStream|SPVM::Sys::IO::DirStream> ($dir : string);>
Calls the L<opendir|https://linux.die.net/man/3/opendir> function and return its return value.
Exceptions:
$dir must be defined. Otherwise an exception is thrown.
If the opendir function failed, an exception is thrown with C<eval_error_id> set to the basic type ID of the L<Error::System|SPVM::Error::System> class.
=head2 closedir
C<static method closedir : int ($dirp : L<Sys::IO::DirStream|SPVM::Sys::IO::DirStream>);>
Calls the L<closedir|https://linux.die.net/man/3/closedir> function and return its return value.
Exceptions:
$dirp must be defined. Otherwise an exception is thrown.
If the closedir function failed, an exception is thrown with C<eval_error_id> set to the basic type ID of the L<Error::System|SPVM::Error::System> class.
=head2 readdir
C<static method readdir : L<Sys::IO::Dirent|SPVM::Sys::IO::Dirent> ($dirp : L<Sys::IO::DirStream|SPVM::Sys::IO::DirStream>);>
( run in 0.881 second using v1.01-cache-2.11-cpan-5511b514fd6 )