contrast-agent 3.10.1 → 3.12.2

Sign up to get free protection for your applications and to get access to all the features.
Files changed (350) hide show
  1. checksums.yaml +4 -4
  2. data/.flayignore +1 -0
  3. data/.simplecov +5 -2
  4. data/ext/build_funchook.rb +13 -17
  5. data/ext/cs__assess_active_record_named/cs__active_record_named.c +12 -14
  6. data/ext/cs__assess_active_record_named/cs__active_record_named.h +1 -0
  7. data/ext/cs__assess_active_record_named/extconf.rb +3 -0
  8. data/ext/cs__assess_array/cs__assess_array.c +5 -6
  9. data/ext/cs__assess_array/cs__assess_array.h +1 -0
  10. data/ext/cs__assess_array/extconf.rb +3 -0
  11. data/ext/cs__assess_basic_object/cs__assess_basic_object.c +13 -11
  12. data/ext/cs__assess_basic_object/cs__assess_basic_object.h +2 -1
  13. data/ext/cs__assess_basic_object/extconf.rb +3 -0
  14. data/ext/cs__assess_fiber_track/cs__assess_fiber_track.c +4 -3
  15. data/ext/cs__assess_fiber_track/cs__assess_fiber_track.h +3 -3
  16. data/ext/cs__assess_fiber_track/extconf.rb +3 -0
  17. data/ext/cs__assess_hash/cs__assess_hash.c +40 -17
  18. data/ext/cs__assess_hash/cs__assess_hash.h +4 -6
  19. data/ext/cs__assess_hash/extconf.rb +3 -0
  20. data/ext/cs__assess_kernel/cs__assess_kernel.c +11 -9
  21. data/ext/cs__assess_kernel/cs__assess_kernel.h +1 -0
  22. data/ext/cs__assess_kernel/extconf.rb +3 -0
  23. data/ext/cs__assess_marshal_module/cs__assess_marshal_module.c +3 -6
  24. data/ext/cs__assess_marshal_module/extconf.rb +3 -0
  25. data/ext/cs__assess_module/cs__assess_module.c +16 -14
  26. data/ext/cs__assess_module/cs__assess_module.h +3 -0
  27. data/ext/cs__assess_module/extconf.rb +3 -0
  28. data/ext/cs__assess_regexp/cs__assess_regexp.c +13 -9
  29. data/ext/cs__assess_regexp/cs__assess_regexp.h +1 -0
  30. data/ext/cs__assess_regexp/extconf.rb +3 -0
  31. data/ext/cs__assess_string/cs__assess_string.c +5 -8
  32. data/ext/cs__assess_string/cs__assess_string.h +2 -1
  33. data/ext/cs__assess_string/extconf.rb +3 -0
  34. data/ext/cs__assess_string_interpolation26/cs__assess_string_interpolation26.c +2 -2
  35. data/ext/cs__assess_string_interpolation26/cs__assess_string_interpolation26.h +3 -3
  36. data/ext/cs__assess_string_interpolation26/extconf.rb +3 -0
  37. data/ext/cs__assess_yield_track/cs__assess_yield_track.h +1 -1
  38. data/ext/cs__assess_yield_track/extconf.rb +3 -0
  39. data/ext/cs__common/cs__common.c +80 -1
  40. data/ext/cs__common/cs__common.h +34 -0
  41. data/ext/cs__common/extconf.rb +9 -8
  42. data/ext/cs__contrast_patch/cs__contrast_patch.h +1 -6
  43. data/ext/cs__contrast_patch/extconf.rb +3 -0
  44. data/ext/cs__protect_kernel/cs__protect_kernel.c +23 -12
  45. data/ext/cs__protect_kernel/cs__protect_kernel.h +1 -0
  46. data/ext/cs__protect_kernel/extconf.rb +3 -0
  47. data/ext/extconf_common.rb +10 -8
  48. data/funchook/autom4te.cache/output.0 +1 -13
  49. data/funchook/autom4te.cache/requests +50 -51
  50. data/funchook/autom4te.cache/traces.0 +0 -3
  51. data/funchook/config.log +378 -217
  52. data/funchook/config.status +23 -24
  53. data/funchook/configure +1 -13
  54. data/funchook/src/Makefile +7 -7
  55. data/funchook/src/config.h +2 -2
  56. data/funchook/src/decoder.o +0 -0
  57. data/funchook/src/distorm.o +0 -0
  58. data/funchook/src/funchook.o +0 -0
  59. data/funchook/src/funchook_io.o +0 -0
  60. data/funchook/src/funchook_syscall.o +0 -0
  61. data/funchook/src/funchook_unix.o +0 -0
  62. data/funchook/src/funchook_x86.o +0 -0
  63. data/funchook/src/instructions.o +0 -0
  64. data/funchook/src/insts.o +0 -0
  65. data/funchook/src/libfunchook.dylib +0 -0
  66. data/funchook/src/mnemonics.o +0 -0
  67. data/funchook/src/operands.o +0 -0
  68. data/funchook/src/os_func.o +0 -0
  69. data/funchook/src/os_func_unix.o +0 -0
  70. data/funchook/src/prefix.o +0 -0
  71. data/funchook/src/printf_base.o +0 -0
  72. data/funchook/src/textdefs.o +0 -0
  73. data/funchook/src/wstring.o +0 -0
  74. data/funchook/test/Makefile +2 -2
  75. data/funchook/test/funchook_test +0 -0
  76. data/funchook/test/libfunchook_test.so +0 -0
  77. data/funchook/test/libfunchook_test.so.dSYM/Contents/Info.plist +20 -0
  78. data/funchook/test/libfunchook_test.so.dSYM/Contents/Resources/DWARF/libfunchook_test.so +0 -0
  79. data/funchook/test/test_main.o +0 -0
  80. data/funchook/test/x86_64_test.o +0 -0
  81. data/lib/contrast.rb +1 -1
  82. data/lib/contrast/agent.rb +32 -29
  83. data/lib/contrast/agent/assess.rb +1 -11
  84. data/lib/contrast/agent/assess/adjusted_span.rb +3 -1
  85. data/lib/contrast/agent/assess/contrast_event.rb +16 -62
  86. data/lib/contrast/agent/assess/events/event_factory.rb +25 -0
  87. data/lib/contrast/agent/assess/events/source_event.rb +83 -0
  88. data/lib/contrast/agent/assess/insulator.rb +0 -4
  89. data/lib/contrast/agent/assess/policy/patcher.rb +6 -2
  90. data/lib/contrast/agent/assess/policy/policy_node.rb +1 -8
  91. data/lib/contrast/agent/assess/policy/policy_scanner.rb +2 -2
  92. data/lib/contrast/agent/assess/policy/preshift.rb +1 -1
  93. data/lib/contrast/agent/assess/policy/propagation_method.rb +68 -33
  94. data/lib/contrast/agent/assess/policy/propagation_node.rb +2 -1
  95. data/lib/contrast/agent/assess/policy/propagator.rb +1 -0
  96. data/lib/contrast/agent/assess/policy/propagator/custom.rb +1 -1
  97. data/lib/contrast/agent/assess/policy/propagator/database_write.rb +1 -3
  98. data/lib/contrast/agent/assess/policy/propagator/match_data.rb +80 -0
  99. data/lib/contrast/agent/assess/policy/propagator/select.rb +35 -22
  100. data/lib/contrast/agent/assess/policy/propagator/split.rb +26 -6
  101. data/lib/contrast/agent/assess/policy/propagator/substitution.rb +2 -0
  102. data/lib/contrast/agent/assess/policy/rewriter_patch.rb +37 -26
  103. data/lib/contrast/agent/assess/policy/source_method.rb +20 -20
  104. data/lib/contrast/agent/assess/policy/source_node.rb +0 -15
  105. data/lib/contrast/agent/assess/policy/trigger/reflected_xss.rb +90 -0
  106. data/lib/contrast/agent/assess/policy/trigger/xpath.rb +57 -0
  107. data/lib/contrast/agent/assess/policy/trigger_method.rb +30 -45
  108. data/lib/contrast/agent/assess/policy/trigger_node.rb +7 -7
  109. data/lib/contrast/agent/assess/policy/trigger_validation/ssrf_validator.rb +2 -31
  110. data/lib/contrast/agent/assess/properties.rb +5 -3
  111. data/lib/contrast/agent/assess/rule/base.rb +1 -20
  112. data/lib/contrast/agent/assess/rule/provider/hardcoded_value_rule.rb +23 -6
  113. data/lib/contrast/agent/assess/rule/redos.rb +4 -5
  114. data/lib/contrast/agent/assess/tag.rb +24 -14
  115. data/lib/contrast/agent/at_exit_hook.rb +16 -13
  116. data/lib/contrast/agent/class_reopener.rb +23 -8
  117. data/lib/contrast/agent/deadzone/policy/policy.rb +2 -2
  118. data/lib/contrast/agent/disable_reaction.rb +3 -4
  119. data/lib/contrast/agent/exclusion_matcher.rb +7 -48
  120. data/lib/contrast/agent/inventory/policy/datastores.rb +54 -0
  121. data/lib/contrast/agent/inventory/policy/policy.rb +1 -1
  122. data/lib/contrast/agent/middleware.rb +101 -260
  123. data/lib/contrast/agent/module_data.rb +2 -1
  124. data/lib/contrast/agent/patching/policy/after_load_patch.rb +13 -3
  125. data/lib/contrast/agent/patching/policy/after_load_patcher.rb +59 -47
  126. data/lib/contrast/agent/patching/policy/method_policy.rb +3 -3
  127. data/lib/contrast/agent/patching/policy/module_policy.rb +0 -25
  128. data/lib/contrast/agent/patching/policy/patch.rb +97 -23
  129. data/lib/contrast/agent/patching/policy/patcher.rb +28 -30
  130. data/lib/contrast/agent/patching/policy/policy.rb +7 -7
  131. data/lib/contrast/agent/patching/policy/policy_node.rb +3 -11
  132. data/lib/contrast/agent/patching/policy/trigger_node.rb +2 -5
  133. data/lib/contrast/agent/protect/policy/applies_command_injection_rule.rb +63 -0
  134. data/lib/contrast/agent/protect/policy/applies_deserialization_rule.rb +52 -0
  135. data/lib/contrast/agent/protect/policy/applies_no_sqli_rule.rb +68 -0
  136. data/lib/contrast/agent/protect/policy/applies_path_traversal_rule.rb +117 -0
  137. data/lib/contrast/agent/protect/policy/applies_sqli_rule.rb +54 -0
  138. data/lib/contrast/agent/protect/policy/applies_xxe_rule.rb +129 -0
  139. data/lib/contrast/agent/protect/policy/policy.rb +6 -6
  140. data/lib/contrast/agent/protect/policy/rule_applicator.rb +51 -0
  141. data/lib/contrast/agent/protect/rule.rb +0 -5
  142. data/lib/contrast/agent/protect/rule/base.rb +19 -37
  143. data/lib/contrast/agent/protect/rule/base_service.rb +3 -1
  144. data/lib/contrast/agent/protect/rule/cmd_injection.rb +12 -15
  145. data/lib/contrast/agent/protect/rule/default_scanner.rb +0 -13
  146. data/lib/contrast/agent/protect/rule/deserialization.rb +2 -0
  147. data/lib/contrast/agent/protect/rule/http_method_tampering.rb +2 -2
  148. data/lib/contrast/agent/protect/rule/no_sqli.rb +4 -4
  149. data/lib/contrast/agent/protect/rule/path_traversal.rb +6 -10
  150. data/lib/contrast/agent/protect/rule/sqli.rb +5 -4
  151. data/lib/contrast/agent/protect/rule/unsafe_file_upload.rb +2 -0
  152. data/lib/contrast/agent/protect/rule/xss.rb +2 -0
  153. data/lib/contrast/agent/protect/rule/xxe.rb +10 -4
  154. data/lib/contrast/agent/railtie.rb +3 -8
  155. data/lib/contrast/agent/reaction_processor.rb +5 -5
  156. data/lib/contrast/agent/request.rb +11 -18
  157. data/lib/contrast/agent/request_context.rb +16 -19
  158. data/lib/contrast/agent/request_handler.rb +35 -0
  159. data/lib/contrast/agent/response.rb +39 -86
  160. data/lib/contrast/agent/rewriter.rb +22 -10
  161. data/lib/contrast/agent/rule_set.rb +49 -0
  162. data/lib/contrast/agent/scope.rb +0 -6
  163. data/lib/contrast/agent/service_heartbeat.rb +3 -4
  164. data/lib/contrast/agent/socket_client.rb +25 -19
  165. data/lib/contrast/agent/static_analysis.rb +41 -0
  166. data/lib/contrast/agent/thread.rb +1 -1
  167. data/lib/contrast/agent/tracepoint_hook.rb +1 -5
  168. data/lib/contrast/agent/version.rb +1 -1
  169. data/lib/contrast/api.rb +1 -1
  170. data/lib/contrast/api/decorators.rb +14 -0
  171. data/lib/contrast/api/decorators/application_settings.rb +37 -0
  172. data/lib/contrast/api/decorators/application_update.rb +66 -0
  173. data/lib/contrast/api/decorators/input_analysis.rb +17 -0
  174. data/lib/contrast/api/decorators/server_features.rb +24 -0
  175. data/lib/contrast/api/speedracer.rb +28 -24
  176. data/lib/contrast/api/tcp_socket.rb +0 -2
  177. data/lib/contrast/components/agent.rb +34 -24
  178. data/lib/contrast/components/app_context.rb +45 -38
  179. data/lib/contrast/components/assess.rb +25 -15
  180. data/lib/contrast/components/config.rb +7 -5
  181. data/lib/contrast/components/contrast_service.rb +23 -71
  182. data/lib/contrast/components/heap_dump.rb +12 -8
  183. data/lib/contrast/components/interface.rb +15 -22
  184. data/lib/contrast/components/inventory.rb +5 -1
  185. data/lib/contrast/components/logger.rb +3 -68
  186. data/lib/contrast/components/protect.rb +40 -4
  187. data/lib/contrast/components/sampling.rb +22 -11
  188. data/lib/contrast/components/scope.rb +2 -52
  189. data/lib/contrast/components/settings.rb +42 -23
  190. data/lib/contrast/config/base_configuration.rb +1 -0
  191. data/lib/contrast/config/default_value.rb +1 -0
  192. data/lib/contrast/config/protect_rule_configuration.rb +0 -14
  193. data/lib/contrast/config/protect_rules_configuration.rb +0 -1
  194. data/lib/contrast/configuration.rb +2 -2
  195. data/lib/contrast/{extensions/ruby_core → extension}/assess.rb +12 -15
  196. data/lib/contrast/extension/assess/array.rb +77 -0
  197. data/lib/contrast/{extensions/ruby_core → extension}/assess/assess_extension.rb +29 -24
  198. data/lib/contrast/{extensions/ruby_core → extension}/assess/erb.rb +0 -8
  199. data/lib/contrast/extension/assess/eval_trigger.rb +78 -0
  200. data/lib/contrast/{extensions/ruby_core → extension}/assess/exec_trigger.rb +7 -9
  201. data/lib/contrast/extension/assess/fiber.rb +113 -0
  202. data/lib/contrast/extension/assess/hash.rb +39 -0
  203. data/lib/contrast/extension/assess/kernel.rb +110 -0
  204. data/lib/contrast/extension/assess/regexp.rb +84 -0
  205. data/lib/contrast/{extensions/ruby_core → extension}/assess/string.rb +18 -10
  206. data/lib/contrast/{extensions/ruby_core → extension}/delegator.rb +0 -0
  207. data/lib/contrast/{extensions/ruby_core → extension}/inventory.rb +2 -2
  208. data/lib/contrast/extension/kernel.rb +54 -0
  209. data/lib/contrast/{extensions/ruby_core → extension}/module.rb +0 -0
  210. data/lib/contrast/{extensions/ruby_core → extension}/protect.rb +2 -2
  211. data/lib/contrast/extension/protect/kernel.rb +44 -0
  212. data/lib/contrast/{extensions/ruby_core → extension}/protect/psych.rb +1 -1
  213. data/lib/contrast/{extensions/ruby_core → extension}/thread.rb +0 -0
  214. data/lib/contrast/framework/base_support.rb +32 -0
  215. data/lib/contrast/framework/manager.rb +59 -8
  216. data/lib/contrast/framework/platform_version.rb +1 -0
  217. data/lib/contrast/framework/rack/patch/session_cookie.rb +126 -0
  218. data/lib/contrast/framework/rack/patch/support.rb +24 -0
  219. data/lib/contrast/framework/rack/support.rb +22 -0
  220. data/lib/contrast/framework/rails/patch/action_controller_live_buffer.rb +43 -0
  221. data/lib/contrast/framework/rails/patch/assess_configuration.rb +103 -0
  222. data/lib/contrast/framework/rails/patch/rails_application_configuration.rb +31 -0
  223. data/lib/contrast/framework/rails/patch/support.rb +67 -0
  224. data/lib/contrast/framework/rails/rewrite/action_controller_railties_helper_inherited.rb +34 -0
  225. data/lib/contrast/framework/rails/rewrite/active_record_attribute_methods_read.rb +39 -0
  226. data/lib/contrast/framework/rails/rewrite/active_record_named.rb +73 -0
  227. data/lib/contrast/framework/rails/rewrite/active_record_time_zone_inherited.rb +33 -0
  228. data/lib/contrast/framework/rails/support.rb +115 -0
  229. data/lib/contrast/framework/sinatra/application_helper.rb +51 -0
  230. data/lib/contrast/framework/sinatra/patch/base.rb +83 -0
  231. data/lib/contrast/framework/sinatra/patch/support.rb +27 -0
  232. data/lib/contrast/framework/sinatra/support.rb +109 -0
  233. data/lib/contrast/framework/view_technologies_descriptor.rb +1 -0
  234. data/lib/contrast/logger/application.rb +80 -0
  235. data/lib/contrast/logger/log.rb +143 -0
  236. data/lib/contrast/logger/time.rb +50 -0
  237. data/lib/contrast/tasks/config.rb +54 -0
  238. data/lib/contrast/tasks/service.rb +3 -13
  239. data/lib/contrast/utils/assess/sampling_util.rb +4 -9
  240. data/lib/contrast/utils/assess/tracking_util.rb +7 -1
  241. data/lib/contrast/utils/boolean_util.rb +2 -2
  242. data/lib/contrast/utils/cache.rb +0 -11
  243. data/lib/contrast/utils/class_util.rb +24 -3
  244. data/lib/contrast/utils/gemfile_reader.rb +7 -5
  245. data/lib/contrast/utils/hash_digest.rb +2 -11
  246. data/lib/contrast/utils/heap_dump_util.rb +12 -11
  247. data/lib/contrast/utils/invalid_configuration_util.rb +4 -4
  248. data/lib/contrast/utils/inventory_util.rb +2 -2
  249. data/lib/contrast/utils/io_util.rb +1 -11
  250. data/lib/contrast/utils/job_servers_running.rb +6 -4
  251. data/lib/contrast/utils/object_share.rb +1 -28
  252. data/lib/contrast/utils/os.rb +1 -25
  253. data/lib/contrast/utils/service_response_util.rb +36 -60
  254. data/lib/contrast/utils/service_sender_util.rb +84 -23
  255. data/lib/contrast/utils/sinatra_helper.rb +0 -6
  256. data/lib/contrast/utils/stack_trace_utils.rb +86 -182
  257. data/lib/contrast/utils/string_utils.rb +18 -2
  258. data/lib/contrast/utils/tag_util.rb +11 -1
  259. data/lib/contrast/utils/thread_tracker.rb +2 -2
  260. data/lib/contrast/utils/timer.rb +0 -40
  261. data/resources/assess/policy.json +42 -71
  262. data/resources/inventory/policy.json +2 -2
  263. data/resources/protect/policy.json +15 -15
  264. data/ruby-agent.gemspec +11 -4
  265. data/service_executables/VERSION +1 -1
  266. data/service_executables/linux/contrast-service +0 -0
  267. data/service_executables/mac/contrast-service +0 -0
  268. metadata +126 -113
  269. data/ext/cs__assess_regexp_track/cs__assess_regexp_track.c +0 -63
  270. data/ext/cs__assess_regexp_track/cs__assess_regexp_track.h +0 -29
  271. data/ext/cs__assess_regexp_track/extconf.rb +0 -2
  272. data/funchook/src/libfunchook.so +0 -0
  273. data/lib/contrast/agent/assess/frozen_properties.rb +0 -41
  274. data/lib/contrast/agent/assess/rule/csrf.rb +0 -66
  275. data/lib/contrast/agent/assess/rule/csrf/csrf_action.rb +0 -28
  276. data/lib/contrast/agent/assess/rule/csrf/csrf_applicator.rb +0 -73
  277. data/lib/contrast/agent/assess/rule/csrf/csrf_watcher.rb +0 -132
  278. data/lib/contrast/agent/assess/rule/response_scanning_rule.rb +0 -47
  279. data/lib/contrast/agent/assess/rule/response_watcher.rb +0 -36
  280. data/lib/contrast/agent/assess/rule/watcher.rb +0 -36
  281. data/lib/contrast/agent/feature_state.rb +0 -376
  282. data/lib/contrast/agent/logger_manager.rb +0 -116
  283. data/lib/contrast/agent/protect/rule/csrf.rb +0 -118
  284. data/lib/contrast/agent/protect/rule/csrf/csrf_evaluator.rb +0 -103
  285. data/lib/contrast/agent/protect/rule/csrf/csrf_token_injector.rb +0 -85
  286. data/lib/contrast/agent/settings_state.rb +0 -152
  287. data/lib/contrast/delegators.rb +0 -9
  288. data/lib/contrast/delegators/application_update.rb +0 -32
  289. data/lib/contrast/extensions/framework/rack/cookie.rb +0 -24
  290. data/lib/contrast/extensions/framework/rack/request.rb +0 -24
  291. data/lib/contrast/extensions/framework/rack/response.rb +0 -23
  292. data/lib/contrast/extensions/framework/rails/action_controller_railties_helper_inherited.rb +0 -20
  293. data/lib/contrast/extensions/framework/rails/active_record.rb +0 -26
  294. data/lib/contrast/extensions/framework/rails/active_record_named.rb +0 -53
  295. data/lib/contrast/extensions/framework/rails/active_record_time_zone_inherited.rb +0 -21
  296. data/lib/contrast/extensions/framework/rails/buffer.rb +0 -28
  297. data/lib/contrast/extensions/framework/rails/configuration.rb +0 -27
  298. data/lib/contrast/extensions/framework/sinatra/base.rb +0 -59
  299. data/lib/contrast/extensions/ruby_core/assess/array.rb +0 -59
  300. data/lib/contrast/extensions/ruby_core/assess/basic_object.rb +0 -15
  301. data/lib/contrast/extensions/ruby_core/assess/fiber.rb +0 -124
  302. data/lib/contrast/extensions/ruby_core/assess/hash.rb +0 -22
  303. data/lib/contrast/extensions/ruby_core/assess/kernel.rb +0 -95
  304. data/lib/contrast/extensions/ruby_core/assess/module.rb +0 -14
  305. data/lib/contrast/extensions/ruby_core/assess/regexp.rb +0 -206
  306. data/lib/contrast/extensions/ruby_core/assess/tilt_template_trigger.rb +0 -73
  307. data/lib/contrast/extensions/ruby_core/assess/xpath_library_trigger.rb +0 -40
  308. data/lib/contrast/extensions/ruby_core/eval_trigger.rb +0 -52
  309. data/lib/contrast/extensions/ruby_core/inventory/datastores.rb +0 -37
  310. data/lib/contrast/extensions/ruby_core/protect/applies_command_injection_rule.rb +0 -72
  311. data/lib/contrast/extensions/ruby_core/protect/applies_deserialization_rule.rb +0 -60
  312. data/lib/contrast/extensions/ruby_core/protect/applies_no_sqli_rule.rb +0 -83
  313. data/lib/contrast/extensions/ruby_core/protect/applies_path_traversal_rule.rb +0 -123
  314. data/lib/contrast/extensions/ruby_core/protect/applies_sqli_rule.rb +0 -65
  315. data/lib/contrast/extensions/ruby_core/protect/applies_xxe_rule.rb +0 -143
  316. data/lib/contrast/extensions/ruby_core/protect/kernel.rb +0 -30
  317. data/lib/contrast/framework/rails_support.rb +0 -88
  318. data/lib/contrast/framework/sinatra_application_helper.rb +0 -49
  319. data/lib/contrast/framework/sinatra_support.rb +0 -94
  320. data/lib/contrast/utils/comment_range.rb +0 -19
  321. data/lib/contrast/utils/data_store_util.rb +0 -23
  322. data/lib/contrast/utils/environment_util.rb +0 -81
  323. data/lib/contrast/utils/performs_logging.rb +0 -152
  324. data/lib/contrast/utils/rack_assess_session_cookie.rb +0 -104
  325. data/lib/contrast/utils/rails_assess_configuration.rb +0 -95
  326. data/lib/contrast/utils/random_util.rb +0 -22
  327. data/resources/csrf/inject.js +0 -44
  328. data/resources/factory-bot-spec/spec_helper.rb +0 -30
  329. data/resources/rubocops/kernel/catch_cop.rb +0 -37
  330. data/resources/rubocops/kernel/require_cop.rb +0 -37
  331. data/resources/rubocops/kernel/require_relative_cop.rb +0 -33
  332. data/resources/rubocops/module/autoload_cop.rb +0 -37
  333. data/resources/rubocops/module/const_defined_cop.rb +0 -37
  334. data/resources/rubocops/module/const_get_cop.rb +0 -37
  335. data/resources/rubocops/module/const_set_cop.rb +0 -37
  336. data/resources/rubocops/module/constants_cop.rb +0 -37
  337. data/resources/rubocops/module/name_cop.rb +0 -37
  338. data/resources/rubocops/object/class_cop.rb +0 -37
  339. data/resources/rubocops/object/freeze_cop.rb +0 -37
  340. data/resources/rubocops/object/frozen_cop.rb +0 -37
  341. data/resources/rubocops/object/is_a_cop.rb +0 -37
  342. data/resources/rubocops/object/method_cop.rb +0 -37
  343. data/resources/rubocops/object/respond_to_cop.rb +0 -37
  344. data/resources/rubocops/object/singleton_class_cop.rb +0 -37
  345. data/resources/rubocops/regexp/spelling_cop.rb +0 -44
  346. data/resources/rubocops/thread/new_cop.rb +0 -39
  347. data/resources/ruby-spec/ancestors_spec.rb +0 -70
  348. data/resources/ruby-spec/modulo_spec.rb +0 -831
  349. data/resources/ruby-spec/parameters_spec.rb +0 -261
  350. data/resources/ruby-spec/ruby_spec_spec_helper.rb +0 -35
