racer 0.1.3

Sign up to get free protection for your applications and to get access to all the features.
Files changed (336) hide show
  1. data/LICENSE +22 -0
  2. data/bin/racer +33 -0
  3. data/ext/libuv/AUTHORS +45 -0
  4. data/ext/libuv/LICENSE +42 -0
  5. data/ext/libuv/Makefile +119 -0
  6. data/ext/libuv/README.md +88 -0
  7. data/ext/libuv/build/gcc_version.py +20 -0
  8. data/ext/libuv/common.gypi +176 -0
  9. data/ext/libuv/config-mingw.mk +61 -0
  10. data/ext/libuv/config-unix.mk +171 -0
  11. data/ext/libuv/gyp_uv +64 -0
  12. data/ext/libuv/include/ares.h +591 -0
  13. data/ext/libuv/include/ares_version.h +24 -0
  14. data/ext/libuv/include/uv-private/eio.h +403 -0
  15. data/ext/libuv/include/uv-private/ev.h +838 -0
  16. data/ext/libuv/include/uv-private/ngx-queue.h +108 -0
  17. data/ext/libuv/include/uv-private/tree.h +768 -0
  18. data/ext/libuv/include/uv-private/uv-unix.h +310 -0
  19. data/ext/libuv/include/uv-private/uv-win.h +510 -0
  20. data/ext/libuv/include/uv.h +1796 -0
  21. data/ext/libuv/src/ares/AUTHORS +37 -0
  22. data/ext/libuv/src/ares/CHANGES +1218 -0
  23. data/ext/libuv/src/ares/CMakeLists.txt +22 -0
  24. data/ext/libuv/src/ares/NEWS +21 -0
  25. data/ext/libuv/src/ares/README +60 -0
  26. data/ext/libuv/src/ares/README.cares +13 -0
  27. data/ext/libuv/src/ares/README.msvc +142 -0
  28. data/ext/libuv/src/ares/README.node +21 -0
  29. data/ext/libuv/src/ares/RELEASE-NOTES +26 -0
  30. data/ext/libuv/src/ares/TODO +23 -0
  31. data/ext/libuv/src/ares/ares__close_sockets.c +66 -0
  32. data/ext/libuv/src/ares/ares__get_hostent.c +263 -0
  33. data/ext/libuv/src/ares/ares__read_line.c +71 -0
  34. data/ext/libuv/src/ares/ares__timeval.c +111 -0
  35. data/ext/libuv/src/ares/ares_cancel.c +63 -0
  36. data/ext/libuv/src/ares/ares_data.c +190 -0
  37. data/ext/libuv/src/ares/ares_data.h +65 -0
  38. data/ext/libuv/src/ares/ares_destroy.c +105 -0
  39. data/ext/libuv/src/ares/ares_dns.h +90 -0
  40. data/ext/libuv/src/ares/ares_expand_name.c +200 -0
  41. data/ext/libuv/src/ares/ares_expand_string.c +75 -0
  42. data/ext/libuv/src/ares/ares_fds.c +63 -0
  43. data/ext/libuv/src/ares/ares_free_hostent.c +42 -0
  44. data/ext/libuv/src/ares/ares_free_string.c +25 -0
  45. data/ext/libuv/src/ares/ares_getenv.c +30 -0
  46. data/ext/libuv/src/ares/ares_getenv.h +26 -0
  47. data/ext/libuv/src/ares/ares_gethostbyaddr.c +301 -0
  48. data/ext/libuv/src/ares/ares_gethostbyname.c +523 -0
  49. data/ext/libuv/src/ares/ares_getnameinfo.c +427 -0
  50. data/ext/libuv/src/ares/ares_getopt.c +122 -0
  51. data/ext/libuv/src/ares/ares_getopt.h +53 -0
  52. data/ext/libuv/src/ares/ares_getsock.c +72 -0
  53. data/ext/libuv/src/ares/ares_init.c +1809 -0
  54. data/ext/libuv/src/ares/ares_iphlpapi.h +221 -0
  55. data/ext/libuv/src/ares/ares_ipv6.h +78 -0
  56. data/ext/libuv/src/ares/ares_library_init.c +142 -0
  57. data/ext/libuv/src/ares/ares_library_init.h +42 -0
  58. data/ext/libuv/src/ares/ares_llist.c +86 -0
  59. data/ext/libuv/src/ares/ares_llist.h +42 -0
  60. data/ext/libuv/src/ares/ares_mkquery.c +195 -0
  61. data/ext/libuv/src/ares/ares_nowarn.c +181 -0
  62. data/ext/libuv/src/ares/ares_nowarn.h +55 -0
  63. data/ext/libuv/src/ares/ares_options.c +248 -0
  64. data/ext/libuv/src/ares/ares_parse_a_reply.c +263 -0
  65. data/ext/libuv/src/ares/ares_parse_aaaa_reply.c +259 -0
  66. data/ext/libuv/src/ares/ares_parse_mx_reply.c +170 -0
  67. data/ext/libuv/src/ares/ares_parse_ns_reply.c +182 -0
  68. data/ext/libuv/src/ares/ares_parse_ptr_reply.c +217 -0
  69. data/ext/libuv/src/ares/ares_parse_srv_reply.c +179 -0
  70. data/ext/libuv/src/ares/ares_parse_txt_reply.c +201 -0
  71. data/ext/libuv/src/ares/ares_platform.c +11035 -0
  72. data/ext/libuv/src/ares/ares_platform.h +43 -0
  73. data/ext/libuv/src/ares/ares_private.h +355 -0
  74. data/ext/libuv/src/ares/ares_process.c +1295 -0
  75. data/ext/libuv/src/ares/ares_query.c +183 -0
  76. data/ext/libuv/src/ares/ares_rules.h +144 -0
  77. data/ext/libuv/src/ares/ares_search.c +321 -0
  78. data/ext/libuv/src/ares/ares_send.c +134 -0
  79. data/ext/libuv/src/ares/ares_setup.h +199 -0
  80. data/ext/libuv/src/ares/ares_strcasecmp.c +66 -0
  81. data/ext/libuv/src/ares/ares_strcasecmp.h +30 -0
  82. data/ext/libuv/src/ares/ares_strdup.c +42 -0
  83. data/ext/libuv/src/ares/ares_strdup.h +26 -0
  84. data/ext/libuv/src/ares/ares_strerror.c +56 -0
  85. data/ext/libuv/src/ares/ares_timeout.c +80 -0
  86. data/ext/libuv/src/ares/ares_version.c +11 -0
  87. data/ext/libuv/src/ares/ares_writev.c +79 -0
  88. data/ext/libuv/src/ares/ares_writev.h +36 -0
  89. data/ext/libuv/src/ares/bitncmp.c +59 -0
  90. data/ext/libuv/src/ares/bitncmp.h +26 -0
  91. data/ext/libuv/src/ares/config_cygwin/ares_config.h +512 -0
  92. data/ext/libuv/src/ares/config_darwin/ares_config.h +512 -0
  93. data/ext/libuv/src/ares/config_freebsd/ares_config.h +512 -0
  94. data/ext/libuv/src/ares/config_linux/ares_config.h +512 -0
  95. data/ext/libuv/src/ares/config_netbsd/ares_config.h +512 -0
  96. data/ext/libuv/src/ares/config_openbsd/ares_config.h +512 -0
  97. data/ext/libuv/src/ares/config_sunos/ares_config.h +512 -0
  98. data/ext/libuv/src/ares/config_win32/ares_config.h +369 -0
  99. data/ext/libuv/src/ares/get_ver.awk +35 -0
  100. data/ext/libuv/src/ares/inet_net_pton.c +451 -0
  101. data/ext/libuv/src/ares/inet_net_pton.h +31 -0
  102. data/ext/libuv/src/ares/inet_ntop.c +208 -0
  103. data/ext/libuv/src/ares/inet_ntop.h +26 -0
  104. data/ext/libuv/src/ares/nameser.h +203 -0
  105. data/ext/libuv/src/ares/setup_once.h +504 -0
  106. data/ext/libuv/src/ares/windows_port.c +22 -0
  107. data/ext/libuv/src/cares.c +225 -0
  108. data/ext/libuv/src/fs-poll.c +237 -0
  109. data/ext/libuv/src/unix/async.c +119 -0
  110. data/ext/libuv/src/unix/core.c +647 -0
  111. data/ext/libuv/src/unix/cygwin.c +84 -0
  112. data/ext/libuv/src/unix/darwin.c +341 -0
  113. data/ext/libuv/src/unix/dl.c +83 -0
  114. data/ext/libuv/src/unix/eio/Changes +63 -0
  115. data/ext/libuv/src/unix/eio/LICENSE +36 -0
  116. data/ext/libuv/src/unix/eio/Makefile.am +15 -0
  117. data/ext/libuv/src/unix/eio/aclocal.m4 +8957 -0
  118. data/ext/libuv/src/unix/eio/autogen.sh +3 -0
  119. data/ext/libuv/src/unix/eio/config.h.in +86 -0
  120. data/ext/libuv/src/unix/eio/config_cygwin.h +80 -0
  121. data/ext/libuv/src/unix/eio/config_darwin.h +141 -0
  122. data/ext/libuv/src/unix/eio/config_freebsd.h +81 -0
  123. data/ext/libuv/src/unix/eio/config_linux.h +94 -0
  124. data/ext/libuv/src/unix/eio/config_netbsd.h +81 -0
  125. data/ext/libuv/src/unix/eio/config_openbsd.h +137 -0
  126. data/ext/libuv/src/unix/eio/config_sunos.h +84 -0
  127. data/ext/libuv/src/unix/eio/configure.ac +22 -0
  128. data/ext/libuv/src/unix/eio/demo.c +194 -0
  129. data/ext/libuv/src/unix/eio/ecb.h +370 -0
  130. data/ext/libuv/src/unix/eio/eio.3 +3428 -0
  131. data/ext/libuv/src/unix/eio/eio.c +2593 -0
  132. data/ext/libuv/src/unix/eio/eio.pod +969 -0
  133. data/ext/libuv/src/unix/eio/libeio.m4 +195 -0
  134. data/ext/libuv/src/unix/eio/xthread.h +164 -0
  135. data/ext/libuv/src/unix/error.c +104 -0
  136. data/ext/libuv/src/unix/ev/Changes +388 -0
  137. data/ext/libuv/src/unix/ev/LICENSE +36 -0
  138. data/ext/libuv/src/unix/ev/Makefile.am +18 -0
  139. data/ext/libuv/src/unix/ev/Makefile.in +771 -0
  140. data/ext/libuv/src/unix/ev/README +58 -0
  141. data/ext/libuv/src/unix/ev/aclocal.m4 +8957 -0
  142. data/ext/libuv/src/unix/ev/autogen.sh +6 -0
  143. data/ext/libuv/src/unix/ev/config.guess +1526 -0
  144. data/ext/libuv/src/unix/ev/config.h.in +125 -0
  145. data/ext/libuv/src/unix/ev/config.sub +1658 -0
  146. data/ext/libuv/src/unix/ev/config_cygwin.h +123 -0
  147. data/ext/libuv/src/unix/ev/config_darwin.h +122 -0
  148. data/ext/libuv/src/unix/ev/config_freebsd.h +120 -0
  149. data/ext/libuv/src/unix/ev/config_linux.h +141 -0
  150. data/ext/libuv/src/unix/ev/config_netbsd.h +120 -0
  151. data/ext/libuv/src/unix/ev/config_openbsd.h +126 -0
  152. data/ext/libuv/src/unix/ev/config_sunos.h +122 -0
  153. data/ext/libuv/src/unix/ev/configure +13037 -0
  154. data/ext/libuv/src/unix/ev/configure.ac +18 -0
  155. data/ext/libuv/src/unix/ev/depcomp +630 -0
  156. data/ext/libuv/src/unix/ev/ev++.h +816 -0
  157. data/ext/libuv/src/unix/ev/ev.3 +5311 -0
  158. data/ext/libuv/src/unix/ev/ev.c +3925 -0
  159. data/ext/libuv/src/unix/ev/ev.pod +5243 -0
  160. data/ext/libuv/src/unix/ev/ev_epoll.c +266 -0
  161. data/ext/libuv/src/unix/ev/ev_kqueue.c +235 -0
  162. data/ext/libuv/src/unix/ev/ev_poll.c +148 -0
  163. data/ext/libuv/src/unix/ev/ev_port.c +179 -0
  164. data/ext/libuv/src/unix/ev/ev_select.c +310 -0
  165. data/ext/libuv/src/unix/ev/ev_vars.h +203 -0
  166. data/ext/libuv/src/unix/ev/ev_win32.c +153 -0
  167. data/ext/libuv/src/unix/ev/ev_wrap.h +196 -0
  168. data/ext/libuv/src/unix/ev/event.c +402 -0
  169. data/ext/libuv/src/unix/ev/event.h +170 -0
  170. data/ext/libuv/src/unix/ev/install-sh +294 -0
  171. data/ext/libuv/src/unix/ev/libev.m4 +39 -0
  172. data/ext/libuv/src/unix/ev/ltmain.sh +8413 -0
  173. data/ext/libuv/src/unix/ev/missing +336 -0
  174. data/ext/libuv/src/unix/ev/mkinstalldirs +111 -0
  175. data/ext/libuv/src/unix/freebsd.c +312 -0
  176. data/ext/libuv/src/unix/fs.c +699 -0
  177. data/ext/libuv/src/unix/internal.h +180 -0
  178. data/ext/libuv/src/unix/kqueue.c +122 -0
  179. data/ext/libuv/src/unix/linux/core.c +474 -0
  180. data/ext/libuv/src/unix/linux/inotify.c +209 -0
  181. data/ext/libuv/src/unix/linux/syscalls.c +268 -0
  182. data/ext/libuv/src/unix/linux/syscalls.h +93 -0
  183. data/ext/libuv/src/unix/loop-watcher.c +63 -0
  184. data/ext/libuv/src/unix/loop.c +81 -0
  185. data/ext/libuv/src/unix/netbsd.c +108 -0
  186. data/ext/libuv/src/unix/openbsd.c +295 -0
  187. data/ext/libuv/src/unix/pipe.c +261 -0
  188. data/ext/libuv/src/unix/poll.c +116 -0
  189. data/ext/libuv/src/unix/process.c +447 -0
  190. data/ext/libuv/src/unix/stream.c +1026 -0
  191. data/ext/libuv/src/unix/sunos.c +483 -0
  192. data/ext/libuv/src/unix/tcp.c +328 -0
  193. data/ext/libuv/src/unix/thread.c +211 -0
  194. data/ext/libuv/src/unix/timer.c +138 -0
  195. data/ext/libuv/src/unix/tty.c +146 -0
  196. data/ext/libuv/src/unix/udp.c +661 -0
  197. data/ext/libuv/src/unix/uv-eio.c +107 -0
  198. data/ext/libuv/src/unix/uv-eio.h +13 -0
  199. data/ext/libuv/src/uv-common.c +384 -0
  200. data/ext/libuv/src/uv-common.h +171 -0
  201. data/ext/libuv/src/win/async.c +130 -0
  202. data/ext/libuv/src/win/core.c +283 -0
  203. data/ext/libuv/src/win/dl.c +86 -0
  204. data/ext/libuv/src/win/error.c +150 -0
  205. data/ext/libuv/src/win/fs-event.c +512 -0
  206. data/ext/libuv/src/win/fs.c +1856 -0
  207. data/ext/libuv/src/win/getaddrinfo.c +365 -0
  208. data/ext/libuv/src/win/handle-inl.h +145 -0
  209. data/ext/libuv/src/win/handle.c +150 -0
  210. data/ext/libuv/src/win/internal.h +337 -0
  211. data/ext/libuv/src/win/loop-watcher.c +123 -0
  212. data/ext/libuv/src/win/pipe.c +1675 -0
  213. data/ext/libuv/src/win/poll.c +618 -0
  214. data/ext/libuv/src/win/process-stdio.c +479 -0
  215. data/ext/libuv/src/win/process.c +1013 -0
  216. data/ext/libuv/src/win/req-inl.h +225 -0
  217. data/ext/libuv/src/win/req.c +25 -0
  218. data/ext/libuv/src/win/stream-inl.h +69 -0
  219. data/ext/libuv/src/win/stream.c +167 -0
  220. data/ext/libuv/src/win/tcp.c +1400 -0
  221. data/ext/libuv/src/win/thread.c +372 -0
  222. data/ext/libuv/src/win/threadpool.c +74 -0
  223. data/ext/libuv/src/win/timer.c +226 -0
  224. data/ext/libuv/src/win/tty.c +1801 -0
  225. data/ext/libuv/src/win/udp.c +718 -0
  226. data/ext/libuv/src/win/util.c +864 -0
  227. data/ext/libuv/src/win/winapi.c +132 -0
  228. data/ext/libuv/src/win/winapi.h +4443 -0
  229. data/ext/libuv/src/win/winsock.c +557 -0
  230. data/ext/libuv/src/win/winsock.h +171 -0
  231. data/ext/libuv/test/benchmark-ares.c +117 -0
  232. data/ext/libuv/test/benchmark-fs-stat.c +164 -0
  233. data/ext/libuv/test/benchmark-getaddrinfo.c +94 -0
  234. data/ext/libuv/test/benchmark-list.h +114 -0
  235. data/ext/libuv/test/benchmark-loop-count.c +88 -0
  236. data/ext/libuv/test/benchmark-million-timers.c +65 -0
  237. data/ext/libuv/test/benchmark-ping-pongs.c +213 -0
  238. data/ext/libuv/test/benchmark-pound.c +324 -0
  239. data/ext/libuv/test/benchmark-pump.c +462 -0
  240. data/ext/libuv/test/benchmark-sizes.c +42 -0
  241. data/ext/libuv/test/benchmark-spawn.c +162 -0
  242. data/ext/libuv/test/benchmark-tcp-write-batch.c +140 -0
  243. data/ext/libuv/test/benchmark-thread.c +64 -0
  244. data/ext/libuv/test/benchmark-udp-packet-storm.c +247 -0
  245. data/ext/libuv/test/blackhole-server.c +118 -0
  246. data/ext/libuv/test/dns-server.c +321 -0
  247. data/ext/libuv/test/echo-server.c +378 -0
  248. data/ext/libuv/test/fixtures/empty_file +0 -0
  249. data/ext/libuv/test/fixtures/load_error.node +1 -0
  250. data/ext/libuv/test/run-benchmarks.c +64 -0
  251. data/ext/libuv/test/run-tests.c +138 -0
  252. data/ext/libuv/test/runner-unix.c +290 -0
  253. data/ext/libuv/test/runner-unix.h +36 -0
  254. data/ext/libuv/test/runner-win.c +285 -0
  255. data/ext/libuv/test/runner-win.h +42 -0
  256. data/ext/libuv/test/runner.c +326 -0
  257. data/ext/libuv/test/runner.h +159 -0
  258. data/ext/libuv/test/task.h +109 -0
  259. data/ext/libuv/test/test-async.c +118 -0
  260. data/ext/libuv/test/test-callback-order.c +76 -0
  261. data/ext/libuv/test/test-callback-stack.c +203 -0
  262. data/ext/libuv/test/test-connection-fail.c +148 -0
  263. data/ext/libuv/test/test-counters-init.c +215 -0
  264. data/ext/libuv/test/test-cwd-and-chdir.c +64 -0
  265. data/ext/libuv/test/test-delayed-accept.c +197 -0
  266. data/ext/libuv/test/test-dlerror.c +58 -0
  267. data/ext/libuv/test/test-error.c +59 -0
  268. data/ext/libuv/test/test-fail-always.c +29 -0
  269. data/ext/libuv/test/test-fs-event.c +442 -0
  270. data/ext/libuv/test/test-fs-poll.c +146 -0
  271. data/ext/libuv/test/test-fs.c +1843 -0
  272. data/ext/libuv/test/test-get-currentexe.c +63 -0
  273. data/ext/libuv/test/test-get-loadavg.c +36 -0
  274. data/ext/libuv/test/test-get-memory.c +38 -0
  275. data/ext/libuv/test/test-getaddrinfo.c +122 -0
  276. data/ext/libuv/test/test-gethostbyname.c +189 -0
  277. data/ext/libuv/test/test-getsockname.c +342 -0
  278. data/ext/libuv/test/test-hrtime.c +54 -0
  279. data/ext/libuv/test/test-idle.c +81 -0
  280. data/ext/libuv/test/test-ipc-send-recv.c +209 -0
  281. data/ext/libuv/test/test-ipc.c +620 -0
  282. data/ext/libuv/test/test-list.h +421 -0
  283. data/ext/libuv/test/test-loop-handles.c +336 -0
  284. data/ext/libuv/test/test-multiple-listen.c +102 -0
  285. data/ext/libuv/test/test-mutexes.c +63 -0
  286. data/ext/libuv/test/test-pass-always.c +28 -0
  287. data/ext/libuv/test/test-ping-pong.c +253 -0
  288. data/ext/libuv/test/test-pipe-bind-error.c +140 -0
  289. data/ext/libuv/test/test-pipe-connect-error.c +96 -0
  290. data/ext/libuv/test/test-platform-output.c +87 -0
  291. data/ext/libuv/test/test-poll-close.c +77 -0
  292. data/ext/libuv/test/test-poll.c +573 -0
  293. data/ext/libuv/test/test-process-title.c +42 -0
  294. data/ext/libuv/test/test-ref.c +338 -0
  295. data/ext/libuv/test/test-run-once.c +48 -0
  296. data/ext/libuv/test/test-semaphore.c +111 -0
  297. data/ext/libuv/test/test-shutdown-close.c +103 -0
  298. data/ext/libuv/test/test-shutdown-eof.c +183 -0
  299. data/ext/libuv/test/test-spawn.c +847 -0
  300. data/ext/libuv/test/test-stdio-over-pipes.c +246 -0
  301. data/ext/libuv/test/test-tcp-bind-error.c +191 -0
  302. data/ext/libuv/test/test-tcp-bind6-error.c +154 -0
  303. data/ext/libuv/test/test-tcp-close-while-connecting.c +80 -0
  304. data/ext/libuv/test/test-tcp-close.c +129 -0
  305. data/ext/libuv/test/test-tcp-connect-error-after-write.c +95 -0
  306. data/ext/libuv/test/test-tcp-connect-error.c +70 -0
  307. data/ext/libuv/test/test-tcp-connect-timeout.c +85 -0
  308. data/ext/libuv/test/test-tcp-connect6-error.c +68 -0
  309. data/ext/libuv/test/test-tcp-flags.c +51 -0
  310. data/ext/libuv/test/test-tcp-shutdown-after-write.c +131 -0
  311. data/ext/libuv/test/test-tcp-write-error.c +168 -0
  312. data/ext/libuv/test/test-tcp-write-to-half-open-connection.c +135 -0
  313. data/ext/libuv/test/test-tcp-writealot.c +170 -0
  314. data/ext/libuv/test/test-thread.c +183 -0
  315. data/ext/libuv/test/test-threadpool.c +57 -0
  316. data/ext/libuv/test/test-timer-again.c +141 -0
  317. data/ext/libuv/test/test-timer.c +152 -0
  318. data/ext/libuv/test/test-tty.c +110 -0
  319. data/ext/libuv/test/test-udp-dgram-too-big.c +86 -0
  320. data/ext/libuv/test/test-udp-ipv6.c +156 -0
  321. data/ext/libuv/test/test-udp-multicast-join.c +139 -0
  322. data/ext/libuv/test/test-udp-multicast-ttl.c +86 -0
  323. data/ext/libuv/test/test-udp-options.c +86 -0
  324. data/ext/libuv/test/test-udp-send-and-recv.c +208 -0
  325. data/ext/libuv/test/test-util.c +97 -0
  326. data/ext/libuv/test/test-walk-handles.c +77 -0
  327. data/ext/libuv/uv.gyp +452 -0
  328. data/ext/libuv/vcbuild.bat +105 -0
  329. data/ext/racer/extconf.rb +20 -0
  330. data/ext/racer/http_parser.c +2059 -0
  331. data/ext/racer/http_parser.h +318 -0
  332. data/ext/racer/mkmf.log +22 -0
  333. data/ext/racer/racer.c +551 -0
  334. data/lib/racer.rb +2 -0
  335. data/lib/racer/version.rb +3 -0
  336. metadata +382 -0
