[][src]Module posish::fs

Filesystem operations.

Structs

Access

*_OK constants for use with accessat.

AtFlags

AT_* constants.

CloneFlags

CLONE_* constants.

CopyfileFlags

COPYFILE_* constants.

Dir

DIR*

Entry

struct dirent

FdFlags

FD_* constants.

Mode

S_I* constants.

OFlags

O_* constants.

SeekLoc

A location for use with Dir::seek.

Enums

FileType

S_IF* constants.

Functions

accessat

faccessat(dirfd, path, access, flags)

chmodat

fchmodat(dirfd, path, mode, 0)

copyfile_state_alloc

copyfile_state_alloc()

copyfile_state_free

copyfile_state_free(state)

copyfile_state_get_copied

copyfile_state_get(state, COPYFILE_STATE_COPIED)

cwd

Return a "file" which holds a handle which refers to the process current directory (AT_FDCWD). It is a ManuallyDrop, however the caller should not drop it explicitly, as it refers to an ambient authority rather than an open resource.

fchmod

fchmod(fd).

fclonefileat

fclonefileat(src, dst_dir, dst, flags)

fcopyfile

fcopyfile(from, to, state, flags)

fstatfs

fstatfs(fd)

futimens

futimens(fd, times)

getfd

fcntl(fd, F_GETFD)

getfl

fcntl(fd, F_GETFL)

getpath

fcntl(fd, F_GETPATH)

linkat

linkat(old_dirfd, old_path, new_dirfd, new_path, flags)

mkdirat

mkdirat(fd, path, mode)

openat

openat(dirfd, path, oflags, mode)

rdadvise

fcntl(fd, F_RDADVISE, radvisory { offset, len })

readlinkat

readlinkat(fd, path)

renameat

renameat(old_dirfd, old_path, new_dirfd, new_path)

seek

lseek(fd, offset, whence)

setfd

fcntl(fd, F_SETFD, flags)

setfl

fcntl(fd, F_SETFL, flags)

statat

fstatat(dirfd, path, flags)

symlinkat

symlinkat(old_dirfd, old_path, new_dirfd, new_path)

tell

lseek(fd, 0, SEEK_CUR)

unlinkat

unlinkat(fd, path, flags)

utimensat

utimensat(dirfd, path, times, flags)

Type Definitions

LibcStat

Re-export libc::stat (or libc::stat64 where applicable).

LibcStatFs

Re-export libc::statfs (or libc::statfs64 where applicable).

copyfile_state_t

copyfile_state_t