Module fs
Filesystem operations.
Modules
- inotify inotify support for working with inotify objects.
Structs
-
Dir
DIR* -
DirEntry
struct dirent - RawDir A directory iterator implemented with getdents.
-
RawDirEntry
A raw directory entry, similar to
std::fs::DirEntry.
Enums
- SeekFrom Enumeration of possible methods to seek within an I/O object.
Traits
Functions
-
copy_file_range
copy_file_range(fd_in, off_in, fd_out, off_out, len, 0)—Copies data from one file to another. -
fadvise
posix_fadvise(fd, offset, len, advice)—Declares an expected access pattern for a file. -
memfd_create
memfd_create(name, flags)—Create an anonymous file. -
openat2
openat2(dirfd, path, OpenHow { oflags, mode, resolve }, sizeof(OpenHow))— Opens a file with more options. -
sendfile
sendfile(out_fd, in_fd, offset, count)—Transfer data between file descriptors. -
sync
sync—Flush cached filesystem data for all filesystems.