FdRightsFlag

Properties

Link copied to clipboard
const val FD_ADVISE: Long = 128

The right to invoke fd_advise.

Link copied to clipboard
const val FD_ALLOCATE: Long = 256

The right to invoke fd_allocate.

Link copied to clipboard
const val FD_DATASYNC: Long = 1

The right to invoke fd_datasync. If path_open is set, includes the right to invoke path_open with fdflags::dsync.

Link copied to clipboard
const val FD_FDSTAT_SET_FLAGS: Long = 8

The right to invoke fd_fdstat_set_flags.

Link copied to clipboard
const val FD_FILESTAT_GET: Long = 2097152

The right to invoke fd_filestat_get.

Link copied to clipboard
const val FD_FILESTAT_SET_SIZE: Long = 4194304

The right to invoke fd_filestat_set_size.

Link copied to clipboard
const val FD_FILESTAT_SET_TIMES: Long = 8388608

The right to invoke fd_filestat_set_times.

Link copied to clipboard
const val FD_READ: Long = 2

The right to invoke fd_read and sock_recv. If rights::fd_seek is set, includes the right to invoke fd_pread.

Link copied to clipboard
const val FD_READDIR: Long = 16384

The right to invoke fd_readdir.

Link copied to clipboard
const val FD_SEEK: Long = 4

The right to invoke fd_seek. This flag implies rights::fd_tell.

Link copied to clipboard
const val FD_SYNC: Long = 16

The right to invoke fd_sync. If path_open is set, includes the right to invoke path_open with fdflags::rsync and fdflags::dsync.

Link copied to clipboard
const val FD_TELL: Long = 32

The right to invoke fd_seek in such a way that the file offset remains unaltered (i.e., whence::cur with offset zero), or to invoke fd_tell.

Link copied to clipboard
const val FD_WRITE: Long = 64

The right to invoke fd_write and sock_send. If rights::fd_seek is set, includes the right to invoke fd_pwrite.

Link copied to clipboard
const val PATH_CREATE_DIRECTORY: Long = 512

The right to invoke path_create_directory.

Link copied to clipboard
const val PATH_CREATE_FILE: Long = 1024

If path_open is set, the right to invoke path_open with oflags::creat.

Link copied to clipboard
const val PATH_FILESTAT_GET: Long = 262144

The right to invoke path_filestat_get.

Link copied to clipboard
const val PATH_FILESTAT_SET_SIZE: Long = 524288

The right to change a file's size. If path_open is set, includes the right to invoke path_open with oflags::trunc. Note: there is no function named path_filestat_set_size. This follows POSIX design, which only has ftruncate and does not provide ftruncateat. While such function would be desirable from the API design perspective, there are virtually no use cases for it since no code written for POSIX systems would use it. Moreover, implementing it would require multiple syscalls, leading to inferior performance.

Link copied to clipboard
const val PATH_FILESTAT_SET_TIMES: Long = 1048576

The right to invoke path_filestat_set_times.

Link copied to clipboard
const val PATH_LINK_SOURCE: Long = 2048

The right to invoke path_link with the file descriptor as the source directory.

Link copied to clipboard
const val PATH_LINK_TARGET: Long = 4096

The right to invoke path_link with the file descriptor as the target directory.

Link copied to clipboard
const val PATH_OPEN: Long = 8192

The right to invoke path_open.

Link copied to clipboard
const val PATH_READLINK: Long = 32768

The right to invoke path_readlink.

Link copied to clipboard
const val PATH_REMOVE_DIRECTORY: Long = 33554432

The right to invoke path_remove_directory.

Link copied to clipboard
const val PATH_RENAME_SOURCE: Long = 65536

The right to invoke path_rename with the file descriptor as the source directory.

Link copied to clipboard
const val PATH_RENAME_TARGET: Long = 131072

The right to invoke path_rename with the file descriptor as the target directory.

Link copied to clipboard
const val PATH_SYMLINK: Long = 16777216

The right to invoke path_symlink.

Link copied to clipboard
const val PATH_UNLINK_FILE: Long = 67108864

The right to invoke path_unlink_file.

Link copied to clipboard
const val POLL_FD_READWRITE: Long = 134217728

If rights::fd_read is set, includes the right to invoke poll_oneoff to subscribe to eventtype::fd_read. If rights::fd_write is set, includes the right to invoke poll_oneoff to subscribe to eventtype::fd_write.

Link copied to clipboard
const val SOCK_ACCEPT: Long = 536870912

The right to invoke sock_accept.

Link copied to clipboard
const val SOCK_SHUTDOWN: Long = 268435456

The right to invoke sock_shutdown.