@@ -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
@@ -302,6 +315,7 @@ set(TARGET_LIBC_ENTRYPOINTS
302
315
libc.src.unistd.linkat
303
316
libc.src.unistd.lseek
304
317
libc.src.unistd.pathconf
318
+ libc.src.unistd.pipe
305
319
libc.src.unistd.pread
306
320
libc.src.unistd.pwrite
307
321
libc.src.unistd.read
@@ -347,6 +361,9 @@ set(TARGET_LIBM_ENTRYPOINTS
347
361
libc.src.math.atan2f
348
362
libc.src.math.atanf
349
363
libc.src.math.atanhf
364
+ libc.src.math.canonicalize
365
+ libc.src.math.canonicalizef
366
+ libc.src.math.canonicalizel
350
367
libc.src.math.cbrt
351
368
libc.src.math.cbrtf
352
369
libc.src.math.ceil
@@ -365,6 +382,7 @@ set(TARGET_LIBM_ENTRYPOINTS
365
382
libc.src.math.exp10f
366
383
libc.src.math.exp2
367
384
libc.src.math.exp2f
385
+ libc.src.math.exp2m1f
368
386
libc.src.math.expf
369
387
libc.src.math.expm1
370
388
libc.src.math.expm1f
@@ -492,6 +510,9 @@ set(TARGET_LIBM_ENTRYPOINTS
492
510
libc.src.math.rintf
493
511
libc.src.math.rintl
494
512
libc.src.math.round
513
+ libc.src.math.roundeven
514
+ libc.src.math.roundevenf
515
+ libc.src.math.roundevenl
495
516
libc.src.math.roundf
496
517
libc.src.math.roundl
497
518
libc.src.math.scalbn
@@ -523,8 +544,10 @@ set(TARGET_LIBM_ENTRYPOINTS
523
544
if(LIBC_TYPES_HAS_FLOAT128)
524
545
list(APPEND TARGET_LIBM_ENTRYPOINTS
525
546
# math.h C23 _Float128 entrypoints
547
+ libc.src.math.canonicalizef128
526
548
libc.src.math.ceilf128
527
549
libc.src.math.copysignf128
550
+ libc.src.math.dmulf128
528
551
libc.src.math.fabsf128
529
552
libc.src.math.fdimf128
530
553
libc.src.math.floorf128
@@ -539,6 +562,7 @@ if(LIBC_TYPES_HAS_FLOAT128)
539
562
libc.src.math.fminimum_numf128
540
563
libc.src.math.fminimumf128
541
564
libc.src.math.fmodf128
565
+ libc.src.math.fmulf128
542
566
libc.src.math.frexpf128
543
567
libc.src.math.fromfpf128
544
568
libc.src.math.fromfpxf128
@@ -556,7 +580,9 @@ if(LIBC_TYPES_HAS_FLOAT128)
556
580
libc.src.math.nextafterf128
557
581
libc.src.math.nextdownf128
558
582
libc.src.math.nextupf128
583
+ libc.src.math.remquof128
559
584
libc.src.math.rintf128
585
+ libc.src.math.roundevenf128
560
586
libc.src.math.roundf128
561
587
libc.src.math.scalbnf128
562
588
libc.src.math.sqrtf128
@@ -566,14 +592,48 @@ if(LIBC_TYPES_HAS_FLOAT128)
566
592
)
567
593
endif()
568
594
595
+ if(LIBC_COMPILER_HAS_FIXED_POINT)
596
+ list(APPEND TARGET_LIBM_ENTRYPOINTS
597
+ # stdfix.h _Fract and _Accum entrypoints
598
+ libc.src.stdfix.abshk
599
+ libc.src.stdfix.abshr
600
+ libc.src.stdfix.absk
601
+ libc.src.stdfix.abslk
602
+ libc.src.stdfix.abslr
603
+ libc.src.stdfix.absr
604
+ libc.src.stdfix.exphk
605
+ libc.src.stdfix.expk
606
+ libc.src.stdfix.roundhk
607
+ libc.src.stdfix.roundhr
608
+ libc.src.stdfix.roundk
609
+ libc.src.stdfix.roundlk
610
+ libc.src.stdfix.roundlr
611
+ libc.src.stdfix.roundr
612
+ libc.src.stdfix.rounduhk
613
+ libc.src.stdfix.rounduhr
614
+ libc.src.stdfix.rounduk
615
+ libc.src.stdfix.roundulk
616
+ libc.src.stdfix.roundulr
617
+ libc.src.stdfix.roundur
618
+ libc.src.stdfix.sqrtuhk
619
+ libc.src.stdfix.sqrtuhr
620
+ libc.src.stdfix.sqrtuk
621
+ libc.src.stdfix.sqrtur
622
+ # libc.src.stdfix.sqrtulk
623
+ libc.src.stdfix.sqrtulr
624
+ libc.src.stdfix.uhksqrtus
625
+ libc.src.stdfix.uksqrtui
626
+ )
627
+ endif()
628
+
569
629
if(LLVM_LIBC_FULL_BUILD)
570
630
list(APPEND TARGET_LIBC_ENTRYPOINTS
571
- # compiler entrypoints (no corresponding header)
572
- libc.src.compiler.__stack_chk_fail
573
-
574
631
# assert.h entrypoints
575
632
libc.src.assert.__assert_fail
576
633
634
+ # compiler entrypoints (no corresponding header)
635
+ libc.src.compiler.__stack_chk_fail
636
+
577
637
# dirent.h entrypoints
578
638
libc.src.dirent.closedir
579
639
libc.src.dirent.dirfd
@@ -598,6 +658,12 @@ if(LLVM_LIBC_FULL_BUILD)
598
658
libc.src.pthread.pthread_attr_setguardsize
599
659
libc.src.pthread.pthread_attr_setstack
600
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
601
667
libc.src.pthread.pthread_create
602
668
libc.src.pthread.pthread_detach
603
669
libc.src.pthread.pthread_equal
@@ -620,6 +686,21 @@ if(LLVM_LIBC_FULL_BUILD)
620
686
libc.src.pthread.pthread_mutexattr_setrobust
621
687
libc.src.pthread.pthread_mutexattr_settype
622
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
623
704
libc.src.pthread.pthread_self
624
705
libc.src.pthread.pthread_setname_np
625
706
libc.src.pthread.pthread_setspecific
@@ -643,7 +724,6 @@ if(LLVM_LIBC_FULL_BUILD)
643
724
libc.src.stdio.fgetc
644
725
libc.src.stdio.fgetc_unlocked
645
726
libc.src.stdio.fgets
646
- libc.src.stdio.fileno
647
727
libc.src.stdio.flockfile
648
728
libc.src.stdio.fopen
649
729
libc.src.stdio.fopencookie
@@ -652,7 +732,9 @@ if(LLVM_LIBC_FULL_BUILD)
652
732
libc.src.stdio.fread
653
733
libc.src.stdio.fread_unlocked
654
734
libc.src.stdio.fseek
735
+ libc.src.stdio.fseeko
655
736
libc.src.stdio.ftell
737
+ libc.src.stdio.ftello
656
738
libc.src.stdio.funlockfile
657
739
libc.src.stdio.fwrite
658
740
libc.src.stdio.fwrite_unlocked
@@ -673,9 +755,11 @@ if(LLVM_LIBC_FULL_BUILD)
673
755
# stdlib.h entrypoints
674
756
libc.src.stdlib._Exit
675
757
libc.src.stdlib.abort
758
+ libc.src.stdlib.at_quick_exit
676
759
libc.src.stdlib.atexit
677
760
libc.src.stdlib.exit
678
761
libc.src.stdlib.getenv
762
+ libc.src.stdlib.quick_exit
679
763
680
764
# signal.h entrypoints
681
765
libc.src.signal.kill
@@ -757,6 +841,10 @@ if(LLVM_LIBC_FULL_BUILD)
757
841
758
842
# sys/select.h entrypoints
759
843
libc.src.sys.select.select
844
+
845
+ # sys/socket.h entrypoints
846
+ libc.src.sys.socket.bind
847
+ libc.src.sys.socket.socket
760
848
)
761
849
endif()
762
850
0 commit comments