Module posish::fs [−][src]
Expand description
Filesystem operations.
Structs
*_OK
constants for use with accessat
.
DIR*
struct dirent
FALLOC_FL_*
constants for use with fallocate
.
FD_*
constants for use with fcntl_getfd
and fcntl_setfd
.
MFD_*
constants for use with memfd_create
.
S_I*
constants for use with openat
.
O_*
constants for use with openat
.
RESOLVE_*
constants for use with openat2
.
Enums
Constants
The filesystem magic number for procfs.
UTIME_NOW
for use with utimensat
.
UTIME_OMIT
for use with utimensat
.
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)
fchmodat(dirfd, path, mode, 0)
copy_file_range(fd_in, off_in, fd_out, off_out, len, 0)
AT_FDCWD
posix_fadvise(fd, offset, len, advice)
fallocate(fd, mode, offset, len)
fchmod(fd)
.
fcntl(fd, F_DUPFD_CLOEXEC)
fcntl(fd, F_GET_SEALS)
fcntl(fd, F_GETFD)
fcntl(fd, F_GETFL)
fcntl(fd, F_SETFD, flags)
fcntl(fd, F_SETFL, flags)
fdatasync(fd)
fstat(fd)
fstatfs(fd)
fsync(fd)
ftruncate(fd, length)
futimens(fd, times)
fcntl(fd, F_GETFL) & O_ACCMODE
.
linkat(old_dirfd, old_path, new_dirfd, new_path, flags)
major(dev)
makedev(maj, min)
memfd_create(path, flags)
minor(dev)
mkdirat(fd, path, mode)
mknodat(dirfd, path, mode, dev)
openat(dirfd, path, oflags, mode)
openat2(dirfd, path, OpenHow { oflags, mode, resolve }, sizeof(OpenHow))
readlinkat(fd, path)
renameat(old_dirfd, old_path, new_dirfd, new_path)
lseek(fd, offset, whence)
sendfile(out_fd, in_fd, offset, count)
fstatat(dirfd, path, flags)
statx(dirfd, path, flags, mask, statxbuf)
symlinkat(old_dirfd, old_path, new_dirfd, new_path)
lseek(fd, 0, SEEK_CUR)
unlinkat(fd, path, flags)
utimensat(dirfd, path, times, flags)