Module posish::fs[][src]

Expand description

Filesystem operations.

Structs

*_OK constants for use with accessat.

AT_* constants for use with openat, statat, and other *at functions.

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

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)

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)

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)

mkdirat(fd, path, mode)

openat(dirfd, path, oflags, mode)

readlinkat(fd, path)

renameat(old_dirfd, old_path, new_dirfd, new_path)

lseek(fd, offset, whence)

fstatat(dirfd, path, flags)

symlinkat(old_dirfd, old_path, new_dirfd, new_path)

lseek(fd, 0, SEEK_CUR)

unlinkat(fd, path, flags)

utimensat(dirfd, path, times, flags)

Type Definitions

dev_t.

mode_t.

struct stat for use with statat and fstat.

struct statfs for use with fstatfs.