grpc 1.2.5 → 1.3.4

Sign up to get free protection for your applications and to get access to all the features.

Potentially problematic release.


This version of grpc might be problematic. Click here for more details.

Files changed (327) hide show
  1. checksums.yaml +4 -4
  2. data/Makefile +1434 -399
  3. data/etc/roots.pem +34 -150
  4. data/include/grpc/grpc.h +71 -0
  5. data/include/grpc/impl/codegen/atm.h +5 -0
  6. data/include/grpc/impl/codegen/atm_gcc_atomic.h +6 -0
  7. data/include/grpc/impl/codegen/atm_gcc_sync.h +2 -0
  8. data/include/grpc/impl/codegen/atm_windows.h +11 -0
  9. data/include/grpc/impl/codegen/grpc_types.h +54 -13
  10. data/include/grpc/impl/codegen/port_platform.h +15 -1
  11. data/include/grpc/support/alloc.h +2 -1
  12. data/include/grpc/support/sync.h +4 -0
  13. data/include/grpc/support/tls.h +1 -1
  14. data/src/core/ext/census/gen/trace_context.pb.h +1 -1
  15. data/src/core/ext/census/grpc_filter.c +14 -10
  16. data/src/core/ext/census/grpc_plugin.c +3 -1
  17. data/src/core/ext/census/trace_label.h +1 -1
  18. data/src/core/ext/census/trace_propagation.h +1 -1
  19. data/src/core/ext/census/trace_status.h +1 -1
  20. data/src/core/ext/census/trace_string.h +1 -1
  21. data/src/core/ext/census/tracing.h +1 -1
  22. data/src/core/ext/{client_channel → filters/client_channel}/channel_connectivity.c +56 -27
  23. data/src/core/ext/{client_channel → filters/client_channel}/client_channel.c +407 -202
  24. data/src/core/ext/{client_channel → filters/client_channel}/client_channel.h +10 -6
  25. data/src/core/ext/{client_channel → filters/client_channel}/client_channel_factory.c +1 -1
  26. data/src/core/ext/{client_channel → filters/client_channel}/client_channel_factory.h +4 -4
  27. data/src/core/ext/{client_channel → filters/client_channel}/client_channel_plugin.c +12 -7
  28. data/src/core/ext/{client_channel → filters/client_channel}/connector.c +1 -1
  29. data/src/core/ext/{client_channel → filters/client_channel}/connector.h +3 -5
  30. data/src/core/ext/{client_channel → filters/client_channel}/http_connect_handshaker.c +6 -6
  31. data/src/core/ext/{client_channel → filters/client_channel}/http_connect_handshaker.h +3 -3
  32. data/src/core/ext/{client_channel → filters/client_channel}/http_proxy.c +4 -4
  33. data/src/core/ext/{client_channel → filters/client_channel}/http_proxy.h +3 -3
  34. data/src/core/ext/{client_channel → filters/client_channel}/lb_policy.c +1 -1
  35. data/src/core/ext/{client_channel → filters/client_channel}/lb_policy.h +4 -4
  36. data/src/core/ext/{lb_policy → filters/client_channel/lb_policy}/grpclb/grpclb.c +22 -20
  37. data/src/core/ext/{lb_policy → filters/client_channel/lb_policy}/grpclb/grpclb.h +4 -4
  38. data/src/core/ext/{lb_policy → filters/client_channel/lb_policy}/grpclb/grpclb_channel.h +5 -4
  39. data/src/core/ext/{lb_policy → filters/client_channel/lb_policy}/grpclb/grpclb_channel_secure.c +2 -2
  40. data/src/core/ext/{lb_policy → filters/client_channel/lb_policy}/grpclb/load_balancer_api.c +1 -1
  41. data/src/core/ext/{lb_policy → filters/client_channel/lb_policy}/grpclb/load_balancer_api.h +6 -5
  42. data/src/core/ext/{lb_policy → filters/client_channel/lb_policy}/grpclb/proto/grpc/lb/v1/load_balancer.pb.c +1 -1
  43. data/src/core/ext/{lb_policy → filters/client_channel/lb_policy}/grpclb/proto/grpc/lb/v1/load_balancer.pb.h +0 -0
  44. data/src/core/ext/{lb_policy → filters/client_channel/lb_policy}/pick_first/pick_first.c +20 -15
  45. data/src/core/ext/{lb_policy → filters/client_channel/lb_policy}/round_robin/round_robin.c +21 -16
  46. data/src/core/ext/{client_channel → filters/client_channel}/lb_policy_factory.c +1 -1
  47. data/src/core/ext/{client_channel → filters/client_channel}/lb_policy_factory.h +5 -5
  48. data/src/core/ext/{client_channel → filters/client_channel}/lb_policy_registry.c +1 -1
  49. data/src/core/ext/{client_channel → filters/client_channel}/lb_policy_registry.h +4 -4
  50. data/src/core/ext/{client_channel → filters/client_channel}/parse_address.c +1 -1
  51. data/src/core/ext/{client_channel → filters/client_channel}/parse_address.h +4 -4
  52. data/src/core/ext/{client_channel → filters/client_channel}/proxy_mapper.c +1 -1
  53. data/src/core/ext/{client_channel → filters/client_channel}/proxy_mapper.h +3 -3
  54. data/src/core/ext/{client_channel → filters/client_channel}/proxy_mapper_registry.c +10 -4
  55. data/src/core/ext/{client_channel → filters/client_channel}/proxy_mapper_registry.h +4 -4
  56. data/src/core/ext/{client_channel → filters/client_channel}/resolver.c +1 -1
  57. data/src/core/ext/{client_channel → filters/client_channel}/resolver.h +4 -4
  58. data/src/core/ext/filters/client_channel/resolver/dns/c_ares/dns_resolver_ares.c +350 -0
  59. data/src/core/ext/filters/client_channel/resolver/dns/c_ares/grpc_ares_ev_driver.h +66 -0
  60. data/src/core/ext/filters/client_channel/resolver/dns/c_ares/grpc_ares_ev_driver_posix.c +319 -0
  61. data/src/core/ext/filters/client_channel/resolver/dns/c_ares/grpc_ares_wrapper.c +289 -0
  62. data/src/core/ext/filters/client_channel/resolver/dns/c_ares/grpc_ares_wrapper.h +64 -0
  63. data/src/core/ext/{resolver → filters/client_channel/resolver}/dns/native/dns_resolver.c +21 -5
  64. data/src/core/ext/{resolver → filters/client_channel/resolver}/sockaddr/sockaddr_resolver.c +3 -3
  65. data/src/core/ext/{client_channel → filters/client_channel}/resolver_factory.c +1 -1
  66. data/src/core/ext/{client_channel → filters/client_channel}/resolver_factory.h +6 -6
  67. data/src/core/ext/{client_channel → filters/client_channel}/resolver_registry.c +1 -2
  68. data/src/core/ext/{client_channel → filters/client_channel}/resolver_registry.h +4 -4
  69. data/src/core/ext/filters/client_channel/retry_throttle.c +210 -0
  70. data/src/core/ext/filters/client_channel/retry_throttle.h +65 -0
  71. data/src/core/ext/{client_channel → filters/client_channel}/subchannel.c +49 -43
  72. data/src/core/ext/{client_channel → filters/client_channel}/subchannel.h +21 -7
  73. data/src/core/ext/{client_channel → filters/client_channel}/subchannel_index.c +1 -1
  74. data/src/core/ext/{client_channel → filters/client_channel}/subchannel_index.h +5 -5
  75. data/src/core/ext/{client_channel → filters/client_channel}/uri_parser.c +1 -1
  76. data/src/core/ext/{client_channel → filters/client_channel}/uri_parser.h +3 -3
  77. data/src/core/ext/{load_reporting → filters/load_reporting}/load_reporting.c +4 -2
  78. data/src/core/ext/{load_reporting → filters/load_reporting}/load_reporting.h +3 -3
  79. data/src/core/ext/{load_reporting → filters/load_reporting}/load_reporting_filter.c +17 -14
  80. data/src/core/ext/{load_reporting → filters/load_reporting}/load_reporting_filter.h +4 -4
  81. data/src/core/ext/filters/max_age/max_age_filter.c +439 -0
  82. data/src/core/ext/filters/max_age/max_age_filter.h +39 -0
  83. data/src/core/ext/transport/chttp2/client/chttp2_connector.c +6 -41
  84. data/src/core/ext/transport/chttp2/client/chttp2_connector.h +1 -1
  85. data/src/core/ext/transport/chttp2/client/insecure/channel_create.c +2 -2
  86. data/src/core/ext/transport/chttp2/client/secure/secure_channel_create.c +3 -3
  87. data/src/core/ext/transport/chttp2/server/chttp2_server.c +2 -2
  88. data/src/core/ext/transport/chttp2/server/insecure/server_chttp2_posix.c +2 -5
  89. data/src/core/ext/transport/chttp2/server/secure/server_secure_chttp2.c +2 -2
  90. data/src/core/ext/transport/chttp2/transport/chttp2_transport.c +449 -204
  91. data/src/core/ext/transport/chttp2/transport/frame_data.c +10 -7
  92. data/src/core/ext/transport/chttp2/transport/frame_goaway.c +3 -2
  93. data/src/core/ext/transport/chttp2/transport/frame_ping.c +37 -7
  94. data/src/core/ext/transport/chttp2/transport/frame_ping.h +3 -0
  95. data/src/core/ext/transport/chttp2/transport/frame_rst_stream.c +4 -3
  96. data/src/core/ext/transport/chttp2/transport/frame_settings.c +18 -38
  97. data/src/core/ext/transport/chttp2/transport/frame_settings.h +1 -29
  98. data/src/core/ext/transport/chttp2/transport/frame_window_update.c +2 -2
  99. data/src/core/ext/transport/chttp2/transport/hpack_encoder.c +64 -37
  100. data/src/core/ext/transport/chttp2/transport/hpack_encoder.h +11 -4
  101. data/src/core/ext/transport/chttp2/transport/hpack_parser.c +60 -39
  102. data/src/core/ext/transport/chttp2/transport/hpack_table.c +2 -2
  103. data/src/core/ext/transport/chttp2/transport/http2_settings.c +75 -0
  104. data/src/core/ext/transport/chttp2/transport/http2_settings.h +74 -0
  105. data/src/core/ext/transport/chttp2/transport/incoming_metadata.c +22 -43
  106. data/src/core/ext/transport/chttp2/transport/incoming_metadata.h +8 -10
  107. data/src/core/ext/transport/chttp2/transport/internal.h +24 -2
  108. data/src/core/ext/transport/chttp2/transport/parsing.c +33 -15
  109. data/src/core/ext/transport/chttp2/transport/writing.c +56 -10
  110. data/src/core/lib/channel/channel_args.c +7 -0
  111. data/src/core/lib/channel/channel_args.h +2 -0
  112. data/src/core/lib/channel/channel_stack.c +20 -27
  113. data/src/core/lib/channel/channel_stack.h +18 -16
  114. data/src/core/lib/channel/compress_filter.c +20 -18
  115. data/src/core/lib/channel/connected_channel.c +9 -8
  116. data/src/core/lib/channel/deadline_filter.c +28 -24
  117. data/src/core/lib/channel/deadline_filter.h +3 -3
  118. data/src/core/lib/channel/handshaker.c +3 -2
  119. data/src/core/lib/channel/http_client_filter.c +119 -61
  120. data/src/core/lib/channel/http_server_filter.c +124 -69
  121. data/src/core/lib/channel/message_size_filter.c +23 -19
  122. data/src/core/lib/http/httpcli.c +8 -6
  123. data/src/core/lib/http/httpcli_security_connector.c +5 -5
  124. data/src/core/lib/http/parser.c +57 -31
  125. data/src/core/lib/iomgr/closure.c +15 -0
  126. data/src/core/lib/iomgr/closure.h +4 -0
  127. data/src/core/lib/iomgr/combiner.c +8 -0
  128. data/src/core/lib/iomgr/endpoint_pair.h +2 -3
  129. data/src/core/lib/iomgr/endpoint_pair_posix.c +10 -7
  130. data/src/core/lib/iomgr/endpoint_pair_uv.c +2 -3
  131. data/src/core/lib/iomgr/endpoint_pair_windows.c +9 -6
  132. data/src/core/lib/iomgr/error.c +360 -177
  133. data/src/core/lib/iomgr/error.h +31 -33
  134. data/src/core/lib/iomgr/error_internal.h +30 -9
  135. data/src/core/lib/iomgr/ev_epoll_linux.c +25 -239
  136. data/src/core/lib/iomgr/ev_poll_posix.c +11 -7
  137. data/src/core/lib/iomgr/ev_posix.c +6 -0
  138. data/src/core/lib/iomgr/ev_posix.h +3 -0
  139. data/src/core/lib/iomgr/exec_ctx.c +6 -0
  140. data/src/core/lib/iomgr/executor.c +8 -2
  141. data/src/core/lib/iomgr/load_file.c +6 -3
  142. data/src/core/lib/iomgr/lockfree_event.c +238 -0
  143. data/src/core/{ext/client_channel/initial_connect_string.h → lib/iomgr/lockfree_event.h} +17 -13
  144. data/src/core/lib/iomgr/pollset.h +4 -0
  145. data/src/core/lib/iomgr/pollset_windows.c +2 -2
  146. data/src/core/lib/iomgr/port.h +9 -0
  147. data/src/core/lib/iomgr/resolve_address_posix.c +15 -9
  148. data/src/core/lib/iomgr/resolve_address_uv.c +8 -6
  149. data/src/core/lib/iomgr/resolve_address_windows.c +2 -2
  150. data/src/core/lib/iomgr/resource_quota.c +19 -4
  151. data/src/core/lib/iomgr/resource_quota.h +2 -0
  152. data/src/core/lib/iomgr/sockaddr_utils.c +3 -1
  153. data/src/core/lib/iomgr/socket_factory_posix.c +110 -0
  154. data/src/core/lib/iomgr/socket_factory_posix.h +90 -0
  155. data/src/core/lib/iomgr/socket_utils_common_posix.c +25 -9
  156. data/src/core/lib/iomgr/socket_utils_posix.h +7 -0
  157. data/src/core/lib/iomgr/tcp_client.h +0 -4
  158. data/src/core/lib/iomgr/tcp_client_posix.c +15 -31
  159. data/src/core/lib/iomgr/tcp_client_uv.c +10 -6
  160. data/src/core/lib/iomgr/tcp_client_windows.c +9 -19
  161. data/src/core/lib/iomgr/tcp_posix.c +111 -22
  162. data/src/core/lib/iomgr/tcp_posix.h +3 -4
  163. data/src/core/lib/iomgr/tcp_server_posix.c +39 -417
  164. data/src/core/lib/iomgr/tcp_server_utils_posix.h +135 -0
  165. data/src/core/lib/iomgr/tcp_server_utils_posix_common.c +221 -0
  166. data/src/core/lib/iomgr/tcp_server_utils_posix_ifaddrs.c +196 -0
  167. data/src/core/lib/iomgr/tcp_server_utils_posix_noifaddrs.c +49 -0
  168. data/src/core/lib/iomgr/tcp_server_uv.c +43 -16
  169. data/src/core/lib/iomgr/tcp_server_windows.c +10 -22
  170. data/src/core/lib/iomgr/tcp_uv.c +16 -13
  171. data/src/core/lib/iomgr/tcp_windows.c +24 -12
  172. data/src/core/lib/iomgr/tcp_windows.h +2 -2
  173. data/src/core/lib/iomgr/timer.h +3 -0
  174. data/src/core/lib/iomgr/timer_generic.c +257 -72
  175. data/src/core/lib/iomgr/timer_generic.h +1 -1
  176. data/src/core/lib/iomgr/timer_heap.c +8 -8
  177. data/src/core/lib/iomgr/udp_server.c +54 -24
  178. data/src/core/lib/iomgr/udp_server.h +7 -7
  179. data/src/core/lib/iomgr/unix_sockets_posix.c +1 -1
  180. data/src/core/lib/iomgr/unix_sockets_posix_noop.c +2 -1
  181. data/src/core/lib/iomgr/wakeup_fd_posix.h +1 -1
  182. data/src/core/lib/profiling/basic_timers.c +1 -1
  183. data/src/core/lib/security/credentials/credentials.h +1 -1
  184. data/src/core/lib/security/credentials/google_default/google_default_credentials.c +10 -9
  185. data/src/core/lib/security/credentials/jwt/json_token.c +1 -1
  186. data/src/core/lib/security/credentials/jwt/jwt_verifier.c +2 -2
  187. data/src/core/lib/security/transport/client_auth_filter.c +33 -26
  188. data/src/core/lib/security/transport/secure_endpoint.c +8 -5
  189. data/src/core/lib/security/transport/security_connector.c +37 -37
  190. data/src/core/lib/security/transport/security_connector.h +1 -1
  191. data/src/core/lib/security/transport/security_handshaker.c +15 -12
  192. data/src/core/lib/security/transport/server_auth_filter.c +20 -18
  193. data/src/core/lib/security/transport/tsi_error.c +5 -3
  194. data/src/core/lib/security/transport/tsi_error.h +1 -1
  195. data/src/core/lib/{security/util → slice}/b64.c +21 -6
  196. data/src/core/lib/{security/util → slice}/b64.h +16 -4
  197. data/src/core/lib/slice/slice.c +4 -2
  198. data/src/core/lib/slice/slice_buffer.c +16 -14
  199. data/src/core/lib/support/arena.c +98 -0
  200. data/src/core/{ext/client_channel/initial_connect_string.c → lib/support/arena.h} +17 -15
  201. data/src/core/{ext/client_channel/default_initial_connect_string.c → lib/support/atm.c} +14 -5
  202. data/src/core/lib/support/cpu_linux.c +5 -0
  203. data/src/core/lib/support/sync.c +4 -0
  204. data/src/core/lib/support/time.c +4 -10
  205. data/src/core/lib/support/wrap_memcpy.c +3 -1
  206. data/src/core/lib/surface/call.c +252 -221
  207. data/src/core/lib/surface/channel.c +72 -21
  208. data/src/core/lib/surface/channel.h +8 -0
  209. data/src/core/lib/surface/completion_queue.c +2 -3
  210. data/src/core/lib/surface/completion_queue_factory.c +77 -0
  211. data/src/core/lib/surface/completion_queue_factory.h +51 -0
  212. data/src/core/lib/surface/init_secure.c +3 -1
  213. data/src/core/lib/surface/lame_client.c +18 -14
  214. data/src/core/lib/surface/server.c +43 -41
  215. data/src/core/lib/surface/validate_metadata.c +8 -4
  216. data/src/core/lib/surface/version.c +2 -2
  217. data/src/core/lib/transport/bdp_estimator.h +1 -1
  218. data/src/core/lib/transport/connectivity_state.c +2 -1
  219. data/src/core/lib/transport/error_utils.c +17 -17
  220. data/src/core/lib/transport/error_utils.h +1 -1
  221. data/src/core/lib/transport/metadata_batch.c +6 -7
  222. data/src/core/lib/transport/pid_controller.c +1 -0
  223. data/src/core/lib/transport/service_config.c +12 -0
  224. data/src/core/lib/transport/service_config.h +6 -0
  225. data/src/core/lib/transport/transport.c +29 -17
  226. data/src/core/lib/transport/transport.h +85 -42
  227. data/src/core/lib/transport/transport_impl.h +5 -3
  228. data/src/core/lib/transport/transport_op_string.c +20 -14
  229. data/src/core/plugin_registry/grpc_plugin_registry.c +8 -0
  230. data/src/core/{lib/tsi → tsi}/fake_transport_security.c +2 -2
  231. data/src/core/{lib/tsi → tsi}/fake_transport_security.h +4 -4
  232. data/src/core/{lib/tsi → tsi}/ssl_transport_security.c +40 -79
  233. data/src/core/{lib/tsi → tsi}/ssl_transport_security.h +44 -21
  234. data/src/core/{lib/tsi → tsi}/ssl_types.h +3 -3
  235. data/src/core/{lib/tsi → tsi}/transport_security.c +2 -2
  236. data/src/core/{lib/tsi → tsi}/transport_security.h +4 -4
  237. data/src/core/{lib/tsi → tsi}/transport_security_interface.h +3 -3
  238. data/src/ruby/ext/grpc/extconf.rb +1 -0
  239. data/src/ruby/ext/grpc/rb_call_credentials.c +2 -2
  240. data/src/ruby/ext/grpc/rb_channel.c +520 -93
  241. data/src/ruby/ext/grpc/rb_channel.h +2 -0
  242. data/src/ruby/ext/grpc/rb_channel_credentials.c +3 -0
  243. data/src/ruby/ext/grpc/rb_compression_options.c +5 -2
  244. data/src/ruby/ext/grpc/rb_event_thread.c +6 -6
  245. data/src/ruby/ext/grpc/rb_grpc.c +29 -7
  246. data/src/ruby/ext/grpc/rb_grpc.h +2 -0
  247. data/src/ruby/ext/grpc/rb_grpc_imports.generated.c +10 -0
  248. data/src/ruby/ext/grpc/rb_grpc_imports.generated.h +15 -0
  249. data/src/ruby/ext/grpc/rb_server.c +5 -3
  250. data/src/ruby/lib/grpc/version.rb +1 -1
  251. data/src/ruby/spec/channel_connection_spec.rb +173 -0
  252. data/src/ruby/spec/channel_spec.rb +29 -0
  253. data/src/ruby/spec/generic/rpc_server_pool_spec.rb +27 -17
  254. data/third_party/cares/ares_build.h +264 -0
  255. data/third_party/cares/cares/ares.h +636 -0
  256. data/third_party/cares/cares/ares__close_sockets.c +61 -0
  257. data/third_party/cares/cares/ares__get_hostent.c +261 -0
  258. data/third_party/cares/cares/ares__read_line.c +73 -0
  259. data/third_party/cares/cares/ares__timeval.c +111 -0
  260. data/third_party/cares/cares/ares_cancel.c +63 -0
  261. data/third_party/cares/cares/ares_create_query.c +202 -0
  262. data/third_party/cares/cares/ares_data.c +221 -0
  263. data/third_party/cares/cares/ares_data.h +72 -0
  264. data/third_party/cares/cares/ares_destroy.c +108 -0
  265. data/third_party/cares/cares/ares_dns.h +103 -0
  266. data/third_party/cares/cares/ares_expand_name.c +205 -0
  267. data/third_party/cares/cares/ares_expand_string.c +70 -0
  268. data/third_party/cares/cares/ares_fds.c +59 -0
  269. data/third_party/cares/cares/ares_free_hostent.c +41 -0
  270. data/third_party/cares/cares/ares_free_string.c +25 -0
  271. data/third_party/cares/cares/ares_getenv.c +30 -0
  272. data/third_party/cares/cares/ares_getenv.h +26 -0
  273. data/third_party/cares/cares/ares_gethostbyaddr.c +294 -0
  274. data/third_party/cares/cares/ares_gethostbyname.c +518 -0
  275. data/third_party/cares/cares/ares_getnameinfo.c +422 -0
  276. data/third_party/cares/cares/ares_getopt.c +122 -0
  277. data/third_party/cares/cares/ares_getopt.h +53 -0
  278. data/third_party/cares/cares/ares_getsock.c +66 -0
  279. data/third_party/cares/cares/ares_inet_net_pton.h +25 -0
  280. data/third_party/cares/cares/ares_init.c +2146 -0
  281. data/third_party/cares/cares/ares_iphlpapi.h +221 -0
  282. data/third_party/cares/cares/ares_ipv6.h +78 -0
  283. data/third_party/cares/cares/ares_library_init.c +167 -0
  284. data/third_party/cares/cares/ares_library_init.h +42 -0
  285. data/third_party/cares/cares/ares_llist.c +63 -0
  286. data/third_party/cares/cares/ares_llist.h +39 -0
  287. data/third_party/cares/cares/ares_mkquery.c +24 -0
  288. data/third_party/cares/cares/ares_nowarn.c +260 -0
  289. data/third_party/cares/cares/ares_nowarn.h +61 -0
  290. data/third_party/cares/cares/ares_options.c +402 -0
  291. data/third_party/cares/cares/ares_parse_a_reply.c +264 -0
  292. data/third_party/cares/cares/ares_parse_aaaa_reply.c +264 -0
  293. data/third_party/cares/cares/ares_parse_mx_reply.c +170 -0
  294. data/third_party/cares/cares/ares_parse_naptr_reply.c +188 -0
  295. data/third_party/cares/cares/ares_parse_ns_reply.c +183 -0
  296. data/third_party/cares/cares/ares_parse_ptr_reply.c +219 -0
  297. data/third_party/cares/cares/ares_parse_soa_reply.c +133 -0
  298. data/third_party/cares/cares/ares_parse_srv_reply.c +179 -0
  299. data/third_party/cares/cares/ares_parse_txt_reply.c +220 -0
  300. data/third_party/cares/cares/ares_platform.c +11035 -0
  301. data/third_party/cares/cares/ares_platform.h +43 -0
  302. data/third_party/cares/cares/ares_private.h +363 -0
  303. data/third_party/cares/cares/ares_process.c +1359 -0
  304. data/third_party/cares/cares/ares_query.c +186 -0
  305. data/third_party/cares/cares/ares_rules.h +125 -0
  306. data/third_party/cares/cares/ares_search.c +316 -0
  307. data/third_party/cares/cares/ares_send.c +131 -0
  308. data/third_party/cares/cares/ares_setup.h +217 -0
  309. data/third_party/cares/cares/ares_strcasecmp.c +66 -0
  310. data/third_party/cares/cares/ares_strcasecmp.h +30 -0
  311. data/third_party/cares/cares/ares_strdup.c +49 -0
  312. data/third_party/cares/cares/ares_strdup.h +24 -0
  313. data/third_party/cares/cares/ares_strerror.c +56 -0
  314. data/third_party/cares/cares/ares_timeout.c +88 -0
  315. data/third_party/cares/cares/ares_version.c +11 -0
  316. data/third_party/cares/cares/ares_version.h +24 -0
  317. data/third_party/cares/cares/ares_writev.c +79 -0
  318. data/third_party/cares/cares/bitncmp.c +59 -0
  319. data/third_party/cares/cares/bitncmp.h +26 -0
  320. data/third_party/cares/cares/config-win32.h +377 -0
  321. data/third_party/cares/cares/inet_net_pton.c +450 -0
  322. data/third_party/cares/cares/inet_ntop.c +208 -0
  323. data/third_party/cares/cares/setup_once.h +554 -0
  324. data/third_party/cares/cares/windows_port.c +22 -0
  325. data/third_party/cares/config_darwin/ares_config.h +523 -0
  326. data/third_party/cares/config_linux/ares_config.h +524 -0
  327. metadata +164 -68
