data UV_Timespec_T : Type- Totality: total
Visibility: export data Stat : Type- Totality: total
Visibility: export data StatFs : Type- Totality: total
Visibility: export data Dir : Type- Totality: total
Visibility: export data Dirent : Type- Totality: total
Visibility: export 0 FsCB : Type Alias for a foreign callable code object
Totality: total
Visibility: public exportst_dev : Ptr Stat -> Bits64st_mode : Ptr Stat -> Bits64st_nlink : Ptr Stat -> Bits64st_uid : Ptr Stat -> Bits64st_gid : Ptr Stat -> Bits64st_rdev : Ptr Stat -> Bits64st_ino : Ptr Stat -> Bits64st_size : Ptr Stat -> Bits64st_blksize : Ptr Stat -> Bits64st_blocks : Ptr Stat -> Bits64st_flags : Ptr Stat -> Bits64st_gen : Ptr Stat -> Bits64st_atim : Ptr Stat -> UV_Timespec_Tst_mtim : Ptr Stat -> UV_Timespec_Tst_ctim : Ptr Stat -> UV_Timespec_Tst_birthtim : Ptr Stat -> UV_Timespec_Tf_type : Ptr StatFs -> Bits64f_bsize : Ptr StatFs -> Bits64f_blocks : Ptr StatFs -> Bits64f_bfree : Ptr StatFs -> Bits64f_bavail : Ptr StatFs -> Bits64f_files : Ptr StatFs -> Bits64f_ffree : Ptr StatFs -> Bits64tv_sec : UV_Timespec_T -> Int64tv_nsec : UV_Timespec_T -> Int64prim__uv_fs_get_result : Ptr Fs -> PrimIO Int32uv_fs_req_cleanup : HasIO io => Ptr Fs -> io ()- Totality: total
Visibility: export sync : HasIO io => (Ptr Fs -> FsCB -> io a) -> io a Synchronously run a file system request.
Totality: total
Visibility: exportasync : HasIO io => (Ptr Fs -> FsCB -> io a) -> (Ptr Fs -> IO ()) -> io a Asynchronously run a file system request.
Totality: total
Visibility: exportasync' : HasIO io => (Ptr Fs -> FsCB -> io a) -> io a Asynchronously run a file system request without running a
a custom callback.
Totality: total
Visibility: exportuv_fs_get_result : HasIO io => Ptr Fs -> io Int32 Returns the result code received after a file operation.
Totality: total
Visibility: exportuv_fs_get_ptr : HasIO io => Ptr Fs -> io AnyPtr Returns the result of `uv_fs_readlink` and `uv_fs_realpath`
Totality: total
Visibility: exportuv_fs_get_path : HasIO io => Ptr Fs -> io (Ptr Char) Path affecting the request
Totality: total
Visibility: exportuv_fs_get_statbuf : HasIO io => Ptr Fs -> io (Ptr Stat) Returns the result of `uv_fs_stat` and other stat requests.
Totality: total
Visibility: exportuv_fs_unlink : HasIO io => Ptr Loop -> Ptr Fs -> String -> FsCB -> io Int32 Equivalent to unlink(2).
Totality: total
Visibility: exportuv_fs_mkdir : HasIO io => Ptr Loop -> String -> Int32 -> Ptr Fs -> FsCB -> io Int32 Equivalent to mkdir(2).
Totality: total
Visibility: exportuv_fs_mkdtemp : HasIO io => Ptr Loop -> String -> Ptr Fs -> FsCB -> io Int32 Equivalent to mkdtemp(3). The result can be found as a null
terminated string at req->path.
Totality: total
Visibility: exportuv_fs_mkstemp : HasIO io => Ptr Loop -> String -> Ptr Fs -> FsCB -> io Int32 Equivalent to mkstemp(3). The result can be found as a null
terminated string at req->path.
Totality: total
Visibility: exportuv_fs_rmdir : HasIO io => Ptr Loop -> String -> Ptr Fs -> FsCB -> io Int32 Equivalent to rmdir(2).
Totality: total
Visibility: exportuv_fs_opendir : HasIO io => Ptr Loop -> String -> Ptr Fs -> FsCB -> io Int32 Opens path as a directory stream. On success,
a uv_dir_t is allocated and returned via req->ptr.
This memory is not freed by uv_fs_req_cleanup(), although req->ptr
is set to NULL. The allocated memory must be freed by
calling uv_fs_closedir(). On failure, no memory is allocated.
The contents of the directory can be iterated over by passing the
resulting uv_dir_t to uv_fs_readdir().
Totality: total
Visibility: exportuv_fs_closedir : HasIO io => Ptr Loop -> Ptr Dir -> Ptr Fs -> FsCB -> io Int32 Closes the directory stream represented by dir and frees the
memory allocated by `uv_fs_opendir`.
Totality: total
Visibility: exportuv_fs_readdir : HasIO io => Ptr Loop -> Ptr Dir -> Ptr Fs -> FsCB -> io Int32 Iterates over the directory stream, dir, returned by a
successful `uv_fs_opendir` call. Prior to invoking `uv_fs_readdir`,
the caller must set dir->dirents and dir->nentries,
representing the array of uv_dirent_t ele‐
ments used to hold the read directory entries and its size.
On success, the result is an integer >= 0 representing the number
of entries read from the stream.
NOTE:
On success this function allocates memory that must be
freed using `uv_fs_req_cleanup`. `uv_fs_req_cleanup` must
be called before closing the directory with `uv_fs_closedir`.
Totality: total
Visibility: exportuv_fs_scandir : HasIO io => Ptr Loop -> String -> Int32 -> Ptr Fs -> FsCB -> io Int32 Equivalent to scandir(3), with a slightly different API.
Once the callback for the request is called, the user can use
`uv_fs_scandir_next` to get ent populated with the next
directory entry data. When there are no more
entries UV_EOF will be returned.
NOTE:
Unlike scandir(3), this function does not return the "." and ".." entries.
NOTE:
On Linux, getting the type of an entry is only supported
by some file systems (btrfs, ext2, ext3 and ext4 at the time of this writing),
check the getdents(2) man page.
Totality: total
Visibility: exportuv_fs_scandir_next : HasIO io => Ptr Fs -> Ptr Dirent -> io Int32 See `uv_fs_scandir`.
Totality: total
Visibility: exportuv_dirents : HasIO io => Ptr Dir -> io (Ptr Dirent)- Totality: total
Visibility: export uv_nentries : HasIO io => Ptr Dir -> io Bits32- Totality: total
Visibility: export uv_fs_get_dirent_name : HasIO io => Ptr Dirent -> io (Ptr Char)- Totality: total
Visibility: export uv_fs_get_dirent_type : HasIO io => Ptr Dirent -> io Int32- Totality: total
Visibility: export uv_fs_close : HasIO io => Ptr Loop -> Int32 -> Ptr Fs -> FsCB -> io Int32 Asynchronously closes a file and releases the file handle.
Once the file is closed, the given `IO` action is invoked.
Totality: total
Visibility: exportuv_fs_open : HasIO io => Ptr Loop -> String -> Bits32 -> Bits32 -> Ptr Fs -> FsCB -> io Int32 Asynchronously opens a file, invoking the given callback once
the file is ready.
Totality: total
Visibility: exportuv_fs_read : HasIO io => Ptr Loop -> Int32 -> Ptr Bits8 -> Bits32 -> Int64 -> Ptr Fs -> FsCB -> io Int32 Reads data from a file into the given buffer and invokes
the callback function once the data is ready.
This is a faithful binding to `uv_fs_read`. What you typically want is
to decide on the return value stored in the `Ptr Fs` you get to figure
out what to do next. For that, there is `fsRead` as a more convenient
version.
Totality: total
Visibility: exportuv_fs_write : HasIO io => Ptr Loop -> Int32 -> Ptr Bits8 -> Bits32 -> Int64 -> Ptr Fs -> FsCB -> io Int32 Writes data from the given buffer to a file and invokes
the callback function once the data is ready.
Totality: total
Visibility: exportuv_fs_stat : HasIO io => Ptr Loop -> String -> Ptr Fs -> FsCB -> io Int32- Totality: total
Visibility: export uv_fs_fstat : HasIO io => Ptr Loop -> Int32 -> Ptr Fs -> FsCB -> io Int32- Totality: total
Visibility: export uv_fs_lstat : HasIO io => Ptr Loop -> String -> Ptr Fs -> FsCB -> io Int32- Totality: total
Visibility: export uv_fs_statfs : HasIO io => Ptr Loop -> String -> Ptr Fs -> FsCB -> io Int32 Equivalent to statfs(2). On success, a
`uv_statfs_t` is allocated and returned via req->ptr.
This memory is freed by `uv_fs_req_cleanup`.
NOTE:
Any fields in the resulting uv_statfs_t that are not
supported by the underlying operating system are set to zero.
Totality: total
Visibility: exportuv_fs_rename : HasIO io => Ptr Loop -> String -> String -> Ptr Fs -> FsCB -> io Int32 Equivalent to rename(2).
Totality: total
Visibility: exportuv_fs_fsync : HasIO io => Ptr Loop -> Int32 -> Ptr Fs -> FsCB -> io Int32 Equivalent to fsync(2).
NOTE:
For AIX, uv_fs_fsync returns UV_EBADF on file
descriptors referencing non regular files.
Totality: total
Visibility: exportuv_fs_fdatasync : HasIO io => Ptr Loop -> Int32 -> Ptr Fs -> FsCB -> io Int32 Equivalent to fdatasync(2).
Totality: total
Visibility: exportuv_fs_ftruncate : HasIO io => Ptr Loop -> Int32 -> Int64 -> Ptr Fs -> FsCB -> io Int32 Equivalent to ftruncate(2).
Totality: total
Visibility: exportuv_fs_copyfile : HasIO io => Ptr Loop -> String -> String -> Int32 -> Ptr Fs -> FsCB -> io Int32 Copies a file from path to new_path.
Supported flags are described below.
• UV_FS_COPYFILE_EXCL: If present, `uv_fs_copyfile` will fail
with UV_EEXIST if the destination path already exists.
The default behavior is to overwrite the destination if it exists.
• UV_FS_COPYFILE_FICLONE: If present, `uv_fs_copyfile` will
attempt to create a copy-on-write reflink. If the underlying
platform does not support copy-on-write, or an error occurs
while attempting to use copy-on-write,
a fallback copy mechanism based on uv_fs_sendfile() is used.
• UV_FS_COPYFILE_FICLONE_FORCE: If present, `uv_fs_copyfile`
will attempt to create a copy-on-write reflink. If the
underlying platform does not support copy-on-write, or an error
occurs while attempting to use copy-on-write, then an error is returned.
WARNING:
If the destination path is created, but an error occurs while copying
the data, then the destination path is removed. There is a brief
window of time between closing and removing the file where
another process could access the file.
Totality: total
Visibility: exportuv_fs_sendfile : HasIO io => Ptr Loop -> Int32 -> Int32 -> Int64 -> Bits32 -> Ptr Fs -> FsCB -> io Int32 Limited equivalent to sendfile(2).
Totality: total
Visibility: exportuv_fs_access : HasIO io => Ptr Loop -> String -> Int32 -> Ptr Fs -> FsCB -> io Int32 Equivalent to access(2) on Unix. Windows uses GetFileAttributesW().
Totality: total
Visibility: exportuv_fs_chmod : HasIO io => Ptr Loop -> String -> Int32 -> Ptr Fs -> FsCB -> io Int32 Equivalent to chmod(2) respectively.
Totality: total
Visibility: exportuv_fs_fchmod : HasIO io => Ptr Loop -> Int32 -> Int32 -> Ptr Fs -> FsCB -> io Int32 Equivalent to fchmod(2) respectively.
Totality: total
Visibility: exportuv_fs_utime : HasIO io => Ptr Loop -> String -> Double -> Double -> Ptr Fs -> FsCB -> io Int32 Equivalent to utime(2).
Totality: total
Visibility: exportuv_fs_futime : HasIO io => Ptr Loop -> Int32 -> Double -> Double -> Ptr Fs -> FsCB -> io Int32 Equivalent to futime(2).
Totality: total
Visibility: exportuv_fs_lutime : HasIO io => Ptr Loop -> String -> Double -> Double -> Ptr Fs -> FsCB -> io Int32 Equivalent to lutime(2).
Totality: total
Visibility: exportuv_fs_link : HasIO io => Ptr Loop -> String -> String -> Ptr Fs -> FsCB -> io Int32 Equivalent to link(2).
Totality: total
Visibility: exportuv_fs_symlink : HasIO io => Ptr Loop -> String -> String -> Int32 -> Ptr Fs -> FsCB -> io Int32 Equivalent to symlink(2).
NOTE:
On Windows the flags parameter can be specified to control
how the symlink will be created:
• UV_FS_SYMLINK_DIR: indicates that path points to a directory.
• UV_FS_SYMLINK_JUNCTION: request that the symlink is
created using junction points.
Totality: total
Visibility: exportuv_fs_readlink : HasIO io => Ptr Loop -> String -> Ptr Fs -> FsCB -> io Int32 Equivalent to readlink(2). The resulting string is stored in req->ptr.
Totality: total
Visibility: exportuv_fs_realpath : HasIO io => Ptr Loop -> String -> Ptr Fs -> FsCB -> io Int32 Equivalent to realpath(3) on Unix. Windows uses
GetFinalPathNameByHandle. The resulting string is stored in req->ptr.
WARNING:
This function has certain platform-specific caveats that
were discovered when used in Node.
• macOS and other BSDs: this function will fail with UV_ELOOP if
more than 32 symlinks are found while resolving the given path.
This limit is hardcoded and cannot be sidestepped.
• Windows: while this function works in the common case,
there are a number of corner cases where it doesn't:
• Paths in ramdisk volumes created by tools which sidestep the
Volume Manager (such as ImDisk) cannot be resolved.
• Inconsistent casing when using drive letters.
• Resolved path bypasses subst'd drives.
While this function can still be used, it's not recommended
if scenarios such as the above need to be supported.
Totality: total
Visibility: exportuv_fs_chown : HasIO io => Ptr Loop -> String -> Int32 -> Int32 -> Ptr Fs -> FsCB -> io Int32 Equivalent to chown(2).
Totality: total
Visibility: exportuv_fs_fchown : HasIO io => Ptr Loop -> String -> Int32 -> Int32 -> Ptr Fs -> FsCB -> io Int32 Equivalent to fchown(2).
Totality: total
Visibility: exportuv_fs_lchown : HasIO io => Ptr Loop -> String -> Int32 -> Int32 -> Ptr Fs -> FsCB -> io Int32 Equivalent to lchown(2).
Totality: total
Visibility: export