Module posish::fs [−][src]
Expand description
Filesystem operations.
Structs
*_OK
constants for use with accessat
.
CLONE_*
constants for use with fclonefileat
.
COPYFILE_*
constants.
DIR*
struct dirent
FALLOC_FL_*
constants for use with fallocate
.
FD_*
constants for use with fcntl_getfd
and fcntl_setfd
.
S_I*
constants for use with openat
.
O_*
constants for use with openat
.
Enums
S_IF*
constants.
Constants
Traits
Re-export types common to POSIX-ish platforms.
Re-export types common to POSIX-ish platforms.
Re-export types common to POSIX-ish platforms.
Re-export types common to POSIX-ish platforms.
Re-export types common to POSIX-ish platforms.
Functions
faccessat(dirfd, path, access, flags)
—Test permissions for a file or
directory.
fchmodat(dirfd, path, mode, 0)
—Set file or directory permissions.
copyfile_state_alloc()
copyfile_state_free(state)
copyfile_state_get(state, flags, dst)
copyfile_state_get(state, COPYFILE_STATE_COPIED)
AT_FDCWD
fallocate(fd, mode, offset, len)
fchmod(fd)
.
fclonefileat(src, dst_dir, dst, flags)
—Efficiently copy between files.
fcntl(fd, F_DUPFD_CLOEXEC)
fcntl(fd, F_GETFD)
fcntl(fd, F_GETFL)
fcntl(fd, F_RDADVISE, radvisory { offset, len })
fcntl(fd, F_SETFD, flags)
fcntl(fd, F_SETFL, flags)
fcopyfile(from, to, state, flags)
fstat(fd)
fstatfs(fd)
fsync(fd)
ftruncate(fd, length)
futimens(fd, times)
fcntl(fd, F_GETPATH)
fcntl(fd, F_GETFL) & O_ACCMODE
.
linkat(old_dirfd, old_path, new_dirfd, new_path, flags)
—Create a hard link.
mkdirat(fd, path, mode)
—Create a directory.
openat(dirfd, path, oflags, mode)
—Open a file.
readlinkat(fd, path)
—Read the contents of a symlink.
renameat(old_dirfd, old_path, new_dirfd, new_path)
—Rename a file or directory.
lseek(fd, offset, whence)
fstatat(dirfd, path, flags)
—Query metadata for a file or directory.
symlinkat(old_dirfd, old_path, new_dirfd, new_path)
—Create a symlink.
lseek(fd, 0, SEEK_CUR)
unlinkat(fd, path, flags)
—Unlink a file or remove a directory.
utimensat(dirfd, path, times, flags)
—Set file or directory timestamps.