ViewVC Help
View File | Revision Log | Show Annotations | Download File
/cvs/libev/ev_epoll.c
(Generate patch)

Comparing libev/ev_epoll.c (file contents):
Revision 1.17 by root, Sun Nov 4 19:45:09 2007 UTC vs.
Revision 1.18 by root, Sun Nov 4 22:03:17 2007 UTC

40 ev.data.u64 = fd; /* use u64 to fully initialise the struct, for nicer strace etc. */ 40 ev.data.u64 = fd; /* use u64 to fully initialise the struct, for nicer strace etc. */
41 ev.events = 41 ev.events =
42 (nev & EV_READ ? EPOLLIN : 0) 42 (nev & EV_READ ? EPOLLIN : 0)
43 | (nev & EV_WRITE ? EPOLLOUT : 0); 43 | (nev & EV_WRITE ? EPOLLOUT : 0);
44 44
45 if (!epoll_ctl (epoll_fd, mode, fd, &ev)) 45 if (epoll_ctl (epoll_fd, mode, fd, &ev))
46 fd_kill (EV_A_ fd); 46 fd_kill (EV_A_ fd);
47} 47}
48 48
49static void 49static void
50epoll_poll (EV_P_ ev_tstamp timeout) 50epoll_poll (EV_P_ ev_tstamp timeout)

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines