[libc-commits] [PATCH] D146161: [libc] Enable __llvm_libc_syscall and fork

Mikhail Ramalho via Phabricator via libc-commits libc-commits at lists.llvm.org
Wed Mar 15 12:01:54 PDT 2023


mikhail.ramalho created this revision.
mikhail.ramalho added a reviewer: sivachandra.
Herald added subscribers: libc-commits, luke, frasercrmck, ecnelises, luismarques, apazos, sameer.abuasal, tschuett, s.egerton, Jim, jocewei, PkmX, the_o, brucehoult, MartinMosbeck, rogfer01, edward-jones, zzheng, jrtc27, niosHD, sabuasal, simoncook, johnrusso, rbar, asb.
Herald added projects: libc-project, All.
mikhail.ramalho requested review of this revision.
Herald added a subscriber: pcwang-thead.

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.


Repository:
  rG LLVM Github Monorepo

https://reviews.llvm.org/D146161

Files:
  libc/config/linux/riscv64/entrypoints.txt
  libc/src/unistd/linux/fork.cpp
  libc/test/src/unistd/syscall_test.cpp

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D146161.505584.patch
Type: text/x-patch
Size: 4753 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/libc-commits/attachments/20230315/5a5862e8/attachment.bin>


More information about the libc-commits mailing list