Skip to content

Commit f74733f

Browse files
committed
Update config_*.h files
1 parent fac372e commit f74733f

File tree

4 files changed

+118
-24
lines changed

4 files changed

+118
-24
lines changed

lib/cext/include/truffleruby/config_darwin_aarch64.h

Lines changed: 31 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -31,6 +31,12 @@
3131
#define RUBY_SYMBOL_EXPORT_BEGIN _Pragma("GCC visibility push(default)")
3232
#define RUBY_SYMBOL_EXPORT_END _Pragma("GCC visibility pop")
3333
#define HAVE_STMT_AND_DECL_IN_EXPR 1
34+
#define HAVE_PTHREAD_H 1
35+
#define _REENTRANT 1
36+
#define _THREAD_SAFE 1
37+
#define HAVE_LIBPTHREAD 1
38+
#define THREAD_IMPL_H "thread_pthread.h"
39+
#define THREAD_IMPL_SRC "thread_pthread.c"
3440
#define BROKEN_CRYPT 1
3541
#define HAVE_CRT_EXTERNS_H 1
3642
#define HAVE_LIBDL 1
@@ -50,6 +56,7 @@
5056
#define HAVE_SANITIZER_ASAN_INTERFACE_H 1
5157
#define HAVE_SANITIZER_MSAN_INTERFACE_H 1
5258
#define HAVE_STDALIGN_H 1
59+
#define HAVE_STDIO_H 1
5360
#define HAVE_SYS_ATTR_H 1
5461
#define HAVE_SYS_FCNTL_H 1
5562
#define HAVE_SYS_FILE_H 1
@@ -250,13 +257,19 @@
250257
#define HAVE_ARC4RANDOM_BUF 1
251258
#define HAVE_ATAN2L 1
252259
#define HAVE_ATAN2F 1
260+
#define HAVE_CHMOD 1
261+
#define HAVE_CHOWN 1
253262
#define HAVE_CHROOT 1
254263
#define HAVE_CLOCK_GETTIME 1
255264
#define HAVE_COSH 1
256265
#define HAVE_DIRFD 1
257266
#define HAVE_DLOPEN 1
258267
#define HAVE_DLADDR 1
259268
#define HAVE_ENDGRENT 1
269+
#define HAVE_EXECL 1
270+
#define HAVE_EXECLE 1
271+
#define HAVE_EXECV 1
272+
#define HAVE_EXECVE 1
260273
#define HAVE_FCOPYFILE 1
261274
#define HAVE_FCHMOD 1
262275
#define HAVE_FCHOWN 1
@@ -269,14 +282,18 @@
269282
#define HAVE_FTRUNCATE 1
270283
#define HAVE_GETATTRLIST 1
271284
#define HAVE_GETCWD 1
285+
#define HAVE_GETEGID 1
272286
#define HAVE_GETENTROPY 1
287+
#define HAVE_GETEUID 1
288+
#define HAVE_GETGID 1
273289
#define HAVE_GETGRNAM 1
274290
#define HAVE_GETGRNAM_R 1
275291
#define HAVE_GETGROUPS 1
276292
#define HAVE_GETLOGIN 1
277293
#define HAVE_GETLOGIN_R 1
278294
#define HAVE_GETPGID 1
279295
#define HAVE_GETPGRP 1
296+
#define HAVE_GETPPID 1
280297
#define HAVE_GETPRIORITY 1
281298
#define HAVE_GETPWNAM 1
282299
#define HAVE_GETPWNAM_R 1
@@ -285,11 +302,13 @@
285302
#define HAVE_GETRLIMIT 1
286303
#define HAVE_GETSID 1
287304
#define HAVE_GETTIMEOFDAY 1
305+
#define HAVE_GETUID 1
288306
#define HAVE_GMTIME_R 1
289307
#define HAVE_GRANTPT 1
290308
#define HAVE_INITGROUPS 1
291309
#define HAVE_IOCTL 1
292310
#define HAVE_ISSETUGID 1
311+
#define HAVE_KILL 1
293312
#define HAVE_KILLPG 1
294313
#define HAVE_LCHMOD 1
295314
#define HAVE_LCHOWN 1
@@ -309,7 +328,11 @@
309328
#define HAVE_MKTIME 1
310329
#define HAVE_MMAP 1
311330
#define HAVE_OPENAT 1
331+
#define HAVE_PCLOSE 1
332+
#define HAVE_PIPE 1
312333
#define HAVE_POLL 1
334+
#define HAVE_POPEN 1
335+
#define HAVE_POSIX_MADVISE 1
313336
#define HAVE_POSIX_MEMALIGN 1
314337
#define HAVE_PREAD 1
315338
#define HAVE_PWRITE 1
@@ -340,11 +363,14 @@
340363
#define HAVE_SINH 1
341364
#define HAVE_SYMLINK 1
342365
#define HAVE_SYSCONF 1
366+
#define HAVE_SYSTEM 1
343367
#define HAVE_TANH 1
344368
#define HAVE_TELLDIR 1
345369
#define HAVE_TIMEGM 1
346370
#define HAVE_TIMES 1
347371
#define HAVE_TRUNCATE 1
372+
#define HAVE_TZSET 1
373+
#define HAVE_UMASK 1
348374
#define HAVE_UNSETENV 1
349375
#define HAVE_UTIMENSAT 1
350376
#define HAVE_UTIMES 1
@@ -390,9 +416,6 @@
390416
#define HAVE__SC_CLK_TCK 1
391417
#define STACK_GROW_DIRECTION -1
392418
#define COROUTINE_H "coroutine/arm64/Context.h"
393-
#define _REENTRANT 1
394-
#define _THREAD_SAFE 1
395-
#define HAVE_LIBPTHREAD 1
396419
#define HAVE_SCHED_YIELD 1
397420
#define HAVE_PTHREAD_ATTR_SETINHERITSCHED 1
398421
#define HAVE_PTHREAD_ATTR_GETSTACK 1
@@ -411,6 +434,10 @@
411434
#define HAVE_LIBPROC_H 1
412435
#define HAVE_EXECINFO_H 1
413436
#define HAVE_LIBUNWIND_H 1
437+
#define HAVE_MACH_TASK_H 1
438+
#define HAVE_MACH_MACH_INIT_H 1
439+
#define HAVE_MACH_MACH_PORT_H 1
440+
#define HAVE_MACH_TASK_EXCEPTION_PORTS 1
414441
#define HAVE_BACKTRACE 1
415442
#define BROKEN_BACKTRACE 1
416443
#define DLEXT_MAXLEN 7
@@ -421,8 +448,6 @@
421448
#define RUBY_LONGJMP(env,val) siglongjmp((env),val)
422449
#define RUBY_JMP_BUF sigjmp_buf
423450
#define USE_MJIT 1
424-
#define HAVE_PTHREAD_H 1
425-
#define THREAD_IMPL_H "thread_pthread.h"
426-
#define THREAD_IMPL_SRC "thread_pthread.c"
451+
#define USE_YJIT 0
427452
#define RUBY_PLATFORM "arm64-darwin20"
428453
#endif /* INCLUDE_RUBY_CONFIG_H */

