[libc-commits] [libc] [libc] pipe(2) linux syscall wrapper and unittest (PR #85514)
Michael Jones via libc-commits
libc-commits at lists.llvm.org
Mon Mar 18 12:01:00 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>]
----------------
michaelrj-google wrote:
For the moment I'd recommend just using `IntPtr`, like I do in https://github.com/llvm/llvm-project/pull/84587/files#diff-92466e87254ec05eab5b577e3af1fc8198eba9b590c221cebe85710bf19e3a36
It's not technically correct, but it's close enough for now.
https://github.com/llvm/llvm-project/pull/85514
More information about the libc-commits
mailing list