[libc-commits] [libc] [libc] [unistd] implement pipe2 syscall wrapper (PR #114474)
Michael Jones via libc-commits
libc-commits at lists.llvm.org
Fri Nov 1 13:22:20 PDT 2024
================
@@ -287,6 +287,23 @@ def Linux : StandardSpec<"Linux"> {
]
>;
+
+ HeaderSpec UniStd = HeaderSpec<
+ "unistd.h",
+ [], // Macros
+ [],
+ [], // Enumerations
+ [
+ FunctionSpec<
+ "pipe2",
+ RetValSpec<IntType>,
+ [ArgSpec<IntPtr>] //TODO: make this int[2]
----------------
michaelrj-google wrote:
This needs to be `[ArgSpec<IntPtr>, ArgSpec<IntType>]`. Looks like it's also wrong for `pipe`, but that can be fixed later.
```suggestion
[ArgSpec<IntPtr>, ArgSpec<IntType>] //TODO: make this int[2]
```
https://github.com/llvm/llvm-project/pull/114474
More information about the libc-commits
mailing list