summaryrefslogtreecommitdiff
path: root/libc
diff options
context:
space:
mode:
authorMikhail R. Gadelha <mikhail@igalia.com>2023-03-14 14:06:01 -0300
committerMikhail R. Gadelha <mikhail@igalia.com>2023-03-16 06:16:14 -0300
commit63ed8ab4dbb37b1be481b3b3138f7fe1db1c649f (patch)
treeb098b04b2e9cdadd1b8d1c82c73432be2a9386ec /libc
parent3b1951aceb8c58acd3d5c5ba2d042ad3d03c13c4 (diff)
downloadllvm-63ed8ab4dbb37b1be481b3b3138f7fe1db1c649f.tar.gz
[libc] Update supported riscv libs
This patch removes some duplicated libs added to entrypoints.txt, adds new libs supported to entrypoints.txt and updates header.txt Differential Revision: https://reviews.llvm.org/D146065
Diffstat (limited to 'libc')
-rw-r--r--libc/config/linux/riscv64/entrypoints.txt15
-rw-r--r--libc/config/linux/riscv64/headers.txt17
2 files changed, 28 insertions, 4 deletions
diff --git a/libc/config/linux/riscv64/entrypoints.txt b/libc/config/linux/riscv64/entrypoints.txt
index cf91605f5a6b..2d0df5cde267 100644
--- a/libc/config/linux/riscv64/entrypoints.txt
+++ b/libc/config/linux/riscv64/entrypoints.txt
@@ -321,6 +321,9 @@ set(TARGET_LIBM_ENTRYPOINTS
if(LLVM_LIBC_FULL_BUILD)
list(APPEND TARGET_LIBC_ENTRYPOINTS
+ # assert.h entrypoints
+ libc.src.assert.__assert_fail
+
# network.h entrypoints
libc.src.network.htonl
libc.src.network.htons
@@ -378,6 +381,8 @@ if(LLVM_LIBC_FULL_BUILD)
libc.src.stdio.ferror
libc.src.stdio.ferror_unlocked
libc.src.stdio.fgetc
+ libc.src.stdio.fgetc_unlocked
+ libc.src.stdio.fgets
libc.src.stdio.fflush
libc.src.stdio.fopen
libc.src.stdio.fputc
@@ -386,20 +391,30 @@ if(LLVM_LIBC_FULL_BUILD)
libc.src.stdio.fread
libc.src.stdio.fread_unlocked
libc.src.stdio.fseek
+ libc.src.stdio.ftell
libc.src.stdio.funlockfile
libc.src.stdio.fwrite
libc.src.stdio.fwrite_unlocked
libc.src.stdio.fprintf
+ libc.src.stdio.getc
+ libc.src.stdio.getc_unlocked
libc.src.stdio.printf
+ libc.src.stdio.sscanf
+ libc.src.stdio.scanf
+ libc.src.stdio.fscanf
libc.src.stdio.putc
libc.src.stdio.putchar
libc.src.stdio.puts
+ libc.src.stdio.setbuf
+ libc.src.stdio.setvbuf
libc.src.stdio.stderr
libc.src.stdio.stdin
libc.src.stdio.stdout
+ libc.src.stdio.ungetc
# stdlib.h entrypoints
libc.src.stdlib._Exit
+ libc.src.stdlib.abort
libc.src.stdlib.atexit
libc.src.stdlib.exit
libc.src.stdlib.getenv
diff --git a/libc/config/linux/riscv64/headers.txt b/libc/config/linux/riscv64/headers.txt
index 85c2d4bfe658..1b6dea68e238 100644
--- a/libc/config/linux/riscv64/headers.txt
+++ b/libc/config/linux/riscv64/headers.txt
@@ -2,20 +2,29 @@ set(TARGET_PUBLIC_HEADERS
libc.include.assert
libc.include.ctype
libc.include.errno
+ libc.include.fcntl
libc.include.fenv
libc.include.inttypes
libc.include.math
libc.include.pthread
- libc.include.signal
libc.include.sched
+ libc.include.signal
libc.include.stdio
libc.include.stdlib
libc.include.string
libc.include.strings
- libc.include.sys_mman
- libc.include.sys_socket
- libc.include.sys_syscall
+ libc.include.termios
libc.include.threads
libc.include.time
libc.include.unistd
+
+ libc.include.sys_mman
+ libc.include.sys_random
+ libc.include.sys_resource
+ libc.include.sys_select
+ libc.include.sys_socket
+ libc.include.sys_stat
+ libc.include.sys_syscall
+ libc.include.sys_utsname
+ libc.include.sys_wait
)