@@ -0,0 +1,26 @@
1
+ #ifndef HEADER_CARES_STRDUP_H
2
+ #define HEADER_CARES_STRDUP_H
3
+
4
+
5
+ /* Copyright 1998 by the Massachusetts Institute of Technology.
6
+ *
7
+ * Permission to use, copy, modify, and distribute this
8
+ * software and its documentation for any purpose and without
9
+ * fee is hereby granted, provided that the above copyright
10
+ * notice appear in all copies and that both that copyright
11
+ * notice and this permission notice appear in supporting
12
+ * documentation, and that the name of M.I.T. not be used in
13
+ * advertising or publicity pertaining to distribution of the
14
+ * software without specific, written prior permission.
15
+ * M.I.T. makes no representations about the suitability of
16
+ * this software for any purpose. It is provided "as is"
17
+ * without express or implied warranty.
18
+ */
19
+
20
+ #include "ares_setup.h"
21
+
22
+ #ifndef HAVE_STRDUP
23
+ extern char *ares_strdup(const char *s1);
24
+ #endif
25
+
26
+ #endif /* HEADER_CARES_STRDUP_H */
@@ -0,0 +1,56 @@
1
+
2
+ /* Copyright 1998 by the Massachusetts Institute of Technology.
3
+ *
4
+ * Permission to use, copy, modify, and distribute this
5
+ * software and its documentation for any purpose and without
6
+ * fee is hereby granted, provided that the above copyright
7
+ * notice appear in all copies and that both that copyright
8
+ * notice and this permission notice appear in supporting
9
+ * documentation, and that the name of M.I.T. not be used in
10
+ * advertising or publicity pertaining to distribution of the
11
+ * software without specific, written prior permission.
12
+ * M.I.T. makes no representations about the suitability of
13
+ * this software for any purpose. It is provided "as is"
14
+ * without express or implied warranty.
15
+ */
16
+
17
+ #include "ares_setup.h"
18
+ #include <assert.h>
19
+ #include "ares.h"
20
+
21
+ const char *ares_strerror(int code)
22
+ {
23
+ /* Return a string literal from a table. */
24
+ const char *errtext[] = {
25
+ "Successful completion",
26
+ "DNS server returned answer with no data",
27
+ "DNS server claims query was misformatted",
28
+ "DNS server returned general failure",
29
+ "Domain name not found",
30
+ "DNS server does not implement requested operation",
31
+ "DNS server refused query",
32
+ "Misformatted DNS query",
33
+ "Misformatted domain name",
34
+ "Unsupported address family",
35
+ "Misformatted DNS reply",
36
+ "Could not contact DNS servers",
37
+ "Timeout while contacting DNS servers",
38
+ "End of file",
39
+ "Error reading file",
40
+ "Out of memory",
41
+ "Channel is being destroyed",
42
+ "Misformatted string",
43
+ "Illegal flags specified",
44
+ "Given hostname is not numeric",
45
+ "Illegal hints flags specified",
46
+ "c-ares library initialization not yet performed",
47
+ "Error loading iphlpapi.dll",
48
+ "Could not find GetNetworkParams function",
49
+ "DNS query cancelled"
50
+ };
51
+
52
+ if(code >= 0 && code < (int)(sizeof(errtext) / sizeof(*errtext)))
53
+ return errtext[code];
54
+ else
55
+ return "unknown";
56
+ }
@@ -0,0 +1,80 @@
1
+
2
+ /* Copyright 1998 by the Massachusetts Institute of Technology.
3
+ *
4
+ * Permission to use, copy, modify, and distribute this
5
+ * software and its documentation for any purpose and without
6
+ * fee is hereby granted, provided that the above copyright
7
+ * notice appear in all copies and that both that copyright
8
+ * notice and this permission notice appear in supporting
9
+ * documentation, and that the name of M.I.T. not be used in
10
+ * advertising or publicity pertaining to distribution of the
11
+ * software without specific, written prior permission.
12
+ * M.I.T. makes no representations about the suitability of
13
+ * this software for any purpose. It is provided "as is"
14
+ * without express or implied warranty.
15
+ */
16
+
17
+ #include "ares_setup.h"
18
+
19
+ #ifdef HAVE_SYS_TIME_H
20
+ #include <sys/time.h>
21
+ #endif
22
+
23
+ #include <time.h>
24
+
25
+ #include "ares.h"
26
+ #include "ares_private.h"
27
+
28
+ /* WARNING: Beware that this is linear in the number of outstanding
29
+ * requests! You are probably far better off just calling ares_process()
30
+ * once per second, rather than calling ares_timeout() to figure out
31
+ * when to next call ares_process().
32
+ */
33
+ struct timeval *ares_timeout(ares_channel channel, struct timeval *maxtv,
34
+ struct timeval *tvbuf)
35
+ {
36
+ struct query *query;
37
+ struct list_node* list_head;
38
+ struct list_node* list_node;
39
+ struct timeval now;
40
+ struct timeval nextstop;
41
+ long offset, min_offset;
42
+
43
+ /* No queries, no timeout (and no fetch of the current time). */
44
+ if (ares__is_list_empty(&(channel->all_queries)))
45
+ return maxtv;
46
+
47
+ /* Find the minimum timeout for the current set of queries. */
48
+ now = ares__tvnow();
49
+ min_offset = -1;
50
+
51
+ list_head = &(channel->all_queries);
52
+ for (list_node = list_head->next; list_node != list_head;
53
+ list_node = list_node->next)
54
+ {
55
+ query = list_node->data;
56
+ if (query->timeout.tv_sec == 0)
57
+ continue;
58
+ offset = ares__timeoffset(&now, &query->timeout);
59
+ if (offset < 0)
60
+ offset = 0;
61
+ if (min_offset == -1 || offset < min_offset)
62
+ min_offset = offset;
63
+ }
64
+
65
+ if(min_offset != -1) {
66
+ nextstop.tv_sec = min_offset/1000;
67
+ nextstop.tv_usec = (min_offset%1000)*1000;
68
+ }
69
+
70
+ /* If we found a minimum timeout and it's sooner than the one specified in
71
+ * maxtv (if any), return it. Otherwise go with maxtv.
72
+ */
73
+ if (min_offset != -1 && (!maxtv || ares__timedout(maxtv, &nextstop)))
74
+ {
75
+ *tvbuf = nextstop;
76
+ return tvbuf;
77
+ }
78
+ else
79
+ return maxtv;
80
+ }
@@ -0,0 +1,11 @@
1
+
2
+ #include "ares_setup.h"
3
+ #include "ares.h"
4
+
5
+ const char *ares_version(int *version)
6
+ {
7
+ if(version)
8
+ *version = ARES_VERSION;
9
+
10
+ return ARES_VERSION_STR;
11
+ }
@@ -0,0 +1,79 @@
1
+
2
+
3
+ /* Copyright 1998 by the Massachusetts Institute of Technology.
4
+ *
5
+ * Permission to use, copy, modify, and distribute this
6
+ * software and its documentation for any purpose and without
7
+ * fee is hereby granted, provided that the above copyright
8
+ * notice appear in all copies and that both that copyright
9
+ * notice and this permission notice appear in supporting
10
+ * documentation, and that the name of M.I.T. not be used in
11
+ * advertising or publicity pertaining to distribution of the
12
+ * software without specific, written prior permission.
13
+ * M.I.T. makes no representations about the suitability of
14
+ * this software for any purpose. It is provided "as is"
15
+ * without express or implied warranty.
16
+ */
17
+
18
+ #include "ares_setup.h"
19
+
20
+ #ifdef HAVE_LIMITS_H
21
+ # include <limits.h>
22
+ #endif
23
+
24
+ #include "ares.h"
25
+ #include "ares_private.h"
26
+
27
+ #ifndef HAVE_WRITEV
28
+ ssize_t ares_writev(ares_socket_t s, const struct iovec *iov, int iovcnt)
29
+ {
30
+ char *buffer, *bp;
31
+ int i;
32
+ size_t bytes = 0;
33
+ ssize_t result;
34
+
35
+ /* Validate iovcnt */
36
+ if (iovcnt <= 0)
37
+ {
38
+ SET_ERRNO(EINVAL);
39
+ return (-1);
40
+ }
41
+
42
+ /* Validate and find the sum of the iov_len values in the iov array */
43
+ for (i = 0; i < iovcnt; i++)
44
+ {
45
+ if (iov[i].iov_len > INT_MAX - bytes)
46
+ {
47
+ SET_ERRNO(EINVAL);
48
+ return (-1);
49
+ }
50
+ bytes += iov[i].iov_len;
51
+ }
52
+
53
+ if (bytes == 0)
54
+ return (0);
55
+
56
+ /* Allocate a temporary buffer to hold the data */
57
+ buffer = malloc(bytes);
58
+ if (!buffer)
59
+ {
60
+ SET_ERRNO(ENOMEM);
61
+ return (-1);
62
+ }
63
+
64
+ /* Copy the data into buffer */
65
+ for (bp = buffer, i = 0; i < iovcnt; ++i)
66
+ {
67
+ memcpy (bp, iov[i].iov_base, iov[i].iov_len);
68
+ bp += iov[i].iov_len;
69
+ }
70
+
71
+ /* Send buffer contents */
72
+ result = swrite(s, buffer, bytes);
73
+
74
+ free(buffer);
75
+
76
+ return (result);
77
+ }
78
+ #endif
79
+
@@ -0,0 +1,36 @@
1
+ #ifndef HEADER_CARES_WRITEV_H
2
+ #define HEADER_CARES_WRITEV_H
3
+
4
+
5
+ /* Copyright 1998 by the Massachusetts Institute of Technology.
6
+ *
7
+ * Permission to use, copy, modify, and distribute this
8
+ * software and its documentation for any purpose and without
9
+ * fee is hereby granted, provided that the above copyright
10
+ * notice appear in all copies and that both that copyright
11
+ * notice and this permission notice appear in supporting
12
+ * documentation, and that the name of M.I.T. not be used in
13
+ * advertising or publicity pertaining to distribution of the
14
+ * software without specific, written prior permission.
15
+ * M.I.T. makes no representations about the suitability of
16
+ * this software for any purpose. It is provided "as is"
17
+ * without express or implied warranty.
18
+ */
19
+
20
+ #include "ares_setup.h"
21
+ #include "ares.h"
22
+
23
+ #ifndef HAVE_WRITEV
24
+
25
+ /* Structure for scatter/gather I/O. */
26
+ struct iovec
27
+ {
28
+ void *iov_base; /* Pointer to data. */
29
+ size_t iov_len; /* Length of data. */
30
+ };
31
+
32
+ extern ssize_t ares_writev(ares_socket_t s, const struct iovec *iov, int iovcnt);
33
+
34
+ #endif
35
+
36
+ #endif /* HEADER_CARES_WRITEV_H */
@@ -0,0 +1,59 @@
1
+
2
+ /*
3
+ * Copyright (c) 2004 by Internet Systems Consortium, Inc. ("ISC")
4
+ * Copyright (c) 1996,1999 by Internet Software Consortium.
5
+ *
6
+ * Permission to use, copy, modify, and distribute this software for any
7
+ * purpose with or without fee is hereby granted, provided that the above
8
+ * copyright notice and this permission notice appear in all copies.
9
+ *
10
+ * THE SOFTWARE IS PROVIDED "AS IS" AND ISC DISCLAIMS ALL WARRANTIES
11
+ * WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF
12
+ * MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL ISC BE LIABLE FOR
13
+ * ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES
14
+ * WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN
15
+ * ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT
16
+ * OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
17
+ */
18
+
19
+ #ifndef HAVE_BITNCMP
20
+
21
+ #include "ares_setup.h"
22
+ #include "bitncmp.h"
23
+
24
+ /*
25
+ * int
26
+ * bitncmp(l, r, n)
27
+ * compare bit masks l and r, for n bits.
28
+ * return:
29
+ * -1, 1, or 0 in the libc tradition.
30
+ * note:
31
+ * network byte order assumed. this means 192.5.5.240/28 has
32
+ * 0x11110000 in its fourth octet.
33
+ * author:
34
+ * Paul Vixie (ISC), June 1996
35
+ */
36
+ int
37
+ ares_bitncmp(const void *l, const void *r, int n) {
38
+ unsigned int lb, rb;
39
+ int x, b;
40
+
41
+ b = n / 8;
42
+ x = memcmp(l, r, b);
43
+ if (x || (n % 8) == 0)
44
+ return (x);
45
+
46
+ lb = ((const unsigned char *)l)[b];
47
+ rb = ((const unsigned char *)r)[b];
48
+ for (b = n % 8; b > 0; b--) {
49
+ if ((lb & 0x80) != (rb & 0x80)) {
50
+ if (lb & 0x80)
51
+ return (1);
52
+ return (-1);
53
+ }
54
+ lb <<= 1;
55
+ rb <<= 1;
56
+ }
57
+ return (0);
58
+ }
59
+ #endif
@@ -0,0 +1,26 @@
1
+ #ifndef __ARES_BITNCMP_H
2
+ #define __ARES_BITNCMP_H
3
+
4
+
5
+ /* Copyright (C) 2005 by Dominick Meglio
6
+ *
7
+ * Permission to use, copy, modify, and distribute this
8
+ * software and its documentation for any purpose and without
9
+ * fee is hereby granted, provided that the above copyright
10
+ * notice appear in all copies and that both that copyright
11
+ * notice and this permission notice appear in supporting
12
+ * documentation, and that the name of M.I.T. not be used in
13
+ * advertising or publicity pertaining to distribution of the
14
+ * software without specific, written prior permission.
15
+ * M.I.T. makes no representations about the suitability of
16
+ * this software for any purpose. It is provided "as is"
17
+ * without express or implied warranty.
18
+ */
19
+
20
+ #ifndef HAVE_BITNCMP
21
+ int ares_bitncmp(const void *l, const void *r, int n);
22
+ #else
23
+ #define ares_bitncmp(x,y,z) bitncmp(x,y,z)
24
+ #endif
25
+
26
+ #endif /* __ARES_BITNCMP_H */
@@ -0,0 +1,512 @@
1
+ /* ares_config.h. Generated from ares_config.h.in by configure. */
2
+ /* ares_config.h.in. Generated from configure.ac by autoheader. */
3
+
4
+ /* Define if building universal (internal helper macro) */
5
+ /* #undef AC_APPLE_UNIVERSAL_BUILD */
6
+
7
+ /* define this if ares is built for a big endian system */
8
+ /* #undef ARES_BIG_ENDIAN */
9
+
10
+ /* when building as static part of libcurl */
11
+ /* #undef BUILDING_LIBCURL */
12
+
13
+ /* when building c-ares library */
14
+ /* #undef CARES_BUILDING_LIBRARY */
15
+
16
+ /* when not building a shared library */
17
+ /* #undef CARES_STATICLIB */
18
+
19
+ /* Define to 1 to enable hiding of library internal symbols. */
20
+ #define CARES_SYMBOL_HIDING 1
21
+
22
+ /* Definition to make a library symbol externally visible. */
23
+ #define CARES_SYMBOL_SCOPE_EXTERN __attribute__ ((visibility ("default")))
24
+
25
+ /* if a /etc/inet dir is being used */
26
+ /* #undef ETC_INET */
27
+
28
+ /* Define to the type qualifier of arg 1 for getnameinfo. */
29
+ #define GETNAMEINFO_QUAL_ARG1 const
30
+
31
+ /* Define to the type of arg 1 for getnameinfo. */
32
+ #define GETNAMEINFO_TYPE_ARG1 struct sockaddr *
33
+
34
+ /* Define to the type of arg 2 for getnameinfo. */
35
+ #define GETNAMEINFO_TYPE_ARG2 socklen_t
36
+
37
+ /* Define to the type of args 4 and 6 for getnameinfo. */
38
+ #define GETNAMEINFO_TYPE_ARG46 int
39
+
40
+ /* Define to the type of arg 7 for getnameinfo. */
41
+ #define GETNAMEINFO_TYPE_ARG7 int
42
+
43
+ /* Specifies the number of arguments to getservbyport_r */
44
+ /* #undef GETSERVBYPORT_R_ARGS */
45
+
46
+ /* Specifies the size of the buffer to pass to getservbyport_r */
47
+ /* #undef GETSERVBYPORT_R_BUFSIZE */
48
+
49
+ /* Define to 1 if you have AF_INET6. */
50
+ #define HAVE_AF_INET6 1
51
+
52
+ /* Define to 1 if you have the <arpa/inet.h> header file. */
53
+ #define HAVE_ARPA_INET_H 1
54
+
55
+ /* Define to 1 if you have the <arpa/nameser_compat.h> header file. */
56
+ #define HAVE_ARPA_NAMESER_COMPAT_H 1
57
+
58
+ /* Define to 1 if you have the <arpa/nameser.h> header file. */
59
+ #define HAVE_ARPA_NAMESER_H 1
60
+
61
+ /* Define to 1 if you have the <assert.h> header file. */
62
+ #define HAVE_ASSERT_H 1
63
+
64
+ /* Define to 1 if you have the `bitncmp' function. */
65
+ /* #undef HAVE_BITNCMP */
66
+
67
+ /* Define to 1 if bool is an available type. */
68
+ #define HAVE_BOOL_T 1
69
+
70
+ /* Define to 1 if you have the clock_gettime function and monotonic timer. */
71
+ /* #undef HAVE_CLOCK_GETTIME_MONOTONIC */
72
+
73
+ /* Define to 1 if you have the closesocket function. */
74
+ /* #undef HAVE_CLOSESOCKET */
75
+
76
+ /* Define to 1 if you have the CloseSocket camel case function. */
77
+ /* #undef HAVE_CLOSESOCKET_CAMEL */
78
+
79
+ /* Define to 1 if you have the connect function. */
80
+ #define HAVE_CONNECT 1
81
+
82
+ /* Define to 1 if you have the <dlfcn.h> header file. */
83
+ #define HAVE_DLFCN_H 1
84
+
85
+ /* Define to 1 if you have the <errno.h> header file. */
86
+ #define HAVE_ERRNO_H 1
87
+
88
+ /* Define to 1 if you have the fcntl function. */
89
+ #define HAVE_FCNTL 1
90
+
91
+ /* Define to 1 if you have the <fcntl.h> header file. */
92
+ #define HAVE_FCNTL_H 1
93
+
94
+ /* Define to 1 if you have a working fcntl O_NONBLOCK function. */
95
+ #define HAVE_FCNTL_O_NONBLOCK 1
96
+
97
+ /* Define to 1 if you have the freeaddrinfo function. */
98
+ #define HAVE_FREEADDRINFO 1
99
+
100
+ /* Define to 1 if you have a working getaddrinfo function. */
101
+ #define HAVE_GETADDRINFO 1
102
+
103
+ /* Define to 1 if the getaddrinfo function is threadsafe. */
104
+ /* #undef HAVE_GETADDRINFO_THREADSAFE */
105
+
106
+ /* Define to 1 if you have the gethostbyaddr function. */
107
+ #define HAVE_GETHOSTBYADDR 1
108
+
109
+ /* Define to 1 if you have the gethostbyname function. */
110
+ #define HAVE_GETHOSTBYNAME 1
111
+
112
+ /* Define to 1 if you have the gethostname function. */
113
+ #define HAVE_GETHOSTNAME 1
114
+
115
+ /* Define to 1 if you have the getnameinfo function. */
116
+ #define HAVE_GETNAMEINFO 1
117
+
118
+ /* Define to 1 if you have the getservbyport_r function. */
119
+ /* #undef HAVE_GETSERVBYPORT_R */
120
+
121
+ /* Define to 1 if you have the `gettimeofday' function. */
122
+ #define HAVE_GETTIMEOFDAY 1
123
+
124
+ /* Define to 1 if you have the `if_indextoname' function. */
125
+ #define HAVE_IF_INDEXTONAME 1
126
+
127
+ /* Define to 1 if you have the `inet_net_pton' function. */
128
+ /* #undef HAVE_INET_NET_PTON */
129
+
130
+ /* Define to 1 if inet_net_pton supports IPv6. */
131
+ /* #undef HAVE_INET_NET_PTON_IPV6 */
132
+
133
+ /* Define to 1 if you have a IPv6 capable working inet_ntop function. */
134
+ #define HAVE_INET_NTOP 1
135
+
136
+ /* Define to 1 if you have a IPv6 capable working inet_pton function. */
137
+ #define HAVE_INET_PTON 1
138
+
139
+ /* Define to 1 if you have the <inttypes.h> header file. */
140
+ #define HAVE_INTTYPES_H 1
141
+
142
+ /* Define to 1 if you have the ioctl function. */
143
+ #define HAVE_IOCTL 1
144
+
145
+ /* Define to 1 if you have the ioctlsocket function. */
146
+ /* #undef HAVE_IOCTLSOCKET */
147
+
148
+ /* Define to 1 if you have the IoctlSocket camel case function. */
149
+ /* #undef HAVE_IOCTLSOCKET_CAMEL */
150
+
151
+ /* Define to 1 if you have a working IoctlSocket camel case FIONBIO function.
152
+ */
153
+ /* #undef HAVE_IOCTLSOCKET_CAMEL_FIONBIO */
154
+
155
+ /* Define to 1 if you have a working ioctlsocket FIONBIO function. */
156
+ /* #undef HAVE_IOCTLSOCKET_FIONBIO */
157
+
158
+ /* Define to 1 if you have a working ioctl FIONBIO function. */
159
+ #define HAVE_IOCTL_FIONBIO 1
160
+
161
+ /* Define to 1 if you have a working ioctl SIOCGIFADDR function. */
162
+ #define HAVE_IOCTL_SIOCGIFADDR 1
163
+
164
+ /* Define to 1 if you have the `resolve' library (-lresolve). */
165
+ /* #undef HAVE_LIBRESOLVE */
166
+
167
+ /* Define to 1 if you have the <limits.h> header file. */
168
+ #define HAVE_LIMITS_H 1
169
+
170
+ /* if your compiler supports LL */
171
+ #define HAVE_LL 1
172
+
173
+ /* Define to 1 if the compiler supports the 'long long' data type. */
174
+ #define HAVE_LONGLONG 1
175
+
176
+ /* Define to 1 if you have the malloc.h header file. */
177
+ #define HAVE_MALLOC_H 1
178
+
179
+ /* Define to 1 if you have the memory.h header file. */
180
+ #define HAVE_MEMORY_H 1
181
+
182
+ /* Define to 1 if you have the MSG_NOSIGNAL flag. */
183
+ #define HAVE_MSG_NOSIGNAL 1
184
+
185
+ /* Define to 1 if you have the <netdb.h> header file. */
186
+ #define HAVE_NETDB_H 1
187
+
188
+ /* Define to 1 if you have the <netinet/in.h> header file. */
189
+ #define HAVE_NETINET_IN_H 1
190
+
191
+ /* Define to 1 if you have the <netinet/tcp.h> header file. */
192
+ #define HAVE_NETINET_TCP_H 1
193
+
194
+ /* Define to 1 if you have the <net/if.h> header file. */
195
+ #define HAVE_NET_IF_H 1
196
+
197
+ /* Define to 1 if you have PF_INET6. */
198
+ #define HAVE_PF_INET6 1
199
+
200
+ /* Define to 1 if you have the recv function. */
201
+ #define HAVE_RECV 1
202
+
203
+ /* Define to 1 if you have the recvfrom function. */
204
+ #define HAVE_RECVFROM 1
205
+
206
+ /* Define to 1 if you have the send function. */
207
+ #define HAVE_SEND 1
208
+
209
+ /* Define to 1 if you have the setsockopt function. */
210
+ #define HAVE_SETSOCKOPT 1
211
+
212
+ /* Define to 1 if you have a working setsockopt SO_NONBLOCK function. */
213
+ /* #undef HAVE_SETSOCKOPT_SO_NONBLOCK */
214
+
215
+ /* Define to 1 if you have the <signal.h> header file. */
216
+ #define HAVE_SIGNAL_H 1
217
+
218
+ /* Define to 1 if sig_atomic_t is an available typedef. */
219
+ #define HAVE_SIG_ATOMIC_T 1
220
+
221
+ /* Define to 1 if sig_atomic_t is already defined as volatile. */
222
+ /* #undef HAVE_SIG_ATOMIC_T_VOLATILE */
223
+
224
+ /* Define to 1 if your struct sockaddr_in6 has sin6_scope_id. */
225
+ #define HAVE_SOCKADDR_IN6_SIN6_SCOPE_ID 1
226
+
227
+ /* Define to 1 if you have the socket function. */
228
+ #define HAVE_SOCKET 1
229
+
230
+ /* Define to 1 if you have the <socket.h> header file. */
231
+ /* #undef HAVE_SOCKET_H */
232
+
233
+ /* Define to 1 if you have the <stdbool.h> header file. */
234
+ #define HAVE_STDBOOL_H 1
235
+
236
+ /* Define to 1 if you have the <stdint.h> header file. */
237
+ #define HAVE_STDINT_H 1
238
+
239
+ /* Define to 1 if you have the <stdlib.h> header file. */
240
+ #define HAVE_STDLIB_H 1
241
+
242
+ /* Define to 1 if you have the strcasecmp function. */
243
+ #define HAVE_STRCASECMP 1
244
+
245
+ /* Define to 1 if you have the strcmpi function. */
246
+ /* #undef HAVE_STRCMPI */
247
+
248
+ /* Define to 1 if you have the strdup function. */
249
+ #define HAVE_STRDUP 1
250
+
251
+ /* Define to 1 if you have the stricmp function. */
252
+ /* #undef HAVE_STRICMP */
253
+
254
+ /* Define to 1 if you have the <strings.h> header file. */
255
+ #define HAVE_STRINGS_H 1
256
+
257
+ /* Define to 1 if you have the <string.h> header file. */
258
+ #define HAVE_STRING_H 1
259
+
260
+ /* Define to 1 if you have the strncasecmp function. */
261
+ #define HAVE_STRNCASECMP 1
262
+
263
+ /* Define to 1 if you have the strncmpi function. */
264
+ /* #undef HAVE_STRNCMPI */
265
+
266
+ /* Define to 1 if you have the strnicmp function. */
267
+ /* #undef HAVE_STRNICMP */
268
+
269
+ /* Define to 1 if you have the <stropts.h> header file. */
270
+ /* #undef HAVE_STROPTS_H */
271
+
272
+ /* Define to 1 if you have struct addrinfo. */
273
+ #define HAVE_STRUCT_ADDRINFO 1
274
+
275
+ /* Define to 1 if you have struct in6_addr. */
276
+ #define HAVE_STRUCT_IN6_ADDR 1
277
+
278
+ /* Define to 1 if you have struct sockaddr_in6. */
279
+ #define HAVE_STRUCT_SOCKADDR_IN6 1
280
+
281
+ /* if struct sockaddr_storage is defined */
282
+ #define HAVE_STRUCT_SOCKADDR_STORAGE 1
283
+
284
+ /* Define to 1 if you have the timeval struct. */
285
+ #define HAVE_STRUCT_TIMEVAL 1
286
+
287
+ /* Define to 1 if you have the <sys/ioctl.h> header file. */
288
+ #define HAVE_SYS_IOCTL_H 1
289
+
290
+ /* Define to 1 if you have the <sys/param.h> header file. */
291
+ #define HAVE_SYS_PARAM_H 1
292
+
293
+ /* Define to 1 if you have the <sys/select.h> header file. */
294
+ #define HAVE_SYS_SELECT_H 1
295
+
296
+ /* Define to 1 if you have the <sys/socket.h> header file. */
297
+ #define HAVE_SYS_SOCKET_H 1
298
+
299
+ /* Define to 1 if you have the <sys/stat.h> header file. */
300
+ #define HAVE_SYS_STAT_H 1
301
+
302
+ /* Define to 1 if you have the <sys/time.h> header file. */
303
+ #define HAVE_SYS_TIME_H 1
304
+
305
+ /* Define to 1 if you have the <sys/types.h> header file. */
306
+ #define HAVE_SYS_TYPES_H 1
307
+
308
+ /* Define to 1 if you have the <sys/uio.h> header file. */
309
+ #define HAVE_SYS_UIO_H 1
310
+
311
+ /* Define to 1 if you have the <time.h> header file. */
312
+ #define HAVE_TIME_H 1
313
+
314
+ /* Define to 1 if you have the <unistd.h> header file. */
315
+ #define HAVE_UNISTD_H 1
316
+
317
+ /* Define to 1 if you have the windows.h header file. */
318
+ /* #undef HAVE_WINDOWS_H */
319
+
320
+ /* Define to 1 if you have the winsock2.h header file. */
321
+ /* #undef HAVE_WINSOCK2_H */
322
+
323
+ /* Define to 1 if you have the winsock.h header file. */
324
+ /* #undef HAVE_WINSOCK_H */
325
+
326
+ /* Define to 1 if you have the writev function. */
327
+ #define HAVE_WRITEV 1
328
+
329
+ /* Define to 1 if you have the ws2tcpip.h header file. */
330
+ /* #undef HAVE_WS2TCPIP_H */
331
+
332
+ /* Define to the sub-directory in which libtool stores uninstalled libraries.
333
+ */
334
+ #define LT_OBJDIR ".libs/"
335
+
336
+ /* Define to 1 if you are building a native Windows target. */
337
+ /* #undef NATIVE_WINDOWS */
338
+
339
+ /* Define to 1 if you need the malloc.h header file even with stdlib.h */
340
+ /* #undef NEED_MALLOC_H */
341
+
342
+ /* Define to 1 if you need the memory.h header file even with stdlib.h */
343
+ /* #undef NEED_MEMORY_H */
344
+
345
+ /* Define to 1 if _REENTRANT preprocessor symbol must be defined. */
346
+ /* #undef NEED_REENTRANT */
347
+
348
+ /* Define to 1 if _THREAD_SAFE preprocessor symbol must be defined. */
349
+ /* #undef NEED_THREAD_SAFE */
350
+
351
+ /* Define to 1 if your C compiler doesn't accept -c and -o together. */
352
+ /* #undef NO_MINUS_C_MINUS_O */
353
+
354
+ /* cpu-machine-OS */
355
+ #define OS "i686-pc-cygwin"
356
+
357
+ /* Name of package */
358
+ #define PACKAGE "c-ares"
359
+
360
+ /* Define to the address where bug reports for this package should be sent. */
361
+ #define PACKAGE_BUGREPORT "c-ares mailing list => http://cool.haxx.se/mailman/listinfo/c-ares"
362
+
363
+ /* Define to the full name of this package. */
364
+ #define PACKAGE_NAME "c-ares"
365
+
366
+ /* Define to the full name and version of this package. */
367
+ #define PACKAGE_STRING "c-ares 1.7.1"
368
+
369
+ /* Define to the one symbol short name of this package. */
370
+ #define PACKAGE_TARNAME "c-ares"
371
+
372
+ /* Define to the home page for this package. */
373
+ #define PACKAGE_URL ""
374
+
375
+ /* Define to the version of this package. */
376
+ #define PACKAGE_VERSION "1.7.1"
377
+
378
+ /* a suitable file/device to read random data from */
379
+ #define RANDOM_FILE "/dev/urandom"
380
+
381
+ /* Define to the type of arg 1 for recvfrom. */
382
+ #define RECVFROM_TYPE_ARG1 int
383
+
384
+ /* Define to the type pointed by arg 2 for recvfrom. */
385
+ #define RECVFROM_TYPE_ARG2 void
386
+
387
+ /* Define to 1 if the type pointed by arg 2 for recvfrom is void. */
388
+ #define RECVFROM_TYPE_ARG2_IS_VOID 1
389
+
390
+ /* Define to the type of arg 3 for recvfrom. */
391
+ #define RECVFROM_TYPE_ARG3 size_t
392
+
393
+ /* Define to the type of arg 4 for recvfrom. */
394
+ #define RECVFROM_TYPE_ARG4 int
395
+
396
+ /* Define to the type pointed by arg 5 for recvfrom. */
397
+ #define RECVFROM_TYPE_ARG5 struct sockaddr
398
+
399
+ /* Define to 1 if the type pointed by arg 5 for recvfrom is void. */
400
+ /* #undef RECVFROM_TYPE_ARG5_IS_VOID */
401
+
402
+ /* Define to the type pointed by arg 6 for recvfrom. */
403
+ #define RECVFROM_TYPE_ARG6 socklen_t
404
+
405
+ /* Define to 1 if the type pointed by arg 6 for recvfrom is void. */
406
+ /* #undef RECVFROM_TYPE_ARG6_IS_VOID */
407
+
408
+ /* Define to the function return type for recvfrom. */
409
+ #define RECVFROM_TYPE_RETV int
410
+
411
+ /* Define to the type of arg 1 for recv. */
412
+ #define RECV_TYPE_ARG1 int
413
+
414
+ /* Define to the type of arg 2 for recv. */
415
+ #define RECV_TYPE_ARG2 void *
416
+
417
+ /* Define to the type of arg 3 for recv. */
418
+ #define RECV_TYPE_ARG3 size_t
419
+
420
+ /* Define to the type of arg 4 for recv. */
421
+ #define RECV_TYPE_ARG4 int
422
+
423
+ /* Define to the function return type for recv. */
424
+ #define RECV_TYPE_RETV int
425
+
426
+ /* Define as the return type of signal handlers (`int' or `void'). */
427
+ #define RETSIGTYPE void
428
+
429
+ /* Define to the type qualifier of arg 2 for send. */
430
+ #define SEND_QUAL_ARG2 const
431
+
432
+ /* Define to the type of arg 1 for send. */
433
+ #define SEND_TYPE_ARG1 int
434
+
435
+ /* Define to the type of arg 2 for send. */
436
+ #define SEND_TYPE_ARG2 void *
437
+
438
+ /* Define to the type of arg 3 for send. */
439
+ #define SEND_TYPE_ARG3 size_t
440
+
441
+ /* Define to the type of arg 4 for send. */
442
+ #define SEND_TYPE_ARG4 int
443
+
444
+ /* Define to the function return type for send. */
445
+ #define SEND_TYPE_RETV int
446
+
447
+ /* The size of `int', as computed by sizeof. */
448
+ #define SIZEOF_INT 4
449
+
450
+ /* The size of `long', as computed by sizeof. */
451
+ #define SIZEOF_LONG 4
452
+
453
+ /* The size of `size_t', as computed by sizeof. */
454
+ #define SIZEOF_SIZE_T 4
455
+
456
+ /* The size of `struct in6_addr', as computed by sizeof. */
457
+ #define SIZEOF_STRUCT_IN6_ADDR 16
458
+
459
+ /* The size of `struct in_addr', as computed by sizeof. */
460
+ #define SIZEOF_STRUCT_IN_ADDR 4
461
+
462
+ /* The size of `time_t', as computed by sizeof. */
463
+ #define SIZEOF_TIME_T 4
464
+
465
+ /* Define to 1 if you have the ANSI C header files. */
466
+ #define STDC_HEADERS 1
467
+
468
+ /* Define to 1 if you can safely include both <sys/time.h> and <time.h>. */
469
+ #define TIME_WITH_SYS_TIME 1
470
+
471
+ /* Define to disable non-blocking sockets. */
472
+ /* #undef USE_BLOCKING_SOCKETS */
473
+
474
+ /* Version number of package */
475
+ #define VERSION "1.7.1"
476
+
477
+ /* Define WORDS_BIGENDIAN to 1 if your processor stores words with the most
478
+ significant byte first (like Motorola and SPARC, unlike Intel). */
479
+ #if defined AC_APPLE_UNIVERSAL_BUILD
480
+ # if defined __BIG_ENDIAN__
481
+ # define WORDS_BIGENDIAN 1
482
+ # endif
483
+ #else
484
+ # ifndef WORDS_BIGENDIAN
485
+ /* # undef WORDS_BIGENDIAN */
486
+ # endif
487
+ #endif
488
+
489
+ /* Define to 1 if OS is AIX. */
490
+ #ifndef _ALL_SOURCE
491
+ /* # undef _ALL_SOURCE */
492
+ #endif
493
+
494
+ /* Number of bits in a file offset, on hosts where this is settable. */
495
+ /* #undef _FILE_OFFSET_BITS */
496
+
497
+ /* Define for large files, on AIX-style hosts. */
498
+ /* #undef _LARGE_FILES */
499
+
500
+ /* Define to empty if `const' does not conform to ANSI C. */
501
+ /* #undef const */
502
+
503
+ /* Type to use in place of in_addr_t when system does not provide it. */
504
+ /* #undef in_addr_t */
505
+
506
+ /* Define to `unsigned int' if <sys/types.h> does not define. */
507
+ /* #undef size_t */
508
+
509
+ /* the signed version of size_t */
510
+ /* #undef ssize_t */
511
+
512
+ #define HAVE_GETENV 1