@@ -1,10 +1,5 @@
1
1
  #include <ruby.h>
2
-
3
- typedef enum {
4
- IMPL_ALIAS_INSTANCE,
5
- IMPL_ALIAS_SINGLETON,
6
- IMPL_PREPEND
7
- } patch_impl;
2
+ #include "../cs__common/cs__common.h"
8
3
 
9
4
  /* Calls to Contrast modules */
10
5
  /* Contrast::Agent::Patching::Policy::PatchStatus */
@@ -1,2 +1,5 @@
1
+ # Copyright (c) 2020 Contrast Security, Inc. See https://www.contrastsecurity.com/enduser-terms-0317a for more details.
2
+ # frozen_string_literal: true
3
+
1
4
  $TO_MAKE = File.basename(__dir__)
2
5
  require_relative '../extconf_common'
@@ -9,12 +9,23 @@ static VALUE contrast_protect_fork(const int argc, const VALUE *argv,
9
9
  const VALUE self) {
10
10
  VALUE ret;
11
11
  if (rb_block_given_p()) {
12
+ /* We call our hook, but it's a little complicated.
13
+ * We wrap the fork block with our own lambda in
14
+ * order to instrument it. There are no public
15
+ * methods in the Ruby C API to set the prevailing
16
+ * block, so we have to use rb_funcall_with_block.
17
+ * Also, rb_funcall_with_block does a public call,
18
+ * and our method is private.
19
+ * So we (as a hack) temporarily set it to public.
20
+ */
12
21
  VALUE wrapper;
13
22
  wrapper =
14
- rb_funcall_with_block(rb_mKernel, rb_sym_protect_kernel_wrapper, 0,
15
- NULL, rb_block_proc());
23
+ rb_funcall_with_block(kernel_protect, rb_sym_protect_kernel_wrapper, 0,
24
+ NULL, rb_block_proc());
25
+ rb_funcall(rb_mKernel, rb_intern("public"), 1, ID2SYM(rb_sym_protect_kernel_fork));
16
26
  ret = rb_funcall_with_block(self, rb_sym_protect_kernel_fork, argc,
17
27
  argv, wrapper);
28
+ rb_funcall(rb_mKernel, rb_intern("private"), 1, ID2SYM(rb_sym_protect_kernel_fork));
18
29
  } else {
19
30
  ret = rb_funcall2(self, rb_sym_protect_kernel_fork, argc, argv);
20
31
  }
@@ -22,16 +33,16 @@ static VALUE contrast_protect_fork(const int argc, const VALUE *argv,
22
33
  }
23
34
 
24
35
  void Init_cs__protect_kernel(void) {
36
+ VALUE core_protect = rb_define_module_under(core_extensions, "Protect");
37
+ kernel_protect = rb_define_module_under(core_protect, "Kernel");
38
+ rb_sym_protect_kernel_wrapper = rb_intern("build_wrapper");
25
39
 
26
- rb_sym_protect_kernel_fork = rb_intern("cs__protect_kernel_fork");
27
- rb_sym_protect_kernel_wrapper = rb_intern("cs__protect_build_wrapper");
40
+ rb_sym_protect_kernel_fork = contrast_register_patch("Kernel",
41
+ "fork",
42
+ &contrast_protect_fork);
43
+
44
+ rb_sym_protect_kernel_fork = contrast_register_singleton_patch("Kernel",
45
+ "fork",
46
+ &contrast_protect_fork);
28
47
 
29
- VALUE singleton = rb_singleton_class(rb_mKernel);
30
- contrast_alias_method(rb_mKernel, "cs__protect_kernel_fork", "fork");
31
- contrast_alias_method(singleton, "cs__protect_kernel_fork", "fork");
32
- rb_define_module_function(rb_mKernel, "fork", contrast_protect_fork, -1);
33
- // Kernel#fork, as opposed to Kernel.fork, is private. Restore that.
34
- rb_funcall(rb_mKernel, rb_intern("public"), 1,
35
- ID2SYM(rb_intern("cs__protect_kernel_fork")));
36
- rb_funcall(rb_mKernel, rb_intern("private"), 1, ID2SYM(rb_intern("fork")));
37
48
  }
@@ -2,6 +2,7 @@
2
2
 
3
3
  extern VALUE rb_vm_top_self(void);
4
4
 
5
+ static VALUE kernel_protect;
5
6
  static VALUE rb_sym_protect_kernel_fork;
6
7
  static VALUE rb_sym_protect_kernel_wrapper;
7
8
 
@@ -1,2 +1,5 @@
1
+ # Copyright (c) 2020 Contrast Security, Inc. See https://www.contrastsecurity.com/enduser-terms-0317a for more details.
2
+ # frozen_string_literal: true
3
+
1
4
  $TO_MAKE = File.basename(__dir__)
2
5
  require_relative '../extconf_common'
@@ -1,6 +1,7 @@
1
1
  # Copyright (c) 2020 Contrast Security, Inc. See https://www.contrastsecurity.com/enduser-terms-0317a for more details.
2
- require 'mkmf'
2
+ # frozen_string_literal: true
3
3
 
4
+ require 'mkmf'
4
5
  require_relative '../lib/contrast/agent/version'
5
6
 
6
7
  def name
@@ -8,7 +9,7 @@ def name
8
9
  end
9
10
 
10
11
  def make!
11
- create_makefile "#{name}/#{name}"
12
+ create_makefile "#{ name }/#{ name }"
12
13
  end
13
14
 
14
15
  def ext_path
@@ -18,23 +19,24 @@ def ext_path
18
19
  end
19
20
 
20
21
  def rpath_root
21
- if (darwin = !(/darwin/ =~ RUBY_PLATFORM).nil?)
22
- "@loader_path"
22
+ if (/darwin/ =~ RUBY_PLATFORM).nil?
23
+ '\$${ORIGIN}'
23
24
  else
24
- "\\$${ORIGIN}"
25
+ '@loader_path'
25
26
  end
26
27
  end
27
28
 
28
29
  def funchook_rpath!
29
- options = " -Wl,-rpath,#{rpath_root}/../../shared_libraries"
30
+ options = " -Wl,-rpath,#{ rpath_root }/../../shared_libraries"
30
31
  raise unless try_link('int main() {return 0;}', options)
32
+
31
33
  $LDFLAGS << options
32
- $LDFLAGS << " -L#{__dir__}/../shared_libraries"
34
+ $LDFLAGS << " -L#{ __dir__ }/../shared_libraries"
33
35
 
34
36
  find_header('funchook.h', ext_path)
35
37
  have_header('funchook.h')
36
38
 
37
- find_library('funchook', 'funchook_create', "../shared_libraries")
39
+ find_library('funchook', 'funchook_create', '../shared_libraries')
38
40
  find_library('funchook', 'funchook_install')
39
41
  find_library('funchook', 'funchook_prepare')
40
42
  have_library('funchook', 'funchook_create')
@@ -665,7 +665,6 @@ infodir
665
665
  docdir
666
666
  oldincludedir
667
667
  includedir
668
- runstatedir
669
668
  localstatedir
670
669
  sharedstatedir
671
670
  sysconfdir
@@ -736,7 +735,6 @@ datadir='${datarootdir}'
736
735
  sysconfdir='${prefix}/etc'
737
736
  sharedstatedir='${prefix}/com'
738
737
  localstatedir='${prefix}/var'
739
- runstatedir='${localstatedir}/run'
740
738
  includedir='${prefix}/include'
741
739
  oldincludedir='/usr/include'
742
740
  docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
@@ -989,15 +987,6 @@ do
989
987
  | -silent | --silent | --silen | --sile | --sil)
