[libc-commits] [libc] [libc] Implement fdopendir (PR #206590)

Michael Jones via libc-commits libc-commits at lists.llvm.org
Tue Jun 30 10:56:57 PDT 2026


================
@@ -1,21 +1,27 @@
-//===--- Linux implementation of the Dir helpers --------------------------===//
+//===----------------------------------------------------------------------===//
 //
 // 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
+/// Linux implementation of the Dir helpers.
+///
+//===----------------------------------------------------------------------===//
 
 #include "src/__support/File/dir.h"
-
+#include "hdr/fcntl_macros.h"    // For open flags
+#include "hdr/sys_stat_macros.h" // For S_ISDIR
+#include "src/__support/OSUtil/linux/stat/kernel_statx_types.h"
+#include "src/__support/OSUtil/linux/syscall_wrappers/fcntl.h"
 #include "src/__support/OSUtil/linux/syscall_wrappers/open.h"
+#include "src/__support/OSUtil/linux/syscall_wrappers/statx.h"
 #include "src/__support/OSUtil/syscall.h" // For internal syscall function.
----------------
michaelrj-google wrote:

syscall doesn't have a separate cmake target. It's currently just part of `libc.src.__support.OSUtil.osutil`

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


More information about the libc-commits mailing list