Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(460)

Side by Side Diff: third_party/libevent/nacl_nonsfi/event-config.h

Issue 646643002: Non-SFI Mode: Build libevent with PNaCl toolchain for nacl_helper_nonsfi. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@newlib5
Patch Set: Created 6 years, 2 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « third_party/libevent/nacl_nonsfi/config.h ('k') | third_party/libevent/nacl_nonsfi/random.c » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 /* event-config.h 1 /* Copied from Linux version and changed the features according the PNaCl
2 * Generated by autoconf; post-processed by libevent. 2 * toolchain for the Non-SFI binary build, which is close to one under the
3 * Do not edit this file. 3 * linux/ directory. The built binary will be running under Linux directly,
4 * Do not rely on macros in this file existing in later versions. 4 * actually.
5 */ 5 */
6
6 #ifndef _EVENT_CONFIG_H_ 7 #ifndef _EVENT_CONFIG_H_
7 #define _EVENT_CONFIG_H_ 8 #define _EVENT_CONFIG_H_
8 /* config.h. Generated from config.h.in by configure. */
9 /* config.h.in. Generated from configure.in by autoheader. */
10 9
11 /* Define if clock_gettime is available in libc */ 10 /* Define if clock_gettime is available in libc */
12 #define _EVENT_DNS_USE_CPU_CLOCK_FOR_ID 1 11 #define _EVENT_DNS_USE_CPU_CLOCK_FOR_ID 1
13 12
14 /* Define is no secure id variant is available */ 13 /* Define is no secure id variant is available */
15 /* #undef _EVENT_DNS_USE_GETTIMEOFDAY_FOR_ID */ 14 /* #undef _EVENT_DNS_USE_GETTIMEOFDAY_FOR_ID */
16 15
17 /* Define to 1 if you have the `clock_gettime' function. */ 16 /* Define to 1 if you have the `clock_gettime' function. */
18 #define _EVENT_HAVE_CLOCK_GETTIME 1 17 #define _EVENT_HAVE_CLOCK_GETTIME 1
19 18
20 /* Define if /dev/poll is available */ 19 /* Define if /dev/poll is available */
21 /* #undef _EVENT_HAVE_DEVPOLL */ 20 /* #undef _EVENT_HAVE_DEVPOLL */
22 21
23 /* Define to 1 if you have the <dlfcn.h> header file. */ 22 /* Define to 1 if you have the <dlfcn.h> header file. */
24 #define _EVENT_HAVE_DLFCN_H 1 23 #define _EVENT_HAVE_DLFCN_H 1
25 24
26 /* Define if your system supports the epoll system calls */ 25 /* Define if your system supports the epoll system calls */
27 #define _EVENT_HAVE_EPOLL 1 26 /* #undef _EVENT_HAVE_EPOLL */
28 27
29 /* Define to 1 if you have the `epoll_ctl' function. */ 28 /* Define to 1 if you have the `epoll_ctl' function. */
30 #define _EVENT_HAVE_EPOLL_CTL 1 29 /* #undef _EVENT_HAVE_EPOLL_CTL */
31 30
32 /* Define if your system supports event ports */ 31 /* Define if your system supports event ports */
33 /* #undef _EVENT_HAVE_EVENT_PORTS */ 32 /* #undef _EVENT_HAVE_EVENT_PORTS */
34 33
35 /* Define to 1 if you have the `fcntl' function. */ 34 /* Define to 1 if you have the `fcntl' function. */
36 #define _EVENT_HAVE_FCNTL 1 35 #define _EVENT_HAVE_FCNTL 1
37 36
38 /* Define to 1 if you have the <fcntl.h> header file. */ 37 /* Define to 1 if you have the <fcntl.h> header file. */
39 #define _EVENT_HAVE_FCNTL_H 1 38 #define _EVENT_HAVE_FCNTL_H 1
40 39
(...skipping 51 matching lines...) Expand 10 before | Expand all | Expand 10 after
92 /* Define to 1 if you have the <poll.h> header file. */ 91 /* Define to 1 if you have the <poll.h> header file. */
93 #define _EVENT_HAVE_POLL_H 1 92 #define _EVENT_HAVE_POLL_H 1
94 93
95 /* Define to 1 if you have the `port_create' function. */ 94 /* Define to 1 if you have the `port_create' function. */
96 /* #undef _EVENT_HAVE_PORT_CREATE */ 95 /* #undef _EVENT_HAVE_PORT_CREATE */
97 96
98 /* Define to 1 if you have the <port.h> header file. */ 97 /* Define to 1 if you have the <port.h> header file. */
99 /* #undef _EVENT_HAVE_PORT_H */ 98 /* #undef _EVENT_HAVE_PORT_H */
100 99
101 /* Define to 1 if you have the `select' function. */ 100 /* Define to 1 if you have the `select' function. */
102 #define _EVENT_HAVE_SELECT 1 101 /* #undef _EVENT_HAVE_SELECT */
103 102
104 /* Define if F_SETFD is defined in <fcntl.h> */ 103 /* Define if F_SETFD is defined in <fcntl.h> */
105 #define _EVENT_HAVE_SETFD 1 104 #define _EVENT_HAVE_SETFD 1
106 105
107 /* Define to 1 if you have the `sigaction' function. */ 106 /* Define to 1 if you have the `sigaction' function. */
108 #define _EVENT_HAVE_SIGACTION 1 107 /* #undef _EVENT_HAVE_SIGACTION */
109 108
110 /* Define to 1 if you have the `signal' function. */ 109 /* Define to 1 if you have the `signal' function. */
111 #define _EVENT_HAVE_SIGNAL 1 110 #define _EVENT_HAVE_SIGNAL 1
112 111
113 /* Define to 1 if you have the <signal.h> header file. */ 112 /* Define to 1 if you have the <signal.h> header file. */
114 #define _EVENT_HAVE_SIGNAL_H 1 113 #define _EVENT_HAVE_SIGNAL_H 1
115 114
116 /* Define to 1 if you have the <stdarg.h> header file. */ 115 /* Define to 1 if you have the <stdarg.h> header file. */
117 #define _EVENT_HAVE_STDARG_H 1 116 #define _EVENT_HAVE_STDARG_H 1
118 117
(...skipping 21 matching lines...) Expand all
140 /* Define to 1 if you have the `strtoll' function. */ 139 /* Define to 1 if you have the `strtoll' function. */
141 #define _EVENT_HAVE_STRTOLL 1 140 #define _EVENT_HAVE_STRTOLL 1
142 141
143 /* Define to 1 if the system has the type `struct in6_addr'. */ 142 /* Define to 1 if the system has the type `struct in6_addr'. */
144 #define _EVENT_HAVE_STRUCT_IN6_ADDR 1 143 #define _EVENT_HAVE_STRUCT_IN6_ADDR 1
145 144
146 /* Define to 1 if you have the <sys/devpoll.h> header file. */ 145 /* Define to 1 if you have the <sys/devpoll.h> header file. */
147 /* #undef _EVENT_HAVE_SYS_DEVPOLL_H */ 146 /* #undef _EVENT_HAVE_SYS_DEVPOLL_H */
148 147
149 /* Define to 1 if you have the <sys/epoll.h> header file. */ 148 /* Define to 1 if you have the <sys/epoll.h> header file. */
150 #define _EVENT_HAVE_SYS_EPOLL_H 1 149 /* #undef _EVENT_HAVE_SYS_EPOLL_H */
151 150
152 /* Define to 1 if you have the <sys/event.h> header file. */ 151 /* Define to 1 if you have the <sys/event.h> header file. */
153 /* #undef _EVENT_HAVE_SYS_EVENT_H */ 152 /* #undef _EVENT_HAVE_SYS_EVENT_H */
154 153
155 /* Define to 1 if you have the <sys/ioctl.h> header file. */ 154 /* Define to 1 if you have the <sys/ioctl.h> header file. */
156 #define _EVENT_HAVE_SYS_IOCTL_H 1 155 /* #undef _EVENT_HAVE_SYS_IOCTL_H */
157 156
158 /* Define to 1 if you have the <sys/param.h> header file. */ 157 /* Define to 1 if you have the <sys/param.h> header file. */
159 #define _EVENT_HAVE_SYS_PARAM_H 1 158 #define _EVENT_HAVE_SYS_PARAM_H 1
160 159
161 /* Define to 1 if you have the <sys/queue.h> header file. */ 160 /* Define to 1 if you have the <sys/queue.h> header file. */
162 #define _EVENT_HAVE_SYS_QUEUE_H 1 161 #define _EVENT_HAVE_SYS_QUEUE_H 1
163 162
164 /* Define to 1 if you have the <sys/select.h> header file. */ 163 /* Define to 1 if you have the <sys/select.h> header file. */
165 #define _EVENT_HAVE_SYS_SELECT_H 1 164 #define _EVENT_HAVE_SYS_SELECT_H 1
166 165
167 /* Define to 1 if you have the <sys/socket.h> header file. */ 166 /* Define to 1 if you have the <sys/socket.h> header file. */
168 #define _EVENT_HAVE_SYS_SOCKET_H 1 167 #define _EVENT_HAVE_SYS_SOCKET_H 1
169 168
170 /* Define to 1 if you have the <sys/stat.h> header file. */ 169 /* Define to 1 if you have the <sys/stat.h> header file. */
171 #define _EVENT_HAVE_SYS_STAT_H 1 170 #define _EVENT_HAVE_SYS_STAT_H 1
172 171
173 /* Define to 1 if you have the <sys/time.h> header file. */ 172 /* Define to 1 if you have the <sys/time.h> header file. */
174 #define _EVENT_HAVE_SYS_TIME_H 1 173 #define _EVENT_HAVE_SYS_TIME_H 1
175 174
176 /* Define to 1 if you have the <sys/types.h> header file. */ 175 /* Define to 1 if you have the <sys/types.h> header file. */
177 #define _EVENT_HAVE_SYS_TYPES_H 1 176 #define _EVENT_HAVE_SYS_TYPES_H 1
178 177
179 /* Define if TAILQ_FOREACH is defined in <sys/queue.h> */ 178 /* Define if TAILQ_FOREACH is defined in <sys/queue.h> */
180 #define _EVENT_HAVE_TAILQFOREACH 1 179 #define _EVENT_HAVE_TAILQFOREACH 1
181 180
182 /* Define if timeradd is defined in <sys/time.h> */ 181 /* Define if timeradd is defined in <sys/time.h> */
183 #define _EVENT_HAVE_TIMERADD 1 182 /* #undef _EVENT_HAVE_TIMERADD */
184 183
185 /* Define if timerclear is defined in <sys/time.h> */ 184 /* Define if timerclear is defined in <sys/time.h> */
186 #define _EVENT_HAVE_TIMERCLEAR 1 185 /* #undef _EVENT_HAVE_TIMERCLEAR */
187 186
188 /* Define if timercmp is defined in <sys/time.h> */ 187 /* Define if timercmp is defined in <sys/time.h> */
189 #define _EVENT_HAVE_TIMERCMP 1 188 /* #undef _EVENT_HAVE_TIMERCMP */
190 189
191 /* Define if timerisset is defined in <sys/time.h> */ 190 /* Define if timerisset is defined in <sys/time.h> */
192 #define _EVENT_HAVE_TIMERISSET 1 191 /* #undef _EVENT_HAVE_TIMERISSET */
193 192
194 /* Define to 1 if the system has the type `uint16_t'. */ 193 /* Define to 1 if the system has the type `uint16_t'. */
195 #define _EVENT_HAVE_UINT16_T 1 194 #define _EVENT_HAVE_UINT16_T 1
196 195
197 /* Define to 1 if the system has the type `uint32_t'. */ 196 /* Define to 1 if the system has the type `uint32_t'. */
198 #define _EVENT_HAVE_UINT32_T 1 197 #define _EVENT_HAVE_UINT32_T 1
199 198
200 /* Define to 1 if the system has the type `uint64_t'. */ 199 /* Define to 1 if the system has the type `uint64_t'. */
201 #define _EVENT_HAVE_UINT64_T 1 200 #define _EVENT_HAVE_UINT64_T 1
202 201
203 /* Define to 1 if the system has the type `uint8_t'. */ 202 /* Define to 1 if the system has the type `uint8_t'. */
204 #define _EVENT_HAVE_UINT8_T 1 203 #define _EVENT_HAVE_UINT8_T 1
205 204
206 /* Define to 1 if you have the <unistd.h> header file. */ 205 /* Define to 1 if you have the <unistd.h> header file. */
207 #define _EVENT_HAVE_UNISTD_H 1 206 #define _EVENT_HAVE_UNISTD_H 1
208 207
209 /* Define to 1 if you have the `vasprintf' function. */ 208 /* Define to 1 if you have the `vasprintf' function. */
210 #define _EVENT_HAVE_VASPRINTF 1 209 #define _EVENT_HAVE_VASPRINTF 1
211 210
212 /* Define if kqueue works correctly with pipes */ 211 /* Define if kqueue works correctly with pipes */
213 /* #undef _EVENT_HAVE_WORKING_KQUEUE */ 212 /* #undef _EVENT_HAVE_WORKING_KQUEUE */
214 213
215 /* Name of package */ 214 /* Name of package */
216 #define _EVENT_PACKAGE "libevent" 215 #define _EVENT_PACKAGE "libevent_nacl"
217 216
218 /* Define to the address where bug reports for this package should be sent. */ 217 /* Define to the address where bug reports for this package should be sent. */
219 #define _EVENT_PACKAGE_BUGREPORT "" 218 #define _EVENT_PACKAGE_BUGREPORT ""
220 219
221 /* Define to the full name of this package. */ 220 /* Define to the full name of this package. */
222 #define _EVENT_PACKAGE_NAME "" 221 #define _EVENT_PACKAGE_NAME ""
223 222
224 /* Define to the full name and version of this package. */ 223 /* Define to the full name and version of this package. */
225 #define _EVENT_PACKAGE_STRING "" 224 #define _EVENT_PACKAGE_STRING ""
226 225
(...skipping 37 matching lines...) Expand 10 before | Expand all | Expand 10 after
264 #endif 263 #endif
265 264
266 /* Define to `int' if <sys/types.h> does not define. */ 265 /* Define to `int' if <sys/types.h> does not define. */
267 /* #undef _EVENT_pid_t */ 266 /* #undef _EVENT_pid_t */
268 267
269 /* Define to `unsigned int' if <sys/types.h> does not define. */ 268 /* Define to `unsigned int' if <sys/types.h> does not define. */
270 /* #undef _EVENT_size_t */ 269 /* #undef _EVENT_size_t */
271 270
272 /* Define to unsigned int if you dont have it */ 271 /* Define to unsigned int if you dont have it */
273 /* #undef _EVENT_socklen_t */ 272 /* #undef _EVENT_socklen_t */
273
274 /* Work around for __native_client_nonsfi__ build. random() is not provided
275 * by the newlib-based PNaCl toolchain, so here we declare it. Please see also
276 * nacl_nonsfi/random.c for more details.
277 */
278 long int random();
279
274 #endif 280 #endif
OLDNEW
« no previous file with comments | « third_party/libevent/nacl_nonsfi/config.h ('k') | third_party/libevent/nacl_nonsfi/random.c » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698