990
988
  silent=yes ;;
991
989
 
992
- -runstatedir | --runstatedir | --runstatedi | --runstated \
993
- | --runstate | --runstat | --runsta | --runst | --runs \
994
- | --run | --ru | --r)
995
- ac_prev=runstatedir ;;
996
- -runstatedir=* | --runstatedir=* | --runstatedi=* | --runstated=* \
997
- | --runstate=* | --runstat=* | --runsta=* | --runst=* | --runs=* \
998
- | --run=* | --ru=* | --r=*)
999
- runstatedir=$ac_optarg ;;
1000
-
1001
990
  -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1002
991
  ac_prev=sbindir ;;
1003
992
  -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
@@ -1135,7 +1124,7 @@ fi
1135
1124
  for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1136
1125
  datadir sysconfdir sharedstatedir localstatedir includedir \
1137
1126
  oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1138
- libdir localedir mandir runstatedir
1127
+ libdir localedir mandir
1139
1128
  do
1140
1129
  eval ac_val=\$$ac_var
1141
1130
  # Remove trailing slashes.
@@ -1288,7 +1277,6 @@ Fine tuning of the installation directories:
1288
1277
  --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1289
1278
  --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1290
1279
  --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1291
- --runstatedir=DIR modifiable per-process data [LOCALSTATEDIR/run]
1292
1280
  --libdir=DIR object code libraries [EPREFIX/lib]
