[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


================
@@ -0,0 +1,36 @@
+//===-- Linux implementation of pipe2
+//---------------------------------------===//
+//
+// Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.
+// See https://llvm.org/LICENSE.txt for license information.
+// SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
+//
+//===----------------------------------------------------------------------===//
+
+#include "src/unistd/pipe2.h"
+
+#include "src/__support/OSUtil/syscall.h" // For internal syscall function.
+#include "src/__support/common.h"
+
+#include "src/errno/libc_errno.h"
----------------
nickdesaulniers wrote:

Put these 3 includes together with no extra new lines, then sort.

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


More information about the libc-commits mailing list