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

Side by Side Diff: third_party/libevent/nacl/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
OLDNEW
1 /* Copied from Linux version and changed the features according Android, which 1 /* Copied from Linux version and changed the features according NaCl, which
2 * is close to Linux */ 2 * is close to Linux */
3
3 #ifndef _EVENT_CONFIG_H_ 4 #ifndef _EVENT_CONFIG_H_
4 #define _EVENT_CONFIG_H_ 5 #define _EVENT_CONFIG_H_
5 /* config.h. Generated from config.h.in by configure. */
6 /* config.h.in. Generated from configure.in by autoheader. */
7 6
8 /* Define if clock_gettime is available in libc */ 7 /* Define if clock_gettime is available in libc */
9 #define _EVENT_DNS_USE_CPU_CLOCK_FOR_ID 1 8 #define _EVENT_DNS_USE_CPU_CLOCK_FOR_ID 1
10 9
11 /* Define is no secure id variant is available */ 10 /* Define is no secure id variant is available */
12 /* #undef _EVENT_DNS_USE_GETTIMEOFDAY_FOR_ID */ 11 /* #undef _EVENT_DNS_USE_GETTIMEOFDAY_FOR_ID */
13 12
14 /* Define to 1 if you have the `clock_gettime' function. */ 13 /* Define to 1 if you have the `clock_gettime' function. */
15 #define _EVENT_HAVE_CLOCK_GETTIME 1 14 #define _EVENT_HAVE_CLOCK_GETTIME 1
16 15
17 /* Define if /dev/poll is available */ 16 /* Define if /dev/poll is available */
18 /* #undef _EVENT_HAVE_DEVPOLL */ 17 /* #undef _EVENT_HAVE_DEVPOLL */
19 18
20 /* Define to 1 if you have the <dlfcn.h> header file. */ 19 /* Define to 1 if you have the <dlfcn.h> header file. */
21 #define _EVENT_HAVE_DLFCN_H 1 20 #define _EVENT_HAVE_DLFCN_H 1
22 21
23 /* Define if your system supports the epoll system calls */ 22 /* Define if your system supports the epoll system calls */
24 #define _EVENT_HAVE_EPOLL 1 23 /* #undef _EVENT_HAVE_EPOLL */
25 24
26 /* Define to 1 if you have the `epoll_ctl' function. */ 25 /* Define to 1 if you have the `epoll_ctl' function. */
27 #define _EVENT_HAVE_EPOLL_CTL 1 26 /* #undef _EVENT_HAVE_EPOLL_CTL */
28 27
29 /* Define if your system supports event ports */ 28 /* Define if your system supports event ports */
30 /* #undef _EVENT_HAVE_EVENT_PORTS */ 29 /* #undef _EVENT_HAVE_EVENT_PORTS */
31 30
32 /* Define to 1 if you have the `fcntl' function. */ 31 /* Define to 1 if you have the `fcntl' function. */
33 #define _EVENT_HAVE_FCNTL 1 32 #define _EVENT_HAVE_FCNTL 1
34 33
35 /* Define to 1 if you have the <fcntl.h> header file. */ 34 /* Define to 1 if you have the <fcntl.h> header file. */
36 #define _EVENT_HAVE_FCNTL_H 1 35 #define _EVENT_HAVE_FCNTL_H 1
37 36
38 /* Define to 1 if the system has the type `fd_mask'. */ 37 /* Define to 1 if the system has the type `fd_mask'. */
39 /* #undef _EVENT_HAVE_FD_MASK 1 */ 38 #define _EVENT_HAVE_FD_MASK 1
40 39
41 /* Define to 1 if you have the `getaddrinfo' function. */ 40 /* Define to 1 if you have the `getaddrinfo' function. */
42 #define _EVENT_HAVE_GETADDRINFO 1 41 #define _EVENT_HAVE_GETADDRINFO 1
43 42
44 /* Define to 1 if you have the `getegid' function. */ 43 /* Define to 1 if you have the `getegid' function. */
45 #define _EVENT_HAVE_GETEGID 1 44 #define _EVENT_HAVE_GETEGID 1
46 45
47 /* Define to 1 if you have the `geteuid' function. */ 46 /* Define to 1 if you have the `geteuid' function. */
48 #define _EVENT_HAVE_GETEUID 1 47 #define _EVENT_HAVE_GETEUID 1
49 48
(...skipping 39 matching lines...) Expand 10 before | Expand all | Expand 10 after
89 /* Define to 1 if you have the <poll.h> header file. */ 88 /* Define to 1 if you have the <poll.h> header file. */
90 #define _EVENT_HAVE_POLL_H 1 89 #define _EVENT_HAVE_POLL_H 1
91 90
92 /* Define to 1 if you have the `port_create' function. */ 91 /* Define to 1 if you have the `port_create' function. */
93 /* #undef _EVENT_HAVE_PORT_CREATE */ 92 /* #undef _EVENT_HAVE_PORT_CREATE */
94 93
95 /* Define to 1 if you have the <port.h> header file. */ 94 /* Define to 1 if you have the <port.h> header file. */
96 /* #undef _EVENT_HAVE_PORT_H */ 95 /* #undef _EVENT_HAVE_PORT_H */
97 96
98 /* Define to 1 if you have the `select' function. */ 97 /* Define to 1 if you have the `select' function. */
99 #define _EVENT_HAVE_SELECT 1 98 /* #undef _EVENT_HAVE_SELECT */
100 99
101 /* Define if F_SETFD is defined in <fcntl.h> */ 100 /* Define if F_SETFD is defined in <fcntl.h> */
102 #define _EVENT_HAVE_SETFD 1 101 #define _EVENT_HAVE_SETFD 1
103 102
104 /* Define to 1 if you have the `sigaction' function. */ 103 /* Define to 1 if you have the `sigaction' function. */
105 #define _EVENT_HAVE_SIGACTION 1 104 /* #undef _EVENT_HAVE_SIGACTION */
106 105
107 /* Define to 1 if you have the `signal' function. */ 106 /* Define to 1 if you have the `signal' function. */
108 #define _EVENT_HAVE_SIGNAL 1 107 #define _EVENT_HAVE_SIGNAL 1
109 108
110 /* Define to 1 if you have the <signal.h> header file. */ 109 /* Define to 1 if you have the <signal.h> header file. */
111 #define _EVENT_HAVE_SIGNAL_H 1 110 #define _EVENT_HAVE_SIGNAL_H 1
112 111
113 /* Define to 1 if you have the <stdarg.h> header file. */ 112 /* Define to 1 if you have the <stdarg.h> header file. */
114 #define _EVENT_HAVE_STDARG_H 1 113 #define _EVENT_HAVE_STDARG_H 1
115 114
116 /* Define to 1 if you have the <stdint.h> header file. */ 115 /* Define to 1 if you have the <stdint.h> header file. */
117 #define _EVENT_HAVE_STDINT_H 1 116 #define _EVENT_HAVE_STDINT_H 1
118 117
119 /* Define to 1 if you have the <stdlib.h> header file. */ 118 /* Define to 1 if you have the <stdlib.h> header file. */
120 #define _EVENT_HAVE_STDLIB_H 1 119 #define _EVENT_HAVE_STDLIB_H 1
121 120
122 /* Define to 1 if you have the <strings.h> header file. */ 121 /* Define to 1 if you have the <strings.h> header file. */
123 #define _EVENT_HAVE_STRINGS_H 1 122 #define _EVENT_HAVE_STRINGS_H 1
124 123
125 /* Define to 1 if you have the <string.h> header file. */ 124 /* Define to 1 if you have the <string.h> header file. */
126 #define _EVENT_HAVE_STRING_H 1 125 #define _EVENT_HAVE_STRING_H 1
127 126
128 /* Define to 1 if you have the `strlcpy' function. */ 127 /* Define to 1 if you have the `strlcpy' function. */
129 #define _EVENT_HAVE_STRLCPY 1 128 /* #undef _EVENT_HAVE_STRLCPY */
130 129
131 /* Define to 1 if you have the `strsep' function. */ 130 /* Define to 1 if you have the `strsep' function. */
132 #define _EVENT_HAVE_STRSEP 1 131 #define _EVENT_HAVE_STRSEP 1
133 132
134 /* Define to 1 if you have the `strtok_r' function. */ 133 /* Define to 1 if you have the `strtok_r' function. */
135 #define _EVENT_HAVE_STRTOK_R 1 134 #define _EVENT_HAVE_STRTOK_R 1
136 135
137 /* Define to 1 if you have the `strtoll' function. */ 136 /* Define to 1 if you have the `strtoll' function. */
138 #define _EVENT_HAVE_STRTOLL 1 137 #define _EVENT_HAVE_STRTOLL 1
139 138
140 /* Define to 1 if the system has the type `struct in6_addr'. */ 139 /* Define to 1 if the system has the type `struct in6_addr'. */
141 #define _EVENT_HAVE_STRUCT_IN6_ADDR 1 140 #define _EVENT_HAVE_STRUCT_IN6_ADDR 1
142 141
143 /* Define to 1 if you have the <sys/devpoll.h> header file. */ 142 /* Define to 1 if you have the <sys/devpoll.h> header file. */
144 /* #undef _EVENT_HAVE_SYS_DEVPOLL_H */ 143 /* #undef _EVENT_HAVE_SYS_DEVPOLL_H */
145 144
146 /* Define to 1 if you have the <sys/epoll.h> header file. */ 145 /* Define to 1 if you have the <sys/epoll.h> header file. */
147 #define _EVENT_HAVE_SYS_EPOLL_H 1 146 /* #undef _EVENT_HAVE_SYS_EPOLL_H */
148 147
149 /* Define to 1 if you have the <sys/event.h> header file. */ 148 /* Define to 1 if you have the <sys/event.h> header file. */
150 /* #undef _EVENT_HAVE_SYS_EVENT_H */ 149 /* #undef _EVENT_HAVE_SYS_EVENT_H */
151 150
152 /* Define to 1 if you have the <sys/ioctl.h> header file. */ 151 /* Define to 1 if you have the <sys/ioctl.h> header file. */
153 #define _EVENT_HAVE_SYS_IOCTL_H 1 152 /* #undef _EVENT_HAVE_SYS_IOCTL_H */
154 153
155 /* Define to 1 if you have the <sys/param.h> header file. */ 154 /* Define to 1 if you have the <sys/param.h> header file. */
156 #define _EVENT_HAVE_SYS_PARAM_H 1 155 #define _EVENT_HAVE_SYS_PARAM_H 1
157 156
158 /* Define to 1 if you have the <sys/queue.h> header file. */ 157 /* Define to 1 if you have the <sys/queue.h> header file. */
159 #define _EVENT_HAVE_SYS_QUEUE_H 1 158 #define _EVENT_HAVE_SYS_QUEUE_H 1
160 159
161 /* Define to 1 if you have the <sys/select.h> header file. */ 160 /* Define to 1 if you have the <sys/select.h> header file. */
162 #define _EVENT_HAVE_SYS_SELECT_H 1 161 #define _EVENT_HAVE_SYS_SELECT_H 1
163 162
164 /* Define to 1 if you have the <sys/socket.h> header file. */ 163 /* Define to 1 if you have the <sys/socket.h> header file. */
165 #define _EVENT_HAVE_SYS_SOCKET_H 1 164 #define _EVENT_HAVE_SYS_SOCKET_H 1
166 165
167 /* Define to 1 if you have the <sys/stat.h> header file. */ 166 /* Define to 1 if you have the <sys/stat.h> header file. */
168 #define _EVENT_HAVE_SYS_STAT_H 1 167 #define _EVENT_HAVE_SYS_STAT_H 1
169 168
170 /* Define to 1 if you have the <sys/time.h> header file. */ 169 /* Define to 1 if you have the <sys/time.h> header file. */
171 #define _EVENT_HAVE_SYS_TIME_H 1 170 #define _EVENT_HAVE_SYS_TIME_H 1
172 171
173 /* Define to 1 if you have the <sys/types.h> header file. */ 172 /* Define to 1 if you have the <sys/types.h> header file. */
174 #define _EVENT_HAVE_SYS_TYPES_H 1 173 #define _EVENT_HAVE_SYS_TYPES_H 1
175 174
176 /* Define if TAILQ_FOREACH is defined in <sys/queue.h> */ 175 /* Define if TAILQ_FOREACH is defined in <sys/queue.h> */
177 #define _EVENT_HAVE_TAILQFOREACH 1 176 #define _EVENT_HAVE_TAILQFOREACH 1
178 177
179 /* Define if timeradd is defined in <sys/time.h> */ 178 /* Define if timeradd is defined in <sys/time.h> */
180 #define _EVENT_HAVE_TIMERADD 1 179 /* #undef _EVENT_HAVE_TIMERADD */
181 180
182 /* Define if timerclear is defined in <sys/time.h> */ 181 /* Define if timerclear is defined in <sys/time.h> */
183 #define _EVENT_HAVE_TIMERCLEAR 1 182 /* #undef _EVENT_HAVE_TIMERCLEAR */
184 183
185 /* Define if timercmp is defined in <sys/time.h> */ 184 /* Define if timercmp is defined in <sys/time.h> */
186 #define _EVENT_HAVE_TIMERCMP 1 185 /* #undef _EVENT_HAVE_TIMERCMP */
187 186
188 /* Define if timerisset is defined in <sys/time.h> */ 187 /* Define if timerisset is defined in <sys/time.h> */
189 #define _EVENT_HAVE_TIMERISSET 1 188 /* #undef _EVENT_HAVE_TIMERISSET */
190 189
191 /* Define to 1 if the system has the type `uint16_t'. */ 190 /* Define to 1 if the system has the type `uint16_t'. */
192 #define _EVENT_HAVE_UINT16_T 1 191 #define _EVENT_HAVE_UINT16_T 1
193 192
194 /* Define to 1 if the system has the type `uint32_t'. */ 193 /* Define to 1 if the system has the type `uint32_t'. */
195 #define _EVENT_HAVE_UINT32_T 1 194 #define _EVENT_HAVE_UINT32_T 1
196 195
197 /* Define to 1 if the system has the type `uint64_t'. */ 196 /* Define to 1 if the system has the type `uint64_t'. */
198 #define _EVENT_HAVE_UINT64_T 1 197 #define _EVENT_HAVE_UINT64_T 1
199 198
200 /* Define to 1 if the system has the type `uint8_t'. */ 199 /* Define to 1 if the system has the type `uint8_t'. */
201 #define _EVENT_HAVE_UINT8_T 1 200 #define _EVENT_HAVE_UINT8_T 1
202 201
203 /* Define to 1 if you have the <unistd.h> header file. */ 202 /* Define to 1 if you have the <unistd.h> header file. */
204 #define _EVENT_HAVE_UNISTD_H 1 203 #define _EVENT_HAVE_UNISTD_H 1
205 204
206 /* Define to 1 if you have the `vasprintf' function. */ 205 /* Define to 1 if you have the `vasprintf' function. */
207 #define _EVENT_HAVE_VASPRINTF 1 206 #define _EVENT_HAVE_VASPRINTF 1
208 207
209 /* Define if kqueue works correctly with pipes */ 208 /* Define if kqueue works correctly with pipes */
210 /* #undef _EVENT_HAVE_WORKING_KQUEUE */ 209 /* #undef _EVENT_HAVE_WORKING_KQUEUE */
211 210
212 /* Name of package */ 211 /* Name of package */
213 #define _EVENT_PACKAGE "libevent" 212 #define _EVENT_PACKAGE "libevent_nacl"
214 213
215 /* Define to the address where bug reports for this package should be sent. */ 214 /* Define to the address where bug reports for this package should be sent. */
216 #define _EVENT_PACKAGE_BUGREPORT "" 215 #define _EVENT_PACKAGE_BUGREPORT ""
217 216
218 /* Define to the full name of this package. */ 217 /* Define to the full name of this package. */
219 #define _EVENT_PACKAGE_NAME "" 218 #define _EVENT_PACKAGE_NAME ""
220 219
221 /* Define to the full name and version of this package. */ 220 /* Define to the full name and version of this package. */
222 #define _EVENT_PACKAGE_STRING "" 221 #define _EVENT_PACKAGE_STRING ""
223 222
(...skipping 37 matching lines...) Expand 10 before | Expand all | Expand 10 after
261 #endif 260 #endif
262 261
263 /* Define to `int' if <sys/types.h> does not define. */ 262 /* Define to `int' if <sys/types.h> does not define. */
264 /* #undef _EVENT_pid_t */ 263 /* #undef _EVENT_pid_t */
265 264
266 /* Define to `unsigned int' if <sys/types.h> does not define. */ 265 /* Define to `unsigned int' if <sys/types.h> does not define. */
267 /* #undef _EVENT_size_t */ 266 /* #undef _EVENT_size_t */
268 267
269 /* Define to unsigned int if you dont have it */ 268 /* Define to unsigned int if you dont have it */
270 /* #undef _EVENT_socklen_t */ 269 /* #undef _EVENT_socklen_t */
270
271 /* Work around for __native_client_nonsfi__ build. random() is not provided
272 * by the toolchain, so here we define the static inline function, to redirect
Mark Seaborn 2014/10/13 16:02:01 Nit: "the toolchain" -> "newlib" or "the newlib-ba
hidehiko 2014/10/14 09:07:13 Done.
273 * it to rand().
274 */
275 #include <stdlib.h>
276 static inline int random() { return rand(); }
Mark Seaborn 2014/10/13 16:02:01 Nit: Might as well follow the coding style and put
hidehiko 2014/10/14 09:07:13 Done.
277
271 #endif 278 #endif
OLDNEW
« third_party/libevent/nacl/config.h ('K') | « third_party/libevent/nacl/config.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698