[libc-commits] [libc] [libc] [unistd] implement pipe2 syscall wrapper (PR #114474)

via libc-commits libc-commits at lists.llvm.org
Fri Nov 1 13:50:27 PDT 2024


================
@@ -287,6 +287,23 @@ def Linux : StandardSpec<"Linux"> {
       ]
   >;
 
+
+  HeaderSpec UniStd = HeaderSpec<
+    "unistd.h",
+    [], // Macros
+    [],
+    [], // Enumerations
+    [
+        FunctionSpec<
+          "pipe2",
+          RetValSpec<IntType>,
+          [ArgSpec<IntPtr>] //TODO: make this int[2]
----------------
duncpro wrote:

Sorry about that. 

 Is there an automated test I should be running which catches discrepancies like this? Or do we just have to be careful here.

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


More information about the libc-commits mailing list