[libc-commits] [libc] [libc] Add POSIX.1-2024 <ftw.h> and Linux nftw implementation (PR #234996)
Jeff Bailey via libc-commits
libc-commits at lists.llvm.org
Wed Nov 18 14:47:23 PST 2026
================
@@ -20,15 +20,25 @@
namespace LIBC_NAMESPACE_DECL {
namespace linux_syscalls {
+#ifdef SYS_openat
+LIBC_INLINE ErrorOr<int> openat(int dfd, const char *path, int flags,
+ mode_t mode_flags) {
+ int fd = syscall_impl<int>(SYS_openat, dfd, path, flags, mode_flags);
+ if (fd < 0)
+ return Error(-fd);
+ return fd;
+}
+#endif
----------------
kaladron wrote:
It's been implemented upstream since I built this. Dropping it.
https://github.com/llvm/llvm-project/pull/234996
More information about the libc-commits
mailing list