Lines Matching defs:event
32 /* Size of the event structure, not including the name */
51 "Watch for single event",
70 struct inotify_event *event = (struct inotify_event *)event_buf;
95 * Read the 1st IN_MODIFY event
99 if (len < (int)sizeof(*event)) {
101 } else if (event->mask == IN_MODIFY) {
102 tst_res(TPASS, "Got 1st event as expected");
104 tst_res(TFAIL, "Got event 0x%x (expected 0x%x)",
105 event->mask, IN_MODIFY);
109 * Unlink file so IN_EXCL_UNLINK won't get IN_ACCESS event.
110 * IN_ONESHOT won't get IN_ACCESS event because IN_MODIFY
118 * Possibly read the 2nd IN_MODIFY event
124 /* Treat no event same as we treat IN_IGNORED */
125 event->mask = IN_IGNORED;
126 } else if (len < (int)sizeof(*event)) {
131 if (event->mask == IN_MODIFY) {
133 tst_res(TPASS, "Got 2nd event as expected");
135 tst_res(TFAIL, "Got unexpected 2nd event");
136 } else if (event->mask == IN_IGNORED) {
140 tst_res(TFAIL, "Got only one event (expected %d)",
143 tst_res(TFAIL, "Got unexpected event 0x%x",
144 event->mask);