|
Fcitx
|
Class wrap around the unix fd. More...
#include <fcitx-utils/unixfd.h>
Public Member Functions | |
| UnixFD () noexcept | |
| Create an empty UnixFD. | |
| UnixFD (int fd) | |
| Create a UnixFD by using dup. | |
| UnixFD (int fd, int min) | |
| Create UnixFD with dup, with give parameter to dup. More... | |
| UnixFD (const UnixFD &other)=delete | |
| FCITX_DECLARE_MOVE (UnixFD) | |
| bool | isValid () const noexcept |
| Check if fd is not empty. | |
| void | set (int fd) |
| Set a new FD. More... | |
| void | set (int fd, int min) |
| Set a new FD. More... | |
| void | reset () noexcept |
| Clear the FD and close it. | |
| int | release () noexcept |
| Get the internal fd and release the ownership. | |
| int | fd () const noexcept |
| Get the internal fd. | |
| void | give (int fd) noexcept |
| Set a new FD and transfer the ownership to UnixFD. | |
Static Public Member Functions | |
| static UnixFD | own (int fd) |
| Create a UnixFD by owning the fd. | |
1.8.13