1293
1281
  --includedir=DIR C header files [PREFIX/include]
1294
1282
  --oldincludedir=DIR C header files for non-gcc [/usr/include]
@@ -1,4 +1,4 @@
1
- # This file was generated by Autom4te Sun Aug 20 18:29:13 UTC 2017.
1
+ # This file was generated.
2
2
  # It contains the lists of macros which have been traced.
3
3
  # It can be safely removed.
4
4
 
@@ -7,71 +7,70 @@
7
7
  '0',
8
8
  1,
9
9
  [
10
- '/usr/share/autoconf'
10
+ '/usr/local/Cellar/autoconf/2.69/share/autoconf'
11
11
  ],
12
12
  [
13
- '/usr/share/autoconf/autoconf/autoconf.m4f',
13
+ '/usr/local/Cellar/autoconf/2.69/share/autoconf/autoconf/autoconf.m4f',
14
14
  'configure.ac'
15
15
  ],
16
16
  {
17
- 'AM_PROG_AR' => 1,
18
- 'LT_CONFIG_LTDL_DIR' => 1,
19
- 'm4_pattern_forbid' => 1,
20
- 'AM_NLS' => 1,
21
- 'AC_REQUIRE_AUX_FILE' => 1,
22
- 'AM_PATH_GUILE' => 1,
23
- 'AC_FC_PP_SRCEXT' => 1,
17
+ 'AC_SUBST' => 1,
18
+ 'LT_INIT' => 1,
19
+ 'include' => 1,
20
+ 'AM_MAINTAINER_MODE' => 1,
24
21
  'm4_pattern_allow' => 1,
25
- 'AM_MAKEFILE_INCLUDE' => 1,
26
- '_m4_warn' => 1,
27
- 'AC_CONFIG_FILES' => 1,
28
- 'AC_INIT' => 1,
29
- 'AM_XGETTEXT_OPTION' => 1,
30
- 'm4_include' => 1,
31
- 'AC_FC_SRCEXT' => 1,
32
- 'LT_SUPPORTED_TAG' => 1,
22
+ '_AM_MAKEFILE_INCLUDE' => 1,
23
+ 'AM_SILENT_RULES' => 1,
33
24
  'AM_CONDITIONAL' => 1,
25
+ 'LT_CONFIG_LTDL_DIR' => 1,
26
+ 'AM_PROG_F77_C_O' => 1,
27
+ 'sinclude' => 1,
28
+ 'AM_PROG_MOC' => 1,
29
+ 'm4_sinclude' => 1,
30
+ 'AC_FC_SRCEXT' => 1,
34
31
  '_AM_COND_ENDIF' => 1,
35
- 'AM_INIT_AUTOMAKE' => 1,
36
- 'AC_CANONICAL_SYSTEM' => 1,
37
- 'AC_FC_PP_DEFINE' => 1,
32
+ 'AC_CONFIG_LIBOBJ_DIR' => 1,
33
+ 'LT_SUPPORTED_TAG' => 1,
34
+ 'AC_CONFIG_AUX_DIR' => 1,
35
+ 'AM_MAKEFILE_INCLUDE' => 1,
36
+ 'AM_PROG_CC_C_O' => 1,
37
+ 'AM_POT_TOOLS' => 1,
38
+ 'AM_GNU_GETTEXT' => 1,
38
39
  'AH_OUTPUT' => 1,
40
+ 'AC_SUBST_TRACE' => 1,
41
+ 'AM_NLS' => 1,
39
42
  '_AM_SUBST_NOTMAKE' => 1,
43
+ 'm4_include' => 1,
44
+ 'AM_PROG_AR' => 1,
45
+ 'AC_FC_PP_DEFINE' => 1,
46
+ 'AC_CANONICAL_SYSTEM' => 1,
47
+ 'AM_XGETTEXT_OPTION' => 1,
48
+ 'AC_LIBSOURCE' => 1,
49
+ '_AM_COND_ELSE' => 1,
40
50
  'AM_AUTOMAKE_VERSION' => 1,
41
- '_AM_COND_IF' => 1,
42
- 'AM_GNU_GETTEXT_INTL_SUBDIR' => 1,
51
+ 'AC_PROG_LIBTOOL' => 1,
52
+ 'AC_CONFIG_SUBDIRS' => 1,
53
+ 'AC_CANONICAL_HOST' => 1,
54
+ 'AC_CONFIG_FILES' => 1,
55
+ 'AC_CONFIG_HEADERS' => 1,
43
56
  'AC_CONFIG_LINKS' => 1,
44
- '_AM_COND_ELSE' => 1,
45
- 'AM_PROG_CXX_C_O' => 1,
57
+ 'AM_GNU_GETTEXT_INTL_SUBDIR' => 1,
46
58
  'AC_CANONICAL_BUILD' => 1,
47
- '_LT_AC_TAGCONFIG' => 1,
48
- 'AM_ENABLE_MULTILIB' => 1,
49
- 'AC_FC_FREEFORM' => 1,
50
- 'AM_GNU_GETTEXT' => 1,
51
- 'AM_PROG_MOC' => 1,
52
- 'AC_LIBSOURCE' => 1,
53
- '_AM_MAKEFILE_INCLUDE' => 1,
59
+ '_m4_warn' => 1,
60
+ 'AC_INIT' => 1,
61
+ 'AM_INIT_AUTOMAKE' => 1,
62
+ 'AC_FC_PP_SRCEXT' => 1,
63
+ 'AM_PROG_FC_C_O' => 1,
54
64
  'AC_CANONICAL_TARGET' => 1,
55
- 'AM_SILENT_RULES' => 1,
56
- 'LT_INIT' => 1,
57
- 'AC_CANONICAL_HOST' => 1,
58
- 'AC_CONFIG_AUX_DIR' => 1,
59
- 'm4_sinclude' => 1,
60
- 'AM_PROG_CC_C_O' => 1,
61
65
  'AC_DEFINE_TRACE_LITERAL' => 1,
62
- 'AM_PROG_LIBTOOL' => 1,
63
- 'AC_CONFIG_HEADERS' => 1,
64
- 'AM_MAINTAINER_MODE' => 1,
65
- 'include' => 1,
66
- 'sinclude' => 1,
67
- 'AM_POT_TOOLS' => 1,
68
- 'AC_PROG_LIBTOOL' => 1,
69
- 'AC_CONFIG_LIBOBJ_DIR' => 1,
70
- 'AC_CONFIG_SUBDIRS' => 1,
71
- 'AM_PROG_FC_C_O' => 1,
72
- 'AM_PROG_F77_C_O' => 1,
73
- 'AC_SUBST_TRACE' => 1,
74
- 'AC_SUBST' => 1
66
+ 'AM_PROG_CXX_C_O' => 1,
67
+ '_LT_AC_TAGCONFIG' => 1,
68
+ '_AM_COND_IF' => 1,
69
+ 'AM_PATH_GUILE' => 1,
70
+ 'AC_FC_FREEFORM' => 1,
71
+ 'm4_pattern_forbid' => 1,
72
+ 'AC_REQUIRE_AUX_FILE' => 1,
73
+ 'AM_ENABLE_MULTILIB' => 1
75
74
  }
