]> Savannah Git Hosting - gnulib.git/commit
dirent: define DT_* macros on all platforms
authorPaul Eggert <eggert@cs.ucla.edu>
Wed, 2 Oct 2024 22:50:10 +0000 (15:50 -0700)
committerPaul Eggert <eggert@cs.ucla.edu>
Thu, 3 Oct 2024 00:41:28 +0000 (17:41 -0700)
commita6de9f388441c4389e2ee3a8e98486f195d67198
tree7b1b12d20fcb72162e8da26d2881f9992e817563
parent7e844a10182b8243a444bcdd6f473709cc14c68a
dirent: define DT_* macros on all platforms

* lib/dirent.in.h (DT_UNKNOWN, DT_FIFO, DT_CHR, DT_DIR, DT_BLK)
(DT_REG, DT_LNK, DT_SOCK, DT_WHT): Define these on all platforms,
if the system does not already define them.  Check that they
have distinct values.
(_GL_DIRENT_S_ISWHT, _GL_DIRENT_S_IFWHT) [!(IFTODT && DTTOIF)]:
New macros.
(IFTODT, DTTOIF): Define if not already defined.
* modules/dirent (Depends-on): Add assert-h, extensions.
ChangeLog
doc/posix-headers/dirent.texi
lib/dirent.in.h
modules/dirent