@@ -0,0 +1,22 @@
1
+ #include "ares_setup.h"
2
+
3
+
4
+ /* only do the following on windows
5
+ */
6
+ #if (defined(WIN32) || defined(WATT32)) && !defined(MSDOS)
7
+
8
+ #ifdef __WATCOMC__
9
+ /*
10
+ * Watcom needs a DllMain() in order to initialise the clib startup code.
11
+ */
12
+ BOOL
13
+ WINAPI DllMain (HINSTANCE hnd, DWORD reason, LPVOID reserved)
14
+ {
15
+ (void) hnd;
16
+ (void) reason;
17
+ (void) reserved;
18
+ return (TRUE);
19
+ }
20
+ #endif
21
+
22
+ #endif /* WIN32 builds only */
@@ -0,0 +1,523 @@
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
+ /* Defined for build that exposes internal static functions for testing. */
14
+ /* #undef CARES_EXPOSE_STATICS */
15
+
16
+ /* Defined for build with symbol hiding. */
17
+ #define CARES_SYMBOL_HIDING 1
18
+
19
+ /* Definition to make a library symbol externally visible. */
20
+ #define CARES_SYMBOL_SCOPE_EXTERN __attribute__ ((__visibility__ ("default")))
21
+
22
+ /* Use resolver library to configure cares */
23
+ /* #undef CARES_USE_LIBRESOLV */
24
+
25
+ /* if a /etc/inet dir is being used */
26
+ /* #undef ETC_INET */
27
+
28
+ /* Define to the type of arg 2 for gethostname. */
29
+ #define GETHOSTNAME_TYPE_ARG2 size_t
30
+
31
+ /* Define to the type qualifier of arg 1 for getnameinfo. */
32
+ #define GETNAMEINFO_QUAL_ARG1 const
33
+
34
+ /* Define to the type of arg 1 for getnameinfo. */
35
+ #define GETNAMEINFO_TYPE_ARG1 struct sockaddr *
36
+
37
+ /* Define to the type of arg 2 for getnameinfo. */
38
+ #define GETNAMEINFO_TYPE_ARG2 socklen_t
39
+
40
+ /* Define to the type of args 4 and 6 for getnameinfo. */
41
+ #define GETNAMEINFO_TYPE_ARG46 socklen_t
42
+
43
+ /* Define to the type of arg 7 for getnameinfo. */
44
+ #define GETNAMEINFO_TYPE_ARG7 int
45
+
46
+ /* Specifies the number of arguments to getservbyport_r */
47
+ /* #undef GETSERVBYPORT_R_ARGS */
48
+
49
+ /* Specifies the size of the buffer to pass to getservbyport_r */
50
+ /* #undef GETSERVBYPORT_R_BUFSIZE */
51
+
52
+ /* Define to 1 if you have AF_INET6. */
53
+ #define HAVE_AF_INET6 1
54
+
55
+ /* Define to 1 if you have the <arpa/inet.h> header file. */
56
+ #define HAVE_ARPA_INET_H 1
57
+
58
+ /* Define to 1 if you have the <arpa/nameser_compat.h> header file. */
59
+ #define HAVE_ARPA_NAMESER_COMPAT_H 1
60
+
61
+ /* Define to 1 if you have the <arpa/nameser.h> header file. */
62
+ #define HAVE_ARPA_NAMESER_H 1
63
+
64
+ /* Define to 1 if you have the <assert.h> header file. */
65
+ #define HAVE_ASSERT_H 1
66
+
67
+ /* Define to 1 if you have the `bitncmp' function. */
68
+ /* #undef HAVE_BITNCMP */
69
+
70
+ /* Define to 1 if bool is an available type. */
71
+ #define HAVE_BOOL_T 1
72
+
73
+ /* Define to 1 if you have the clock_gettime function and monotonic timer. */
74
+ /* #undef HAVE_CLOCK_GETTIME_MONOTONIC */
75
+
76
+ /* Define to 1 if you have the closesocket function. */
77
+ /* #undef HAVE_CLOSESOCKET */
78
+
79
+ /* Define to 1 if you have the CloseSocket camel case function. */
80
+ /* #undef HAVE_CLOSESOCKET_CAMEL */
81
+
82
+ /* Define to 1 if you have the connect function. */
83
+ #define HAVE_CONNECT 1
84
+
85
+ /* define if the compiler supports basic C++11 syntax */
86
+ #define HAVE_CXX11 1
87
+
88
+ /* Define to 1 if you have the <dlfcn.h> header file. */
89
+ #define HAVE_DLFCN_H 1
90
+
91
+ /* Define to 1 if you have the <errno.h> header file. */
92
+ #define HAVE_ERRNO_H 1
93
+
94
+ /* Define to 1 if you have the fcntl function. */
95
+ #define HAVE_FCNTL 1
96
+
97
+ /* Define to 1 if you have the <fcntl.h> header file. */
98
+ #define HAVE_FCNTL_H 1
99
+
100
+ /* Define to 1 if you have a working fcntl O_NONBLOCK function. */
101
+ #define HAVE_FCNTL_O_NONBLOCK 1
102
+
103
+ /* Define to 1 if you have the freeaddrinfo function. */
104
+ #define HAVE_FREEADDRINFO 1
105
+
106
+ /* Define to 1 if you have a working getaddrinfo function. */
107
+ #define HAVE_GETADDRINFO 1
108
+
109
+ /* Define to 1 if the getaddrinfo function is threadsafe. */
110
+ #define HAVE_GETADDRINFO_THREADSAFE 1
111
+
112
+ /* Define to 1 if you have the getenv function. */
113
+ #define HAVE_GETENV 1
114
+
115
+ /* Define to 1 if you have the gethostbyaddr function. */
116
+ #define HAVE_GETHOSTBYADDR 1
117
+
118
+ /* Define to 1 if you have the gethostbyname function. */
119
+ #define HAVE_GETHOSTBYNAME 1
120
+
121
+ /* Define to 1 if you have the gethostname function. */
122
+ #define HAVE_GETHOSTNAME 1
123
+
124
+ /* Define to 1 if you have the getnameinfo function. */
125
+ #define HAVE_GETNAMEINFO 1
126
+
127
+ /* Define to 1 if you have the getservbyport_r function. */
128
+ /* #undef HAVE_GETSERVBYPORT_R */
129
+
130
+ /* Define to 1 if you have the `gettimeofday' function. */
131
+ #define HAVE_GETTIMEOFDAY 1
132
+
133
+ /* Define to 1 if you have the `if_indextoname' function. */
134
+ #define HAVE_IF_INDEXTONAME 1
135
+
136
+ /* Define to 1 if you have a IPv6 capable working inet_net_pton function. */
137
+ #define HAVE_INET_NET_PTON 1
138
+
139
+ /* Define to 1 if you have a IPv6 capable working inet_ntop function. */
140
+ #define HAVE_INET_NTOP 1
141
+
142
+ /* Define to 1 if you have a IPv6 capable working inet_pton function. */
143
+ #define HAVE_INET_PTON 1
144
+
145
+ /* Define to 1 if you have the <inttypes.h> header file. */
146
+ #define HAVE_INTTYPES_H 1
147
+
148
+ /* Define to 1 if you have the ioctl function. */
149
+ #define HAVE_IOCTL 1
150
+
151
+ /* Define to 1 if you have the ioctlsocket function. */
152
+ /* #undef HAVE_IOCTLSOCKET */
153
+
154
+ /* Define to 1 if you have the IoctlSocket camel case function. */
155
+ /* #undef HAVE_IOCTLSOCKET_CAMEL */
156
+
157
+ /* Define to 1 if you have a working IoctlSocket camel case FIONBIO function.
158
+ */
159
+ /* #undef HAVE_IOCTLSOCKET_CAMEL_FIONBIO */
160
+
161
+ /* Define to 1 if you have a working ioctlsocket FIONBIO function. */
162
+ /* #undef HAVE_IOCTLSOCKET_FIONBIO */
163
+
164
+ /* Define to 1 if you have a working ioctl FIONBIO function. */
165
+ #define HAVE_IOCTL_FIONBIO 1
166
+
167
+ /* Define to 1 if you have a working ioctl SIOCGIFADDR function. */
168
+ #define HAVE_IOCTL_SIOCGIFADDR 1
169
+
170
+ /* Define to 1 if you have the `resolve' library (-lresolve). */
171
+ /* #undef HAVE_LIBRESOLVE */
172
+
173
+ /* Define to 1 if you have the <limits.h> header file. */
174
+ #define HAVE_LIMITS_H 1
175
+
176
+ /* if your compiler supports LL */
177
+ #define HAVE_LL 1
178
+
179
+ /* Define to 1 if the compiler supports the 'long long' data type. */
180
+ #define HAVE_LONGLONG 1
181
+
182
+ /* Define to 1 if you have the malloc.h header file. */
183
+ /* #undef HAVE_MALLOC_H */
184
+
185
+ /* Define to 1 if you have the memory.h header file. */
186
+ #define HAVE_MEMORY_H 1
187
+
188
+ /* Define to 1 if you have the MSG_NOSIGNAL flag. */
189
+ /* #undef HAVE_MSG_NOSIGNAL */
190
+
191
+ /* Define to 1 if you have the <netdb.h> header file. */
192
+ #define HAVE_NETDB_H 1
193
+
194
+ /* Define to 1 if you have the <netinet/in.h> header file. */
195
+ #define HAVE_NETINET_IN_H 1
196
+
197
+ /* Define to 1 if you have the <netinet/tcp.h> header file. */
198
+ #define HAVE_NETINET_TCP_H 1
199
+
200
+ /* Define to 1 if you have the <net/if.h> header file. */
201
+ #define HAVE_NET_IF_H 1
202
+
203
+ /* Define to 1 if you have PF_INET6. */
204
+ #define HAVE_PF_INET6 1
205
+
206
+ /* Define to 1 if you have the recv function. */
207
+ #define HAVE_RECV 1
208
+
209
+ /* Define to 1 if you have the recvfrom function. */
210
+ #define HAVE_RECVFROM 1
211
+
212
+ /* Define to 1 if you have the send function. */
213
+ #define HAVE_SEND 1
214
+
215
+ /* Define to 1 if you have the setsockopt function. */
216
+ #define HAVE_SETSOCKOPT 1
217
+
218
+ /* Define to 1 if you have a working setsockopt SO_NONBLOCK function. */
219
+ /* #undef HAVE_SETSOCKOPT_SO_NONBLOCK */
220
+
221
+ /* Define to 1 if you have the <signal.h> header file. */
222
+ #define HAVE_SIGNAL_H 1
223
+
224
+ /* Define to 1 if sig_atomic_t is an available typedef. */
225
+ #define HAVE_SIG_ATOMIC_T 1
226
+
227
+ /* Define to 1 if sig_atomic_t is already defined as volatile. */
228
+ /* #undef HAVE_SIG_ATOMIC_T_VOLATILE */
229
+
230
+ /* Define to 1 if your struct sockaddr_in6 has sin6_scope_id. */
231
+ #define HAVE_SOCKADDR_IN6_SIN6_SCOPE_ID 1
232
+
233
+ /* Define to 1 if you have the socket function. */
234
+ #define HAVE_SOCKET 1
235
+
236
+ /* Define to 1 if you have the <socket.h> header file. */
237
+ /* #undef HAVE_SOCKET_H */
238
+
239
+ /* Define to 1 if you have the <stdbool.h> header file. */
240
+ #define HAVE_STDBOOL_H 1
241
+
242
+ /* Define to 1 if you have the <stdint.h> header file. */
243
+ #define HAVE_STDINT_H 1
244
+
245
+ /* Define to 1 if you have the <stdlib.h> header file. */
246
+ #define HAVE_STDLIB_H 1
247
+
248
+ /* Define to 1 if you have the strcasecmp function. */
249
+ #define HAVE_STRCASECMP 1
250
+
251
+ /* Define to 1 if you have the strcmpi function. */
252
+ /* #undef HAVE_STRCMPI */
253
+
254
+ /* Define to 1 if you have the strdup function. */
255
+ #define HAVE_STRDUP 1
256
+
257
+ /* Define to 1 if you have the stricmp function. */
258
+ /* #undef HAVE_STRICMP */
259
+
260
+ /* Define to 1 if you have the <strings.h> header file. */
261
+ #define HAVE_STRINGS_H 1
262
+
263
+ /* Define to 1 if you have the <string.h> header file. */
264
+ #define HAVE_STRING_H 1
265
+
266
+ /* Define to 1 if you have the strncasecmp function. */
267
+ #define HAVE_STRNCASECMP 1
268
+
269
+ /* Define to 1 if you have the strncmpi function. */
270
+ /* #undef HAVE_STRNCMPI */
271
+
272
+ /* Define to 1 if you have the strnicmp function. */
273
+ /* #undef HAVE_STRNICMP */
274
+
275
+ /* Define to 1 if you have the <stropts.h> header file. */
276
+ /* #undef HAVE_STROPTS_H */
277
+
278
+ /* Define to 1 if you have struct addrinfo. */
279
+ #define HAVE_STRUCT_ADDRINFO 1
280
+
281
+ /* Define to 1 if you have struct in6_addr. */
282
+ #define HAVE_STRUCT_IN6_ADDR 1
283
+
284
+ /* Define to 1 if you have struct sockaddr_in6. */
285
+ #define HAVE_STRUCT_SOCKADDR_IN6 1
286
+
287
+ /* if struct sockaddr_storage is defined */
288
+ #define HAVE_STRUCT_SOCKADDR_STORAGE 1
289
+
290
+ /* Define to 1 if you have the timeval struct. */
291
+ #define HAVE_STRUCT_TIMEVAL 1
292
+
293
+ /* Define to 1 if you have the <sys/ioctl.h> header file. */
294
+ #define HAVE_SYS_IOCTL_H 1
295
+
296
+ /* Define to 1 if you have the <sys/param.h> header file. */
297
+ #define HAVE_SYS_PARAM_H 1
298
+
299
+ /* Define to 1 if you have the <sys/select.h> header file. */
300
+ #define HAVE_SYS_SELECT_H 1
301
+
302
+ /* Define to 1 if you have the <sys/socket.h> header file. */
303
+ #define HAVE_SYS_SOCKET_H 1
304
+
305
+ /* Define to 1 if you have the <sys/stat.h> header file. */
306
+ #define HAVE_SYS_STAT_H 1
307
+
308
+ /* Define to 1 if you have the <sys/time.h> header file. */
309
+ #define HAVE_SYS_TIME_H 1
310
+
311
+ /* Define to 1 if you have the <sys/types.h> header file. */
312
+ #define HAVE_SYS_TYPES_H 1
313
+
314
+ /* Define to 1 if you have the <sys/uio.h> header file. */
315
+ #define HAVE_SYS_UIO_H 1
316
+
317
+ /* Define to 1 if you have the <time.h> header file. */
318
+ #define HAVE_TIME_H 1
319
+
320
+ /* Define to 1 if you have the <unistd.h> header file. */
321
+ #define HAVE_UNISTD_H 1
322
+
323
+ /* Define to 1 if you have the windows.h header file. */
324
+ /* #undef HAVE_WINDOWS_H */
325
+
326
+ /* Define to 1 if you have the winsock2.h header file. */
327
+ /* #undef HAVE_WINSOCK2_H */
328
+
329
+ /* Define to 1 if you have the winsock.h header file. */
330
+ /* #undef HAVE_WINSOCK_H */
331
+
332
+ /* Define to 1 if you have the writev function. */
333
+ #define HAVE_WRITEV 1
334
+
335
+ /* Define to 1 if you have the ws2tcpip.h header file. */
336
+ /* #undef HAVE_WS2TCPIP_H */
337
+
338
+ /* Define to the sub-directory where libtool stores uninstalled libraries. */
339
+ #define LT_OBJDIR ".libs/"
340
+
341
+ /* Define to 1 if you need the malloc.h header file even with stdlib.h */
342
+ /* #undef NEED_MALLOC_H */
343
+
344
+ /* Define to 1 if you need the memory.h header file even with stdlib.h */
345
+ /* #undef NEED_MEMORY_H */
346
+
347
+ /* Define to 1 if _REENTRANT preprocessor symbol must be defined. */
348
+ /* #undef NEED_REENTRANT */
349
+
350
+ /* Define to 1 if _THREAD_SAFE preprocessor symbol must be defined. */
351
+ /* #undef NEED_THREAD_SAFE */
352
+
353
+ /* cpu-machine-OS */
354
+ #define OS "i386-apple-darwin9.8.0"
355
+
356
+ /* Name of package */
357
+ #define PACKAGE "c-ares"
358
+
359
+ /* Define to the address where bug reports for this package should be sent. */
360
+ #define PACKAGE_BUGREPORT "c-ares mailing list: http://cool.haxx.se/mailman/listinfo/c-ares"
361
+
362
+ /* Define to the full name of this package. */
363
+ #define PACKAGE_NAME "c-ares"
364
+
365
+ /* Define to the full name and version of this package. */
366
+ #define PACKAGE_STRING "c-ares -"
367
+
368
+ /* Define to the one symbol short name of this package. */
369
+ #define PACKAGE_TARNAME "c-ares"
370
+
371
+ /* Define to the home page for this package. */
372
+ #define PACKAGE_URL ""
373
+
374
+ /* Define to the version of this package. */
375
+ #define PACKAGE_VERSION "-"
376
+
377
+ /* a suitable file/device to read random data from */
378
+ #define RANDOM_FILE "/dev/urandom"
379
+
380
+ /* Define to the type qualifier pointed by arg 5 for recvfrom. */
381
+ #define RECVFROM_QUAL_ARG5
382
+
383
+ /* Define to the type of arg 1 for recvfrom. */
384
+ #define RECVFROM_TYPE_ARG1 int
385
+
386
+ /* Define to the type pointed by arg 2 for recvfrom. */
387
+ #define RECVFROM_TYPE_ARG2 void
388
+
389
+ /* Define to 1 if the type pointed by arg 2 for recvfrom is void. */
390
+ #define RECVFROM_TYPE_ARG2_IS_VOID 1
391
+
392
+ /* Define to the type of arg 3 for recvfrom. */
393
+ #define RECVFROM_TYPE_ARG3 size_t
394
+
395
+ /* Define to the type of arg 4 for recvfrom. */
396
+ #define RECVFROM_TYPE_ARG4 int
397
+
398
+ /* Define to the type pointed by arg 5 for recvfrom. */
399
+ #define RECVFROM_TYPE_ARG5 struct sockaddr
400
+
401
+ /* Define to 1 if the type pointed by arg 5 for recvfrom is void. */
402
+ /* #undef RECVFROM_TYPE_ARG5_IS_VOID */
403
+
404
+ /* Define to the type pointed by arg 6 for recvfrom. */
405
+ #define RECVFROM_TYPE_ARG6 socklen_t
406
+
407
+ /* Define to 1 if the type pointed by arg 6 for recvfrom is void. */
408
+ /* #undef RECVFROM_TYPE_ARG6_IS_VOID */
409
+
410
+ /* Define to the function return type for recvfrom. */
411
+ #define RECVFROM_TYPE_RETV ssize_t
412
+
413
+ /* Define to the type of arg 1 for recv. */
414
+ #define RECV_TYPE_ARG1 int
415
+
416
+ /* Define to the type of arg 2 for recv. */
417
+ #define RECV_TYPE_ARG2 void *
418
+
419
+ /* Define to the type of arg 3 for recv. */
420
+ #define RECV_TYPE_ARG3 size_t
421
+
422
+ /* Define to the type of arg 4 for recv. */
423
+ #define RECV_TYPE_ARG4 int
424
+
425
+ /* Define to the function return type for recv. */
426
+ #define RECV_TYPE_RETV ssize_t
427
+
428
+ /* Define as the return type of signal handlers (`int' or `void'). */
429
+ #define RETSIGTYPE void
430
+
431
+ /* Define to the type qualifier of arg 2 for send. */
432
+ #define SEND_QUAL_ARG2 const
433
+
434
+ /* Define to the type of arg 1 for send. */
435
+ #define SEND_TYPE_ARG1 int
436
+
437
+ /* Define to the type of arg 2 for send. */
438
+ #define SEND_TYPE_ARG2 void *
439
+
440
+ /* Define to the type of arg 3 for send. */
441
+ #define SEND_TYPE_ARG3 size_t
442
+
443
+ /* Define to the type of arg 4 for send. */
444
+ #define SEND_TYPE_ARG4 int
445
+
446
+ /* Define to the function return type for send. */
447
+ #define SEND_TYPE_RETV ssize_t
448
+
449
+ /* The size of `int', as computed by sizeof. */
450
+ #define SIZEOF_INT 4
451
+
452
+ /* The size of `long', as computed by sizeof. */
453
+ #define SIZEOF_LONG 4
454
+
455
+ /* The size of `short', as computed by sizeof. */
456
+ #define SIZEOF_SHORT 2
457
+
458
+ /* The size of `size_t', as computed by sizeof. */
459
+ #define SIZEOF_SIZE_T 4
460
+
461
+ /* The size of `struct in6_addr', as computed by sizeof. */
462
+ #define SIZEOF_STRUCT_IN6_ADDR 16
463
+
464
+ /* The size of `struct in_addr', as computed by sizeof. */
465
+ #define SIZEOF_STRUCT_IN_ADDR 4
466
+
467
+ /* The size of `time_t', as computed by sizeof. */
468
+ #define SIZEOF_TIME_T 4
469
+
470
+ /* Define to 1 if you have the ANSI C header files. */
471
+ #define STDC_HEADERS 1
472
+
473
+ /* Define to 1 if you can safely include both <sys/time.h> and <time.h>. */
474
+ #define TIME_WITH_SYS_TIME 1
475
+
476
+ /* Define to disable non-blocking sockets. */
477
+ /* #undef USE_BLOCKING_SOCKETS */
478
+
479
+ /* Version number of package */
480
+ #define VERSION "-"
481
+
482
+ /* Define to avoid automatic inclusion of winsock.h */
483
+ /* #undef WIN32_LEAN_AND_MEAN */
484
+
485
+ /* Define WORDS_BIGENDIAN to 1 if your processor stores words with the most
486
+ significant byte first (like Motorola and SPARC, unlike Intel). */
487
+ #if defined AC_APPLE_UNIVERSAL_BUILD
488
+ # if defined __BIG_ENDIAN__
489
+ # define WORDS_BIGENDIAN 1
490
+ # endif
491
+ #else
492
+ # ifndef WORDS_BIGENDIAN
493
+ /* # undef WORDS_BIGENDIAN */
494
+ # endif
495
+ #endif
496
+
497
+ /* Define to 1 if OS is AIX. */
498
+ #ifndef _ALL_SOURCE
499
+ /* # undef _ALL_SOURCE */
500
+ #endif
501
+
502
+ /* Enable large inode numbers on Mac OS X 10.5. */
503
+ #ifndef _DARWIN_USE_64_BIT_INODE
504
+ # define _DARWIN_USE_64_BIT_INODE 1
505
+ #endif
506
+
507
+ /* Number of bits in a file offset, on hosts where this is settable. */
508
+ /* #undef _FILE_OFFSET_BITS */
509
+
510
+ /* Define for large files, on AIX-style hosts. */
511
+ /* #undef _LARGE_FILES */
512
+
513
+ /* Define to empty if `const' does not conform to ANSI C. */
514
+ /* #undef const */
515
+
516
+ /* Type to use in place of in_addr_t when system does not provide it. */
517
+ /* #undef in_addr_t */
518
+
519
+ /* Define to `unsigned int' if <sys/types.h> does not define. */
520
+ /* #undef size_t */
521
+
522
+ /* the signed version of size_t */
523
+ /* #undef ssize_t */