Lines Matching refs:event
112 struct inotify_event *event; in read_notify() local
115 if (res < (int)sizeof(*event)) { in read_notify()
126 while (res >= (int)sizeof(*event)) { in read_notify()
127 event = reinterpret_cast<struct inotify_event*>(event_buf + event_pos); in read_notify()
128 if (event->len) { in read_notify()
129 strcpy(filename, event->name); in read_notify()
130 if (event->mask & IN_CREATE) { in read_notify()
136 event_size = sizeof(*event) + event->len; in read_notify()
195 int get_event(struct input_event* event, int timeout) { in get_event() argument
211 res = read(ufds[i].fd, event, sizeof(*event)); in get_event()
212 if (res < static_cast<int>(sizeof(event))) { in get_event()