Home
last modified time | relevance | path

Searched refs:uinputFd (Results 1 – 1 of 1) sorted by relevance

/device/google/wahoo/folio_daemon/
Dmain.cpp41 int uinputFd; in main() local
54 uinputFd = TEMP_FAILURE_RETRY(open("/dev/uinput", O_WRONLY | O_NONBLOCK)); in main()
55 if (uinputFd < 0) { in main()
60 err = TEMP_FAILURE_RETRY(ioctl(uinputFd, UI_SET_EVBIT, EV_SW)) in main()
61 | TEMP_FAILURE_RETRY(ioctl(uinputFd, UI_SET_EVBIT, EV_SYN)) in main()
62 | TEMP_FAILURE_RETRY(ioctl(uinputFd, UI_SET_SWBIT, SW_LID)); in main()
75 err = TEMP_FAILURE_RETRY(write(uinputFd, &uidev, sizeof (uidev))); in main()
81 err = TEMP_FAILURE_RETRY(ioctl(uinputFd, UI_DEV_CREATE)); in main()
145 err = TEMP_FAILURE_RETRY(write(uinputFd, &event, sizeof (event))); in main()
155 err = TEMP_FAILURE_RETRY(write(uinputFd, &event, sizeof (event))); in main()
[all …]