76
75
  ], 'Autom4te::Request' )
77
76
  );
@@ -63,9 +63,6 @@ m4trace:configure.ac:1: -1- m4_pattern_allow([^sharedstatedir$])
63
63
  m4trace:configure.ac:1: -1- AC_SUBST([localstatedir], ['${prefix}/var'])
64
64
  m4trace:configure.ac:1: -1- AC_SUBST_TRACE([localstatedir])
65
65
  m4trace:configure.ac:1: -1- m4_pattern_allow([^localstatedir$])
66
- m4trace:configure.ac:1: -1- AC_SUBST([runstatedir], ['${localstatedir}/run'])
67
- m4trace:configure.ac:1: -1- AC_SUBST_TRACE([runstatedir])
68
- m4trace:configure.ac:1: -1- m4_pattern_allow([^runstatedir$])
69
66
  m4trace:configure.ac:1: -1- AC_SUBST([includedir], ['${prefix}/include'])
70
67
  m4trace:configure.ac:1: -1- AC_SUBST_TRACE([includedir])
71
68
  m4trace:configure.ac:1: -1- m4_pattern_allow([^includedir$])
@@ -10,109 +10,118 @@ generated by GNU Autoconf 2.69. Invocation command line was
10
10
  ## Platform. ##
11
11
  ## --------- ##
12
12
 
13
- hostname = cc581e4e-56c0-47a6-adc9-1640568f2129-b5bh6
13
+ hostname = donalds-mbp-2.lan
14
14
  uname -m = x86_64
15
- uname -r = 4.19.95-flatcar
16
- uname -s = Linux
17
- uname -v = #1 SMP Sat Feb 8 07:25:12 -00 2020
15
+ uname -r = 18.6.0
16
+ uname -s = Darwin
17
+ uname -v = Darwin Kernel Version 18.6.0: Thu Apr 25 23:16:27 PDT 2019; root:xnu-4903.261.4~2/RELEASE_X86_64
18
18
 
19
- /usr/bin/uname -p = unknown
19
+ /usr/bin/uname -p = i386
20
20
  /bin/uname -X = unknown
21
21
 
22
22
  /bin/arch = unknown
23
23
  /usr/bin/arch -k = unknown
24
24
  /usr/convex/getsysinfo = unknown
25
- /usr/bin/hostinfo = unknown
25
+ /usr/bin/hostinfo = Mach kernel version:
26
+ Darwin Kernel Version 18.6.0: Thu Apr 25 23:16:27 PDT 2019; root:xnu-4903.261.4~2/RELEASE_X86_64
27
+ Kernel configured for up to 16 processors.
28
+ 8 processors are physically available.
29
+ 16 processors are logically available.
30
+ Processor type: x86_64h (Intel x86-64h Haswell)
31
+ Processors active: 0 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15
32
+ Primary memory available: 32.00 gigabytes
33
+ Default processor set: 466 tasks, 2706 threads, 16 processors
34
+ Load average: 5.07, Mach factor: 10.92
26
35
  /bin/machine = unknown
27
36
  /usr/bin/oslevel = unknown
28
37
  /bin/universe = unknown
29
38
 
30
- PATH: /usr/local/bundle/bin
31
- PATH: /usr/local/sbin
39
+ PATH: /Users/donaldpropst/.rvm/gems/ruby-2.6.6@agent/bin
40
+ PATH: /Users/donaldpropst/.rvm/gems/ruby-2.6.6@global/bin
41
+ PATH: /Users/donaldpropst/.rvm/rubies/ruby-2.6.6/bin
42
+ PATH: /Users/donaldpropst/.rvm/bin
43
+ PATH: /Users/donaldpropst/.yarn/bin
44
+ PATH: /Library/Frameworks/Python.framework/Versions/3.8/bin
32
45
  PATH: /usr/local/bin
33
- PATH: /usr/sbin
34
46
  PATH: /usr/bin
35
- PATH: /sbin
36
47
  PATH: /bin
48
+ PATH: /usr/sbin
49
+ PATH: /sbin
50
+ PATH: /Users/donaldpropst/go
51
+ PATH: /usr/local/go/bin
37
52
 
38
53
 
39
54
  ## ----------- ##
40
55
  ## Core tests. ##
41
56
  ## ----------- ##
42
57
 
43
- configure:2271: checking for gcc
44
- configure:2287: found /usr/bin/gcc
45
- configure:2298: result: gcc
46
- configure:2527: checking for C compiler version
47
- configure:2536: gcc --version >&5
48
- gcc (Debian 8.3.0-6) 8.3.0
49
- Copyright (C) 2018 Free Software Foundation, Inc.
50
- This is free software; see the source for copying conditions. There is NO
51
- warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
52
-
53
- configure:2547: $? = 0
54
- configure:2536: gcc -v >&5
55
- Using built-in specs.
56
- COLLECT_GCC=gcc
57
- COLLECT_LTO_WRAPPER=/usr/lib/gcc/x86_64-linux-gnu/8/lto-wrapper
58
- OFFLOAD_TARGET_NAMES=nvptx-none
59
- OFFLOAD_TARGET_DEFAULT=1
60
- Target: x86_64-linux-gnu
61
- Configured with: ../src/configure -v --with-pkgversion='Debian 8.3.0-6' --with-bugurl=file:///usr/share/doc/gcc-8/README.Bugs --enable-languages=c,ada,c++,go,brig,d,fortran,objc,obj-c++ --prefix=/usr --with-gcc-major-version-only --program-suffix=-8 --program-prefix=x86_64-linux-gnu- --enable-shared --enable-linker-build-id --libexecdir=/usr/lib --without-included-gettext --enable-threads=posix --libdir=/usr/lib --enable-nls --enable-bootstrap --enable-clocale=gnu --enable-libstdcxx-debug --enable-libstdcxx-time=yes --with-default-libstdcxx-abi=new --enable-gnu-unique-object --disable-vtable-verify --enable-libmpx --enable-plugin --enable-default-pie --with-system-zlib --with-target-system-zlib --enable-objc-gc=auto --enable-multiarch --disable-werror --with-arch-32=i686 --with-abi=m64 --with-multilib-list=m32,m64,mx32 --enable-multilib --with-tune=generic --enable-offload-targets=nvptx-none --without-cuda-driver --enable-checking=release --build=x86_64-linux-gnu --host=x86_64-linux-gnu --target=x86_64-linux-gnu
58
+ configure:2263: checking for gcc
59
+ configure:2279: found /usr/bin/gcc
60
+ configure:2290: result: gcc
61
+ configure:2519: checking for C compiler version
62
+ configure:2528: gcc --version >&5
63
+ Apple LLVM version 10.0.1 (clang-1001.0.46.4)
64
+ Target: x86_64-apple-darwin18.6.0
65
+ Thread model: posix
66
+ InstalledDir: /Library/Developer/CommandLineTools/usr/bin
67
+ Configured with: --prefix=/Library/Developer/CommandLineTools/usr --with-gxx-include-dir=/Library/Developer/CommandLineTools/SDKs/MacOSX10.14.sdk/usr/include/c++/4.2.1
68
+ configure:2539: $? = 0
69
+ configure:2528: gcc -v >&5
70
+ Configured with: --prefix=/Library/Developer/CommandLineTools/usr --with-gxx-include-dir=/Library/Developer/CommandLineTools/SDKs/MacOSX10.14.sdk/usr/include/c++/4.2.1
71
+ Apple LLVM version 10.0.1 (clang-1001.0.46.4)
72
+ Target: x86_64-apple-darwin18.6.0
62
73
  Thread model: posix
