nodejs-12.22.5-shared_c-ares_nameser_h.patch 15 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535
  1. From aff98a5667c22794e2eaf658f6dfbee54cdd4a3b Mon Sep 17 00:00:00 2001
  2. From: Felix Yan <felixonmars@archlinux.org>
  3. Date: Thu, 12 Aug 2021 02:44:43 +0800
  4. Subject: [PATCH 1/2] deps: fix building with system c-ares on Linux
  5. The change in #39724 breaks building with system c-ares
  6. (`--shared-cares`):
  7. ```
  8. In file included from ../src/cares_wrap.cc:25:
  9. ../src/cares_wrap.h:25:11: fatal error: ares_nameser.h: No such file or
  10. directory
  11. 25 | # include <ares_nameser.h>
  12. | ^~~~~~~~~~~~~~~~
  13. ```
  14. Since `ares_nameser.h` isn't available with a default system c-ares
  15. installation, let's copy it as our private header here.
  16. Tested to build fine on Arch Linux with shared c-ares.
  17. ---
  18. src/ares_nameser.h | 482 +++++++++++++++++++++++++++++++++++++++++++++
  19. 1 file changed, 482 insertions(+)
  20. create mode 100644 src/ares_nameser.h
  21. diff --git a/src/ares_nameser.h b/src/ares_nameser.h
  22. new file mode 100644
  23. index 000000000000..5270e5a3a6a0
  24. --- /dev/null
  25. +++ b/src/ares_nameser.h
  26. @@ -0,0 +1,482 @@
  27. +
  28. +#ifndef ARES_NAMESER_H
  29. +#define ARES_NAMESER_H
  30. +
  31. +#ifdef HAVE_ARPA_NAMESER_H
  32. +# include <arpa/nameser.h>
  33. +#endif
  34. +#ifdef HAVE_ARPA_NAMESER_COMPAT_H
  35. +# include <arpa/nameser_compat.h>
  36. +#endif
  37. +
  38. +/* ============================================================================
  39. + * arpa/nameser.h may or may not provide ALL of the below defines, so check
  40. + * each one individually and set if not
  41. + * ============================================================================
  42. + */
  43. +
  44. +#ifndef NS_PACKETSZ
  45. +# define NS_PACKETSZ 512 /* maximum packet size */
  46. +#endif
  47. +
  48. +#ifndef NS_MAXDNAME
  49. +# define NS_MAXDNAME 256 /* maximum domain name */
  50. +#endif
  51. +
  52. +#ifndef NS_MAXCDNAME
  53. +# define NS_MAXCDNAME 255 /* maximum compressed domain name */
  54. +#endif
  55. +
  56. +#ifndef NS_MAXLABEL
  57. +# define NS_MAXLABEL 63
  58. +#endif
  59. +
  60. +#ifndef NS_HFIXEDSZ
  61. +# define NS_HFIXEDSZ 12 /* #/bytes of fixed data in header */
  62. +#endif
  63. +
  64. +#ifndef NS_QFIXEDSZ
  65. +# define NS_QFIXEDSZ 4 /* #/bytes of fixed data in query */
  66. +#endif
  67. +
  68. +#ifndef NS_RRFIXEDSZ
  69. +# define NS_RRFIXEDSZ 10 /* #/bytes of fixed data in r record */
  70. +#endif
  71. +
  72. +#ifndef NS_INT16SZ
  73. +# define NS_INT16SZ 2
  74. +#endif
  75. +
  76. +#ifndef NS_INADDRSZ
  77. +# define NS_INADDRSZ 4
  78. +#endif
  79. +
  80. +#ifndef NS_IN6ADDRSZ
  81. +# define NS_IN6ADDRSZ 16
  82. +#endif
  83. +
  84. +#ifndef NS_CMPRSFLGS
  85. +# define NS_CMPRSFLGS 0xc0 /* Flag bits indicating name compression. */
  86. +#endif
  87. +
  88. +#ifndef NS_DEFAULTPORT
  89. +# define NS_DEFAULTPORT 53 /* For both TCP and UDP. */
  90. +#endif
  91. +
  92. +/* ============================================================================
  93. + * arpa/nameser.h should provide these enumerations always, so if not found,
  94. + * provide them
  95. + * ============================================================================
  96. + */
  97. +#ifndef HAVE_ARPA_NAMESER_H
  98. +
  99. +typedef enum __ns_class {
  100. + ns_c_invalid = 0, /* Cookie. */
  101. + ns_c_in = 1, /* Internet. */
  102. + ns_c_2 = 2, /* unallocated/unsupported. */
  103. + ns_c_chaos = 3, /* MIT Chaos-net. */
  104. + ns_c_hs = 4, /* MIT Hesiod. */
  105. + /* Query class values which do not appear in resource records */
  106. + ns_c_none = 254, /* for prereq. sections in update requests */
  107. + ns_c_any = 255, /* Wildcard match. */
  108. + ns_c_max = 65536
  109. +} ns_class;
  110. +
  111. +typedef enum __ns_type {
  112. + ns_t_invalid = 0, /* Cookie. */
  113. + ns_t_a = 1, /* Host address. */
  114. + ns_t_ns = 2, /* Authoritative server. */
  115. + ns_t_md = 3, /* Mail destination. */
  116. + ns_t_mf = 4, /* Mail forwarder. */
  117. + ns_t_cname = 5, /* Canonical name. */
  118. + ns_t_soa = 6, /* Start of authority zone. */
  119. + ns_t_mb = 7, /* Mailbox domain name. */
  120. + ns_t_mg = 8, /* Mail group member. */
  121. + ns_t_mr = 9, /* Mail rename name. */
  122. + ns_t_null = 10, /* Null resource record. */
  123. + ns_t_wks = 11, /* Well known service. */
  124. + ns_t_ptr = 12, /* Domain name pointer. */
  125. + ns_t_hinfo = 13, /* Host information. */
  126. + ns_t_minfo = 14, /* Mailbox information. */
  127. + ns_t_mx = 15, /* Mail routing information. */
  128. + ns_t_txt = 16, /* Text strings. */
  129. + ns_t_rp = 17, /* Responsible person. */
  130. + ns_t_afsdb = 18, /* AFS cell database. */
  131. + ns_t_x25 = 19, /* X_25 calling address. */
  132. + ns_t_isdn = 20, /* ISDN calling address. */
  133. + ns_t_rt = 21, /* Router. */
  134. + ns_t_nsap = 22, /* NSAP address. */
  135. + ns_t_nsap_ptr = 23, /* Reverse NSAP lookup (deprecated). */
  136. + ns_t_sig = 24, /* Security signature. */
  137. + ns_t_key = 25, /* Security key. */
  138. + ns_t_px = 26, /* X.400 mail mapping. */
  139. + ns_t_gpos = 27, /* Geographical position (withdrawn). */
  140. + ns_t_aaaa = 28, /* Ip6 Address. */
  141. + ns_t_loc = 29, /* Location Information. */
  142. + ns_t_nxt = 30, /* Next domain (security). */
  143. + ns_t_eid = 31, /* Endpoint identifier. */
  144. + ns_t_nimloc = 32, /* Nimrod Locator. */
  145. + ns_t_srv = 33, /* Server Selection. */
  146. + ns_t_atma = 34, /* ATM Address */
  147. + ns_t_naptr = 35, /* Naming Authority PoinTeR */
  148. + ns_t_kx = 36, /* Key Exchange */
  149. + ns_t_cert = 37, /* Certification record */
  150. + ns_t_a6 = 38, /* IPv6 address (deprecates AAAA) */
  151. + ns_t_dname = 39, /* Non-terminal DNAME (for IPv6) */
  152. + ns_t_sink = 40, /* Kitchen sink (experimentatl) */
  153. + ns_t_opt = 41, /* EDNS0 option (meta-RR) */
  154. + ns_t_apl = 42, /* Address prefix list (RFC3123) */
  155. + ns_t_ds = 43, /* Delegation Signer (RFC4034) */
  156. + ns_t_sshfp = 44, /* SSH Key Fingerprint (RFC4255) */
  157. + ns_t_rrsig = 46, /* Resource Record Signature (RFC4034) */
  158. + ns_t_nsec = 47, /* Next Secure (RFC4034) */
  159. + ns_t_dnskey = 48, /* DNS Public Key (RFC4034) */
  160. + ns_t_tkey = 249, /* Transaction key */
  161. + ns_t_tsig = 250, /* Transaction signature. */
  162. + ns_t_ixfr = 251, /* Incremental zone transfer. */
  163. + ns_t_axfr = 252, /* Transfer zone of authority. */
  164. + ns_t_mailb = 253, /* Transfer mailbox records. */
  165. + ns_t_maila = 254, /* Transfer mail agent records. */
  166. + ns_t_any = 255, /* Wildcard match. */
  167. + ns_t_zxfr = 256, /* BIND-specific, nonstandard. */
  168. + ns_t_caa = 257, /* Certification Authority Authorization. */
  169. + ns_t_max = 65536
  170. +} ns_type;
  171. +
  172. +typedef enum __ns_opcode {
  173. + ns_o_query = 0, /* Standard query. */
  174. + ns_o_iquery = 1, /* Inverse query (deprecated/unsupported). */
  175. + ns_o_status = 2, /* Name server status query (unsupported). */
  176. + /* Opcode 3 is undefined/reserved. */
  177. + ns_o_notify = 4, /* Zone change notification. */
  178. + ns_o_update = 5, /* Zone update message. */
  179. + ns_o_max = 6
  180. +} ns_opcode;
  181. +
  182. +typedef enum __ns_rcode {
  183. + ns_r_noerror = 0, /* No error occurred. */
  184. + ns_r_formerr = 1, /* Format error. */
  185. + ns_r_servfail = 2, /* Server failure. */
  186. + ns_r_nxdomain = 3, /* Name error. */
  187. + ns_r_notimpl = 4, /* Unimplemented. */
  188. + ns_r_refused = 5, /* Operation refused. */
  189. + /* these are for BIND_UPDATE */
  190. + ns_r_yxdomain = 6, /* Name exists */
  191. + ns_r_yxrrset = 7, /* RRset exists */
  192. + ns_r_nxrrset = 8, /* RRset does not exist */
  193. + ns_r_notauth = 9, /* Not authoritative for zone */
  194. + ns_r_notzone = 10, /* Zone of record different from zone section */
  195. + ns_r_max = 11,
  196. + /* The following are TSIG extended errors */
  197. + ns_r_badsig = 16,
  198. + ns_r_badkey = 17,
  199. + ns_r_badtime = 18
  200. +} ns_rcode;
  201. +
  202. +#endif /* HAVE_ARPA_NAMESER_H */
  203. +
  204. +
  205. +/* ============================================================================
  206. + * arpa/nameser_compat.h typically sets these. However on some systems
  207. + * arpa/nameser.h does, but may not set all of them. Lets conditionally
  208. + * define each
  209. + * ============================================================================
  210. + */
  211. +
  212. +#ifndef PACKETSZ
  213. +# define PACKETSZ NS_PACKETSZ
  214. +#endif
  215. +
  216. +#ifndef MAXDNAME
  217. +# define MAXDNAME NS_MAXDNAME
  218. +#endif
  219. +
  220. +#ifndef MAXCDNAME
  221. +# define MAXCDNAME NS_MAXCDNAME
  222. +#endif
  223. +
  224. +#ifndef MAXLABEL
  225. +# define MAXLABEL NS_MAXLABEL
  226. +#endif
  227. +
  228. +#ifndef HFIXEDSZ
  229. +# define HFIXEDSZ NS_HFIXEDSZ
  230. +#endif
  231. +
  232. +#ifndef QFIXEDSZ
  233. +# define QFIXEDSZ NS_QFIXEDSZ
  234. +#endif
  235. +
  236. +#ifndef RRFIXEDSZ
  237. +# define RRFIXEDSZ NS_RRFIXEDSZ
  238. +#endif
  239. +
  240. +#ifndef INDIR_MASK
  241. +# define INDIR_MASK NS_CMPRSFLGS
  242. +#endif
  243. +
  244. +#ifndef NAMESERVER_PORT
  245. +# define NAMESERVER_PORT NS_DEFAULTPORT
  246. +#endif
  247. +
  248. +
  249. +/* opcodes */
  250. +#ifndef O_QUERY
  251. +# define O_QUERY 0 /* ns_o_query */
  252. +#endif
  253. +#ifndef O_IQUERY
  254. +# define O_IQUERY 1 /* ns_o_iquery */
  255. +#endif
  256. +#ifndef O_STATUS
  257. +# define O_STATUS 2 /* ns_o_status */
  258. +#endif
  259. +#ifndef O_NOTIFY
  260. +# define O_NOTIFY 4 /* ns_o_notify */
  261. +#endif
  262. +#ifndef O_UPDATE
  263. +# define O_UPDATE 5 /* ns_o_update */
  264. +#endif
  265. +
  266. +
  267. +/* response codes */
  268. +#ifndef SERVFAIL
  269. +# define SERVFAIL ns_r_servfail
  270. +#endif
  271. +#ifndef NOTIMP
  272. +# define NOTIMP ns_r_notimpl
  273. +#endif
  274. +#ifndef REFUSED
  275. +# define REFUSED ns_r_refused
  276. +#endif
  277. +#if defined(_WIN32) && !defined(HAVE_ARPA_NAMESER_COMPAT_H) && defined(NOERROR)
  278. +# undef NOERROR /* it seems this is already defined in winerror.h */
  279. +#endif
  280. +#ifndef NOERROR
  281. +# define NOERROR ns_r_noerror
  282. +#endif
  283. +#ifndef FORMERR
  284. +# define FORMERR ns_r_formerr
  285. +#endif
  286. +#ifndef NXDOMAIN
  287. +# define NXDOMAIN ns_r_nxdomain
  288. +#endif
  289. +/* Non-standard response codes, use numeric values */
  290. +#ifndef YXDOMAIN
  291. +# define YXDOMAIN 6 /* ns_r_yxdomain */
  292. +#endif
  293. +#ifndef YXRRSET
  294. +# define YXRRSET 7 /* ns_r_yxrrset */
  295. +#endif
  296. +#ifndef NXRRSET
  297. +# define NXRRSET 8 /* ns_r_nxrrset */
  298. +#endif
  299. +#ifndef NOTAUTH
  300. +# define NOTAUTH 9 /* ns_r_notauth */
  301. +#endif
  302. +#ifndef NOTZONE
  303. +# define NOTZONE 10 /* ns_r_notzone */
  304. +#endif
  305. +#ifndef TSIG_BADSIG
  306. +# define TSIG_BADSIG 16 /* ns_r_badsig */
  307. +#endif
  308. +#ifndef TSIG_BADKEY
  309. +# define TSIG_BADKEY 17 /* ns_r_badkey */
  310. +#endif
  311. +#ifndef TSIG_BADTIME
  312. +# define TSIG_BADTIME 18 /* ns_r_badtime */
  313. +#endif
  314. +
  315. +
  316. +/* classes */
  317. +#ifndef C_IN
  318. +# define C_IN 1 /* ns_c_in */
  319. +#endif
  320. +#ifndef C_CHAOS
  321. +# define C_CHAOS 3 /* ns_c_chaos */
  322. +#endif
  323. +#ifndef C_HS
  324. +# define C_HS 4 /* ns_c_hs */
  325. +#endif
  326. +#ifndef C_NONE
  327. +# define C_NONE 254 /* ns_c_none */
  328. +#endif
  329. +#ifndef C_ANY
  330. +# define C_ANY 255 /* ns_c_any */
  331. +#endif
  332. +
  333. +
  334. +/* types */
  335. +#ifndef T_A
  336. +# define T_A 1 /* ns_t_a */
  337. +#endif
  338. +#ifndef T_NS
  339. +# define T_NS 2 /* ns_t_ns */
  340. +#endif
  341. +#ifndef T_MD
  342. +# define T_MD 3 /* ns_t_md */
  343. +#endif
  344. +#ifndef T_MF
  345. +# define T_MF 4 /* ns_t_mf */
  346. +#endif
  347. +#ifndef T_CNAME
  348. +# define T_CNAME 5 /* ns_t_cname */
  349. +#endif
  350. +#ifndef T_SOA
  351. +# define T_SOA 6 /* ns_t_soa */
  352. +#endif
  353. +#ifndef T_MB
  354. +# define T_MB 7 /* ns_t_mb */
  355. +#endif
  356. +#ifndef T_MG
  357. +# define T_MG 8 /* ns_t_mg */
  358. +#endif
  359. +#ifndef T_MR
  360. +# define T_MR 9 /* ns_t_mr */
  361. +#endif
  362. +#ifndef T_NULL
  363. +# define T_NULL 10 /* ns_t_null */
  364. +#endif
  365. +#ifndef T_WKS
  366. +# define T_WKS 11 /* ns_t_wks */
  367. +#endif
  368. +#ifndef T_PTR
  369. +# define T_PTR 12 /* ns_t_ptr */
  370. +#endif
  371. +#ifndef T_HINFO
  372. +# define T_HINFO 13 /* ns_t_hinfo */
  373. +#endif
  374. +#ifndef T_MINFO
  375. +# define T_MINFO 14 /* ns_t_minfo */
  376. +#endif
  377. +#ifndef T_MX
  378. +# define T_MX 15 /* ns_t_mx */
  379. +#endif
  380. +#ifndef T_TXT
  381. +# define T_TXT 16 /* ns_t_txt */
  382. +#endif
  383. +#ifndef T_RP
  384. +# define T_RP 17 /* ns_t_rp */
  385. +#endif
  386. +#ifndef T_AFSDB
  387. +# define T_AFSDB 18 /* ns_t_afsdb */
  388. +#endif
  389. +#ifndef T_X25
  390. +# define T_X25 19 /* ns_t_x25 */
  391. +#endif
  392. +#ifndef T_ISDN
  393. +# define T_ISDN 20 /* ns_t_isdn */
  394. +#endif
  395. +#ifndef T_RT
  396. +# define T_RT 21 /* ns_t_rt */
  397. +#endif
  398. +#ifndef T_NSAP
  399. +# define T_NSAP 22 /* ns_t_nsap */
  400. +#endif
  401. +#ifndef T_NSAP_PTR
  402. +# define T_NSAP_PTR 23 /* ns_t_nsap_ptr */
  403. +#endif
  404. +#ifndef T_SIG
  405. +# define T_SIG 24 /* ns_t_sig */
  406. +#endif
  407. +#ifndef T_KEY
  408. +# define T_KEY 25 /* ns_t_key */
  409. +#endif
  410. +#ifndef T_PX
  411. +# define T_PX 26 /* ns_t_px */
  412. +#endif
  413. +#ifndef T_GPOS
  414. +# define T_GPOS 27 /* ns_t_gpos */
  415. +#endif
  416. +#ifndef T_AAAA
  417. +# define T_AAAA 28 /* ns_t_aaaa */
  418. +#endif
  419. +#ifndef T_LOC
  420. +# define T_LOC 29 /* ns_t_loc */
  421. +#endif
  422. +#ifndef T_NXT
  423. +# define T_NXT 30 /* ns_t_nxt */
  424. +#endif
  425. +#ifndef T_EID
  426. +# define T_EID 31 /* ns_t_eid */
  427. +#endif
  428. +#ifndef T_NIMLOC
  429. +# define T_NIMLOC 32 /* ns_t_nimloc */
  430. +#endif
  431. +#ifndef T_SRV
  432. +# define T_SRV 33 /* ns_t_srv */
  433. +#endif
  434. +#ifndef T_ATMA
  435. +# define T_ATMA 34 /* ns_t_atma */
  436. +#endif
  437. +#ifndef T_NAPTR
  438. +# define T_NAPTR 35 /* ns_t_naptr */
  439. +#endif
  440. +#ifndef T_KX
  441. +# define T_KX 36 /* ns_t_kx */
  442. +#endif
  443. +#ifndef T_CERT
  444. +# define T_CERT 37 /* ns_t_cert */
  445. +#endif
  446. +#ifndef T_A6
  447. +# define T_A6 38 /* ns_t_a6 */
  448. +#endif
  449. +#ifndef T_DNAME
  450. +# define T_DNAME 39 /* ns_t_dname */
  451. +#endif
  452. +#ifndef T_SINK
  453. +# define T_SINK 40 /* ns_t_sink */
  454. +#endif
  455. +#ifndef T_OPT
  456. +# define T_OPT 41 /* ns_t_opt */
  457. +#endif
  458. +#ifndef T_APL
  459. +# define T_APL 42 /* ns_t_apl */
  460. +#endif
  461. +#ifndef T_DS
  462. +# define T_DS 43 /* ns_t_ds */
  463. +#endif
  464. +#ifndef T_SSHFP
  465. +# define T_SSHFP 44 /* ns_t_sshfp */
  466. +#endif
  467. +#ifndef T_RRSIG
  468. +# define T_RRSIG 46 /* ns_t_rrsig */
  469. +#endif
  470. +#ifndef T_NSEC
  471. +# define T_NSEC 47 /* ns_t_nsec */
  472. +#endif
  473. +#ifndef T_DNSKEY
  474. +# define T_DNSKEY 48 /* ns_t_dnskey */
  475. +#endif
  476. +#ifndef T_TKEY
  477. +# define T_TKEY 249 /* ns_t_tkey */
  478. +#endif
  479. +#ifndef T_TSIG
  480. +# define T_TSIG 250 /* ns_t_tsig */
  481. +#endif
  482. +#ifndef T_IXFR
  483. +# define T_IXFR 251 /* ns_t_ixfr */
  484. +#endif
  485. +#ifndef T_AXFR
  486. +# define T_AXFR 252 /* ns_t_axfr */
  487. +#endif
  488. +#ifndef T_MAILB
  489. +# define T_MAILB 253 /* ns_t_mailb */
  490. +#endif
  491. +#ifndef T_MAILA
  492. +# define T_MAILA 254 /* ns_t_maila */
  493. +#endif
  494. +#ifndef T_ANY
  495. +# define T_ANY 255 /* ns_t_any */
  496. +#endif
  497. +#ifndef T_ZXFR
  498. +# define T_ZXFR 256 /* ns_t_zxfr */
  499. +#endif
  500. +#ifndef T_CAA
  501. +# define T_CAA 257 /* ns_t_caa */
  502. +#endif
  503. +#ifndef T_MAX
  504. +# define T_MAX 65536 /* ns_t_max */
  505. +#endif
  506. +
  507. +
  508. +#endif /* ARES_NAMESER_H */
  509. From db4643979ee676b3a3d6cdf2fb597d399cf8013f Mon Sep 17 00:00:00 2001
  510. From: Felix Yan <felixonmars@archlinux.org>
  511. Date: Fri, 13 Aug 2021 00:01:59 +0800
  512. Subject: [PATCH 2/2] build: ignore cpplint for third-party ares_nameser.h
  513. ---
  514. Makefile | 1 +
  515. 1 file changed, 1 insertion(+)
  516. diff --git a/Makefile b/Makefile
  517. index ec4c774748cd..c418995c53c1 100644
  518. --- a/Makefile
  519. +++ b/Makefile
  520. @@ -1289,6 +1289,7 @@ jslint-ci: lint-js-ci
  521. LINT_CPP_ADDON_DOC_FILES_GLOB = test/addons/??_*/*.cc test/addons/??_*/*.h
  522. LINT_CPP_ADDON_DOC_FILES = $(wildcard $(LINT_CPP_ADDON_DOC_FILES_GLOB))
  523. LINT_CPP_EXCLUDE ?=
  524. +LINT_CPP_EXCLUDE += src/ares_nameser.h
  525. LINT_CPP_EXCLUDE += src/node_root_certs.h
  526. LINT_CPP_EXCLUDE += $(LINT_CPP_ADDON_DOC_FILES)
  527. LINT_CPP_EXCLUDE += $(wildcard test/js-native-api/??_*/*.cc test/js-native-api/??_*/*.h test/node-api/??_*/*.cc test/node-api/??_*/*.h)