ViewVC Help
View File | Revision Log | Show Annotations | Download File
/cvs/libev/ev_vars.h
Revision: 1.9
Committed: Fri Nov 16 01:33:54 2007 UTC (16 years, 6 months ago) by root
Content type: text/plain
Branch: MAIN
CVS Tags: rel-1_1, rel-1_2
Changes since 1.8: +6 -0 lines
Log Message:
add solaris port backend

File Contents

# User Rev Content
1 root 1.1 #define VARx(type,name) VAR(name, type name)
2    
3 root 1.2 VARx(ev_tstamp, now_floor) /* last time we refreshed rt_time */
4     VARx(ev_tstamp, mn_now) /* monotonic clock "now" */
5     VARx(ev_tstamp, rtmn_diff) /* difference realtime - monotonic time */
6     VARx(int, method)
7    
8     VARx(ev_tstamp, method_fudge) /* assumed typical timer resolution */
9     VAR (method_modify, void (*method_modify)(EV_P_ int fd, int oev, int nev))
10     VAR (method_poll , void (*method_poll)(EV_P_ ev_tstamp timeout))
11    
12 root 1.4 VARx(int, postfork) /* true if we need to recreate kernel state after fork */
13 root 1.2 VARx(int, activecnt) /* number of active events */
14    
15     #if EV_USE_SELECT || EV_GENWRAP
16 root 1.8 VARx(void *, vec_ri)
17     VARx(void *, vec_ro)
18     VARx(void *, vec_wi)
19     VARx(void *, vec_wo)
20 root 1.2 VARx(int, vec_max)
21 root 1.1 #endif
22    
23 root 1.2 #if EV_USE_POLL || EV_GENWRAP
24     VARx(struct pollfd *, polls)
25     VARx(int, pollmax)
26     VARx(int, pollcnt)
27     VARx(int *, pollidxs) /* maps fds into structure indices */
28     VARx(int, pollidxmax)
29 root 1.1 #endif
30    
31 root 1.2 #if EV_USE_EPOLL || EV_GENWRAP
32     VARx(int, epoll_fd)
33 root 1.1
34 root 1.2 VARx(struct epoll_event *, epoll_events)
35     VARx(int, epoll_eventmax)
36 root 1.1 #endif
37    
38 root 1.2 #if EV_USE_KQUEUE || EV_GENWRAP
39     VARx(int, kqueue_fd)
40     VARx(struct kevent *, kqueue_changes)
41     VARx(int, kqueue_changemax)
42     VARx(int, kqueue_changecnt)
43     VARx(struct kevent *, kqueue_events)
44     VARx(int, kqueue_eventmax)
45 root 1.1 #endif
46    
47 root 1.9 #if EV_USE_PORT || EV_GENWRAP
48     VARx(int, port_fd)
49     VARx(struct port_event *, port_events)
50     VARx(int, port_eventmax)
51     #endif
52    
53 root 1.2 VARx(ANFD *, anfds)
54     VARx(int, anfdmax)
55 root 1.1
56 root 1.2 VAR (pendings, ANPENDING *pendings [NUMPRI])
57     VAR (pendingmax, int pendingmax [NUMPRI])
58     VAR (pendingcnt, int pendingcnt [NUMPRI])
59 root 1.1
60 root 1.2 VARx(int *, fdchanges)
61     VARx(int, fdchangemax)
62     VARx(int, fdchangecnt)
63 root 1.1
64 root 1.2 VARx(struct ev_timer **, timers)
65     VARx(int, timermax)
66     VARx(int, timercnt)
67 root 1.1
68 root 1.7 #if EV_PERIODICS || EV_GENWRAP
69 root 1.2 VARx(struct ev_periodic **, periodics)
70     VARx(int, periodicmax)
71     VARx(int, periodiccnt)
72 root 1.7 #endif
73 root 1.1
74 root 1.2 VARx(struct ev_idle **, idles)
75     VARx(int, idlemax)
76     VARx(int, idlecnt)
77 root 1.1
78 root 1.2 VARx(struct ev_prepare **, prepares)
79     VARx(int, preparemax)
80     VARx(int, preparecnt)
81 root 1.1
82 root 1.2 VARx(struct ev_check **, checks)
83     VARx(int, checkmax)
84     VARx(int, checkcnt)
85 root 1.1
86     #undef VARx
87