[all-commits] [llvm/llvm-project] e7b04c: [libc] Modernize and extend dirent.h header. (#212...
Alexey Samsonov via All-commits
all-commits at lists.llvm.org
Wed Jul 29 17:49:23 PDT 2026
Branch: refs/heads/main
Home: https://github.com/llvm/llvm-project
Commit: e7b04c15e6b18294c923f874f16e2d5a8e885706
https://github.com/llvm/llvm-project/commit/e7b04c15e6b18294c923f874f16e2d5a8e885706
Author: Alexey Samsonov <vonosmas at gmail.com>
Date: 2026-07-29 (Wed, 29 Jul 2026)
Changed paths:
M libc/include/CMakeLists.txt
M libc/include/dirent.yaml
M libc/include/llvm-libc-macros/CMakeLists.txt
A libc/include/llvm-libc-macros/dirent-macros.h
M libc/include/llvm-libc-macros/linux/CMakeLists.txt
A libc/include/llvm-libc-macros/linux/dirent-macros.h
M libc/include/llvm-libc-types/CMakeLists.txt
A libc/include/llvm-libc-types/reclen_t.h
M libc/include/llvm-libc-types/struct_dirent.h
A libc/include/llvm-libc-types/struct_posix_dent.h
M libc/test/src/dirent/dirent_test.cpp
Log Message:
-----------
[libc] Modernize and extend dirent.h header. (#212902)
Extend the `<dirent.h>` header with macro and types specified in recent
POSIX.1-2024:
* Add `posix_dent` structure, which has more fields than `dirent`, that
are actually used in practice. This struct would be identical to
`dirent` that we have on Linux
* Add `reclen_t` type for `d_reclen` field.
* Add macro `DT_BLK` and friends
Also, extend the tests to verify the values of `d_type` field, now that
we have the proper macro defined.
Assisted by: Gemini, human-verified
To unsubscribe from these emails, change your notification settings at https://github.com/llvm/llvm-project/settings/notifications
More information about the All-commits
mailing list