英語 での A file descriptor の使用例とその 日本語 への翻訳
{-}
-
Colloquial
-
Ecclesiastic
-
Computer
-
Programming
If fd2p is nonzero, then an auxiliary channel to a control process will be setup, and a file descriptor for it will be placed in *fd2p.
This might happen because the watcher could not be properly started because libev ran out of memory, a file descriptor was found to be closed or any other problem.
In these files there is sometimes other information associated with the file as a whole(e.g., a file descriptor), or with a section of the file(e.g., page access controls), or both.
When used in the kernel, an eventfd file descriptor can provide a bridge from kernel to user space, allowing, for example, functionalities like KAIO(kernel AIO) to signal to a file descriptor that some operation is complete.
Is used to duplicate input file descriptors. If word expands to one or more digits, the file descriptor denoted by n is made to be a copy of that file descriptor. If the digits in word do not specify a file descriptor open for input, a redirection error occurs.
The following commands manipulate the flags associated with a file descriptor.
The second value is a file descriptor of the master pty.
Memfd_create() creates an anonymous file and returns a file descriptor that refers to it.
The exact interpretation is determined by the attached filter, but often is a file descriptor.
In_fd should be a file descriptor opened for reading and out_fd should be a descriptor opened for writing.
Since a file descriptor may be re-used, there are some obscure race conditions that may cause unintended side effects.
Such races can be avoided by opening a file descriptor for the target directory, and then specifying that file descriptor as the dirfd argument of openat().
Open() to get a file descriptor for the file. For Python 2.6 and later, file_dispatcher automatically converts anything with a fileno() method to a file descriptor. .
may return a file descriptor but, for example,
简介 Libevent is a library that provides a mechanism to execute a callback function when a specific event occurs on a file descriptor or after a timeout has been reached.
Similarly, if one of the pro- cesses closes a file descriptor, or changes its associated flags(using the fcntl(2) F_SETFD operation), the other process is also affected.
Whenever a file descriptor is duplicated via dup(2),
If you set the O_ASYNC status flag on a file descriptor by using the F_SETFL command of fcntl(), a SIGIO signal is sent whenever input or output becomes possible on that file descriptor. .
In either case you must provide a file descriptor for a file opened for update.
Dirfd is not a valid file descriptor.