[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 08:54:01 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:

@michaelrj-google can you check these types?  This is slightly different than how you chose to define an `int [2]` in https://github.com/llvm/llvm-project/pull/84587/files.

https://github.com/llvm/llvm-project/pull/85514


More information about the libc-commits mailing list