Lines Matching refs:event
421 struct inotify_event *event; in read_notify() local
424 if(res < (int)sizeof(*event)) { in read_notify()
436 while(res >= (int)sizeof(*event)) { in read_notify()
437 event = (struct inotify_event *)(event_buf + event_pos); in read_notify()
439 if(event->len) { in read_notify()
440 strcpy(filename, event->name); in read_notify()
441 if(event->mask & IN_CREATE) { in read_notify()
448 event_size = sizeof(*event) + event->len; in read_notify()
505 struct input_event event; in getevent_main() local
645 res = read(ufds[i].fd, &event, sizeof(event)); in getevent_main()
646 if(res < (int)sizeof(event)) { in getevent_main()
651 printf("[%8ld.%06ld] ", event.time.tv_sec, event.time.tv_usec); in getevent_main()
655 print_event(event.type, event.code, event.value, print_flags); in getevent_main()
656 if(sync_rate && event.type == 0 && event.code == 0) { in getevent_main()
657 int64_t now = event.time.tv_sec * 1000000LL + event.time.tv_usec; in getevent_main()