2 * Copyright (c) 2000-2007 Niels Provos <provos@citi.umich.edu>
3 * Copyright (c) 2007-2012 Niels Provos and Nick Mathewson
5 * Redistribution and use in source and binary forms, with or without
6 * modification, are permitted provided that the following conditions
8 * 1. Redistributions of source code must retain the above copyright
9 * notice, this list of conditions and the following disclaimer.
10 * 2. Redistributions in binary form must reproduce the above copyright
11 * notice, this list of conditions and the following disclaimer in the
12 * documentation and/or other materials provided with the distribution.
13 * 3. The name of the author may not be used to endorse or promote products
14 * derived from this software without specific prior written permission.
16 * THIS SOFTWARE IS PROVIDED BY THE AUTHOR ``AS IS'' AND ANY EXPRESS OR
17 * IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES
18 * OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED.
19 * IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT,
20 * INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT
21 * NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
22 * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
23 * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
24 * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF
25 * THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
27 #ifndef EPOLLTABLE_INTERNAL_H_INCLUDED_
28 #define EPOLLTABLE_INTERNAL_H_INCLUDED_
31 Here are the values we're masking off to decide what operations to do.
32 Note that since EV_READ|EV_WRITE.
34 Note also that this table is a little sparse, since ADD+DEL is
35 nonsensical ("xxx" in the list below.)
37 Note also also that we are shifting old_events by only 5 bits, since
38 EV_READ is 2 and EV_WRITE is 4.
40 The table was auto-generated with a python script, according to this
43 If either the read or the write change is add+del:
44 This is impossible; Set op==-1, events=0.
45 Else, if either the read or the write change is add:
47 If the read change is add, or
48 (the read change is not del, and ev_read is in old_events):
49 Add EPOLLIN to events.
50 If the write change is add, or
51 (the write change is not del, and ev_write is in old_events):
52 Add EPOLLOUT to events.
55 Set op to EPOLL_CTL_MOD [*1,*2]
57 Set op to EPOLL_CTL_ADD [*3]
59 Else, if the read or the write change is del:
60 Set op to EPOLL_CTL_DEL.
61 If the read change is del:
62 If the write change is del:
63 Set events to EPOLLIN|EPOLLOUT
64 Else if ev_write is in old_events:
65 Set events to EPOLLOUT
66 Set op to EPOLL_CTL_MOD
70 {The write change is del.}
71 If ev_read is in old_events:
73 Set op to EPOLL_CTL_MOD
75 Set the events to EPOLLOUT
78 There is no read or write change; set op to 0 and events to 0.
80 The logic is a little tricky, since we had no events set on the fd before,
81 we need to set op="ADD" and set events=the events we want to add. If we
82 had any events set on the fd before, and we want any events to remain on
83 the fd, we need to say op="MOD" and set events=the events we want to
84 remain. But if we want to delete the last event, we say op="DEL" and
85 set events=(any non-null pointer).
87 [*0] Actually, the Python script has gotten a bit more complicated, to
90 [*1] This MOD is only a guess. MOD might fail with ENOENT if the file was
91 closed and a new file was opened with the same fd. If so, we'll retry
94 [*2] We can't replace this with a no-op even if old_events is the same as
95 the new events: if the file was closed and reopened, we need to retry
96 with an ADD. (We do a MOD in this case since "no change" is more
97 common than "close and reopen", so we'll usually wind up doing 1
98 syscalls instead of 2.)
100 [*3] This ADD is only a guess. There is a fun Linux kernel issue where if
101 you have two fds for the same file (via dup) and you ADD one to an
102 epfd, then close it, then re-create it with the same fd (via dup2 or an
103 unlucky dup), then try to ADD it again, you'll get an EEXIST, since the
104 struct epitem is not actually removed from the struct eventpoll until
105 the file itself is closed.
113 Bit 0: close change is add
114 Bit 1: close change is del
115 Bit 2: read change is add
116 Bit 3: read change is del
117 Bit 4: write change is add
118 Bit 5: write change is del
119 Bit 6: old events had EV_READ
120 Bit 7: old events had EV_WRITE
121 Bit 8: old events had EV_CLOSED
124 #define EPOLL_OP_TABLE_INDEX(c) \
125 ( (((c)->close_change&(EV_CHANGE_ADD|EV_CHANGE_DEL))) | \
126 (((c)->read_change&(EV_CHANGE_ADD|EV_CHANGE_DEL)) << 2) | \
127 (((c)->write_change&(EV_CHANGE_ADD|EV_CHANGE_DEL)) << 4) | \
128 (((c)->old_events&(EV_READ|EV_WRITE)) << 5) | \
129 (((c)->old_events&(EV_CLOSED)) << 1) \
132 #if EV_READ != 2 || EV_WRITE != 4 || EV_CLOSED != 0x80 || EV_CHANGE_ADD != 1 || EV_CHANGE_DEL != 2
133 #error "Libevent's internals changed! Regenerate the op_table in epolltable-internal.h"
136 static const struct operation {
139 } epoll_op_table[] = {
140 /* old= 0, write: 0, read: 0, close: 0 */
142 /* old= 0, write: 0, read: 0, close:add */
143 { EPOLLRDHUP, EPOLL_CTL_ADD },
144 /* old= 0, write: 0, read: 0, close:del */
145 { EPOLLRDHUP, EPOLL_CTL_DEL },
146 /* old= 0, write: 0, read: 0, close:xxx */
148 /* old= 0, write: 0, read:add, close: 0 */
149 { EPOLLIN, EPOLL_CTL_ADD },
150 /* old= 0, write: 0, read:add, close:add */
151 { EPOLLIN|EPOLLRDHUP, EPOLL_CTL_ADD },
152 /* old= 0, write: 0, read:add, close:del */
153 { EPOLLIN, EPOLL_CTL_ADD },
154 /* old= 0, write: 0, read:add, close:xxx */
156 /* old= 0, write: 0, read:del, close: 0 */
157 { EPOLLIN, EPOLL_CTL_DEL },
158 /* old= 0, write: 0, read:del, close:add */
159 { EPOLLRDHUP, EPOLL_CTL_ADD },
160 /* old= 0, write: 0, read:del, close:del */
161 { EPOLLIN|EPOLLRDHUP, EPOLL_CTL_DEL },
162 /* old= 0, write: 0, read:del, close:xxx */
164 /* old= 0, write: 0, read:xxx, close: 0 */
166 /* old= 0, write: 0, read:xxx, close:add */
168 /* old= 0, write: 0, read:xxx, close:del */
170 /* old= 0, write: 0, read:xxx, close:xxx */
172 /* old= 0, write:add, read: 0, close: 0 */
173 { EPOLLOUT, EPOLL_CTL_ADD },
174 /* old= 0, write:add, read: 0, close:add */
175 { EPOLLOUT|EPOLLRDHUP, EPOLL_CTL_ADD },
176 /* old= 0, write:add, read: 0, close:del */
177 { EPOLLOUT, EPOLL_CTL_ADD },
178 /* old= 0, write:add, read: 0, close:xxx */
180 /* old= 0, write:add, read:add, close: 0 */
181 { EPOLLIN|EPOLLOUT, EPOLL_CTL_ADD },
182 /* old= 0, write:add, read:add, close:add */
183 { EPOLLIN|EPOLLOUT|EPOLLRDHUP, EPOLL_CTL_ADD },
184 /* old= 0, write:add, read:add, close:del */
185 { EPOLLIN|EPOLLOUT, EPOLL_CTL_ADD },
186 /* old= 0, write:add, read:add, close:xxx */
188 /* old= 0, write:add, read:del, close: 0 */
189 { EPOLLOUT, EPOLL_CTL_ADD },
190 /* old= 0, write:add, read:del, close:add */
191 { EPOLLOUT|EPOLLRDHUP, EPOLL_CTL_ADD },
192 /* old= 0, write:add, read:del, close:del */
193 { EPOLLOUT, EPOLL_CTL_ADD },
194 /* old= 0, write:add, read:del, close:xxx */
196 /* old= 0, write:add, read:xxx, close: 0 */
198 /* old= 0, write:add, read:xxx, close:add */
200 /* old= 0, write:add, read:xxx, close:del */
202 /* old= 0, write:add, read:xxx, close:xxx */
204 /* old= 0, write:del, read: 0, close: 0 */
205 { EPOLLOUT, EPOLL_CTL_DEL },
206 /* old= 0, write:del, read: 0, close:add */
207 { EPOLLRDHUP, EPOLL_CTL_ADD },
208 /* old= 0, write:del, read: 0, close:del */
209 { EPOLLOUT|EPOLLRDHUP, EPOLL_CTL_DEL },
210 /* old= 0, write:del, read: 0, close:xxx */
212 /* old= 0, write:del, read:add, close: 0 */
213 { EPOLLIN, EPOLL_CTL_ADD },
214 /* old= 0, write:del, read:add, close:add */
215 { EPOLLIN|EPOLLRDHUP, EPOLL_CTL_ADD },
216 /* old= 0, write:del, read:add, close:del */
217 { EPOLLIN, EPOLL_CTL_ADD },
218 /* old= 0, write:del, read:add, close:xxx */
220 /* old= 0, write:del, read:del, close: 0 */
221 { EPOLLIN|EPOLLOUT, EPOLL_CTL_DEL },
222 /* old= 0, write:del, read:del, close:add */
223 { EPOLLRDHUP, EPOLL_CTL_ADD },
224 /* old= 0, write:del, read:del, close:del */
225 { EPOLLIN|EPOLLOUT|EPOLLRDHUP, EPOLL_CTL_DEL },
226 /* old= 0, write:del, read:del, close:xxx */
228 /* old= 0, write:del, read:xxx, close: 0 */
230 /* old= 0, write:del, read:xxx, close:add */
232 /* old= 0, write:del, read:xxx, close:del */
234 /* old= 0, write:del, read:xxx, close:xxx */
236 /* old= 0, write:xxx, read: 0, close: 0 */
238 /* old= 0, write:xxx, read: 0, close:add */
240 /* old= 0, write:xxx, read: 0, close:del */
242 /* old= 0, write:xxx, read: 0, close:xxx */
244 /* old= 0, write:xxx, read:add, close: 0 */
246 /* old= 0, write:xxx, read:add, close:add */
248 /* old= 0, write:xxx, read:add, close:del */
250 /* old= 0, write:xxx, read:add, close:xxx */
252 /* old= 0, write:xxx, read:del, close: 0 */
254 /* old= 0, write:xxx, read:del, close:add */
256 /* old= 0, write:xxx, read:del, close:del */
258 /* old= 0, write:xxx, read:del, close:xxx */
260 /* old= 0, write:xxx, read:xxx, close: 0 */
262 /* old= 0, write:xxx, read:xxx, close:add */
264 /* old= 0, write:xxx, read:xxx, close:del */
266 /* old= 0, write:xxx, read:xxx, close:xxx */
268 /* old= r, write: 0, read: 0, close: 0 */
270 /* old= r, write: 0, read: 0, close:add */
271 { EPOLLIN|EPOLLRDHUP, EPOLL_CTL_MOD },
272 /* old= r, write: 0, read: 0, close:del */
273 { EPOLLIN, EPOLL_CTL_MOD },
274 /* old= r, write: 0, read: 0, close:xxx */
276 /* old= r, write: 0, read:add, close: 0 */
277 { EPOLLIN, EPOLL_CTL_MOD },
278 /* old= r, write: 0, read:add, close:add */
279 { EPOLLIN|EPOLLRDHUP, EPOLL_CTL_MOD },
280 /* old= r, write: 0, read:add, close:del */
281 { EPOLLIN, EPOLL_CTL_MOD },
282 /* old= r, write: 0, read:add, close:xxx */
284 /* old= r, write: 0, read:del, close: 0 */
285 { EPOLLIN, EPOLL_CTL_DEL },
286 /* old= r, write: 0, read:del, close:add */
287 { EPOLLRDHUP, EPOLL_CTL_MOD },
288 /* old= r, write: 0, read:del, close:del */
289 { EPOLLIN|EPOLLRDHUP, EPOLL_CTL_DEL },
290 /* old= r, write: 0, read:del, close:xxx */
292 /* old= r, write: 0, read:xxx, close: 0 */
294 /* old= r, write: 0, read:xxx, close:add */
296 /* old= r, write: 0, read:xxx, close:del */
298 /* old= r, write: 0, read:xxx, close:xxx */
300 /* old= r, write:add, read: 0, close: 0 */
301 { EPOLLIN|EPOLLOUT, EPOLL_CTL_MOD },
302 /* old= r, write:add, read: 0, close:add */
303 { EPOLLIN|EPOLLOUT|EPOLLRDHUP, EPOLL_CTL_MOD },
304 /* old= r, write:add, read: 0, close:del */
305 { EPOLLIN|EPOLLOUT, EPOLL_CTL_MOD },
306 /* old= r, write:add, read: 0, close:xxx */
308 /* old= r, write:add, read:add, close: 0 */
309 { EPOLLIN|EPOLLOUT, EPOLL_CTL_MOD },
310 /* old= r, write:add, read:add, close:add */
311 { EPOLLIN|EPOLLOUT|EPOLLRDHUP, EPOLL_CTL_MOD },
312 /* old= r, write:add, read:add, close:del */
313 { EPOLLIN|EPOLLOUT, EPOLL_CTL_MOD },
314 /* old= r, write:add, read:add, close:xxx */
316 /* old= r, write:add, read:del, close: 0 */
317 { EPOLLOUT, EPOLL_CTL_MOD },
318 /* old= r, write:add, read:del, close:add */
319 { EPOLLOUT|EPOLLRDHUP, EPOLL_CTL_MOD },
320 /* old= r, write:add, read:del, close:del */
321 { EPOLLOUT, EPOLL_CTL_MOD },
322 /* old= r, write:add, read:del, close:xxx */
324 /* old= r, write:add, read:xxx, close: 0 */
326 /* old= r, write:add, read:xxx, close:add */
328 /* old= r, write:add, read:xxx, close:del */
330 /* old= r, write:add, read:xxx, close:xxx */
332 /* old= r, write:del, read: 0, close: 0 */
333 { EPOLLIN, EPOLL_CTL_MOD },
334 /* old= r, write:del, read: 0, close:add */
335 { EPOLLIN|EPOLLRDHUP, EPOLL_CTL_MOD },
336 /* old= r, write:del, read: 0, close:del */
337 { EPOLLIN, EPOLL_CTL_MOD },
338 /* old= r, write:del, read: 0, close:xxx */
340 /* old= r, write:del, read:add, close: 0 */
341 { EPOLLIN, EPOLL_CTL_MOD },
342 /* old= r, write:del, read:add, close:add */
343 { EPOLLIN|EPOLLRDHUP, EPOLL_CTL_MOD },
344 /* old= r, write:del, read:add, close:del */
345 { EPOLLIN, EPOLL_CTL_MOD },
346 /* old= r, write:del, read:add, close:xxx */
348 /* old= r, write:del, read:del, close: 0 */
349 { EPOLLIN|EPOLLOUT, EPOLL_CTL_DEL },
350 /* old= r, write:del, read:del, close:add */
351 { EPOLLRDHUP, EPOLL_CTL_MOD },
352 /* old= r, write:del, read:del, close:del */
353 { EPOLLIN|EPOLLOUT|EPOLLRDHUP, EPOLL_CTL_DEL },
354 /* old= r, write:del, read:del, close:xxx */
356 /* old= r, write:del, read:xxx, close: 0 */
358 /* old= r, write:del, read:xxx, close:add */
360 /* old= r, write:del, read:xxx, close:del */
362 /* old= r, write:del, read:xxx, close:xxx */
364 /* old= r, write:xxx, read: 0, close: 0 */
366 /* old= r, write:xxx, read: 0, close:add */
368 /* old= r, write:xxx, read: 0, close:del */
370 /* old= r, write:xxx, read: 0, close:xxx */
372 /* old= r, write:xxx, read:add, close: 0 */
374 /* old= r, write:xxx, read:add, close:add */
376 /* old= r, write:xxx, read:add, close:del */
378 /* old= r, write:xxx, read:add, close:xxx */
380 /* old= r, write:xxx, read:del, close: 0 */
382 /* old= r, write:xxx, read:del, close:add */
384 /* old= r, write:xxx, read:del, close:del */
386 /* old= r, write:xxx, read:del, close:xxx */
388 /* old= r, write:xxx, read:xxx, close: 0 */
390 /* old= r, write:xxx, read:xxx, close:add */
392 /* old= r, write:xxx, read:xxx, close:del */
394 /* old= r, write:xxx, read:xxx, close:xxx */
396 /* old= w, write: 0, read: 0, close: 0 */
398 /* old= w, write: 0, read: 0, close:add */
399 { EPOLLOUT|EPOLLRDHUP, EPOLL_CTL_MOD },
400 /* old= w, write: 0, read: 0, close:del */
401 { EPOLLOUT, EPOLL_CTL_MOD },
402 /* old= w, write: 0, read: 0, close:xxx */
404 /* old= w, write: 0, read:add, close: 0 */
405 { EPOLLIN|EPOLLOUT, EPOLL_CTL_MOD },
406 /* old= w, write: 0, read:add, close:add */
407 { EPOLLIN|EPOLLOUT|EPOLLRDHUP, EPOLL_CTL_MOD },
408 /* old= w, write: 0, read:add, close:del */
409 { EPOLLIN|EPOLLOUT, EPOLL_CTL_MOD },
410 /* old= w, write: 0, read:add, close:xxx */
412 /* old= w, write: 0, read:del, close: 0 */
413 { EPOLLOUT, EPOLL_CTL_MOD },
414 /* old= w, write: 0, read:del, close:add */
415 { EPOLLOUT|EPOLLRDHUP, EPOLL_CTL_MOD },
416 /* old= w, write: 0, read:del, close:del */
417 { EPOLLOUT, EPOLL_CTL_MOD },
418 /* old= w, write: 0, read:del, close:xxx */
420 /* old= w, write: 0, read:xxx, close: 0 */
422 /* old= w, write: 0, read:xxx, close:add */
424 /* old= w, write: 0, read:xxx, close:del */
426 /* old= w, write: 0, read:xxx, close:xxx */
428 /* old= w, write:add, read: 0, close: 0 */
429 { EPOLLOUT, EPOLL_CTL_MOD },
430 /* old= w, write:add, read: 0, close:add */
431 { EPOLLOUT|EPOLLRDHUP, EPOLL_CTL_MOD },
432 /* old= w, write:add, read: 0, close:del */
433 { EPOLLOUT, EPOLL_CTL_MOD },
434 /* old= w, write:add, read: 0, close:xxx */
436 /* old= w, write:add, read:add, close: 0 */
437 { EPOLLIN|EPOLLOUT, EPOLL_CTL_MOD },
438 /* old= w, write:add, read:add, close:add */
439 { EPOLLIN|EPOLLOUT|EPOLLRDHUP, EPOLL_CTL_MOD },
440 /* old= w, write:add, read:add, close:del */
441 { EPOLLIN|EPOLLOUT, EPOLL_CTL_MOD },
442 /* old= w, write:add, read:add, close:xxx */
444 /* old= w, write:add, read:del, close: 0 */
445 { EPOLLOUT, EPOLL_CTL_MOD },
446 /* old= w, write:add, read:del, close:add */
447 { EPOLLOUT|EPOLLRDHUP, EPOLL_CTL_MOD },
448 /* old= w, write:add, read:del, close:del */
449 { EPOLLOUT, EPOLL_CTL_MOD },
450 /* old= w, write:add, read:del, close:xxx */
452 /* old= w, write:add, read:xxx, close: 0 */
454 /* old= w, write:add, read:xxx, close:add */
456 /* old= w, write:add, read:xxx, close:del */
458 /* old= w, write:add, read:xxx, close:xxx */
460 /* old= w, write:del, read: 0, close: 0 */
461 { EPOLLOUT, EPOLL_CTL_DEL },
462 /* old= w, write:del, read: 0, close:add */
463 { EPOLLRDHUP, EPOLL_CTL_MOD },
464 /* old= w, write:del, read: 0, close:del */
465 { EPOLLOUT|EPOLLRDHUP, EPOLL_CTL_DEL },
466 /* old= w, write:del, read: 0, close:xxx */
468 /* old= w, write:del, read:add, close: 0 */
469 { EPOLLIN, EPOLL_CTL_MOD },
470 /* old= w, write:del, read:add, close:add */
471 { EPOLLIN|EPOLLRDHUP, EPOLL_CTL_MOD },
472 /* old= w, write:del, read:add, close:del */
473 { EPOLLIN, EPOLL_CTL_MOD },
474 /* old= w, write:del, read:add, close:xxx */
476 /* old= w, write:del, read:del, close: 0 */
477 { EPOLLIN|EPOLLOUT, EPOLL_CTL_DEL },
478 /* old= w, write:del, read:del, close:add */
479 { EPOLLRDHUP, EPOLL_CTL_MOD },
480 /* old= w, write:del, read:del, close:del */
481 { EPOLLIN|EPOLLOUT|EPOLLRDHUP, EPOLL_CTL_DEL },
482 /* old= w, write:del, read:del, close:xxx */
484 /* old= w, write:del, read:xxx, close: 0 */
486 /* old= w, write:del, read:xxx, close:add */
488 /* old= w, write:del, read:xxx, close:del */
490 /* old= w, write:del, read:xxx, close:xxx */
492 /* old= w, write:xxx, read: 0, close: 0 */
494 /* old= w, write:xxx, read: 0, close:add */
496 /* old= w, write:xxx, read: 0, close:del */
498 /* old= w, write:xxx, read: 0, close:xxx */
500 /* old= w, write:xxx, read:add, close: 0 */
502 /* old= w, write:xxx, read:add, close:add */
504 /* old= w, write:xxx, read:add, close:del */
506 /* old= w, write:xxx, read:add, close:xxx */
508 /* old= w, write:xxx, read:del, close: 0 */
510 /* old= w, write:xxx, read:del, close:add */
512 /* old= w, write:xxx, read:del, close:del */
514 /* old= w, write:xxx, read:del, close:xxx */
516 /* old= w, write:xxx, read:xxx, close: 0 */
518 /* old= w, write:xxx, read:xxx, close:add */
520 /* old= w, write:xxx, read:xxx, close:del */
522 /* old= w, write:xxx, read:xxx, close:xxx */
524 /* old= rw, write: 0, read: 0, close: 0 */
526 /* old= rw, write: 0, read: 0, close:add */
527 { EPOLLIN|EPOLLOUT|EPOLLRDHUP, EPOLL_CTL_MOD },
528 /* old= rw, write: 0, read: 0, close:del */
529 { EPOLLIN|EPOLLOUT, EPOLL_CTL_MOD },
530 /* old= rw, write: 0, read: 0, close:xxx */
532 /* old= rw, write: 0, read:add, close: 0 */
533 { EPOLLIN|EPOLLOUT, EPOLL_CTL_MOD },
534 /* old= rw, write: 0, read:add, close:add */
535 { EPOLLIN|EPOLLOUT|EPOLLRDHUP, EPOLL_CTL_MOD },
536 /* old= rw, write: 0, read:add, close:del */
537 { EPOLLIN|EPOLLOUT, EPOLL_CTL_MOD },
538 /* old= rw, write: 0, read:add, close:xxx */
540 /* old= rw, write: 0, read:del, close: 0 */
541 { EPOLLOUT, EPOLL_CTL_MOD },
542 /* old= rw, write: 0, read:del, close:add */
543 { EPOLLOUT|EPOLLRDHUP, EPOLL_CTL_MOD },
544 /* old= rw, write: 0, read:del, close:del */
545 { EPOLLOUT, EPOLL_CTL_MOD },
546 /* old= rw, write: 0, read:del, close:xxx */
548 /* old= rw, write: 0, read:xxx, close: 0 */
550 /* old= rw, write: 0, read:xxx, close:add */
552 /* old= rw, write: 0, read:xxx, close:del */
554 /* old= rw, write: 0, read:xxx, close:xxx */
556 /* old= rw, write:add, read: 0, close: 0 */
557 { EPOLLIN|EPOLLOUT, EPOLL_CTL_MOD },
558 /* old= rw, write:add, read: 0, close:add */
559 { EPOLLIN|EPOLLOUT|EPOLLRDHUP, EPOLL_CTL_MOD },
560 /* old= rw, write:add, read: 0, close:del */
561 { EPOLLIN|EPOLLOUT, EPOLL_CTL_MOD },
562 /* old= rw, write:add, read: 0, close:xxx */
564 /* old= rw, write:add, read:add, close: 0 */
565 { EPOLLIN|EPOLLOUT, EPOLL_CTL_MOD },
566 /* old= rw, write:add, read:add, close:add */
567 { EPOLLIN|EPOLLOUT|EPOLLRDHUP, EPOLL_CTL_MOD },
568 /* old= rw, write:add, read:add, close:del */
569 { EPOLLIN|EPOLLOUT, EPOLL_CTL_MOD },
570 /* old= rw, write:add, read:add, close:xxx */
572 /* old= rw, write:add, read:del, close: 0 */
573 { EPOLLOUT, EPOLL_CTL_MOD },
574 /* old= rw, write:add, read:del, close:add */
575 { EPOLLOUT|EPOLLRDHUP, EPOLL_CTL_MOD },
576 /* old= rw, write:add, read:del, close:del */
577 { EPOLLOUT, EPOLL_CTL_MOD },
578 /* old= rw, write:add, read:del, close:xxx */
580 /* old= rw, write:add, read:xxx, close: 0 */
582 /* old= rw, write:add, read:xxx, close:add */
584 /* old= rw, write:add, read:xxx, close:del */
586 /* old= rw, write:add, read:xxx, close:xxx */
588 /* old= rw, write:del, read: 0, close: 0 */
589 { EPOLLIN, EPOLL_CTL_MOD },
590 /* old= rw, write:del, read: 0, close:add */
591 { EPOLLIN|EPOLLRDHUP, EPOLL_CTL_MOD },
592 /* old= rw, write:del, read: 0, close:del */
593 { EPOLLIN, EPOLL_CTL_MOD },
594 /* old= rw, write:del, read: 0, close:xxx */
596 /* old= rw, write:del, read:add, close: 0 */
597 { EPOLLIN, EPOLL_CTL_MOD },
598 /* old= rw, write:del, read:add, close:add */
599 { EPOLLIN|EPOLLRDHUP, EPOLL_CTL_MOD },
600 /* old= rw, write:del, read:add, close:del */
601 { EPOLLIN, EPOLL_CTL_MOD },
602 /* old= rw, write:del, read:add, close:xxx */
604 /* old= rw, write:del, read:del, close: 0 */
605 { EPOLLIN|EPOLLOUT, EPOLL_CTL_DEL },
606 /* old= rw, write:del, read:del, close:add */
607 { EPOLLRDHUP, EPOLL_CTL_MOD },
608 /* old= rw, write:del, read:del, close:del */
609 { EPOLLIN|EPOLLOUT|EPOLLRDHUP, EPOLL_CTL_DEL },
610 /* old= rw, write:del, read:del, close:xxx */
612 /* old= rw, write:del, read:xxx, close: 0 */
614 /* old= rw, write:del, read:xxx, close:add */
616 /* old= rw, write:del, read:xxx, close:del */
618 /* old= rw, write:del, read:xxx, close:xxx */
620 /* old= rw, write:xxx, read: 0, close: 0 */
622 /* old= rw, write:xxx, read: 0, close:add */
624 /* old= rw, write:xxx, read: 0, close:del */
626 /* old= rw, write:xxx, read: 0, close:xxx */
628 /* old= rw, write:xxx, read:add, close: 0 */
630 /* old= rw, write:xxx, read:add, close:add */
632 /* old= rw, write:xxx, read:add, close:del */
634 /* old= rw, write:xxx, read:add, close:xxx */
636 /* old= rw, write:xxx, read:del, close: 0 */
638 /* old= rw, write:xxx, read:del, close:add */
640 /* old= rw, write:xxx, read:del, close:del */
642 /* old= rw, write:xxx, read:del, close:xxx */
644 /* old= rw, write:xxx, read:xxx, close: 0 */
646 /* old= rw, write:xxx, read:xxx, close:add */
648 /* old= rw, write:xxx, read:xxx, close:del */
650 /* old= rw, write:xxx, read:xxx, close:xxx */
652 /* old= c, write: 0, read: 0, close: 0 */
654 /* old= c, write: 0, read: 0, close:add */
655 { EPOLLRDHUP, EPOLL_CTL_MOD },
656 /* old= c, write: 0, read: 0, close:del */
657 { EPOLLRDHUP, EPOLL_CTL_DEL },
658 /* old= c, write: 0, read: 0, close:xxx */
660 /* old= c, write: 0, read:add, close: 0 */
661 { EPOLLIN|EPOLLRDHUP, EPOLL_CTL_MOD },
662 /* old= c, write: 0, read:add, close:add */
663 { EPOLLIN|EPOLLRDHUP, EPOLL_CTL_MOD },
664 /* old= c, write: 0, read:add, close:del */
665 { EPOLLIN, EPOLL_CTL_MOD },
666 /* old= c, write: 0, read:add, close:xxx */
668 /* old= c, write: 0, read:del, close: 0 */
669 { EPOLLRDHUP, EPOLL_CTL_MOD },
670 /* old= c, write: 0, read:del, close:add */
671 { EPOLLRDHUP, EPOLL_CTL_MOD },
672 /* old= c, write: 0, read:del, close:del */
673 { EPOLLIN|EPOLLRDHUP, EPOLL_CTL_DEL },
674 /* old= c, write: 0, read:del, close:xxx */
676 /* old= c, write: 0, read:xxx, close: 0 */
678 /* old= c, write: 0, read:xxx, close:add */
680 /* old= c, write: 0, read:xxx, close:del */
682 /* old= c, write: 0, read:xxx, close:xxx */
684 /* old= c, write:add, read: 0, close: 0 */
685 { EPOLLOUT|EPOLLRDHUP, EPOLL_CTL_MOD },
686 /* old= c, write:add, read: 0, close:add */
687 { EPOLLOUT|EPOLLRDHUP, EPOLL_CTL_MOD },
688 /* old= c, write:add, read: 0, close:del */
689 { EPOLLOUT, EPOLL_CTL_MOD },
690 /* old= c, write:add, read: 0, close:xxx */
692 /* old= c, write:add, read:add, close: 0 */
693 { EPOLLIN|EPOLLOUT|EPOLLRDHUP, EPOLL_CTL_MOD },
694 /* old= c, write:add, read:add, close:add */
695 { EPOLLIN|EPOLLOUT|EPOLLRDHUP, EPOLL_CTL_MOD },
696 /* old= c, write:add, read:add, close:del */
697 { EPOLLIN|EPOLLOUT, EPOLL_CTL_MOD },
698 /* old= c, write:add, read:add, close:xxx */
700 /* old= c, write:add, read:del, close: 0 */
701 { EPOLLOUT|EPOLLRDHUP, EPOLL_CTL_MOD },
702 /* old= c, write:add, read:del, close:add */
703 { EPOLLOUT|EPOLLRDHUP, EPOLL_CTL_MOD },
704 /* old= c, write:add, read:del, close:del */
705 { EPOLLOUT, EPOLL_CTL_MOD },
706 /* old= c, write:add, read:del, close:xxx */
708 /* old= c, write:add, read:xxx, close: 0 */
710 /* old= c, write:add, read:xxx, close:add */
712 /* old= c, write:add, read:xxx, close:del */
714 /* old= c, write:add, read:xxx, close:xxx */
716 /* old= c, write:del, read: 0, close: 0 */
717 { EPOLLRDHUP, EPOLL_CTL_MOD },
718 /* old= c, write:del, read: 0, close:add */
719 { EPOLLRDHUP, EPOLL_CTL_MOD },
720 /* old= c, write:del, read: 0, close:del */
721 { EPOLLOUT|EPOLLRDHUP, EPOLL_CTL_DEL },
722 /* old= c, write:del, read: 0, close:xxx */
724 /* old= c, write:del, read:add, close: 0 */
725 { EPOLLIN|EPOLLRDHUP, EPOLL_CTL_MOD },
726 /* old= c, write:del, read:add, close:add */
727 { EPOLLIN|EPOLLRDHUP, EPOLL_CTL_MOD },
728 /* old= c, write:del, read:add, close:del */
729 { EPOLLIN, EPOLL_CTL_MOD },
730 /* old= c, write:del, read:add, close:xxx */
732 /* old= c, write:del, read:del, close: 0 */
733 { EPOLLRDHUP, EPOLL_CTL_MOD },
734 /* old= c, write:del, read:del, close:add */
735 { EPOLLRDHUP, EPOLL_CTL_MOD },
736 /* old= c, write:del, read:del, close:del */
737 { EPOLLIN|EPOLLOUT|EPOLLRDHUP, EPOLL_CTL_DEL },
738 /* old= c, write:del, read:del, close:xxx */
740 /* old= c, write:del, read:xxx, close: 0 */
742 /* old= c, write:del, read:xxx, close:add */
744 /* old= c, write:del, read:xxx, close:del */
746 /* old= c, write:del, read:xxx, close:xxx */
748 /* old= c, write:xxx, read: 0, close: 0 */
750 /* old= c, write:xxx, read: 0, close:add */
752 /* old= c, write:xxx, read: 0, close:del */
754 /* old= c, write:xxx, read: 0, close:xxx */
756 /* old= c, write:xxx, read:add, close: 0 */
758 /* old= c, write:xxx, read:add, close:add */
760 /* old= c, write:xxx, read:add, close:del */
762 /* old= c, write:xxx, read:add, close:xxx */
764 /* old= c, write:xxx, read:del, close: 0 */
766 /* old= c, write:xxx, read:del, close:add */
768 /* old= c, write:xxx, read:del, close:del */
770 /* old= c, write:xxx, read:del, close:xxx */
772 /* old= c, write:xxx, read:xxx, close: 0 */
774 /* old= c, write:xxx, read:xxx, close:add */
776 /* old= c, write:xxx, read:xxx, close:del */
778 /* old= c, write:xxx, read:xxx, close:xxx */
780 /* old= cr, write: 0, read: 0, close: 0 */
782 /* old= cr, write: 0, read: 0, close:add */
783 { EPOLLIN|EPOLLRDHUP, EPOLL_CTL_MOD },
784 /* old= cr, write: 0, read: 0, close:del */
785 { EPOLLIN, EPOLL_CTL_MOD },
786 /* old= cr, write: 0, read: 0, close:xxx */
788 /* old= cr, write: 0, read:add, close: 0 */
789 { EPOLLIN|EPOLLRDHUP, EPOLL_CTL_MOD },
790 /* old= cr, write: 0, read:add, close:add */
791 { EPOLLIN|EPOLLRDHUP, EPOLL_CTL_MOD },
792 /* old= cr, write: 0, read:add, close:del */
793 { EPOLLIN, EPOLL_CTL_MOD },
794 /* old= cr, write: 0, read:add, close:xxx */
796 /* old= cr, write: 0, read:del, close: 0 */
797 { EPOLLRDHUP, EPOLL_CTL_MOD },
798 /* old= cr, write: 0, read:del, close:add */
799 { EPOLLRDHUP, EPOLL_CTL_MOD },
800 /* old= cr, write: 0, read:del, close:del */
801 { EPOLLIN|EPOLLRDHUP, EPOLL_CTL_DEL },
802 /* old= cr, write: 0, read:del, close:xxx */
804 /* old= cr, write: 0, read:xxx, close: 0 */
806 /* old= cr, write: 0, read:xxx, close:add */
808 /* old= cr, write: 0, read:xxx, close:del */
810 /* old= cr, write: 0, read:xxx, close:xxx */
812 /* old= cr, write:add, read: 0, close: 0 */
813 { EPOLLIN|EPOLLOUT|EPOLLRDHUP, EPOLL_CTL_MOD },
814 /* old= cr, write:add, read: 0, close:add */
815 { EPOLLIN|EPOLLOUT|EPOLLRDHUP, EPOLL_CTL_MOD },
816 /* old= cr, write:add, read: 0, close:del */
817 { EPOLLIN|EPOLLOUT, EPOLL_CTL_MOD },
818 /* old= cr, write:add, read: 0, close:xxx */
820 /* old= cr, write:add, read:add, close: 0 */
821 { EPOLLIN|EPOLLOUT|EPOLLRDHUP, EPOLL_CTL_MOD },
822 /* old= cr, write:add, read:add, close:add */
823 { EPOLLIN|EPOLLOUT|EPOLLRDHUP, EPOLL_CTL_MOD },
824 /* old= cr, write:add, read:add, close:del */
825 { EPOLLIN|EPOLLOUT, EPOLL_CTL_MOD },
826 /* old= cr, write:add, read:add, close:xxx */
828 /* old= cr, write:add, read:del, close: 0 */
829 { EPOLLOUT|EPOLLRDHUP, EPOLL_CTL_MOD },
830 /* old= cr, write:add, read:del, close:add */
831 { EPOLLOUT|EPOLLRDHUP, EPOLL_CTL_MOD },
832 /* old= cr, write:add, read:del, close:del */
833 { EPOLLOUT, EPOLL_CTL_MOD },
834 /* old= cr, write:add, read:del, close:xxx */
836 /* old= cr, write:add, read:xxx, close: 0 */
838 /* old= cr, write:add, read:xxx, close:add */
840 /* old= cr, write:add, read:xxx, close:del */
842 /* old= cr, write:add, read:xxx, close:xxx */
844 /* old= cr, write:del, read: 0, close: 0 */
845 { EPOLLIN|EPOLLRDHUP, EPOLL_CTL_MOD },
846 /* old= cr, write:del, read: 0, close:add */
847 { EPOLLIN|EPOLLRDHUP, EPOLL_CTL_MOD },
848 /* old= cr, write:del, read: 0, close:del */
849 { EPOLLIN, EPOLL_CTL_MOD },
850 /* old= cr, write:del, read: 0, close:xxx */
852 /* old= cr, write:del, read:add, close: 0 */
853 { EPOLLIN|EPOLLRDHUP, EPOLL_CTL_MOD },
854 /* old= cr, write:del, read:add, close:add */
855 { EPOLLIN|EPOLLRDHUP, EPOLL_CTL_MOD },
856 /* old= cr, write:del, read:add, close:del */
857 { EPOLLIN, EPOLL_CTL_MOD },
858 /* old= cr, write:del, read:add, close:xxx */
860 /* old= cr, write:del, read:del, close: 0 */
861 { EPOLLRDHUP, EPOLL_CTL_MOD },
862 /* old= cr, write:del, read:del, close:add */
863 { EPOLLRDHUP, EPOLL_CTL_MOD },
864 /* old= cr, write:del, read:del, close:del */
865 { EPOLLIN|EPOLLOUT|EPOLLRDHUP, EPOLL_CTL_DEL },
866 /* old= cr, write:del, read:del, close:xxx */
868 /* old= cr, write:del, read:xxx, close: 0 */
870 /* old= cr, write:del, read:xxx, close:add */
872 /* old= cr, write:del, read:xxx, close:del */
874 /* old= cr, write:del, read:xxx, close:xxx */
876 /* old= cr, write:xxx, read: 0, close: 0 */
878 /* old= cr, write:xxx, read: 0, close:add */
880 /* old= cr, write:xxx, read: 0, close:del */
882 /* old= cr, write:xxx, read: 0, close:xxx */
884 /* old= cr, write:xxx, read:add, close: 0 */
886 /* old= cr, write:xxx, read:add, close:add */
888 /* old= cr, write:xxx, read:add, close:del */
890 /* old= cr, write:xxx, read:add, close:xxx */
892 /* old= cr, write:xxx, read:del, close: 0 */
894 /* old= cr, write:xxx, read:del, close:add */
896 /* old= cr, write:xxx, read:del, close:del */
898 /* old= cr, write:xxx, read:del, close:xxx */
900 /* old= cr, write:xxx, read:xxx, close: 0 */
902 /* old= cr, write:xxx, read:xxx, close:add */
904 /* old= cr, write:xxx, read:xxx, close:del */
906 /* old= cr, write:xxx, read:xxx, close:xxx */
908 /* old= cw, write: 0, read: 0, close: 0 */
910 /* old= cw, write: 0, read: 0, close:add */
911 { EPOLLOUT|EPOLLRDHUP, EPOLL_CTL_MOD },
912 /* old= cw, write: 0, read: 0, close:del */
913 { EPOLLOUT, EPOLL_CTL_MOD },
914 /* old= cw, write: 0, read: 0, close:xxx */
916 /* old= cw, write: 0, read:add, close: 0 */
917 { EPOLLIN|EPOLLOUT|EPOLLRDHUP, EPOLL_CTL_MOD },
918 /* old= cw, write: 0, read:add, close:add */
919 { EPOLLIN|EPOLLOUT|EPOLLRDHUP, EPOLL_CTL_MOD },
920 /* old= cw, write: 0, read:add, close:del */
921 { EPOLLIN|EPOLLOUT, EPOLL_CTL_MOD },
922 /* old= cw, write: 0, read:add, close:xxx */
924 /* old= cw, write: 0, read:del, close: 0 */
925 { EPOLLOUT|EPOLLRDHUP, EPOLL_CTL_MOD },
926 /* old= cw, write: 0, read:del, close:add */
927 { EPOLLOUT|EPOLLRDHUP, EPOLL_CTL_MOD },
928 /* old= cw, write: 0, read:del, close:del */
929 { EPOLLOUT, EPOLL_CTL_MOD },
930 /* old= cw, write: 0, read:del, close:xxx */
932 /* old= cw, write: 0, read:xxx, close: 0 */
934 /* old= cw, write: 0, read:xxx, close:add */
936 /* old= cw, write: 0, read:xxx, close:del */
938 /* old= cw, write: 0, read:xxx, close:xxx */
940 /* old= cw, write:add, read: 0, close: 0 */
941 { EPOLLOUT|EPOLLRDHUP, EPOLL_CTL_MOD },
942 /* old= cw, write:add, read: 0, close:add */
943 { EPOLLOUT|EPOLLRDHUP, EPOLL_CTL_MOD },
944 /* old= cw, write:add, read: 0, close:del */
945 { EPOLLOUT, EPOLL_CTL_MOD },
946 /* old= cw, write:add, read: 0, close:xxx */
948 /* old= cw, write:add, read:add, close: 0 */
949 { EPOLLIN|EPOLLOUT|EPOLLRDHUP, EPOLL_CTL_MOD },
950 /* old= cw, write:add, read:add, close:add */
951 { EPOLLIN|EPOLLOUT|EPOLLRDHUP, EPOLL_CTL_MOD },
952 /* old= cw, write:add, read:add, close:del */
953 { EPOLLIN|EPOLLOUT, EPOLL_CTL_MOD },
954 /* old= cw, write:add, read:add, close:xxx */
956 /* old= cw, write:add, read:del, close: 0 */
957 { EPOLLOUT|EPOLLRDHUP, EPOLL_CTL_MOD },
958 /* old= cw, write:add, read:del, close:add */
959 { EPOLLOUT|EPOLLRDHUP, EPOLL_CTL_MOD },
960 /* old= cw, write:add, read:del, close:del */
961 { EPOLLOUT, EPOLL_CTL_MOD },
962 /* old= cw, write:add, read:del, close:xxx */
964 /* old= cw, write:add, read:xxx, close: 0 */
966 /* old= cw, write:add, read:xxx, close:add */
968 /* old= cw, write:add, read:xxx, close:del */
970 /* old= cw, write:add, read:xxx, close:xxx */
972 /* old= cw, write:del, read: 0, close: 0 */
973 { EPOLLRDHUP, EPOLL_CTL_MOD },
974 /* old= cw, write:del, read: 0, close:add */
975 { EPOLLRDHUP, EPOLL_CTL_MOD },
976 /* old= cw, write:del, read: 0, close:del */
977 { EPOLLOUT|EPOLLRDHUP, EPOLL_CTL_DEL },
978 /* old= cw, write:del, read: 0, close:xxx */
980 /* old= cw, write:del, read:add, close: 0 */
981 { EPOLLIN|EPOLLRDHUP, EPOLL_CTL_MOD },
982 /* old= cw, write:del, read:add, close:add */
983 { EPOLLIN|EPOLLRDHUP, EPOLL_CTL_MOD },
984 /* old= cw, write:del, read:add, close:del */
985 { EPOLLIN, EPOLL_CTL_MOD },
986 /* old= cw, write:del, read:add, close:xxx */
988 /* old= cw, write:del, read:del, close: 0 */
989 { EPOLLRDHUP, EPOLL_CTL_MOD },
990 /* old= cw, write:del, read:del, close:add */
991 { EPOLLRDHUP, EPOLL_CTL_MOD },
992 /* old= cw, write:del, read:del, close:del */
993 { EPOLLIN|EPOLLOUT|EPOLLRDHUP, EPOLL_CTL_DEL },
994 /* old= cw, write:del, read:del, close:xxx */
996 /* old= cw, write:del, read:xxx, close: 0 */
998 /* old= cw, write:del, read:xxx, close:add */
1000 /* old= cw, write:del, read:xxx, close:del */
1002 /* old= cw, write:del, read:xxx, close:xxx */
1004 /* old= cw, write:xxx, read: 0, close: 0 */
1006 /* old= cw, write:xxx, read: 0, close:add */
1008 /* old= cw, write:xxx, read: 0, close:del */
1010 /* old= cw, write:xxx, read: 0, close:xxx */
1012 /* old= cw, write:xxx, read:add, close: 0 */
1014 /* old= cw, write:xxx, read:add, close:add */
1016 /* old= cw, write:xxx, read:add, close:del */
1018 /* old= cw, write:xxx, read:add, close:xxx */
1020 /* old= cw, write:xxx, read:del, close: 0 */
1022 /* old= cw, write:xxx, read:del, close:add */
1024 /* old= cw, write:xxx, read:del, close:del */
1026 /* old= cw, write:xxx, read:del, close:xxx */
1028 /* old= cw, write:xxx, read:xxx, close: 0 */
1030 /* old= cw, write:xxx, read:xxx, close:add */
1032 /* old= cw, write:xxx, read:xxx, close:del */
1034 /* old= cw, write:xxx, read:xxx, close:xxx */
1036 /* old=crw, write: 0, read: 0, close: 0 */
1038 /* old=crw, write: 0, read: 0, close:add */
1039 { EPOLLIN|EPOLLOUT|EPOLLRDHUP, EPOLL_CTL_MOD },
1040 /* old=crw, write: 0, read: 0, close:del */
1041 { EPOLLIN|EPOLLOUT, EPOLL_CTL_MOD },
1042 /* old=crw, write: 0, read: 0, close:xxx */
1044 /* old=crw, write: 0, read:add, close: 0 */
1045 { EPOLLIN|EPOLLOUT|EPOLLRDHUP, EPOLL_CTL_MOD },
1046 /* old=crw, write: 0, read:add, close:add */
1047 { EPOLLIN|EPOLLOUT|EPOLLRDHUP, EPOLL_CTL_MOD },
1048 /* old=crw, write: 0, read:add, close:del */
1049 { EPOLLIN|EPOLLOUT, EPOLL_CTL_MOD },
1050 /* old=crw, write: 0, read:add, close:xxx */
1052 /* old=crw, write: 0, read:del, close: 0 */
1053 { EPOLLOUT|EPOLLRDHUP, EPOLL_CTL_MOD },
1054 /* old=crw, write: 0, read:del, close:add */
1055 { EPOLLOUT|EPOLLRDHUP, EPOLL_CTL_MOD },
1056 /* old=crw, write: 0, read:del, close:del */
1057 { EPOLLOUT, EPOLL_CTL_MOD },
1058 /* old=crw, write: 0, read:del, close:xxx */
1060 /* old=crw, write: 0, read:xxx, close: 0 */
1062 /* old=crw, write: 0, read:xxx, close:add */
1064 /* old=crw, write: 0, read:xxx, close:del */
1066 /* old=crw, write: 0, read:xxx, close:xxx */
1068 /* old=crw, write:add, read: 0, close: 0 */
1069 { EPOLLIN|EPOLLOUT|EPOLLRDHUP, EPOLL_CTL_MOD },
1070 /* old=crw, write:add, read: 0, close:add */
1071 { EPOLLIN|EPOLLOUT|EPOLLRDHUP, EPOLL_CTL_MOD },
1072 /* old=crw, write:add, read: 0, close:del */
1073 { EPOLLIN|EPOLLOUT, EPOLL_CTL_MOD },
1074 /* old=crw, write:add, read: 0, close:xxx */
1076 /* old=crw, write:add, read:add, close: 0 */
1077 { EPOLLIN|EPOLLOUT|EPOLLRDHUP, EPOLL_CTL_MOD },
1078 /* old=crw, write:add, read:add, close:add */
1079 { EPOLLIN|EPOLLOUT|EPOLLRDHUP, EPOLL_CTL_MOD },
1080 /* old=crw, write:add, read:add, close:del */
1081 { EPOLLIN|EPOLLOUT, EPOLL_CTL_MOD },
1082 /* old=crw, write:add, read:add, close:xxx */
1084 /* old=crw, write:add, read:del, close: 0 */
1085 { EPOLLOUT|EPOLLRDHUP, EPOLL_CTL_MOD },
1086 /* old=crw, write:add, read:del, close:add */
1087 { EPOLLOUT|EPOLLRDHUP, EPOLL_CTL_MOD },
1088 /* old=crw, write:add, read:del, close:del */
1089 { EPOLLOUT, EPOLL_CTL_MOD },
1090 /* old=crw, write:add, read:del, close:xxx */
1092 /* old=crw, write:add, read:xxx, close: 0 */
1094 /* old=crw, write:add, read:xxx, close:add */
1096 /* old=crw, write:add, read:xxx, close:del */
1098 /* old=crw, write:add, read:xxx, close:xxx */
1100 /* old=crw, write:del, read: 0, close: 0 */
1101 { EPOLLIN|EPOLLRDHUP, EPOLL_CTL_MOD },
1102 /* old=crw, write:del, read: 0, close:add */
1103 { EPOLLIN|EPOLLRDHUP, EPOLL_CTL_MOD },
1104 /* old=crw, write:del, read: 0, close:del */
1105 { EPOLLIN, EPOLL_CTL_MOD },
1106 /* old=crw, write:del, read: 0, close:xxx */
1108 /* old=crw, write:del, read:add, close: 0 */
1109 { EPOLLIN|EPOLLRDHUP, EPOLL_CTL_MOD },
1110 /* old=crw, write:del, read:add, close:add */
1111 { EPOLLIN|EPOLLRDHUP, EPOLL_CTL_MOD },
1112 /* old=crw, write:del, read:add, close:del */
1113 { EPOLLIN, EPOLL_CTL_MOD },
1114 /* old=crw, write:del, read:add, close:xxx */
1116 /* old=crw, write:del, read:del, close: 0 */
1117 { EPOLLRDHUP, EPOLL_CTL_MOD },
1118 /* old=crw, write:del, read:del, close:add */
1119 { EPOLLRDHUP, EPOLL_CTL_MOD },
1120 /* old=crw, write:del, read:del, close:del */
1121 { EPOLLIN|EPOLLOUT|EPOLLRDHUP, EPOLL_CTL_DEL },
1122 /* old=crw, write:del, read:del, close:xxx */
1124 /* old=crw, write:del, read:xxx, close: 0 */
1126 /* old=crw, write:del, read:xxx, close:add */
1128 /* old=crw, write:del, read:xxx, close:del */
1130 /* old=crw, write:del, read:xxx, close:xxx */
1132 /* old=crw, write:xxx, read: 0, close: 0 */
1134 /* old=crw, write:xxx, read: 0, close:add */
1136 /* old=crw, write:xxx, read: 0, close:del */
1138 /* old=crw, write:xxx, read: 0, close:xxx */
1140 /* old=crw, write:xxx, read:add, close: 0 */
1142 /* old=crw, write:xxx, read:add, close:add */
1144 /* old=crw, write:xxx, read:add, close:del */
1146 /* old=crw, write:xxx, read:add, close:xxx */
1148 /* old=crw, write:xxx, read:del, close: 0 */
1150 /* old=crw, write:xxx, read:del, close:add */
1152 /* old=crw, write:xxx, read:del, close:del */
1154 /* old=crw, write:xxx, read:del, close:xxx */
1156 /* old=crw, write:xxx, read:xxx, close: 0 */
1158 /* old=crw, write:xxx, read:xxx, close:add */
1160 /* old=crw, write:xxx, read:xxx, close:del */
1162 /* old=crw, write:xxx, read:xxx, close:xxx */