lib/cext/include/truffleruby/config_darwin_amd64.h

Lines changed: 31 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -31,6 +31,12 @@
3131
#define RUBY_SYMBOL_EXPORT_BEGIN _Pragma("GCC visibility push(default)")
3232
#define RUBY_SYMBOL_EXPORT_END _Pragma("GCC visibility pop")
3333
#define HAVE_STMT_AND_DECL_IN_EXPR 1
34+
#define HAVE_PTHREAD_H 1
35+
#define _REENTRANT 1
36+
#define _THREAD_SAFE 1
37+
#define HAVE_LIBPTHREAD 1
38+
#define THREAD_IMPL_H "thread_pthread.h"
39+
#define THREAD_IMPL_SRC "thread_pthread.c"
3440
#define BROKEN_CRYPT 1
3541
#define HAVE_CRT_EXTERNS_H 1
3642
#define HAVE_LIBDL 1
@@ -50,6 +56,7 @@
5056
#define HAVE_SANITIZER_ASAN_INTERFACE_H 1
5157
#define HAVE_SANITIZER_MSAN_INTERFACE_H 1
5258
#define HAVE_STDALIGN_H 1
59+
#define HAVE_STDIO_H 1
5360
#define HAVE_SYS_ATTR_H 1
5461
#define HAVE_SYS_FCNTL_H 1
5562
#define HAVE_SYS_FILE_H 1
@@ -256,13 +263,19 @@
256263
#define HAVE_ARC4RANDOM_BUF 1
257264
#define HAVE_ATAN2L 1
258265
#define HAVE_ATAN2F 1
266+
#define HAVE_CHMOD 1
267+
#define HAVE_CHOWN 1
259268
#define HAVE_CHROOT 1
260269
#define HAVE_CLOCK_GETTIME 1
261270
#define HAVE_COSH 1
262271
#define HAVE_DIRFD 1
263272
#define HAVE_DLOPEN 1
264273
#define HAVE_DLADDR 1
265274
#define HAVE_ENDGRENT 1
275+
#define HAVE_EXECL 1
276+
#define HAVE_EXECLE 1
277+
#define HAVE_EXECV 1
278+
#define HAVE_EXECVE 1
266279
#define HAVE_FCOPYFILE 1
267280
#define HAVE_FCHMOD 1
268281
#define HAVE_FCHOWN 1
@@ -275,14 +288,18 @@
275288
#define HAVE_FTRUNCATE 1
276289
#define HAVE_GETATTRLIST 1
277290
#define HAVE_GETCWD 1
291+
#define HAVE_GETEGID 1
278292
#define HAVE_GETENTROPY 1
293+
#define HAVE_GETEUID 1
294+
#define HAVE_GETGID 1
279295
#define HAVE_GETGRNAM 1
280296
#define HAVE_GETGRNAM_R 1
281297
#define HAVE_GETGROUPS 1
282298
#define HAVE_GETLOGIN 1
283299
#define HAVE_GETLOGIN_R 1
284300
#define HAVE_GETPGID 1
285301
#define HAVE_GETPGRP 1
302+
#define HAVE_GETPPID 1
286303
#define HAVE_GETPRIORITY 1
287304
#define HAVE_GETPWNAM 1
288305
#define HAVE_GETPWNAM_R 1
@@ -291,11 +308,13 @@
291308
#define HAVE_GETRLIMIT 1
292309
#define HAVE_GETSID 1
293310
#define HAVE_GETTIMEOFDAY 1
311+
#define HAVE_GETUID 1
294312
#define HAVE_GMTIME_R 1
295313
#define HAVE_GRANTPT 1
296314
#define HAVE_INITGROUPS 1
297315
#define HAVE_IOCTL 1
298316
#define HAVE_ISSETUGID 1
317+
#define HAVE_KILL 1
299318
#define HAVE_KILLPG 1
300319
#define HAVE_LCHMOD 1
301320
#define HAVE_LCHOWN 1
@@ -315,7 +334,11 @@
315334
#define HAVE_MKTIME 1
316335
#define HAVE_MMAP 1
317336
#define HAVE_OPENAT 1
337+
#define HAVE_PCLOSE 1
338+
#define HAVE_PIPE 1
318339
#define HAVE_POLL 1
340+
#define HAVE_POPEN 1
341+
#define HAVE_POSIX_MADVISE 1
319342
#define HAVE_POSIX_MEMALIGN 1
320343
#define HAVE_PREAD 1
321344
#define HAVE_PWRITE 1
@@ -346,11 +369,14 @@
346369
#define HAVE_SINH 1
347370
#define HAVE_SYMLINK 1
348371
#define HAVE_SYSCONF 1
372+
#define HAVE_SYSTEM 1
349373
#define HAVE_TANH 1
350374
#define HAVE_TELLDIR 1
351375
#define HAVE_TIMEGM 1
352376
#define HAVE_TIMES 1
353377
#define HAVE_TRUNCATE 1
378+
#define HAVE_TZSET 1
379+
#define HAVE_UMASK 1
354380
#define HAVE_UNSETENV 1
355381
#define HAVE_UTIMENSAT 1
356382
#define HAVE_UTIMES 1
@@ -396,9 +422,6 @@
396422
#define HAVE__SC_CLK_TCK 1
397423
#define STACK_GROW_DIRECTION -1
398424
#define COROUTINE_H "coroutine/amd64/Context.h"
399-
#define _REENTRANT 1
400-
#define _THREAD_SAFE 1
401-
#define HAVE_LIBPTHREAD 1
402425
#define HAVE_SCHED_YIELD 1
403426
#define HAVE_PTHREAD_ATTR_SETINHERITSCHED 1
404427
#define HAVE_PTHREAD_ATTR_GETSTACK 1
@@ -417,6 +440,10 @@
417440
#define HAVE_LIBPROC_H 1
418441
#define HAVE_EXECINFO_H 1
419442
#define HAVE_LIBUNWIND_H 1
443+
#define HAVE_MACH_TASK_H 1
444+
#define HAVE_MACH_MACH_INIT_H 1
445+
#define HAVE_MACH_MACH_PORT_H 1
446+
#define HAVE_MACH_TASK_EXCEPTION_PORTS 1
420447
#define HAVE_BACKTRACE 1
421448
#define BROKEN_BACKTRACE 1
422449
#define DLEXT_MAXLEN 7
@@ -427,8 +454,6 @@
427454
#define RUBY_LONGJMP(env,val) siglongjmp((env),val)
428455
#define RUBY_JMP_BUF sigjmp_buf
429456
#define USE_MJIT 1
430-
#define HAVE_PTHREAD_H 1
431-
#define THREAD_IMPL_H "thread_pthread.h"
432-
#define THREAD_IMPL_SRC "thread_pthread.c"
457+
#define USE_YJIT 0
433458
#define RUBY_PLATFORM "x86_64-darwin18"
434459
#endif /* INCLUDE_RUBY_CONFIG_H */

