[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 09:17:05 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:

@muffpy I think you'll need to resolve the build issues with `ninja libc` first before you can run `ninja libc_unistd_unittests`.

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


More information about the libc-commits mailing list