[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
Wed Mar 13 09:00:23 PDT 2024
================
@@ -0,0 +1,37 @@
+//===-- Linux implementation of 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/stdio/rename.h"
+
+#include "src/__support/OSUtil/syscall.h" // For internal syscall function.
+#include "src/__support/common.h"
+
+#include "src/errno/libc_errno.h"
+#include <fcntl.h> // For AT_* macros.
----------------
nickdesaulniers wrote:
Please use include/llvm-libc-macros/fcntl-macros.h rather than <fcntl.h>
https://github.com/llvm/llvm-project/pull/85068
More information about the libc-commits
mailing list