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.24 by root, Fri Nov 23 05:00:45 2007 UTC vs.
Revision 1.25 by root, Fri Nov 23 05:13:49 2007 UTC

87 if (epoll_fd < 0) 87 if (epoll_fd < 0)
88 return 0; 88 return 0;
89 89
90 fcntl (epoll_fd, F_SETFD, FD_CLOEXEC); 90 fcntl (epoll_fd, F_SETFD, FD_CLOEXEC);
91 91
92 method_fudge = 1e-3; /* needed to compensate for epoll returning early */ 92 backend_fudge = 1e-3; /* needed to compensate for epoll returning early */
93 method_modify = epoll_modify; 93 backend_modify = epoll_modify;
94 method_poll = epoll_poll; 94 backend_poll = epoll_poll;
95 95
96 epoll_eventmax = 64; /* intiial number of events receivable per poll */ 96 epoll_eventmax = 64; /* intiial number of events receivable per poll */
97 epoll_events = (struct epoll_event *)ev_malloc (sizeof (struct epoll_event) * epoll_eventmax); 97 epoll_events = (struct epoll_event *)ev_malloc (sizeof (struct epoll_event) * epoll_eventmax);
98 98
99 return EVBACKEND_EPOLL; 99 return EVBACKEND_EPOLL;

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines