[libc-commits] [libc] [libc] Add DTTOIF and IFTODT (PR #241690)

Mike Lothian via libc-commits libc-commits at lists.llvm.org
Sat Nov 28 03:02:33 PST 2026


================
@@ -0,0 +1,37 @@
+//===----------------------------------------------------------------------===//
+//
+// 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
+//
+//===----------------------------------------------------------------------===//
+///
+/// \file
+/// Tests that DTTOIF and IFTODT translate between the d_type of a directory
+/// entry and the file type bits of st_mode.
+///
+//===----------------------------------------------------------------------===//
+
+#include "test/UnitTest/Test.h"
+
+#include "include/dirent.h"
+#include "include/sys/stat.h"
----------------
FireBurn wrote:

Now includes the macro headers directly

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


More information about the libc-commits mailing list