63
- gcc version 8.3.0 (Debian 8.3.0-6)
64
- configure:2547: $? = 0
65
- configure:2536: gcc -V >&5
66
- gcc: error: unrecognized command line option '-V'
67
- gcc: fatal error: no input files
68
- compilation terminated.
69
- configure:2547: $? = 1
70
- configure:2536: gcc -qversion >&5
71
- gcc: error: unrecognized command line option '-qversion'; did you mean '--version'?
72
- gcc: fatal error: no input files
73
- compilation terminated.
74
- configure:2547: $? = 1
75
- configure:2567: checking whether the C compiler works
76
- configure:2589: gcc conftest.c >&5
77
- configure:2593: $? = 0
78
- configure:2641: result: yes
79
- configure:2644: checking for C compiler default output file name
80
- configure:2646: result: a.out
81
- configure:2652: checking for suffix of executables
82
- configure:2659: gcc -o conftest conftest.c >&5
83
- configure:2663: $? = 0
84
- configure:2685: result:
85
- configure:2707: checking whether we are cross compiling
86
- configure:2715: gcc -o conftest conftest.c >&5
87
- configure:2719: $? = 0
88
- configure:2726: ./conftest
89
- configure:2730: $? = 0
90
- configure:2718: result: no
91
- configure:2723: checking for suffix of object files
92
- configure:2745: gcc -c conftest.c >&5
93
- configure:2749: $? = 0
94
- configure:2770: result: o
95
- configure:2774: checking whether we are using the GNU C compiler
96
- configure:2793: gcc -c conftest.c >&5
97
- configure:2793: $? = 0
98
- configure:2802: result: yes
99
- configure:2811: checking whether gcc accepts -g
100
- configure:2831: gcc -c -g conftest.c >&5
101
- configure:2831: $? = 0
102
- configure:2872: result: yes
103
- configure:2889: checking for gcc option to accept ISO C89
104
- configure:2952: gcc -c -g -O2 conftest.c >&5
105
- configure:2952: $? = 0
106
- configure:2965: result: none needed
107
- configure:2991: checking how to run the C preprocessor
108
- configure:3022: gcc -E conftest.c
109
- configure:3022: $? = 0
110
- configure:3036: gcc -E conftest.c
111
- conftest.c:9:10: fatal error: ac_nonexistent.h: No such file or directory
112
- #include <ac_nonexistent.h>
113
- ^~~~~~~~~~~~~~~~~~
114
- compilation terminated.
115
- configure:3036: $? = 1
74
+ InstalledDir: /Library/Developer/CommandLineTools/usr/bin
75
+ configure:2539: $? = 0
76
+ configure:2528: gcc -V >&5
77
+ clang: error: unsupported option '-V -Wno-atomic-implicit-seq-cst'
78
+ clang: error: no input files
79
+ configure:2539: $? = 1
80
+ configure:2528: gcc -qversion >&5
81
+ clang: error: unknown argument '-qversion', did you mean '--version'?
82
+ clang: error: no input files
83
+ configure:2539: $? = 1
84
+ configure:2559: checking whether the C compiler works
85
+ configure:2581: gcc conftest.c >&5
86
+ configure:2585: $? = 0
87
+ configure:2633: result: yes
88
+ configure:2636: checking for C compiler default output file name
89
+ configure:2638: result: a.out
90
+ configure:2644: checking for suffix of executables
91
+ configure:2651: gcc -o conftest conftest.c >&5
92
+ configure:2655: $? = 0
93
+ configure:2677: result:
94
+ configure:2699: checking whether we are cross compiling
95
+ configure:2707: gcc -o conftest conftest.c >&5
96
+ configure:2711: $? = 0
97
+ configure:2718: ./conftest
98
+ configure:2722: $? = 0
99
+ configure:2737: result: no
100
+ configure:2742: checking for suffix of object files
101
+ configure:2764: gcc -c conftest.c >&5
102
+ configure:2768: $? = 0
103
+ configure:2789: result: o
104
+ configure:2793: checking whether we are using the GNU C compiler
105
+ configure:2812: gcc -c conftest.c >&5
106
+ configure:2812: $? = 0
107
+ configure:2821: result: yes
108
+ configure:2830: checking whether gcc accepts -g
109
+ configure:2850: gcc -c -g conftest.c >&5
110
+ configure:2850: $? = 0
111
+ configure:2891: result: yes
112
+ configure:2908: checking for gcc option to accept ISO C89
113
+ configure:2971: gcc -c -g -O2 conftest.c >&5
114
+ configure:2971: $? = 0
115
+ configure:2984: result: none needed
116
+ configure:3010: checking how to run the C preprocessor
117
+ configure:3041: gcc -E conftest.c
118
+ configure:3041: $? = 0
119
+ configure:3055: gcc -E conftest.c
120
+ conftest.c:9:10: fatal error: 'ac_nonexistent.h' file not found
121
+ #include <ac_nonexistent.h>
122
+ ^~~~~~~~~~~~~~~~~~
123
+ 1 error generated.
124
+ configure:3055: $? = 1
116
125
  configure: failed program was:
117
126
  | /* confdefs.h */
118
127
  | #define PACKAGE_NAME "funchook"
@@ -123,15 +132,15 @@ configure: failed program was:
123
132
  | #define PACKAGE_URL ""
124
133
  | /* end confdefs.h. */
125
134
  | #include <ac_nonexistent.h>
126
- configure:3061: result: gcc -E
127
- configure:3081: gcc -E conftest.c
128
- configure:3081: $? = 0
129
- configure:3095: gcc -E conftest.c
130
- conftest.c:9:10: fatal error: ac_nonexistent.h: No such file or directory
131
- #include <ac_nonexistent.h>
132
- ^~~~~~~~~~~~~~~~~~
133
- compilation terminated.
134
- configure:3095: $? = 1
135
+ configure:3080: result: gcc -E
136
+ configure:3100: gcc -E conftest.c
137
+ configure:3100: $? = 0
138
+ configure:3114: gcc -E conftest.c
139
+ conftest.c:9:10: fatal error: 'ac_nonexistent.h' file not found
140
+ #include <ac_nonexistent.h>
141
+ ^~~~~~~~~~~~~~~~~~
142
+ 1 error generated.
143
+ configure:3114: $? = 1
135
144
  configure: failed program was:
136
145
  | /* confdefs.h */
137
146
  | #define PACKAGE_NAME "funchook"
@@ -142,61 +151,61 @@ configure: failed program was:
142
151
  | #define PACKAGE_URL ""
143
152
  | /* end confdefs.h. */
144
153
  | #include <ac_nonexistent.h>
145
- configure:3124: checking for grep that handles long lines and -e
146
- configure:3182: result: /bin/grep
147
- configure:3187: checking for egrep
148
- configure:3249: result: /bin/grep -E
149
- configure:3254: checking for ANSI C header files
150
- configure:3274: gcc -c -g -O2 conftest.c >&5
151
- configure:3274: $? = 0
152
- configure:3347: gcc -o conftest -g -O2 conftest.c >&5
153
- configure:3347: $? = 0
154
- configure:3347: ./conftest
155
- configure:3347: $? = 0
156
- configure:3358: result: yes
157
- configure:3371: checking for sys/types.h
158
- configure:3371: gcc -c -g -O2 conftest.c >&5
159
- configure:3371: $? = 0
160
- configure:3371: result: yes
161
- configure:3371: checking for sys/stat.h
162
- configure:3371: gcc -c -g -O2 conftest.c >&5
163
- configure:3371: $? = 0
164
- configure:3371: result: yes
165
- configure:3371: checking for stdlib.h
166
- configure:3371: gcc -c -g -O2 conftest.c >&5
167
- configure:3371: $? = 0
168
- configure:3371: result: yes
169
- configure:3371: checking for string.h
170
- configure:3371: gcc -c -g -O2 conftest.c >&5
171
- configure:3371: $? = 0
172
- configure:3371: result: yes
173
- configure:3371: checking for memory.h
174
- configure:3371: gcc -c -g -O2 conftest.c >&5
175
- configure:3371: $? = 0
176
- configure:3371: result: yes
177
- configure:3371: checking for strings.h
178
- configure:3371: gcc -c -g -O2 conftest.c >&5
179
- configure:3371: $? = 0
180
- configure:3371: result: yes
181
- configure:3371: checking for inttypes.h
182
- configure:3371: gcc -c -g -O2 conftest.c >&5
183
- configure:3371: $? = 0
184
- configure:3371: result: yes
185
- configure:3371: checking for stdint.h
186
- configure:3371: gcc -c -g -O2 conftest.c >&5
187
- configure:3371: $? = 0
188
- configure:3371: result: yes
189
- configure:3371: checking for unistd.h
190
- configure:3371: gcc -c -g -O2 conftest.c >&5
191
- configure:3371: $? = 0
192
- configure:3371: result: yes
193
- configure:3384: checking minix/config.h usability
194
- configure:3384: gcc -c -g -O2 conftest.c >&5
195
- conftest.c:52:10: fatal error: minix/config.h: No such file or directory
196
- #include <minix/config.h>
197
- ^~~~~~~~~~~~~~~~
198
- compilation terminated.
199
- configure:3384: $? = 1
154
+ configure:3143: checking for grep that handles long lines and -e
155
+ configure:3201: result: /usr/bin/grep
156
+ configure:3206: checking for egrep
157
+ configure:3268: result: /usr/bin/grep -E
158
+ configure:3273: checking for ANSI C header files
159
+ configure:3293: gcc -c -g -O2 conftest.c >&5
160
+ configure:3293: $? = 0
161
+ configure:3366: gcc -o conftest -g -O2 conftest.c >&5
162
+ configure:3366: $? = 0
163
+ configure:3366: ./conftest
164
+ configure:3366: $? = 0
165
+ configure:3377: result: yes
166
+ configure:3390: checking for sys/types.h
167
+ configure:3390: gcc -c -g -O2 conftest.c >&5
168
+ configure:3390: $? = 0
169
+ configure:3390: result: yes
170
+ configure:3390: checking for sys/stat.h
171
+ configure:3390: gcc -c -g -O2 conftest.c >&5
172
+ configure:3390: $? = 0
173
+ configure:3390: result: yes
174
+ configure:3390: checking for stdlib.h
175
+ configure:3390: gcc -c -g -O2 conftest.c >&5
176
+ configure:3390: $? = 0
177
+ configure:3390: result: yes
178
+ configure:3390: checking for string.h
179
+ configure:3390: gcc -c -g -O2 conftest.c >&5
180
+ configure:3390: $? = 0
181
+ configure:3390: result: yes
182
+ configure:3390: checking for memory.h
183
+ configure:3390: gcc -c -g -O2 conftest.c >&5
184
+ configure:3390: $? = 0
185
+ configure:3390: result: yes
186
+ configure:3390: checking for strings.h
187
+ configure:3390: gcc -c -g -O2 conftest.c >&5
188
+ configure:3390: $? = 0
189
+ configure:3390: result: yes
190
+ configure:3390: checking for inttypes.h
191
+ configure:3390: gcc -c -g -O2 conftest.c >&5
192
+ configure:3390: $? = 0
193
+ configure:3390: result: yes
194
+ configure:3390: checking for stdint.h
195
+ configure:3390: gcc -c -g -O2 conftest.c >&5
196
+ configure:3390: $? = 0
197
+ configure:3390: result: yes
198
+ configure:3390: checking for unistd.h
199
+ configure:3390: gcc -c -g -O2 conftest.c >&5
200
+ configure:3390: $? = 0
201
+ configure:3390: result: yes
202
+ configure:3403: checking minix/config.h usability
203
+ configure:3403: gcc -c -g -O2 conftest.c >&5
204
+ conftest.c:52:10: fatal error: 'minix/config.h' file not found
205
+ #include <minix/config.h>
206
+ ^~~~~~~~~~~~~~~~
207
+ 1 error generated.
208
+ configure:3403: $? = 1
200
209
  configure: failed program was:
