Home
last modified time | relevance | path

Searched refs:event_set (Results 1 – 25 of 27) sorted by relevance

12

/external/ltp/testcases/kernel/syscalls/inotify/
Dinotify02.c70 static struct event_t event_set[EVENT_MAX]; variable
84 event_set[test_cnt].mask = IN_ISDIR | IN_ATTRIB; in verify_inotify()
85 strcpy(event_set[test_cnt].name, ""); in verify_inotify()
93 event_set[test_cnt].mask = IN_CREATE; in verify_inotify()
94 strcpy(event_set[test_cnt].name, FILE_NAME1); in verify_inotify()
96 event_set[test_cnt].mask = IN_OPEN; in verify_inotify()
97 strcpy(event_set[test_cnt].name, FILE_NAME1); in verify_inotify()
101 event_set[test_cnt].mask = IN_CLOSE_WRITE; in verify_inotify()
102 strcpy(event_set[test_cnt].name, FILE_NAME1); in verify_inotify()
106 event_set[test_cnt].mask = IN_MOVED_FROM; in verify_inotify()
[all …]
Dinotify04.c69 struct event_t event_set[EVENT_MAX]; variable
136 event_set[test_cnt].mask = IN_DELETE_SELF; in verify_inotify()
137 strcpy(event_set[test_cnt].name, ""); in verify_inotify()
139 event_set[test_cnt].mask = IN_IGNORED; in verify_inotify()
140 strcpy(event_set[test_cnt].name, ""); in verify_inotify()
154 event_set[test_cnt].mask = IN_ATTRIB; in verify_inotify()
155 strcpy(event_set[test_cnt].name, ""); in verify_inotify()
159 event_set[test_cnt].mask = IN_DELETE_SELF; in verify_inotify()
160 strcpy(event_set[test_cnt].name, TEST_FILE); in verify_inotify()
162 event_set[test_cnt].mask = IN_IGNORED; in verify_inotify()
[all …]
Dinotify07.c84 static struct event_t event_set[EVENT_MAX]; variable
96 event_set[test_cnt].mask = IN_ISDIR | IN_ATTRIB; in verify_inotify()
97 strcpy(event_set[test_cnt].name, ""); in verify_inotify()
101 event_set[test_cnt].mask = IN_OPEN; in verify_inotify()
102 strcpy(event_set[test_cnt].name, FILE_NAME); in verify_inotify()
104 event_set[test_cnt].mask = IN_CLOSE_WRITE; in verify_inotify()
105 strcpy(event_set[test_cnt].name, FILE_NAME); in verify_inotify()
107 event_set[test_cnt].mask = IN_ATTRIB; in verify_inotify()
108 strcpy(event_set[test_cnt].name, FILE_NAME); in verify_inotify()
129 } else if ((event_set[test_num].mask == event->mask) in verify_inotify()
[all …]
Dinotify01.c59 static unsigned int event_set[EVENT_MAX]; variable
71 event_set[test_cnt] = IN_ATTRIB; in verify_inotify()
78 event_set[test_cnt] = IN_OPEN; in verify_inotify()
85 event_set[test_cnt] = IN_ACCESS; in verify_inotify()
89 event_set[test_cnt] = IN_CLOSE_NOWRITE; in verify_inotify()
96 event_set[test_cnt] = IN_OPEN; in verify_inotify()
103 event_set[test_cnt] = IN_MODIFY; in verify_inotify()
107 event_set[test_cnt] = IN_CLOSE_WRITE; in verify_inotify()
133 } else if (event_set[test_num] == event->mask) { in verify_inotify()
151 event_set[test_num], in verify_inotify()
[all …]
Dinotify08.c83 static struct event_t event_set[EVENT_MAX]; variable
95 event_set[test_cnt].mask = IN_ATTRIB; in verify_inotify()
100 event_set[test_cnt].mask = IN_OPEN; in verify_inotify()
103 event_set[test_cnt].mask = IN_CLOSE_WRITE; in verify_inotify()
128 } else if (event_set[test_num].mask == event->mask && in verify_inotify()
140 event_set[test_num].mask, in verify_inotify()
150 event_set[test_num].mask); in verify_inotify()
Dinotify03.c61 static unsigned int event_set[EVENT_MAX]; variable
87 event_set[test_cnt] = IN_UNMOUNT; in verify_inotify()
89 event_set[test_cnt] = IN_IGNORED; in verify_inotify()
122 } else if (event_set[test_num] == event->mask) { in verify_inotify()
132 event_set[test_num], in verify_inotify()
140 event_set[test_num]); in verify_inotify()
/external/libevent/
Dpoll.c65 struct pollfd *event_set; member
113 EVUTIL_ASSERT(pop->event_set[idx].fd == i); in poll_check_ok()
116 struct pollfd *pfd = &pop->event_set[i]; in poll_check_ok()
130 struct pollfd *event_set; in poll_dispatch() local
153 memcpy(pop->event_set_copy, pop->event_set, in poll_dispatch()
155 event_set = pop->event_set_copy; in poll_dispatch()
157 event_set = pop->event_set; in poll_dispatch()
160 event_set = pop->event_set; in poll_dispatch()
171 res = poll(event_set, nfds, msec); in poll_dispatch()
194 what = event_set[i].revents; in poll_dispatch()
[all …]
Dwhatsnew-2.0.txt91 Functions like "event_set" that worked with the "current" event_base
104 functions. For example, instead of malloc and event_set, you
118 event_set(ev, fd, EV_READ, cb, NULL);
/external/ltp/testcases/kernel/syscalls/fanotify/
Dfanotify02.c39 static unsigned long long event_set[EVENT_MAX]; variable
64 event_set[tst_count] = FAN_OPEN; in test01()
68 event_set[tst_count] = FAN_MODIFY; in test01()
72 event_set[tst_count] = FAN_CLOSE_WRITE; in test01()
84 event_set[tst_count] = FAN_OPEN; in test01()
88 event_set[tst_count] = FAN_ACCESS; in test01()
92 event_set[tst_count] = FAN_CLOSE_NOWRITE; in test01()
121 event_set[tst_count] = FAN_OPEN; in test01()
125 event_set[tst_count] = FAN_CLOSE_NOWRITE; in test01()
154 } else if (!(event->mask & event_set[test_num])) { in test01()
[all …]
Dfanotify01.c57 static unsigned long long event_set[EVENT_MAX]; variable
90 event_set[tst_count] = FAN_OPEN; in test_fanotify()
94 event_set[tst_count] = FAN_ACCESS; in test_fanotify()
98 event_set[tst_count] = FAN_CLOSE_NOWRITE; in test_fanotify()
109 event_set[tst_count] = FAN_OPEN; in test_fanotify()
113 event_set[tst_count] = FAN_MODIFY; in test_fanotify()
117 event_set[tst_count] = FAN_CLOSE_WRITE; in test_fanotify()
142 event_set[tst_count] = FAN_OPEN; in test_fanotify()
158 event_set[tst_count] = FAN_MODIFY; in test_fanotify()
166 event_set[tst_count] = FAN_ACCESS; in test_fanotify()
[all …]
Dfanotify03.c45 static unsigned long long event_set[EVENT_MAX]; variable
184 event_set[tst_count] = FAN_OPEN_PERM; in test_fanotify()
186 event_set[tst_count] = FAN_ACCESS_PERM; in test_fanotify()
217 if (!(event->mask & event_set[test_num])) { in test_fanotify()
222 event_set[test_num], in test_fanotify()
239 if (event_set[test_num] & FAN_ALL_PERM_EVENTS) { in test_fanotify()
247 event->mask &= ~event_set[test_num]; in test_fanotify()
258 event_set[test_num]); in test_fanotify()
/external/libevent/include/event2/
Devent_compat.h184 void event_set(struct event *, evutil_socket_t, short, void (*)(evutil_socket_t, short, void *), vo…
186 #define evtimer_set(ev, cb, arg) event_set((ev), -1, 0, (cb), (arg))
188 event_set((ev), (x), EV_SIGNAL|EV_PERSIST, (cb), (arg))
199 #define timeout_set(ev, cb, arg) event_set((ev), -1, 0, (cb), (arg))
214 event_set((ev), (x), EV_SIGNAL|EV_PERSIST, (cb), (arg))
/external/libchrome/base/message_loop/
Dmessage_pump_libevent.cc171 event_set(evt.get(), fd, event_mask, OnLibeventNotification, controller); in WatchFileDescriptor()
244 event_set(timer_event.get(), -1, 0, timer_callback, event_base_); in Run()
294 event_set(wakeup_event_, wakeup_pipe_out_, EV_READ | EV_PERSIST, in Init()
/external/syzkaller/executor/
Dcommon.h269 static void event_set(event_t* ev) in event_set() function
403 event_set(&th->done); in thr()
433 event_set(&th->done); in execute_one()
441 event_set(&th->ready); in execute_one()
Dcommon_windows.h62 static void event_set(event_t* ev) in event_set() function
Dcommon_fuchsia.h135 static void event_set(event_t* ev) in event_set() function
Dexecutor.cc664 event_set(&th->done); in execute_one()
737 event_set(&th->ready); in schedule_call()
907 event_set(&th->done); in thread_create()
922 event_set(&th->done); in worker_thread()
Dcommon_linux.h34 static void event_set(event_t* ev) in event_set() function
/external/libevent/test/
Dregress.c311 event_set(&ev, pair[1], EV_READ, simple_read_cb, &ev); in test_simpleread()
327 event_set(&ev, pair[0], EV_WRITE, simple_write_cb, &ev); in test_simplewrite()
356 event_set(&one, pair[1], EV_READ, simpleread_multiple_cb, NULL); in test_simpleread_multiple()
359 event_set(&two, pair[1], EV_READ, simpleread_multiple_cb, NULL); in test_simpleread_multiple()
490 event_set(&ev, pair[0], EV_WRITE, multiple_write_cb, &ev); in test_multiple()
493 event_set(&ev2, pair[1], EV_READ, multiple_read_cb, &ev2); in test_multiple()
519 event_set(&ev, pair[0], EV_WRITE|EV_PERSIST, multiple_write_cb, &ev); in test_persistent()
522 event_set(&ev2, pair[1], EV_READ|EV_PERSIST, multiple_read_cb, &ev2); in test_persistent()
547 event_set(&r1.ev, pair[0], EV_READ, combined_read_cb, &r1); in test_combined()
548 event_set(&w1.ev, pair[0], EV_WRITE, combined_write_cb, &w1); in test_combined()
[all …]
Dtest-weof.c106 event_set(&ev, pair[1], EV_WRITE, write_cb, &ev); in main()
Dtest-eof.c109 event_set(&ev, pair[1], EV_READ | EV_TIMEOUT, read_cb, &ev); in main()
Dbench_cascade.c111 event_set(&events[i], cp[0], EV_READ, read_cb, in run_once()
Dbench.c106 event_set(&events[i], cp[0], EV_READ | EV_PERSIST, read_cb, (void *)(ev_intptr_t) i); in run_once()
/external/python/cpython2/Modules/
D_elementtree.c2830 PyObject* event_set = Py_None; local
2832 &event_set))
2855 if (event_set == Py_None) {
2861 if (!PyTuple_Check(event_set)) /* FIXME: handle arbitrary sequences */
2864 for (i = 0; i < PyTuple_GET_SIZE(event_set); i++) {
2865 PyObject* item = PyTuple_GET_ITEM(event_set, i);
/external/syzkaller/pkg/csource/
Dgenerated.go254 static void event_set(event_t* ev)
537 static void event_set(event_t* ev)
678 static void event_set(event_t* ev)
3621 static void event_set(event_t* ev)
3756 event_set(&th->done);
3786 event_set(&th->done);
3794 event_set(&th->ready);

12