summaryrefslogtreecommitdiff
path: root/libc/config
diff options
context:
space:
mode:
authorMikhail R. Gadelha <mikhail@igalia.com>2023-03-15 14:10:54 -0300
committerMikhail R. Gadelha <mikhail@igalia.com>2023-03-16 06:16:14 -0300
commit1990ce74dcbd5fbb5c71672b50730007be3dcd5e (patch)
tree53e810995cbcd73a40b367770e167786a0d77549 /libc/config
parentfe99de31d949187fa9759de581041bb1aff460ea (diff)
downloadllvm-1990ce74dcbd5fbb5c71672b50730007be3dcd5e.tar.gz
[libc] Enable __llvm_libc_syscall and fork
This patch enables the remaining calls from unistd. The test cases had to be updated to: 1. Use SYS_symlinkat if SYS_symlink is not available 2. Use SYS_readlinkat if SYS_readlink is not available 3. Use SYS_unlinkat if SYS_unlink is not available 4. Use SYS_openat if SYS_open is not available We also abort compilation if neither of the syscalls mentioned above are available. Differential Revision: https://reviews.llvm.org/D146161
Diffstat (limited to 'libc/config')
-rw-r--r--libc/config/linux/riscv64/entrypoints.txt2
1 files changed, 2 insertions, 0 deletions
diff --git a/libc/config/linux/riscv64/entrypoints.txt b/libc/config/linux/riscv64/entrypoints.txt
index 042671fa1833..95e3c1e5bf50 100644
--- a/libc/config/linux/riscv64/entrypoints.txt
+++ b/libc/config/linux/riscv64/entrypoints.txt
@@ -477,6 +477,8 @@ if(LLVM_LIBC_FULL_BUILD)
# unistd.h entrypoints
libc.src.unistd.environ
libc.src.unistd.execv
+ libc.src.unistd.fork
+ libc.src.unistd.__llvm_libc_syscall
libc.src.unistd.getopt
libc.src.unistd.optarg
libc.src.unistd.optind