Module sys/constants

sys/constants

File system constants.

File mode bits, permission bits, AT_* flags, open flags, access mode constants, copyfile flags, directory entry types, and default permission modes.

Constants

O_RDONLY constant i32

Value: O_RDONLY

O_WRONLY constant i32

Value: O_WRONLY

O_RDWR constant i32

Value: O_RDWR

O_CREAT constant i32

Value: O_CREAT

O_EXCL constant i32

Value: O_EXCL

O_TRUNC constant i32

Value: O_TRUNC

O_APPEND constant i32

Value: O_APPEND

O_NONBLOCK constant i32

Value: O_NONBLOCK

O_CLOEXEC constant i32

Value: O_CLOEXEC

O_DIRECTORY constant i32

Value: O_DIRECTORY

AT_FDCWD constant i32

Value: -100

AT_REMOVEDIR constant i32

Value: 512

AT_EMPTY_PATH constant i32

Value: 4096

AT_STATX_SYNC_AS_STAT constant i32

Value: 0

STATX_BASIC_STATS constant u32

Value: 2047

S_IFMT constant u32

Value: 61440

S_IFSOCK constant u32

Value: 49152

S_IFLNK constant u32

Value: 40960

S_IFREG constant u32

Value: 32768

S_IFBLK constant u32

Value: 24576

S_IFDIR constant u32

Value: 16384

S_IFCHR constant u32

Value: 8192

S_IFIFO constant u32

Value: 4096

S_IRWXU constant u32

Value: 448

S_IRUSR constant u32

Value: 256

S_IWUSR constant u32

Value: 128

S_IXUSR constant u32

Value: 64

S_IRWXG constant u32

Value: 56

S_IRGRP constant u32

Value: 32

S_IWGRP constant u32

Value: 16

S_IXGRP constant u32

Value: 8

S_IRWXO constant u32

Value: 7

S_IROTH constant u32

Value: 4

S_IWOTH constant u32

Value: 2

S_IXOTH constant u32

Value: 1

DEFAULT_FILE_MODE constant u32

Value: 420

DEFAULT_DIR_MODE constant u32

Value: 493

DT_UNKNOWN constant u8

Value: 0

DT_FIFO constant u8

Value: 1

DT_CHR constant u8

Value: 2

DT_DIR constant u8

Value: 4

DT_BLK constant u8

Value: 6

DT_REG constant u8

Value: 8

DT_LNK constant u8

Value: 10

DT_SOCK constant u8

Value: 12

DT_WHT constant u8

Value: 14

F_OK constant i32

Value: 0

R_OK constant i32

Value: 4

W_OK constant i32

Value: 2

X_OK constant i32

Value: 1

COPYFILE_EXCL constant i32

Value: 1

COPYFILE_FICLONE constant i32

Value: 2

COPYFILE_FICLONE_FORCE constant i32

Value: 4