For the latest stable version, please use Emilua API 0.10! |
file_descriptor
A file descriptor.
It cannot be created directly. |
This type is not available on Windows. |
Functions
dup(self) → file_descriptor
Creates a new file descriptor that refers to the same open file description.
cap_rights_limit(self, rights: string[])
See cap_rights_limit(2).
Parameters:
-
rights: string[]
-
"accept"
-
"acl_check"
-
"acl_delete"
-
"acl_get"
-
"acl_set"
-
"bind"
-
"bindat"
-
"chflagsat"
-
"connect"
-
"connectat"
-
"create"
-
"event"
-
"extattr_delete"
-
"extattr_get"
-
"extattr_list"
-
"extattr_set"
-
"fchdir"
-
"fchflags"
-
"fchmod"
-
"fchmodat"
-
"fchown"
-
"fchownat"
-
"fcntl"
-
"fexecve"
-
"flock"
-
"fpathconf"
-
"fsck"
-
"fstat"
-
"fstatat"
-
"fstatfs"
-
"fsync"
-
"ftruncate"
-
"futimes"
-
"futimesat"
-
"getpeername"
-
"getsockname"
-
"getsockopt"
-
"ioctl"
-
"kqueue"
-
"kqueue_change"
-
"kqueue_event"
-
"linkat_source"
-
"linkat_target"
-
"listen"
-
"lookup"
-
"mac_get"
-
"mac_set"
-
"mkdirat"
-
"mkfifoat"
-
"mknodat"
-
"mmap"
-
"mmap_r"
-
"mmap_rw"
-
"mmap_rwx"
-
"mmap_rx"
-
"mmap_w"
-
"mmap_wx"
-
"mmap_x"
-
"pdgetpid"
-
"pdkill"
-
"peeloff"
-
"pread"
-
"pwrite"
-
"read"
-
"recv"
-
"renameat_source"
-
"renameat_target"
-
"seek"
-
"sem_getvalue"
-
"sem_post"
-
"sem_wait"
-
"send"
-
"setsockopt"
-
"shutdown"
-
"symlinkat"
-
"ttyhook"
-
"unlinkat"
-
"write"
-