ed-precompiled_nio4r 2.7.4-arm64-darwin

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -0,0 +1,249 @@
1
+ /*
2
+ * loop member variable declarations
3
+ *
4
+ * Copyright (c) 2007,2008,2009,2010,2011,2012,2013,2019 Marc Alexander Lehmann <libev@schmorp.de>
5
+ * All rights reserved.
6
+ *
7
+ * Redistribution and use in source and binary forms, with or without modifica-
8
+ * tion, are permitted provided that the following conditions are met:
9
+ *
10
+ * 1. Redistributions of source code must retain the above copyright notice,
11
+ * this list of conditions and the following disclaimer.
12
+ *
13
+ * 2. Redistributions in binary form must reproduce the above copyright
14
+ * notice, this list of conditions and the following disclaimer in the
15
+ * documentation and/or other materials provided with the distribution.
16
+ *
17
+ * THIS SOFTWARE IS PROVIDED BY THE AUTHOR ``AS IS'' AND ANY EXPRESS OR IMPLIED
18
+ * WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MER-
19
+ * CHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO
20
+ * EVENT SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPE-
21
+ * CIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO,
22
+ * PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS;
23
+ * OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY,
24
+ * WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTH-
25
+ * ERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED
26
+ * OF THE POSSIBILITY OF SUCH DAMAGE.
27
+ *
28
+ * Alternatively, the contents of this file may be used under the terms of
29
+ * the GNU General Public License ("GPL") version 2 or any later version,
30
+ * in which case the provisions of the GPL are applicable instead of
31
+ * the above. If you wish to allow the use of your version of this file
32
+ * only under the terms of the GPL and not to allow others to use your
33
+ * version of this file under the BSD license, indicate your decision
34
+ * by deleting the provisions above and replace them with the notice
35
+ * and other provisions required by the GPL. If you do not delete the
36
+ * provisions above, a recipient may use your version of this file under
37
+ * either the BSD or the GPL.
38
+ */
39
+
40
+ #define VARx(type,name) VAR(name, type name)
41
+
42
+ VARx(ev_tstamp, now_floor) /* last time we refreshed rt_time */
43
+ VARx(ev_tstamp, mn_now) /* monotonic clock "now" */
44
+ VARx(ev_tstamp, rtmn_diff) /* difference realtime - monotonic time */
45
+
46
+ /* for reverse feeding of events */
47
+ VARx(W *, rfeeds)
48
+ VARx(int, rfeedmax)
49
+ VARx(int, rfeedcnt)
50
+
51
+ VAR (pendings, ANPENDING *pendings [NUMPRI])
52
+ VAR (pendingmax, int pendingmax [NUMPRI])
53
+ VAR (pendingcnt, int pendingcnt [NUMPRI])
54
+ VARx(int, pendingpri) /* highest priority currently pending */
55
+ VARx(ev_prepare, pending_w) /* dummy pending watcher */
56
+
57
+ VARx(ev_tstamp, io_blocktime)
58
+ VARx(ev_tstamp, timeout_blocktime)
59
+
60
+ VARx(int, backend)
61
+ VARx(int, activecnt) /* total number of active events ("refcount") */
62
+ VARx(EV_ATOMIC_T, loop_done) /* signal by ev_break */
63
+
64
+ VARx(int, backend_fd)
65
+ VARx(ev_tstamp, backend_mintime) /* assumed typical timer resolution */
66
+ VAR (backend_modify, void (*backend_modify)(EV_P_ int fd, int oev, int nev))
67
+ VAR (backend_poll , void (*backend_poll)(EV_P_ ev_tstamp timeout))
68
+
69
+ VARx(ANFD *, anfds)
70
+ VARx(int, anfdmax)
71
+
72
+ VAR (evpipe, int evpipe [2])
73
+ VARx(ev_io, pipe_w)
74
+ VARx(EV_ATOMIC_T, pipe_write_wanted)
75
+ VARx(EV_ATOMIC_T, pipe_write_skipped)
76
+
77
+ #if !defined(_WIN32) || EV_GENWRAP
78
+ VARx(pid_t, curpid)
79
+ #endif
80
+
81
+ VARx(char, postfork) /* true if we need to recreate kernel state after fork */
82
+
83
+ #if EV_USE_SELECT || EV_GENWRAP
84
+ VARx(void *, vec_ri)
85
+ VARx(void *, vec_ro)
86
+ VARx(void *, vec_wi)
87
+ VARx(void *, vec_wo)
88
+ #if defined(_WIN32) || EV_GENWRAP
89
+ VARx(void *, vec_eo)
90
+ #endif
91
+ VARx(int, vec_max)
92
+ #endif
93
+
94
+ #if EV_USE_POLL || EV_GENWRAP
95
+ VARx(struct pollfd *, polls)
96
+ VARx(int, pollmax)
97
+ VARx(int, pollcnt)
98
+ VARx(int *, pollidxs) /* maps fds into structure indices */
99
+ VARx(int, pollidxmax)
100
+ #endif
101
+
102
+ #if EV_USE_EPOLL || EV_GENWRAP
103
+ VARx(struct epoll_event *, epoll_events)
104
+ VARx(int, epoll_eventmax)
105
+ VARx(int *, epoll_eperms)
106
+ VARx(int, epoll_epermcnt)
107
+ VARx(int, epoll_epermmax)
108
+ #endif
109
+
110
+ #if EV_USE_LINUXAIO || EV_GENWRAP
111
+ VARx(aio_context_t, linuxaio_ctx)
112
+ VARx(int, linuxaio_iteration)
113
+ VARx(struct aniocb **, linuxaio_iocbps)
114
+ VARx(int, linuxaio_iocbpmax)
115
+ VARx(struct iocb **, linuxaio_submits)
116
+ VARx(int, linuxaio_submitcnt)
117
+ VARx(int, linuxaio_submitmax)
118
+ VARx(ev_io, linuxaio_epoll_w)
119
+ #endif
120
+
121
+ #if EV_USE_IOURING || EV_GENWRAP
122
+ VARx(int, iouring_fd)
123
+ VARx(unsigned, iouring_to_submit);
124
+ VARx(int, iouring_entries)
125
+ VARx(int, iouring_max_entries)
126
+ VARx(void *, iouring_sq_ring)
127
+ VARx(void *, iouring_cq_ring)
128
+ VARx(void *, iouring_sqes)
129
+ VARx(uint32_t, iouring_sq_ring_size)
130
+ VARx(uint32_t, iouring_cq_ring_size)
131
+ VARx(uint32_t, iouring_sqes_size)
132
+ VARx(uint32_t, iouring_sq_head)
133
+ VARx(uint32_t, iouring_sq_tail)
134
+ VARx(uint32_t, iouring_sq_ring_mask)
135
+ VARx(uint32_t, iouring_sq_ring_entries)
136
+ VARx(uint32_t, iouring_sq_flags)
137
+ VARx(uint32_t, iouring_sq_dropped)
138
+ VARx(uint32_t, iouring_sq_array)
139
+ VARx(uint32_t, iouring_cq_head)
140
+ VARx(uint32_t, iouring_cq_tail)
141
+ VARx(uint32_t, iouring_cq_ring_mask)
142
+ VARx(uint32_t, iouring_cq_ring_entries)
143
+ VARx(uint32_t, iouring_cq_overflow)
144
+ VARx(uint32_t, iouring_cq_cqes)
145
+ VARx(ev_tstamp, iouring_tfd_to)
146
+ VARx(int, iouring_tfd)
147
+ VARx(ev_io, iouring_tfd_w)
148
+ #endif
149
+
150
+ #if EV_USE_KQUEUE || EV_GENWRAP
151
+ VARx(pid_t, kqueue_fd_pid)
152
+ VARx(struct kevent *, kqueue_changes)
153
+ VARx(int, kqueue_changemax)
154
+ VARx(int, kqueue_changecnt)
155
+ VARx(struct kevent *, kqueue_events)
156
+ VARx(int, kqueue_eventmax)
157
+ #endif
158
+
159
+ #if EV_USE_PORT || EV_GENWRAP
160
+ VARx(struct port_event *, port_events)
161
+ VARx(int, port_eventmax)
162
+ #endif
163
+
164
+ #if EV_USE_IOCP || EV_GENWRAP
165
+ VARx(HANDLE, iocp)
166
+ #endif
167
+
168
+ VARx(int *, fdchanges)
169
+ VARx(int, fdchangemax)
170
+ VARx(int, fdchangecnt)
171
+
172
+ VARx(ANHE *, timers)
173
+ VARx(int, timermax)
174
+ VARx(int, timercnt)
175
+
176
+ #if EV_PERIODIC_ENABLE || EV_GENWRAP
177
+ VARx(ANHE *, periodics)
178
+ VARx(int, periodicmax)
179
+ VARx(int, periodiccnt)
180
+ #endif
181
+
182
+ #if EV_IDLE_ENABLE || EV_GENWRAP
183
+ VAR (idles, ev_idle **idles [NUMPRI])
184
+ VAR (idlemax, int idlemax [NUMPRI])
185
+ VAR (idlecnt, int idlecnt [NUMPRI])
186
+ #endif
187
+ VARx(int, idleall) /* total number */
188
+
189
+ VARx(struct ev_prepare **, prepares)
190
+ VARx(int, preparemax)
191
+ VARx(int, preparecnt)
192
+
193
+ VARx(struct ev_check **, checks)
194
+ VARx(int, checkmax)
195
+ VARx(int, checkcnt)
196
+
197
+ #if EV_FORK_ENABLE || EV_GENWRAP
198
+ VARx(struct ev_fork **, forks)
199
+ VARx(int, forkmax)
200
+ VARx(int, forkcnt)
201
+ #endif
202
+
203
+ #if EV_CLEANUP_ENABLE || EV_GENWRAP
204
+ VARx(struct ev_cleanup **, cleanups)
205
+ VARx(int, cleanupmax)
206
+ VARx(int, cleanupcnt)
207
+ #endif
208
+
209
+ #if EV_ASYNC_ENABLE || EV_GENWRAP
210
+ VARx(EV_ATOMIC_T, async_pending)
211
+ VARx(struct ev_async **, asyncs)
212
+ VARx(int, asyncmax)
213
+ VARx(int, asynccnt)
214
+ #endif
215
+
216
+ #if EV_USE_INOTIFY || EV_GENWRAP
217
+ VARx(int, fs_fd)
218
+ VARx(ev_io, fs_w)
219
+ VARx(char, fs_2625) /* whether we are running in linux 2.6.25 or newer */
220
+ VAR (fs_hash, ANFS fs_hash [EV_INOTIFY_HASHSIZE])
221
+ #endif
222
+
223
+ VARx(EV_ATOMIC_T, sig_pending)
224
+ #if EV_USE_SIGNALFD || EV_GENWRAP
225
+ VARx(int, sigfd)
226
+ VARx(ev_io, sigfd_w)
227
+ VARx(sigset_t, sigfd_set)
228
+ #endif
229
+
230
+ #if EV_USE_TIMERFD || EV_GENWRAP
231
+ VARx(int, timerfd) /* timerfd for time jump detection */
232
+ VARx(ev_io, timerfd_w)
233
+ #endif
234
+
235
+ VARx(unsigned int, origflags) /* original loop flags */
236
+
237
+ #if EV_FEATURE_API || EV_GENWRAP
238
+ VARx(unsigned int, loop_count) /* total number of loop iterations/blocks */
239
+ VARx(unsigned int, loop_depth) /* #ev_run enters - #ev_run leaves */
240
+
241
+ VARx(void *, userdata)
242
+ /* C++ doesn't support the ev_loop_callback typedef here. stinks. */
243
+ VAR (release_cb, void (*release_cb)(EV_P) EV_NOEXCEPT)
244
+ VAR (acquire_cb, void (*acquire_cb)(EV_P) EV_NOEXCEPT)
245
+ VAR (invoke_cb , ev_loop_callback invoke_cb)
246
+ #endif
247
+
248
+ #undef VARx
249
+
@@ -0,0 +1,162 @@
1
+ /*
2
+ * libev win32 compatibility cruft (_not_ a backend)
3
+ *
4
+ * Copyright (c) 2007,2008,2009 Marc Alexander Lehmann <libev@schmorp.de>
5
+ * All rights reserved.
6
+ *
7
+ * Redistribution and use in source and binary forms, with or without modifica-
8
+ * tion, are permitted provided that the following conditions are met:
9
+ *
10
+ * 1. Redistributions of source code must retain the above copyright notice,
11
+ * this list of conditions and the following disclaimer.
12
+ *
13
+ * 2. Redistributions in binary form must reproduce the above copyright
14
+ * notice, this list of conditions and the following disclaimer in the
15
+ * documentation and/or other materials provided with the distribution.
16
+ *
17
+ * THIS SOFTWARE IS PROVIDED BY THE AUTHOR ``AS IS'' AND ANY EXPRESS OR IMPLIED
18
+ * WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MER-
19
+ * CHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO
20
+ * EVENT SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPE-
21
+ * CIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO,
22
+ * PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS;
23
+ * OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY,
24
+ * WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTH-
25
+ * ERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED
26
+ * OF THE POSSIBILITY OF SUCH DAMAGE.
27
+ *
28
+ * Alternatively, the contents of this file may be used under the terms of
29
+ * the GNU General Public License ("GPL") version 2 or any later version,
30
+ * in which case the provisions of the GPL are applicable instead of
31
+ * the above. If you wish to allow the use of your version of this file
32
+ * only under the terms of the GPL and not to allow others to use your
33
+ * version of this file under the BSD license, indicate your decision
34
+ * by deleting the provisions above and replace them with the notice
35
+ * and other provisions required by the GPL. If you do not delete the
36
+ * provisions above, a recipient may use your version of this file under
37
+ * either the BSD or the GPL.
38
+ */
39
+
40
+ #ifdef _WIN32
41
+
42
+ /* note: the comment below could not be substantiated, but what would I care */
43
+ /* MSDN says this is required to handle SIGFPE */
44
+ /* my wild guess would be that using something floating-pointy is required */
45
+ /* for the crt to do something about it */
46
+ volatile double SIGFPE_REQ = 0.0f;
47
+
48
+ static SOCKET
49
+ ev_tcp_socket (void)
50
+ {
51
+ #if EV_USE_WSASOCKET
52
+ return WSASocket (AF_INET, SOCK_STREAM, 0, 0, 0, 0);
53
+ #else
54
+ return socket (AF_INET, SOCK_STREAM, 0);
55
+ #endif
56
+ }
57
+
58
+ /* oh, the humanity! */
59
+ static int
60
+ ev_pipe (int filedes [2])
61
+ {
62
+ struct sockaddr_in addr = { 0 };
63
+ int addr_size = sizeof (addr);
64
+ struct sockaddr_in adr2;
65
+ int adr2_size = sizeof (adr2);
66
+ SOCKET listener;
67
+ SOCKET sock [2] = { -1, -1 };
68
+
69
+ if ((listener = ev_tcp_socket ()) == INVALID_SOCKET)
70
+ return -1;
71
+
72
+ addr.sin_family = AF_INET;
73
+ addr.sin_addr.s_addr = htonl (INADDR_LOOPBACK);
74
+ addr.sin_port = 0;
75
+
76
+ if (bind (listener, (struct sockaddr *)&addr, addr_size))
77
+ goto fail;
78
+
79
+ if (getsockname (listener, (struct sockaddr *)&addr, &addr_size))
80
+ goto fail;
81
+
82
+ if (listen (listener, 1))
83
+ goto fail;
84
+
85
+ if ((sock [0] = ev_tcp_socket ()) == INVALID_SOCKET)
86
+ goto fail;
87
+
88
+ if (connect (sock [0], (struct sockaddr *)&addr, addr_size))
89
+ goto fail;
90
+
91
+ /* TODO: returns INVALID_SOCKET on winsock accept, not < 0. fix it */
92
+ /* when convenient, probably by just removing error checking altogether? */
93
+ if ((sock [1] = accept (listener, 0, 0)) < 0)
94
+ goto fail;
95
+
96
+ /* windows vista returns fantasy port numbers for sockets:
97
+ * example for two interconnected tcp sockets:
98
+ *
99
+ * (Socket::unpack_sockaddr_in getsockname $sock0)[0] == 53364
100
+ * (Socket::unpack_sockaddr_in getpeername $sock0)[0] == 53363
101
+ * (Socket::unpack_sockaddr_in getsockname $sock1)[0] == 53363
102
+ * (Socket::unpack_sockaddr_in getpeername $sock1)[0] == 53365
103
+ *
104
+ * wow! tridirectional sockets!
105
+ *
106
+ * this way of checking ports seems to work:
107
+ */
108
+ if (getpeername (sock [0], (struct sockaddr *)&addr, &addr_size))
109
+ goto fail;
110
+
111
+ if (getsockname (sock [1], (struct sockaddr *)&adr2, &adr2_size))
112
+ goto fail;
113
+
114
+ errno = WSAEINVAL;
115
+ if (addr_size != adr2_size
116
+ || addr.sin_addr.s_addr != adr2.sin_addr.s_addr /* just to be sure, I mean, it's windows */
117
+ || addr.sin_port != adr2.sin_port)
118
+ goto fail;
119
+
120
+ closesocket (listener);
121
+
122
+ #if EV_SELECT_IS_WINSOCKET
123
+ filedes [0] = EV_WIN32_HANDLE_TO_FD (sock [0]);
124
+ filedes [1] = EV_WIN32_HANDLE_TO_FD (sock [1]);
125
+ #else
126
+ /* when select isn't winsocket, we also expect socket, connect, accept etc.
127
+ * to work on fds */
128
+ filedes [0] = sock [0];
129
+ filedes [1] = sock [1];
130
+ #endif
131
+
132
+ return 0;
133
+
134
+ fail:
135
+ closesocket (listener);
136
+
137
+ if (sock [0] != INVALID_SOCKET) closesocket (sock [0]);
138
+ if (sock [1] != INVALID_SOCKET) closesocket (sock [1]);
139
+
140
+ return -1;
141
+ }
142
+
143
+ #undef pipe
144
+ #define pipe(filedes) ev_pipe (filedes)
145
+
146
+ #define EV_HAVE_EV_TIME 1
147
+ ev_tstamp
148
+ ev_time (void)
149
+ {
150
+ FILETIME ft;
151
+ ULARGE_INTEGER ui;
152
+
153
+ GetSystemTimeAsFileTime (&ft);
154
+ ui.u.LowPart = ft.dwLowDateTime;
155
+ ui.u.HighPart = ft.dwHighDateTime;
156
+
157
+ /* also, msvc cannot convert ulonglong to double... yes, it is that sucky */
158
+ return EV_TS_FROM_USEC (((LONGLONG)(ui.QuadPart - 116444736000000000) * 1e-1));
159
+ }
160
+
161
+ #endif
162
+
@@ -0,0 +1,272 @@
1
+ /* DO NOT EDIT, automatically generated by update_ev_wrap */
2
+ #ifndef EV_WRAP_H
3
+ #define EV_WRAP_H
4
+ #define acquire_cb ((loop)->acquire_cb)
5
+ #define activecnt ((loop)->activecnt)
6
+ #define anfdmax ((loop)->anfdmax)
7
+ #define anfds ((loop)->anfds)
8
+ #define async_pending ((loop)->async_pending)
9
+ #define asynccnt ((loop)->asynccnt)
10
+ #define asyncmax ((loop)->asyncmax)
11
+ #define asyncs ((loop)->asyncs)
12
+ #define backend ((loop)->backend)
13
+ #define backend_fd ((loop)->backend_fd)
14
+ #define backend_mintime ((loop)->backend_mintime)
15
+ #define backend_modify ((loop)->backend_modify)
16
+ #define backend_poll ((loop)->backend_poll)
17
+ #define checkcnt ((loop)->checkcnt)
18
+ #define checkmax ((loop)->checkmax)
19
+ #define checks ((loop)->checks)
20
+ #define cleanupcnt ((loop)->cleanupcnt)
21
+ #define cleanupmax ((loop)->cleanupmax)
22
+ #define cleanups ((loop)->cleanups)
23
+ #define curpid ((loop)->curpid)
24
+ #define epoll_epermcnt ((loop)->epoll_epermcnt)
25
+ #define epoll_epermmax ((loop)->epoll_epermmax)
26
+ #define epoll_eperms ((loop)->epoll_eperms)
27
+ #define epoll_eventmax ((loop)->epoll_eventmax)
28
+ #define epoll_events ((loop)->epoll_events)
29
+ #define evpipe ((loop)->evpipe)
30
+ #define fdchangecnt ((loop)->fdchangecnt)
31
+ #define fdchangemax ((loop)->fdchangemax)
32
+ #define fdchanges ((loop)->fdchanges)
33
+ #define forkcnt ((loop)->forkcnt)
34
+ #define forkmax ((loop)->forkmax)
35
+ #define forks ((loop)->forks)
36
+ #define fs_2625 ((loop)->fs_2625)
37
+ #define fs_fd ((loop)->fs_fd)
38
+ #define fs_hash ((loop)->fs_hash)
39
+ #define fs_w ((loop)->fs_w)
40
+ #define idleall ((loop)->idleall)
41
+ #define idlecnt ((loop)->idlecnt)
42
+ #define idlemax ((loop)->idlemax)
43
+ #define idles ((loop)->idles)
44
+ #define invoke_cb ((loop)->invoke_cb)
45
+ #define io_blocktime ((loop)->io_blocktime)
46
+ #define iocp ((loop)->iocp)
47
+ #define iouring_cq_cqes ((loop)->iouring_cq_cqes)
48
+ #define iouring_cq_head ((loop)->iouring_cq_head)
49
+ #define iouring_cq_overflow ((loop)->iouring_cq_overflow)
50
+ #define iouring_cq_ring ((loop)->iouring_cq_ring)
51
+ #define iouring_cq_ring_entries ((loop)->iouring_cq_ring_entries)
52
+ #define iouring_cq_ring_mask ((loop)->iouring_cq_ring_mask)
53
+ #define iouring_cq_ring_size ((loop)->iouring_cq_ring_size)
54
+ #define iouring_cq_tail ((loop)->iouring_cq_tail)
55
+ #define iouring_entries ((loop)->iouring_entries)
56
+ #define iouring_fd ((loop)->iouring_fd)
57
+ #define iouring_max_entries ((loop)->iouring_max_entries)
58
+ #define iouring_sq_array ((loop)->iouring_sq_array)
59
+ #define iouring_sq_dropped ((loop)->iouring_sq_dropped)
60
+ #define iouring_sq_flags ((loop)->iouring_sq_flags)
61
+ #define iouring_sq_head ((loop)->iouring_sq_head)
62
+ #define iouring_sq_ring ((loop)->iouring_sq_ring)
63
+ #define iouring_sq_ring_entries ((loop)->iouring_sq_ring_entries)
64
+ #define iouring_sq_ring_mask ((loop)->iouring_sq_ring_mask)
65
+ #define iouring_sq_ring_size ((loop)->iouring_sq_ring_size)
66
+ #define iouring_sq_tail ((loop)->iouring_sq_tail)
67
+ #define iouring_sqes ((loop)->iouring_sqes)
68
+ #define iouring_sqes_size ((loop)->iouring_sqes_size)
69
+ #define iouring_tfd ((loop)->iouring_tfd)
70
+ #define iouring_tfd_to ((loop)->iouring_tfd_to)
71
+ #define iouring_tfd_w ((loop)->iouring_tfd_w)
72
+ #define iouring_to_submit ((loop)->iouring_to_submit)
73
+ #define kqueue_changecnt ((loop)->kqueue_changecnt)
74
+ #define kqueue_changemax ((loop)->kqueue_changemax)
75
+ #define kqueue_changes ((loop)->kqueue_changes)
76
+ #define kqueue_eventmax ((loop)->kqueue_eventmax)
77
+ #define kqueue_events ((loop)->kqueue_events)
78
+ #define kqueue_fd_pid ((loop)->kqueue_fd_pid)
79
+ #define linuxaio_ctx ((loop)->linuxaio_ctx)
80
+ #define linuxaio_epoll_w ((loop)->linuxaio_epoll_w)
81
+ #define linuxaio_iocbpmax ((loop)->linuxaio_iocbpmax)
82
+ #define linuxaio_iocbps ((loop)->linuxaio_iocbps)
83
+ #define linuxaio_iteration ((loop)->linuxaio_iteration)
84
+ #define linuxaio_submitcnt ((loop)->linuxaio_submitcnt)
85
+ #define linuxaio_submitmax ((loop)->linuxaio_submitmax)
86
+ #define linuxaio_submits ((loop)->linuxaio_submits)
87
+ #define loop_count ((loop)->loop_count)
88
+ #define loop_depth ((loop)->loop_depth)
89
+ #define loop_done ((loop)->loop_done)
90
+ #define mn_now ((loop)->mn_now)
91
+ #define now_floor ((loop)->now_floor)
92
+ #define origflags ((loop)->origflags)
93
+ #define pending_w ((loop)->pending_w)
94
+ #define pendingcnt ((loop)->pendingcnt)
95
+ #define pendingmax ((loop)->pendingmax)
96
+ #define pendingpri ((loop)->pendingpri)
97
+ #define pendings ((loop)->pendings)
98
+ #define periodiccnt ((loop)->periodiccnt)
99
+ #define periodicmax ((loop)->periodicmax)
100
+ #define periodics ((loop)->periodics)
101
+ #define pipe_w ((loop)->pipe_w)
102
+ #define pipe_write_skipped ((loop)->pipe_write_skipped)
103
+ #define pipe_write_wanted ((loop)->pipe_write_wanted)
104
+ #define pollcnt ((loop)->pollcnt)
105
+ #define pollidxmax ((loop)->pollidxmax)
106
+ #define pollidxs ((loop)->pollidxs)
107
+ #define pollmax ((loop)->pollmax)
108
+ #define polls ((loop)->polls)
109
+ #define port_eventmax ((loop)->port_eventmax)
110
+ #define port_events ((loop)->port_events)
111
+ #define postfork ((loop)->postfork)
112
+ #define preparecnt ((loop)->preparecnt)
113
+ #define preparemax ((loop)->preparemax)
114
+ #define prepares ((loop)->prepares)
115
+ #define release_cb ((loop)->release_cb)
116
+ #define rfeedcnt ((loop)->rfeedcnt)
117
+ #define rfeedmax ((loop)->rfeedmax)
118
+ #define rfeeds ((loop)->rfeeds)
119
+ #define rtmn_diff ((loop)->rtmn_diff)
120
+ #define sig_pending ((loop)->sig_pending)
121
+ #define sigfd ((loop)->sigfd)
122
+ #define sigfd_set ((loop)->sigfd_set)
123
+ #define sigfd_w ((loop)->sigfd_w)
124
+ #define timeout_blocktime ((loop)->timeout_blocktime)
125
+ #define timercnt ((loop)->timercnt)
126
+ #define timerfd ((loop)->timerfd)
127
+ #define timerfd_w ((loop)->timerfd_w)
128
+ #define timermax ((loop)->timermax)
129
+ #define timers ((loop)->timers)
130
+ #define userdata ((loop)->userdata)
131
+ #define vec_eo ((loop)->vec_eo)
132
+ #define vec_max ((loop)->vec_max)
133
+ #define vec_ri ((loop)->vec_ri)
134
+ #define vec_ro ((loop)->vec_ro)
135
+ #define vec_wi ((loop)->vec_wi)
136
+ #define vec_wo ((loop)->vec_wo)
137
+ #else
138
+ #undef EV_WRAP_H
139
+ #undef acquire_cb
140
+ #undef activecnt
141
+ #undef anfdmax
142
+ #undef anfds
143
+ #undef async_pending
144
+ #undef asynccnt
145
+ #undef asyncmax
146
+ #undef asyncs
147
+ #undef backend
148
+ #undef backend_fd
149
+ #undef backend_mintime
150
+ #undef backend_modify
151
+ #undef backend_poll
152
+ #undef checkcnt
153
+ #undef checkmax
154
+ #undef checks
155
+ #undef cleanupcnt
156
+ #undef cleanupmax
157
+ #undef cleanups
158
+ #undef curpid
159
+ #undef epoll_epermcnt
160
+ #undef epoll_epermmax
161
+ #undef epoll_eperms
162
+ #undef epoll_eventmax
163
+ #undef epoll_events
164
+ #undef evpipe
165
+ #undef fdchangecnt
166
+ #undef fdchangemax
167
+ #undef fdchanges
168
+ #undef forkcnt
169
+ #undef forkmax
170
+ #undef forks
171
+ #undef fs_2625
172
+ #undef fs_fd
173
+ #undef fs_hash
174
+ #undef fs_w
175
+ #undef idleall
176
+ #undef idlecnt
177
+ #undef idlemax
178
+ #undef idles
179
+ #undef invoke_cb
180
+ #undef io_blocktime
181
+ #undef iocp
182
+ #undef iouring_cq_cqes
183
+ #undef iouring_cq_head
184
+ #undef iouring_cq_overflow
185
+ #undef iouring_cq_ring
186
+ #undef iouring_cq_ring_entries
187
+ #undef iouring_cq_ring_mask
188
+ #undef iouring_cq_ring_size
189
+ #undef iouring_cq_tail
190
+ #undef iouring_entries
191
+ #undef iouring_fd
192
+ #undef iouring_max_entries
193
+ #undef iouring_sq_array
194
+ #undef iouring_sq_dropped
195
+ #undef iouring_sq_flags
196
+ #undef iouring_sq_head
197
+ #undef iouring_sq_ring
198
+ #undef iouring_sq_ring_entries
199
+ #undef iouring_sq_ring_mask
200
+ #undef iouring_sq_ring_size
201
+ #undef iouring_sq_tail
202
+ #undef iouring_sqes
203
+ #undef iouring_sqes_size
204
+ #undef iouring_tfd
205
+ #undef iouring_tfd_to
206
+ #undef iouring_tfd_w
207
+ #undef iouring_to_submit
208
+ #undef kqueue_changecnt
209
+ #undef kqueue_changemax
210
+ #undef kqueue_changes
211
+ #undef kqueue_eventmax
212
+ #undef kqueue_events
213
+ #undef kqueue_fd_pid
214
+ #undef linuxaio_ctx
215
+ #undef linuxaio_epoll_w
216
+ #undef linuxaio_iocbpmax
217
+ #undef linuxaio_iocbps
218
+ #undef linuxaio_iteration
219
+ #undef linuxaio_submitcnt
220
+ #undef linuxaio_submitmax
221
+ #undef linuxaio_submits
222
+ #undef loop_count
223
+ #undef loop_depth
224
+ #undef loop_done
225
+ #undef mn_now
226
+ #undef now_floor
227
+ #undef origflags
228
+ #undef pending_w
229
+ #undef pendingcnt
230
+ #undef pendingmax
231
+ #undef pendingpri
232
+ #undef pendings
233
+ #undef periodiccnt
234
+ #undef periodicmax
235
+ #undef periodics
236
+ #undef pipe_w
237
+ #undef pipe_write_skipped
238
+ #undef pipe_write_wanted
239
+ #undef pollcnt
240
+ #undef pollidxmax
241
+ #undef pollidxs
242
+ #undef pollmax
243
+ #undef polls
244
+ #undef port_eventmax
245
+ #undef port_events
246
+ #undef postfork
247
+ #undef preparecnt
248
+ #undef preparemax
249
+ #undef prepares
250
+ #undef release_cb
251
+ #undef rfeedcnt
252
+ #undef rfeedmax
253
+ #undef rfeeds
254
+ #undef rtmn_diff
255
+ #undef sig_pending
256
+ #undef sigfd
257
+ #undef sigfd_set
258
+ #undef sigfd_w
259
+ #undef timeout_blocktime
260
+ #undef timercnt
261
+ #undef timerfd
262
+ #undef timerfd_w
263
+ #undef timermax
264
+ #undef timers
265
+ #undef userdata
266
+ #undef vec_eo
267
+ #undef vec_max
268
+ #undef vec_ri
269
+ #undef vec_ro
270
+ #undef vec_wi
271
+ #undef vec_wo
272
+ #endif
@@ -0,0 +1,16 @@
1
+ ---
2
+ Language: Cpp
3
+ BasedOnStyle: WebKit
4
+ AllowAllParametersOfDeclarationOnNextLine: false
5
+ BinPackArguments: false
6
+ BinPackParameters: false
7
+ AlignConsecutiveMacros: false
8
+ AlignConsecutiveAssignments: false
9
+ BreakBeforeBraces: Linux
10
+ BraceWrapping:
11
+ AfterControlStatement: Never
12
+ IndentCaseLabels: true
13
+ PointerAlignment: Right
14
+ SpaceBeforeParens: ControlStatements
15
+ IndentWidth: 4
16
+ ...