[libc-commits] [libc] [libc] pipe(2) linux syscall wrapper and unittest (PR #85514)
Nick Desaulniers via libc-commits
libc-commits at lists.llvm.org
Mon Mar 18 14:29:18 PDT 2024
================
@@ -264,6 +266,20 @@ def Linux : StandardSpec<"Linux"> {
]
>;
+ HeaderSpec UniStd = HeaderSpec<
+ "unistd.h",
+ [], // Macros
+ [Pipe2fdArrayT], // Types
+ [], // Enumerations
+ [
+ FunctionSpec<
+ "pipe2",
+ RetValSpec<IntType>,
+ [ArgSpec<Pipe2fdArrayT>, ArgSpec<IntType>]
----------------
nickdesaulniers wrote:
> I'm on an aarch64 Debian Linux box.
> /usr/bin/ld: /usr/bin/../lib/gcc/aarch64-linux-gnu/12/libgcc.a(lse-init.o): in function `init_have_lse_atomics':
Ah! Yeah, the issue is you've added the entrypoint to libc/config/linux/x86_64/entrypoints.txt, but you're on an aarch64 host. Try adding the entrypoint to libc/config/linux/aarch64/entrypoints.txt.
https://github.com/llvm/llvm-project/pull/85514
More information about the libc-commits
mailing list