llvm-capstone/libc
Mikhail R. Gadelha c9783d2bda [libc] Add support to compile some syscalls on 32 bit platform
This patch adds a bunch of ifdefs to handle the 32 bit versions of
some syscalls, which often only append a 64 to the name of the syscall
(with exception of SYS_lseek -> SYS_llseek and SYS_futex ->
SYS_futex_time64)

This patch also tries to handle cases where wait4 is not available
(as in riscv32): to implement wait, wait4 and waitpid when wait4 is
not available, we check for alternative wait calls and ultimately rely
on waitid to implement them all.

In riscv32, only waitid is available, so we need it to support this
platform.

Reviewed By: michaelrj

Differential Revision: https://reviews.llvm.org/D148371
2023-08-03 10:08:01 -03:00
..
AOR_v20.02 [NFC][Py Reformat] Reformat python files in the rest of the dirs 2023-05-25 11:17:05 +02:00
benchmarks [libc][benchmark] Do not force static linking 2023-05-11 09:09:28 +00:00
cmake/modules [libc] Warn on use of global constructors in libc 2023-07-20 11:29:58 -05:00
config [libc] Add support to compile some syscalls on 32 bit platform 2023-08-03 10:08:01 -03:00
docs [libc] Remove test RPC opcodes from the exported header 2023-07-21 15:36:36 -05:00
examples Reland "[CMake] Bumps minimum version to 3.20.0. 2023-05-27 12:51:21 +02:00
fuzzing [libc] Set min precision for strtofloat fuzz 2023-07-18 16:28:22 -07:00
include [libc] Add support to compile some syscalls on 32 bit platform 2023-08-03 10:08:01 -03:00
lib [libc] Build two different static archives libc.a and libm.a under full build. 2023-01-31 21:45:08 +00:00
spec [libc] Add support to compile some syscalls on 32 bit platform 2023-08-03 10:08:01 -03:00
src [libc] Add support to compile some syscalls on 32 bit platform 2023-08-03 10:08:01 -03:00
startup [libc] Treat the locks array as a bitfield 2023-07-21 10:49:11 -05:00
test [libc] Add support to compile some syscalls on 32 bit platform 2023-08-03 10:08:01 -03:00
utils [libc] Add support for the 'fread' function on the GPU 2023-07-26 13:51:35 -05:00
.clang-tidy [libc][NFC] Clean up clang-tidy warnings for src/__support and src/math. 2023-03-15 18:47:31 -04:00
.gitignore
CMakeLists.txt [libc] _INCLUDE_SCUDO: check for compiler-rt in enabled RUNTIMES too 2023-07-27 05:11:54 +01:00
common_libc_tuners.cmake [libc][NFC] Make tuning macros start with LIBC_COPT_ 2023-02-15 10:00:16 +00:00
LICENSE.TXT
README.txt

LLVM libc
=========

This directory and its subdirectories contain source code for llvm-libc,
a retargetable implementation of the C standard library.

LLVM is open source software. You may freely distribute it under the terms of
the license agreement found in LICENSE.txt.