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

Comparing libev/ev_kqueue.c (file contents):
Revision 1.50 by root, Fri Jun 3 00:04:52 2011 UTC vs.
Revision 1.51 by root, Sat Jun 4 05:33:29 2011 UTC

159 if ((backend_fd = kqueue ()) < 0) 159 if ((backend_fd = kqueue ()) < 0)
160 return 0; 160 return 0;
161 161
162 fcntl (backend_fd, F_SETFD, FD_CLOEXEC); /* not sure if necessary, hopefully doesn't hurt */ 162 fcntl (backend_fd, F_SETFD, FD_CLOEXEC); /* not sure if necessary, hopefully doesn't hurt */
163 163
164 backend_fudge = 1e-9; /* apparently, they did the right thing in freebsd */ 164 backend_mintime = 1e-9; /* apparently, they did the right thing in freebsd */
165 backend_modify = kqueue_modify; 165 backend_modify = kqueue_modify;
166 backend_poll = kqueue_poll; 166 backend_poll = kqueue_poll;
167 167
168 kqueue_eventmax = 64; /* initial number of events receivable per poll */ 168 kqueue_eventmax = 64; /* initial number of events receivable per poll */
169 kqueue_events = (struct kevent *)ev_malloc (sizeof (struct kevent) * kqueue_eventmax); 169 kqueue_events = (struct kevent *)ev_malloc (sizeof (struct kevent) * kqueue_eventmax);
170 170
171 kqueue_changes = 0; 171 kqueue_changes = 0;

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines