[libc] [llvm] [libc] Implemented utimes (Issue #133953) (PR #134167)
Michael Jones via llvm-commits
llvm-commits at lists.llvm.org
Wed Apr 2 16:38:42 PDT 2025
================
@@ -0,0 +1,81 @@
+//===-- Unittests for utimes --------------------------------------------===//
+//
+// 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
+//
+//===----------------------------------------------------------------------===//
+
+// temp file related stuff
+#include "src/fcntl/open.h" // to open
+#include "src/unistd/close.h" // to close
+#include "src/sys/stat/stat.h" // for info
+#include "src/unistd/unlink.h" // to delete
+// testing error handling
+#include "test/UnitTest/Test.h"
+#include "src/errno/libc_errno.h"
+#include "test/UnitTest/ErrnoSetterMatcher.h"
+// dependencies for the tests themselves
+#include "hdr/types/struct_timeval.h"
+#include <cerrno>
+#include <fcntl.h>
----------------
michaelrj-google wrote:
similar to above, `cerrno` and `fcntl` aren't necessary.
https://github.com/llvm/llvm-project/pull/134167
More information about the llvm-commits
mailing list