lib/cext/include/truffleruby/config_linux_aarch64.h

Lines changed: 28 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -31,6 +31,12 @@
3131
#define RUBY_SYMBOL_EXPORT_BEGIN _Pragma("GCC visibility push(default)")
3232
#define RUBY_SYMBOL_EXPORT_END _Pragma("GCC visibility pop")
3333
#define HAVE_STMT_AND_DECL_IN_EXPR 1
34+
#define HAVE_PTHREAD_H 1
35+
#define _REENTRANT 1
36+
#define _THREAD_SAFE 1
37+
#define HAVE_LIBPTHREAD 1
38+
#define THREAD_IMPL_H "thread_pthread.h"
39+
#define THREAD_IMPL_SRC "thread_pthread.c"
3440
#define HAVE_LIBCRYPT 1
3541
#define HAVE_LIBDL 1
3642
#define HAVE_DIRENT_H 1
@@ -46,6 +52,7 @@
4652
#define HAVE_MALLOC_H 1
4753
#define HAVE_PWD_H 1
4854
#define HAVE_STDALIGN_H 1
55+
#define HAVE_STDIO_H 1
4956
#define HAVE_SYS_EVENTFD_H 1
5057
#define HAVE_SYS_FCNTL_H 1
5158
#define HAVE_SYS_FILE_H 1
@@ -252,6 +259,8 @@
252259
#define HAVE__LONGJMP 1
253260
#define HAVE_ATAN2L 1
254261
#define HAVE_ATAN2F 1
262+
#define HAVE_CHMOD 1
263+
#define HAVE_CHOWN 1
255264
#define HAVE_CHROOT 1
256265
#define HAVE_CLOCK_GETTIME 1
257266
#define HAVE_COSH 1
@@ -264,6 +273,10 @@
264273
#define HAVE_EACCESS 1
265274
#define HAVE_ENDGRENT 1
266275
#define HAVE_EVENTFD 1
276+
#define HAVE_EXECL 1
277+
#define HAVE_EXECLE 1
278+
#define HAVE_EXECV 1
279+
#define HAVE_EXECVE 1
267280
#define HAVE_FCHMOD 1
268281
#define HAVE_FCHOWN 1
269282
#define HAVE_FCNTL 1
@@ -275,13 +288,17 @@
275288
#define HAVE_FTRUNCATE 1
276289
#define HAVE_FTRUNCATE64 1
277290
#define HAVE_GETCWD 1
291+
#define HAVE_GETEGID 1
292+
#define HAVE_GETEUID 1
293+
#define HAVE_GETGID 1
278294
#define HAVE_GETGRNAM 1
279295
#define HAVE_GETGRNAM_R 1
280296
#define HAVE_GETGROUPS 1
281297
#define HAVE_GETLOGIN 1
282298
#define HAVE_GETLOGIN_R 1
283299
#define HAVE_GETPGID 1
284300
#define HAVE_GETPGRP 1
301+
#define HAVE_GETPPID 1
285302
#define HAVE_GETPRIORITY 1
286303
#define HAVE_GETPWNAM 1
287304
#define HAVE_GETPWNAM_R 1
@@ -292,10 +309,12 @@
292309
#define HAVE_GETRLIMIT 1
293310
#define HAVE_GETSID 1
294311
#define HAVE_GETTIMEOFDAY 1
312+
#define HAVE_GETUID 1
295313
#define HAVE_GMTIME_R 1
296314
#define HAVE_GRANTPT 1
297315
#define HAVE_INITGROUPS 1
298316
#define HAVE_IOCTL 1
317+
#define HAVE_KILL 1
299318
#define HAVE_KILLPG 1
300319
#define HAVE_LCHOWN 1
301320
#define HAVE_LINK 1
@@ -314,10 +333,15 @@
314333
#define HAVE_MKNOD 1
315334
#define HAVE_MKTIME 1
316335
#define HAVE_MMAP 1
336+
#define HAVE_MREMAP 1
317337
#define HAVE_OPENAT 1
338+
#define HAVE_PCLOSE 1
339+
#define HAVE_PIPE 1
318340
#define HAVE_PIPE2 1
319341
#define HAVE_POLL 1
342+
#define HAVE_POPEN 1
320343
#define HAVE_POSIX_FADVISE 1
344+
#define HAVE_POSIX_MADVISE 1
321345
#define HAVE_POSIX_MEMALIGN 1
322346
#define HAVE_PPOLL 1
323347
#define HAVE_PREAD 1
@@ -351,12 +375,15 @@
351375
#define HAVE_SYMLINK 1
352376
#define HAVE_SYSCALL 1
353377
#define HAVE_SYSCONF 1
378+
#define HAVE_SYSTEM 1
354379
#define HAVE_TANH 1
355380
#define HAVE_TELLDIR 1
356381
#define HAVE_TIMEGM 1
357382
#define HAVE_TIMES 1
358383
#define HAVE_TRUNCATE 1
359384
#define HAVE_TRUNCATE64 1
385+
#define HAVE_TZSET 1
386+
#define HAVE_UMASK 1
360387
#define HAVE_UNSETENV 1
361388
#define HAVE_UTIMENSAT 1
362389
#define HAVE_UTIMES 1
@@ -403,9 +430,6 @@
403430
#define HAVE__SC_CLK_TCK 1
404431
#define STACK_GROW_DIRECTION -1
405432
#define COROUTINE_H "coroutine/arm64/Context.h"
406-
#define _REENTRANT 1
407-
#define _THREAD_SAFE 1
408-
#define HAVE_LIBPTHREAD 1
409433
#define HAVE_SCHED_YIELD 1
410434
#define HAVE_PTHREAD_ATTR_SETINHERITSCHED 1
411435
#define HAVE_PTHREAD_ATTR_GETSTACK 1
@@ -434,8 +458,6 @@
434458
#define RUBY_LONGJMP(env,val) _longjmp((env),val)
435459
#define RUBY_JMP_BUF jmp_buf
436460
#define USE_MJIT 1
437-
#define HAVE_PTHREAD_H 1
438-
#define THREAD_IMPL_H "thread_pthread.h"
439-
#define THREAD_IMPL_SRC "thread_pthread.c"
461+
#define USE_YJIT 0
440462
#define RUBY_PLATFORM "aarch64-linux"
441463
#endif /* INCLUDE_RUBY_CONFIG_H */

0 commit comments

Comments
 (0)