201
210
  | /* confdefs.h */
202
211
  | #define PACKAGE_NAME "funchook"
@@ -250,14 +259,14 @@ configure: failed program was:
250
259
  | # include <unistd.h>
251
260
  | #endif
252
261
  | #include <minix/config.h>
253
- configure:3384: result: no
254
- configure:3384: checking minix/config.h presence
255
- configure:3384: gcc -E conftest.c
256
- conftest.c:19:10: fatal error: minix/config.h: No such file or directory
257
- #include <minix/config.h>
258
- ^~~~~~~~~~~~~~~~
259
- compilation terminated.
260
- configure:3384: $? = 1
262
+ configure:3403: result: no
263
+ configure:3403: checking minix/config.h presence
264
+ configure:3403: gcc -E conftest.c
265
+ conftest.c:19:10: fatal error: 'minix/config.h' file not found
266
+ #include <minix/config.h>
267
+ ^~~~~~~~~~~~~~~~
268
+ 1 error generated.
269
+ configure:3403: $? = 1
261
270
  configure: failed program was:
262
271
  | /* confdefs.h */
263
272
  | #define PACKAGE_NAME "funchook"
@@ -278,40 +287,193 @@ configure: failed program was:
278
287
  | #define HAVE_UNISTD_H 1
279
288
  | /* end confdefs.h. */
280
289
  | #include <minix/config.h>
281
- configure:3384: result: no
282
- configure:3384: checking for minix/config.h
283
- configure:3384: result: no
284
- configure:3405: checking whether it is safe to define __EXTENSIONS__
285
- configure:3423: gcc -c -g -O2 conftest.c >&5
286
- configure:3423: $? = 0
287
- configure:3430: result: yes
288
- configure:3478: checking build system type
289
- configure:3492: result: x86_64-unknown-linux-gnu
290
- configure:3512: checking host system type
291
- configure:3525: result: x86_64-unknown-linux-gnu
292
- configure:3554: checking size of void*
293
- configure:3559: gcc -o conftest -g -O2 -Wall -fvisibility=hidden conftest.c >&5
294
- configure:3559: $? = 0
295
- configure:3559: ./conftest
296
- configure:3559: $? = 0
297
- configure:3573: result: 8
298
- configure:3617: checking whether _sys_nerr is declared
299
- configure:3617: gcc -c -g -O2 -Wall -fvisibility=hidden conftest.c >&5
300
- configure:3617: $? = 0
301
- configure:3617: result: yes
302
- configure:3627: checking whether _sys_errlist is declared
303
- configure:3627: gcc -c -g -O2 -Wall -fvisibility=hidden conftest.c >&5
304
- configure:3627: $? = 0
305
- configure:3627: result: yes
306
- configure:3637: checking whether sys_nerr is declared
307
- configure:3637: gcc -c -g -O2 -Wall -fvisibility=hidden conftest.c >&5
308
- configure:3637: $? = 0
309
- configure:3637: result: yes
310
- configure:3647: checking whether sys_errlist is declared
311
- configure:3647: gcc -c -g -O2 -Wall -fvisibility=hidden conftest.c >&5
312
- configure:3647: $? = 0
313
- configure:3647: result: yes
314
- configure:3778: creating ./config.status
290
+ configure:3403: result: no
291
+ configure:3403: checking for minix/config.h
292
+ configure:3403: result: no
293
+ configure:3424: checking whether it is safe to define __EXTENSIONS__
294
+ configure:3442: gcc -c -g -O2 conftest.c >&5
295
+ configure:3442: $? = 0
296
+ configure:3449: result: yes
297
+ configure:3497: checking build system type
298
+ configure:3511: result: x86_64-apple-darwin18.6.0
299
+ configure:3531: checking host system type
300
+ configure:3544: result: x86_64-apple-darwin18.6.0
301
+ configure:3573: checking size of void*
302
+ configure:3578: gcc -o conftest -g -O2 -Wall -fvisibility=hidden conftest.c >&5
303
+ configure:3578: $? = 0
304
+ configure:3578: ./conftest
305
+ configure:3578: $? = 0
306
+ configure:3592: result: 8
307
+ configure:3636: checking whether _sys_nerr is declared
308
+ configure:3636: gcc -c -g -O2 -Wall -fvisibility=hidden conftest.c >&5
309
+ conftest.c:65:10: error: use of undeclared identifier '_sys_nerr'
310
+ (void) _sys_nerr;
311
+ ^
312
+ 1 error generated.
313
+ configure:3636: $? = 1
314
+ configure: failed program was:
315
+ | /* confdefs.h */
316
+ | #define PACKAGE_NAME "funchook"
317
+ | #define PACKAGE_TARNAME "funchook"
318
+ | #define PACKAGE_VERSION "0.1"
319
+ | #define PACKAGE_STRING "funchook 0.1"
320
+ | #define PACKAGE_BUGREPORT ""
321
+ | #define PACKAGE_URL ""
322
+ | #define STDC_HEADERS 1
323
+ | #define HAVE_SYS_TYPES_H 1
324
+ | #define HAVE_SYS_STAT_H 1
325
+ | #define HAVE_STDLIB_H 1
326
+ | #define HAVE_STRING_H 1
327
+ | #define HAVE_MEMORY_H 1
328
+ | #define HAVE_STRINGS_H 1
329
+ | #define HAVE_INTTYPES_H 1
330
+ | #define HAVE_STDINT_H 1
331
+ | #define HAVE_UNISTD_H 1
332
+ | #define __EXTENSIONS__ 1
333
+ | #define _ALL_SOURCE 1
334
+ | #define _GNU_SOURCE 1
335
+ | #define _POSIX_PTHREAD_SEMANTICS 1
336
+ | #define _TANDEM_SOURCE 1
337
+ | #define SIZEOF_VOIDP 8
338
+ | /* end confdefs.h. */
339
+ | #include <stdio.h>
340
+ | #ifdef HAVE_SYS_TYPES_H
341
+ | # include <sys/types.h>
342
+ | #endif
343
+ | #ifdef HAVE_SYS_STAT_H
344
+ | # include <sys/stat.h>
345
+ | #endif
346
+ | #ifdef STDC_HEADERS
347
+ | # include <stdlib.h>
348
+ | # include <stddef.h>
349
+ | #else
350
+ | # ifdef HAVE_STDLIB_H
351
+ | # include <stdlib.h>
352
+ | # endif
353
+ | #endif
354
+ | #ifdef HAVE_STRING_H
355
+ | # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
356
+ | # include <memory.h>
357
+ | # endif
358
+ | # include <string.h>
359
+ | #endif
360
+ | #ifdef HAVE_STRINGS_H
361
+ | # include <strings.h>
362
+ | #endif
363
+ | #ifdef HAVE_INTTYPES_H
364
+ | # include <inttypes.h>
365
+ | #endif
366
+ | #ifdef HAVE_STDINT_H
367
+ | # include <stdint.h>
368
+ | #endif
369
+ | #ifdef HAVE_UNISTD_H
370
+ | # include <unistd.h>
371
+ | #endif
372
+ | int
373
+ | main ()
374
+ | {
375
+ | #ifndef _sys_nerr
376
+ | #ifdef __cplusplus
377
+ | (void) _sys_nerr;
378
+ | #else
379
+ | (void) _sys_nerr;
380
+ | #endif
381
+ | #endif
382
+ |
383
+ | ;
384
+ | return 0;
385
+ | }
386
+ configure:3636: result: no
387
+ configure:3646: checking whether _sys_errlist is declared
388
+ configure:3646: gcc -c -g -O2 -Wall -fvisibility=hidden conftest.c >&5
389
+ conftest.c:66:10: error: use of undeclared identifier '_sys_errlist'
390
+ (void) _sys_errlist;
391
+ ^
392
+ 1 error generated.
393
+ configure:3646: $? = 1
394
+ configure: failed program was:
395
+ | /* confdefs.h */
396
+ | #define PACKAGE_NAME "funchook"
397
+ | #define PACKAGE_TARNAME "funchook"
398
+ | #define PACKAGE_VERSION "0.1"
399
+ | #define PACKAGE_STRING "funchook 0.1"
400
+ | #define PACKAGE_BUGREPORT ""
401
+ | #define PACKAGE_URL ""
402
+ | #define STDC_HEADERS 1
403
+ | #define HAVE_SYS_TYPES_H 1
404
+ | #define HAVE_SYS_STAT_H 1
405
+ | #define HAVE_STDLIB_H 1
406
+ | #define HAVE_STRING_H 1
407
+ | #define HAVE_MEMORY_H 1
408
+ | #define HAVE_STRINGS_H 1
409
+ | #define HAVE_INTTYPES_H 1
410
+ | #define HAVE_STDINT_H 1
411
+ | #define HAVE_UNISTD_H 1
412
+ | #define __EXTENSIONS__ 1
413
+ | #define _ALL_SOURCE 1
414
+ | #define _GNU_SOURCE 1
415
+ | #define _POSIX_PTHREAD_SEMANTICS 1
416
+ | #define _TANDEM_SOURCE 1
417
+ | #define SIZEOF_VOIDP 8
418
+ | #define HAVE_DECL__SYS_NERR 0
419
+ | /* end confdefs.h. */
420
+ | #include <stdio.h>
421
+ | #ifdef HAVE_SYS_TYPES_H
422
+ | # include <sys/types.h>
423
+ | #endif
424
+ | #ifdef HAVE_SYS_STAT_H
425
+ | # include <sys/stat.h>
426
+ | #endif
427
+ | #ifdef STDC_HEADERS
428
+ | # include <stdlib.h>
429
+ | # include <stddef.h>
430
+ | #else
431
+ | # ifdef HAVE_STDLIB_H
432
+ | # include <stdlib.h>
433
+ | # endif
434
+ | #endif
435
+ | #ifdef HAVE_STRING_H
436
+ | # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
437
+ | # include <memory.h>
438
+ | # endif
439
+ | # include <string.h>
440
+ | #endif
441
+ | #ifdef HAVE_STRINGS_H
442
+ | # include <strings.h>
443
+ | #endif
444
+ | #ifdef HAVE_INTTYPES_H
445
+ | # include <inttypes.h>
446
+ | #endif
447
+ | #ifdef HAVE_STDINT_H
448
+ | # include <stdint.h>
449
+ | #endif
450
+ | #ifdef HAVE_UNISTD_H
451
+ | # include <unistd.h>
452
+ | #endif
453
+ | int
454
+ | main ()
455
+ | {
456
+ | #ifndef _sys_errlist
457
+ | #ifdef __cplusplus
458
+ | (void) _sys_errlist;
459
+ | #else
460
+ | (void) _sys_errlist;
461
+ | #endif
462
+ | #endif
463
+ |
464
+ | ;
465
+ | return 0;
466
+ | }
467
+ configure:3646: result: no
468
+ configure:3656: checking whether sys_nerr is declared
469
+ configure:3656: gcc -c -g -O2 -Wall -fvisibility=hidden conftest.c >&5
470
+ configure:3656: $? = 0
471
+ configure:3656: result: yes
472
+ configure:3666: checking whether sys_errlist is declared
473
+ configure:3666: gcc -c -g -O2 -Wall -fvisibility=hidden conftest.c >&5
474
+ configure:3666: $? = 0
475
+ configure:3666: result: yes
476
+ configure:3805: creating ./config.status
315
477
 
