[libc-commits] [libc] [llvm] [libc][c11] Add stdio.h's rename() function (PR #85068)

Nick Desaulniers via libc-commits libc-commits at lists.llvm.org
Tue Mar 19 17:55:46 PDT 2024


================
@@ -0,0 +1,50 @@
+//===-- Unittests for rename ----------------------------------------------===//
+//
+// 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/fcntl/open.h"
+#include "src/stdio/rename.h"
+#include "src/unistd/access.h"
+#include "src/unistd/close.h"
+#include "test/UnitTest/ErrnoSetterMatcher.h"
+#include "test/UnitTest/Test.h"
+
+#include "src/errno/libc_errno.h"
----------------
nickdesaulniers wrote:

Please remove the whitespace on line 16 then sort this include block.

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


More information about the libc-commits mailing list