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

Nick Desaulniers via libc-commits libc-commits at lists.llvm.org
Tue Mar 19 09:02:05 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>]
----------------
nickdesaulniers wrote:

Please add a comment `// TODO: use int array for the first ArgSpec when possible`.

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


More information about the libc-commits mailing list