@@ -17,6 +17,12 @@ set(TARGET_LIBC_ENTRYPOINTS
17
17
libc.src.ctype.tolower
18
18
libc.src.ctype.toupper
19
19
20
+ # dlfcn.h entrypoints
21
+ libc.src.dlfcn.dlclose
22
+ libc.src.dlfcn.dlerror
23
+ libc.src.dlfcn.dlopen
24
+ libc.src.dlfcn.dlsym
25
+
20
26
# errno.h entrypoints
21
27
libc.src.errno.errno
22
28
@@ -52,6 +58,7 @@ set(TARGET_LIBC_ENTRYPOINTS
52
58
libc.src.string.mempcpy
53
59
libc.src.string.memrchr
54
60
libc.src.string.memset
61
+ libc.src.string.memset_explicit
55
62
libc.src.string.rindex
56
63
libc.src.string.stpcpy
57
64
libc.src.string.stpncpy
@@ -180,6 +187,9 @@ set(TARGET_LIBC_ENTRYPOINTS
180
187
libc.src.stdlib.qsort_r
181
188
libc.src.stdlib.rand
182
189
libc.src.stdlib.srand
190
+ libc.src.stdlib.strfromd
191
+ libc.src.stdlib.strfromf
192
+ libc.src.stdlib.strfroml
183
193
libc.src.stdlib.strtod
184
194
libc.src.stdlib.strtof
185
195
libc.src.stdlib.strtol
@@ -197,6 +207,7 @@ set(TARGET_LIBC_ENTRYPOINTS
197
207
198
208
# stdio.h entrypoints
199
209
libc.src.stdio.fdopen
210
+ libc.src.stdio.fileno
200
211
libc.src.stdio.fprintf
201
212
libc.src.stdio.fscanf
202
213
libc.src.stdio.printf
@@ -211,6 +222,14 @@ set(TARGET_LIBC_ENTRYPOINTS
211
222
libc.src.stdio.vsnprintf
212
223
libc.src.stdio.vsprintf
213
224
225
+ # sys/epoll.h entrypoints
226
+ libc.src.sys.epoll.epoll_create
227
+ libc.src.sys.epoll.epoll_create1
228
+ libc.src.sys.epoll.epoll_ctl
229
+ libc.src.sys.epoll.epoll_pwait
230
+ libc.src.sys.epoll.epoll_wait
231
+ libc.src.sys.epoll.epoll_pwait2
232
+
214
233
# sys/mman.h entrypoints
215
234
libc.src.sys.mman.madvise
216
235
libc.src.sys.mman.mincore
@@ -261,12 +280,6 @@ set(TARGET_LIBC_ENTRYPOINTS
261
280
# sys/auxv.h entrypoints
262
281
libc.src.sys.auxv.getauxval
263
282
264
- # sys/epoll.h entrypoints
265
- # Disabled due to epoll_wait syscalls not being available on this platform.
266
- # libc.src.sys.epoll.epoll_wait
267
- # libc.src.sys.epoll.epoll_pwait
268
- # libc.src.sys.epoll.epoll_pwait2
269
-
270
283
# termios.h entrypoints
271
284
libc.src.termios.cfgetispeed
272
285
libc.src.termios.cfgetospeed
@@ -303,6 +316,7 @@ set(TARGET_LIBC_ENTRYPOINTS
303
316
libc.src.unistd.linkat
304
317
libc.src.unistd.lseek
305
318
libc.src.unistd.pathconf
319
+ libc.src.unistd.pipe
306
320
libc.src.unistd.pread
307
321
libc.src.unistd.pwrite
308
322
libc.src.unistd.read
@@ -348,6 +362,9 @@ set(TARGET_LIBM_ENTRYPOINTS
348
362
libc.src.math.atan2f
349
363
libc.src.math.atanf
350
364
libc.src.math.atanhf
365
+ libc.src.math.canonicalize
366
+ libc.src.math.canonicalizef
367
+ libc.src.math.canonicalizel
351
368
libc.src.math.cbrt
352
369
libc.src.math.cbrtf
353
370
libc.src.math.ceil
@@ -366,6 +383,7 @@ set(TARGET_LIBM_ENTRYPOINTS
366
383
libc.src.math.exp10f
367
384
libc.src.math.exp2
368
385
libc.src.math.exp2f
386
+ libc.src.math.exp2m1f
369
387
libc.src.math.expf
370
388
libc.src.math.expm1
371
389
libc.src.math.expm1f
@@ -493,6 +511,9 @@ set(TARGET_LIBM_ENTRYPOINTS
493
511
libc.src.math.rintf
494
512
libc.src.math.rintl
495
513
libc.src.math.round
514
+ libc.src.math.roundeven
515
+ libc.src.math.roundevenf
516
+ libc.src.math.roundevenl
496
517
libc.src.math.roundf
497
518
libc.src.math.roundl
498
519
libc.src.math.scalbn
@@ -524,8 +545,10 @@ set(TARGET_LIBM_ENTRYPOINTS
524
545
if(LIBC_TYPES_HAS_FLOAT128)
525
546
list(APPEND TARGET_LIBM_ENTRYPOINTS
526
547
# math.h C23 _Float128 entrypoints
548
+ libc.src.math.canonicalizef128
527
549
libc.src.math.ceilf128
528
550
libc.src.math.copysignf128
551
+ libc.src.math.dmulf128
529
552
libc.src.math.fabsf128
530
553
libc.src.math.fdimf128
531
554
libc.src.math.floorf128
@@ -540,6 +563,7 @@ if(LIBC_TYPES_HAS_FLOAT128)
540
563
libc.src.math.fminimum_numf128
541
564
libc.src.math.fminimumf128
542
565
libc.src.math.fmodf128
566
+ libc.src.math.fmulf128
543
567
libc.src.math.frexpf128
544
568
libc.src.math.fromfpf128
545
569
libc.src.math.fromfpxf128
@@ -557,7 +581,9 @@ if(LIBC_TYPES_HAS_FLOAT128)
557
581
libc.src.math.nextafterf128
558
582
libc.src.math.nextdownf128
559
583
libc.src.math.nextupf128
584
+ libc.src.math.remquof128
560
585
libc.src.math.rintf128
586
+ libc.src.math.roundevenf128
561
587
libc.src.math.roundf128
562
588
libc.src.math.scalbnf128
563
589
libc.src.math.sqrtf128
@@ -567,14 +593,47 @@ if(LIBC_TYPES_HAS_FLOAT128)
567
593
)
568
594
endif()
569
595
596
+ if(LIBC_COMPILER_HAS_FIXED_POINT)
597
+ list(APPEND TARGET_LIBM_ENTRYPOINTS
598
+ # stdfix.h _Fract and _Accum entrypoints
599
+ libc.src.stdfix.abshk
600
+ libc.src.stdfix.abshr
601
+ libc.src.stdfix.absk
602
+ libc.src.stdfix.abslk
603
+ libc.src.stdfix.abslr
604
+ libc.src.stdfix.absr
605
+ libc.src.stdfix.exphk
606
+ libc.src.stdfix.expk
607
+ libc.src.stdfix.roundhk
608
+ libc.src.stdfix.roundhr
609
+ libc.src.stdfix.roundk
610
+ libc.src.stdfix.roundlk
611
+ libc.src.stdfix.roundlr
612
+ libc.src.stdfix.roundr
613
+ libc.src.stdfix.rounduhk
614
+ libc.src.stdfix.rounduhr
615
+ libc.src.stdfix.rounduk
616
+ libc.src.stdfix.roundulk
617
+ libc.src.stdfix.roundulr
618
+ libc.src.stdfix.roundur
619
+ libc.src.stdfix.sqrtuhk
620
+ libc.src.stdfix.sqrtuhr
621
+ libc.src.stdfix.sqrtuk
622
+ libc.src.stdfix.sqrtur
623
+ libc.src.stdfix.sqrtulr
624
+ libc.src.stdfix.uhksqrtus
625
+ libc.src.stdfix.uksqrtui
626
+ )
627
+ endif()
628
+
570
629
if(LLVM_LIBC_FULL_BUILD)
571
630
list(APPEND TARGET_LIBC_ENTRYPOINTS
572
- # compiler entrypoints (no corresponding header)
573
- libc.src.compiler.__stack_chk_fail
574
-
575
631
# assert.h entrypoints
576
632
libc.src.assert.__assert_fail
577
633
634
+ # compiler entrypoints (no corresponding header)
635
+ libc.src.compiler.__stack_chk_fail
636
+
578
637
# dirent.h entrypoints
579
638
libc.src.dirent.closedir
580
639
libc.src.dirent.dirfd
@@ -599,6 +658,12 @@ if(LLVM_LIBC_FULL_BUILD)
599
658
libc.src.pthread.pthread_attr_setguardsize
600
659
libc.src.pthread.pthread_attr_setstack
601
660
libc.src.pthread.pthread_attr_setstacksize
661
+ libc.src.pthread.pthread_condattr_destroy
662
+ libc.src.pthread.pthread_condattr_getclock
663
+ libc.src.pthread.pthread_condattr_getpshared
664
+ libc.src.pthread.pthread_condattr_init
665
+ libc.src.pthread.pthread_condattr_setclock
666
+ libc.src.pthread.pthread_condattr_setpshared
602
667
libc.src.pthread.pthread_create
603
668
libc.src.pthread.pthread_detach
604
669
libc.src.pthread.pthread_equal
@@ -621,6 +686,21 @@ if(LLVM_LIBC_FULL_BUILD)
621
686
libc.src.pthread.pthread_mutexattr_setrobust
622
687
libc.src.pthread.pthread_mutexattr_settype
623
688
libc.src.pthread.pthread_once
689
+ libc.src.pthread.pthread_rwlock_destroy
690
+ libc.src.pthread.pthread_rwlock_init
691
+ libc.src.pthread.pthread_rwlock_rdlock
692
+ libc.src.pthread.pthread_rwlock_timedrdlock
693
+ libc.src.pthread.pthread_rwlock_timedwrlock
694
+ libc.src.pthread.pthread_rwlock_tryrdlock
695
+ libc.src.pthread.pthread_rwlock_trywrlock
696
+ libc.src.pthread.pthread_rwlock_unlock
697
+ libc.src.pthread.pthread_rwlock_wrlock
698
+ libc.src.pthread.pthread_rwlockattr_destroy
699
+ libc.src.pthread.pthread_rwlockattr_getkind_np
700
+ libc.src.pthread.pthread_rwlockattr_getpshared
701
+ libc.src.pthread.pthread_rwlockattr_init
702
+ libc.src.pthread.pthread_rwlockattr_setkind_np
703
+ libc.src.pthread.pthread_rwlockattr_setpshared
624
704
libc.src.pthread.pthread_self
625
705
libc.src.pthread.pthread_setname_np
626
706
libc.src.pthread.pthread_setspecific
@@ -644,7 +724,6 @@ if(LLVM_LIBC_FULL_BUILD)
644
724
libc.src.stdio.fgetc
645
725
libc.src.stdio.fgetc_unlocked
646
726
libc.src.stdio.fgets
647
- libc.src.stdio.fileno
648
727
libc.src.stdio.flockfile
649
728
libc.src.stdio.fopen
650
729
libc.src.stdio.fopencookie
@@ -653,7 +732,9 @@ if(LLVM_LIBC_FULL_BUILD)
653
732
libc.src.stdio.fread
654
733
libc.src.stdio.fread_unlocked
655
734
libc.src.stdio.fseek
735
+ libc.src.stdio.fseeko
656
736
libc.src.stdio.ftell
737
+ libc.src.stdio.ftello
657
738
libc.src.stdio.funlockfile
658
739
libc.src.stdio.fwrite
659
740
libc.src.stdio.fwrite_unlocked
@@ -674,9 +755,11 @@ if(LLVM_LIBC_FULL_BUILD)
674
755
# stdlib.h entrypoints
675
756
libc.src.stdlib._Exit
676
757
libc.src.stdlib.abort
758
+ libc.src.stdlib.at_quick_exit
677
759
libc.src.stdlib.atexit
678
760
libc.src.stdlib.exit
679
761
libc.src.stdlib.getenv
762
+ libc.src.stdlib.quick_exit
680
763
681
764
# signal.h entrypoints
682
765
libc.src.signal.kill
@@ -758,6 +841,10 @@ if(LLVM_LIBC_FULL_BUILD)
758
841
759
842
# sys/select.h entrypoints
760
843
libc.src.sys.select.select
844
+
845
+ # sys/socket.h entrypoints
846
+ libc.src.sys.socket.bind
847
+ libc.src.sys.socket.socket
761
848
)
762
849
endif()
763
850
0 commit comments