[libc-commits] [libc] [libc] pipe(2) linux syscall wrapper and unittest (PR #85514)

via libc-commits libc-commits at lists.llvm.org
Wed Mar 20 06:07:02 PDT 2024


================
@@ -264,6 +264,20 @@ def Linux : StandardSpec<"Linux"> {
       ]
   >;
 
+  HeaderSpec UniStd = HeaderSpec<
+    "unistd.h",
+    [], // Macros
+    [], // Types
+    [], // Enumerations
+    [
+        FunctionSpec<
+          "pipe2",
+          RetValSpec<IntType>,
+          [ArgSpec<IntPtr>, ArgSpec<IntType>]
----------------
muffpy wrote:

> and make sure to remove <fcntl.h>. If you get a compile time failure as a result, let me know what it is.

I need <fcntl.h> for [this](https://github.com/llvm/llvm-project/pull/85514/commits/863c2ab8fbc31c643fea421b150be4e04ada8a2b#diff-2c1e9264e6983d7340dc69520c94a83413e9b61ece4b1662ba5edfc46a66e230R43) subtest in Pipe2CreationTest.

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


More information about the libc-commits mailing list