Lines Matching refs:fd_
53 if (fd_ >= 0) {
54 ioctl(fd_, UI_DEV_DESTROY);
55 close(fd_);
56 fd_ = -1;
62 fd_ = open("/dev/uinput", O_WRONLY | O_NONBLOCK);
63 if (fd_ < 0) {
68 if (!DoIoctl(fd_, UI_SET_EVBIT, item)) {
74 if (!DoIoctl(fd_, UI_SET_KEYBIT, item)) {
80 if (!DoIoctl(fd_, UI_SET_PROPBIT, item)) {
86 if (!DoIoctl(fd_, UI_SET_ABSBIT, item)) {
92 if (!DoIoctl(fd_, UI_SET_RELBIT, item)) {
112 if (write(fd_, &dev_, sizeof(dev_)) < 0) {
116 if (ioctl(fd_, UI_DEV_CREATE) < 0) {
132 if (write(fd_, &event, sizeof(event)) < static_cast<ssize_t>(sizeof(event))) {