]> sourceware.org Git - newlib-cygwin.git/commit
Cygwin: implement dirent.d_reclen
authorCorinna Vinschen <corinna@vinschen.de>
Sun, 21 Jan 2024 18:51:54 +0000 (19:51 +0100)
committerCorinna Vinschen <corinna@vinschen.de>
Wed, 31 Jan 2024 19:11:57 +0000 (20:11 +0100)
commit7e40e0169a75ebdf3f3861dab47abdfeb0ad9c58
treecce21032416cde1d4b7f262d5d3840cd2c954201
parentcd260e4daa53eae7166aac3a6efbe7ebcf05683f
Cygwin: implement dirent.d_reclen

This change is in preparation of adding posix_getdents() from
the upcoming POSIX Base Specification Issue 8.

- Add d_reclen
- Add GLibC compatible test macros for dirent members
- Bump dirent version
- Set d_reclen to the fixed size of the dirent struct
  We can do that because the size is a multiple of 8, so it fits
  snugly in the buffer filled by posix_getdents and keep the
  alignement.

Signed-off-by: Corinna Vinschen <corinna@vinschen.de>
winsup/cygwin/dir.cc
winsup/cygwin/include/cygwin/version.h
winsup/cygwin/include/sys/dirent.h
This page took 0.031364 seconds and 5 git commands to generate.