Lines Matching refs:event
415 struct inotify_event *event; in read_notify() local
418 if(res < (int)sizeof(*event)) { in read_notify()
430 while(res >= (int)sizeof(*event)) { in read_notify()
431 event = (struct inotify_event *)(event_buf + event_pos); in read_notify()
433 if(event->len) { in read_notify()
434 strcpy(filename, event->name); in read_notify()
435 if(event->mask & IN_CREATE) { in read_notify()
442 event_size = sizeof(*event) + event->len; in read_notify()
500 struct input_event event; in getevent_main() local
640 res = read(ufds[i].fd, &event, sizeof(event)); in getevent_main()
641 if(res < (int)sizeof(event)) { in getevent_main()
646 printf("[%8ld.%06ld] ", event.time.tv_sec, event.time.tv_usec); in getevent_main()
650 print_event(event.type, event.code, event.value, print_flags); in getevent_main()
651 if(sync_rate && event.type == 0 && event.code == 0) { in getevent_main()
652 int64_t now = event.time.tv_sec * 1000000LL + event.time.tv_usec; in getevent_main()