316
478
  ## ---------------------- ##
317
479
  ## Running config.status. ##
@@ -326,18 +488,18 @@ generated by GNU Autoconf 2.69. Invocation command line was
326
488
  CONFIG_COMMANDS =
327
489
  $ ./config.status
328
490
 
329
- on cc581e4e-56c0-47a6-adc9-1640568f2129-b5bh6
491
+ on donalds-mbp-2.lan
330
492
 
331
- config.status:822: creating Makefile
332
- config.status:822: creating src/Makefile
333
- config.status:822: creating test/Makefile
334
- config.status:822: creating src/config.h
493
+ config.status:825: creating Makefile
494
+ config.status:825: creating src/Makefile
495
+ config.status:825: creating test/Makefile
496
+ config.status:825: creating src/config.h
335
497
 
336
498
  ## ---------------- ##
337
499
  ## Cache variables. ##
338
500
  ## ---------------- ##
339
501
 
340
- ac_cv_build=x86_64-unknown-linux-gnu
502
+ ac_cv_build=x86_64-apple-darwin18.6.0
341
503
  ac_cv_c_compiler_gnu=yes
342
504
  ac_cv_env_CC_set=
343
505
  ac_cv_env_CC_value=
@@ -357,8 +519,8 @@ ac_cv_env_host_alias_set=
357
519
  ac_cv_env_host_alias_value=
358
520
  ac_cv_env_target_alias_set=
359
521
  ac_cv_env_target_alias_value=
360
- ac_cv_have_decl__sys_errlist=yes
361
- ac_cv_have_decl__sys_nerr=yes
522
+ ac_cv_have_decl__sys_errlist=no
523
+ ac_cv_have_decl__sys_nerr=no
362
524
  ac_cv_have_decl_sys_errlist=yes
363
525
  ac_cv_have_decl_sys_nerr=yes
364
526
  ac_cv_header_inttypes_h=yes
@@ -372,10 +534,10 @@ ac_cv_header_strings_h=yes
372
534
  ac_cv_header_sys_stat_h=yes
373
535
  ac_cv_header_sys_types_h=yes
374
536
  ac_cv_header_unistd_h=yes
375
- ac_cv_host=x86_64-unknown-linux-gnu
537
+ ac_cv_host=x86_64-apple-darwin18.6.0
376
538
  ac_cv_objext=o
377
- ac_cv_path_EGREP='/bin/grep -E'
378
- ac_cv_path_GREP=/bin/grep
539
+ ac_cv_path_EGREP='/usr/bin/grep -E'
540
+ ac_cv_path_GREP=/usr/bin/grep
379
541
  ac_cv_prog_CPP='gcc -E'
380
542
  ac_cv_prog_ac_ct_CC=gcc
381
543
  ac_cv_prog_cc_c89=
@@ -392,21 +554,21 @@ CFLAGS='-g -O2 -Wall -fvisibility=hidden'
392
554
  CPP='gcc -E'
393
555
  CPPFLAGS=''
394
556
  DEFS='-DHAVE_CONFIG_H'
395
- ECHO_C=''
396
- ECHO_N='-n'
557
+ ECHO_C='\c'
558
+ ECHO_N=''
397
559
  ECHO_T=''
398
- EGREP='/bin/grep -E'
560
+ EGREP='/usr/bin/grep -E'
399
561
  EXEEXT=''
400
562
  FUNCHOOK_CPU='x86_64'
401
563
  FUNCHOOK_OS='unix'
402
- GREP='/bin/grep'
403
- IF_LINUX=''
404
- IF_OSX='#'
564
+ GREP='/usr/bin/grep'
565
+ IF_LINUX='#'
566
+ IF_OSX=''
405
567
  IF_WIN32='#'
406
568
  LDFLAGS=''
407
- LIBFUNCHOOK_SO='libfunchook.so'
569
+ LIBFUNCHOOK_SO='libfunchook.dylib'
408
570
  LIBOBJS=''
409
- LIBS='-ldl'
571
+ LIBS=''
410
572
  LINK_SHARED='$(CC) -shared'
411
573
  LTLIBOBJS=''
412
574
  OBJEXT='o'
@@ -418,24 +580,24 @@ PACKAGE_URL=''
418
580
  PACKAGE_VERSION='0.1'
419
581
  PATH_SEPARATOR=':'
420
582
  PIC_CFLAGS='-fPIC'
421
- SHELL='/bin/bash'
583
+ SHELL='/bin/sh'
422
584
  ac_ct_CC='gcc'
423
585
  bindir='${exec_prefix}/bin'
424
- build='x86_64-unknown-linux-gnu'
586
+ build='x86_64-apple-darwin18.6.0'
425
587
  build_alias=''
426
588
  build_cpu='x86_64'
427
- build_os='linux-gnu'
428
- build_vendor='unknown'
589
+ build_os='darwin18.6.0'
590
+ build_vendor='apple'
429
591
  datadir='${datarootdir}'
430
592
  datarootdir='${prefix}/share'
431
593
  docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
432
594
  dvidir='${docdir}'
433
595
  exec_prefix='${prefix}'
434
- host='x86_64-unknown-linux-gnu'
596
+ host='x86_64-apple-darwin18.6.0'
435
597
  host_alias=''
436
598
  host_cpu='x86_64'
437
- host_os='linux-gnu'
438
- host_vendor='unknown'
599
+ host_os='darwin18.6.0'
600
+ host_vendor='apple'
439
601
  htmldir='${docdir}'
440
602
  includedir='${prefix}/include'
441
603
  infodir='${datarootdir}/info'
@@ -449,7 +611,6 @@ pdfdir='${docdir}'
449
611
  prefix='/usr/local'
450
612
  program_transform_name='s,x,x,'
451
613
  psdir='${docdir}'
452
- runstatedir='${localstatedir}/run'
453
614
  sbindir='${exec_prefix}/sbin'
454
615
  sharedstatedir='${prefix}/com'
455
616
  sysconfdir='${prefix}/etc'
@@ -482,8 +643,8 @@ target_alias=''
482
643
  #define _POSIX_PTHREAD_SEMANTICS 1
483
644
  #define _TANDEM_SOURCE 1
484
645
  #define SIZEOF_VOIDP 8
485
- #define HAVE_DECL__SYS_NERR 1
486
- #define HAVE_DECL__SYS_ERRLIST 1
646
+ #define HAVE_DECL__SYS_NERR 0
647
+ #define HAVE_DECL__SYS_ERRLIST 0
487
648
  #define HAVE_DECL_SYS_NERR 1
488
649
  #define HAVE_DECL_SYS_ERRLIST 1
489
650