1 | /* |
1 | /* |
2 | * loop member variable declarations |
2 | * loop member variable declarations |
3 | * |
3 | * |
4 | * Copyright (c) 2007,2008,2009,2010 Marc Alexander Lehmann <libev@schmorp.de> |
4 | * Copyright (c) 2007,2008,2009,2010,2011 Marc Alexander Lehmann <libev@schmorp.de> |
5 | * All rights reserved. |
5 | * All rights reserved. |
6 | * |
6 | * |
7 | * Redistribution and use in source and binary forms, with or without modifica- |
7 | * Redistribution and use in source and binary forms, with or without modifica- |
8 | * tion, are permitted provided that the following conditions are met: |
8 | * tion, are permitted provided that the following conditions are met: |
9 | * |
9 | * |
… | |
… | |
100 | #endif |
100 | #endif |
101 | |
101 | |
102 | #if EV_USE_EPOLL || EV_GENWRAP |
102 | #if EV_USE_EPOLL || EV_GENWRAP |
103 | VARx(struct epoll_event *, epoll_events) |
103 | VARx(struct epoll_event *, epoll_events) |
104 | VARx(int, epoll_eventmax) |
104 | VARx(int, epoll_eventmax) |
|
|
105 | VARx(int *, epoll_eperms) |
|
|
106 | VARx(int, epoll_epermcnt) |
|
|
107 | VARx(int, epoll_epermmax) |
105 | #endif |
108 | #endif |
106 | |
109 | |
107 | #if EV_USE_KQUEUE || EV_GENWRAP |
110 | #if EV_USE_KQUEUE || EV_GENWRAP |
108 | VARx(struct kevent *, kqueue_changes) |
111 | VARx(struct kevent *, kqueue_changes) |
109 | VARx(int, kqueue_changemax) |
112 | VARx(int, kqueue_changemax) |
… | |
… | |
154 | VARx(struct ev_fork **, forks) |
157 | VARx(struct ev_fork **, forks) |
155 | VARx(int, forkmax) |
158 | VARx(int, forkmax) |
156 | VARx(int, forkcnt) |
159 | VARx(int, forkcnt) |
157 | #endif |
160 | #endif |
158 | |
161 | |
|
|
162 | #if EV_CLEANUP_ENABLE || EV_GENWRAP |
|
|
163 | VARx(struct ev_cleanup **, cleanups) |
|
|
164 | VARx(int, cleanupmax) |
|
|
165 | VARx(int, cleanupcnt) |
|
|
166 | #endif |
|
|
167 | |
159 | #if EV_ASYNC_ENABLE || EV_GENWRAP |
168 | #if EV_ASYNC_ENABLE || EV_GENWRAP |
160 | VARx(EV_ATOMIC_T, async_pending) |
169 | VARx(EV_ATOMIC_T, async_pending) |
161 | VARx(struct ev_async **, asyncs) |
170 | VARx(struct ev_async **, asyncs) |
162 | VARx(int, asyncmax) |
171 | VARx(int, asyncmax) |
163 | VARx(int, asynccnt) |
172 | VARx(int, asynccnt) |
… | |
… | |
169 | VARx(char, fs_2625) /* whether we are running in linux 2.6.25 or newer */ |
178 | VARx(char, fs_2625) /* whether we are running in linux 2.6.25 or newer */ |
170 | VAR (fs_hash, ANFS fs_hash [EV_INOTIFY_HASHSIZE]) |
179 | VAR (fs_hash, ANFS fs_hash [EV_INOTIFY_HASHSIZE]) |
171 | #endif |
180 | #endif |
172 | |
181 | |
173 | VARx(EV_ATOMIC_T, sig_pending) |
182 | VARx(EV_ATOMIC_T, sig_pending) |
|
|
183 | VARx(int, nosigmask) |
174 | #if EV_USE_SIGNALFD || EV_GENWRAP |
184 | #if EV_USE_SIGNALFD || EV_GENWRAP |
175 | VARx(int, sigfd) |
185 | VARx(int, sigfd) |
176 | VARx(ev_io, sigfd_w) |
186 | VARx(ev_io, sigfd_w) |
177 | VARx(sigset_t, sigfd_set) |
187 | VARx(sigset_t, sigfd_set) |
178 | #endif |
188 | #endif |
179 | |
189 | |
|
|
190 | VARx(unsigned int, origflags) /* original loop flags */ |
|
|
191 | |
180 | #if EV_FEATURE_API || EV_GENWRAP |
192 | #if EV_FEATURE_API || EV_GENWRAP |
181 | VARx(unsigned int, loop_count) /* total number of loop iterations/blocks */ |
193 | VARx(unsigned int, loop_count) /* total number of loop iterations/blocks */ |
182 | VARx(unsigned int, loop_depth) /* #ev_run enters - #ev_run leaves */ |
194 | VARx(unsigned int, loop_depth) /* #ev_run enters - #ev_run leaves */ |
183 | |
195 | |
184 | VARx(void *, userdata) |
196 | VARx(void *, userdata) |