]> git.ipfire.org Git - thirdparty/glibc.git/commit
support: Add <support/readdir.h>
authorFlorian Weimer <fweimer@redhat.com>
Thu, 12 Sep 2024 07:40:25 +0000 (09:40 +0200)
committerFlorian Weimer <fweimer@redhat.com>
Thu, 12 Sep 2024 07:40:45 +0000 (09:40 +0200)
commit1251e9ea49fba9f53bbf4f290f3db90c01931fa7
tree390f602786dc397da403dd3fff319c3e0125b07e
parentc444cc1d8335243c5c4e636d6a26c472df85522c
support: Add <support/readdir.h>

It allows to read directories using the six readdir variants
without writing type-specific code or using skeleton files
that are compiled four times.

The readdir_r subtest for support_readdir_expect_error revealed
bug 32124.

Reviewed-by: DJ Delorie <dj@redhat.com>
support/Makefile
support/readdir.h [new file with mode: 0644]
support/support_readdir.c [new file with mode: 0644]
support/tst-support_readdir.c [new file with mode: 0644]