[PATCH COMMITTED] support: Add <support/xdirent.h>

Florian Weimer fweimer@redhat.com
Thu Sep 5 10:12:11 GMT 2024


* Florian Weimer:

> I botched patch split, so this is what I committed.  The combination of
> the two patches is identical to what DJ reviewed.
> ---8<---
>
> Use static functions for readdir/readdir_r, so that
> -D_FILE_OFFSET_BITS=64 does not improperly redirect calls to the wrong
> implementation.
>
> Reviewed-by: DJ Delorie <dj@redhat.com>
>
> ---
>  support/Makefile                  |  6 ++++
>  support/support_readdir_check.c   | 29 ++++++++++++++++
>  support/support_readdir_r_check.c | 29 ++++++++++++++++
>  support/tst-xdirent.c             | 70 +++++++++++++++++++++++++++++++++++++++
>  support/xclosedir.c               | 28 ++++++++++++++++
>  support/xdirent.h                 | 53 +++++++++++++++++++++++++++++
>  support/xfdopendir.c              | 30 +++++++++++++++++
>  support/xopendir.c                | 30 +++++++++++++++++
>  8 files changed, 275 insertions(+)

Disregard that, I sent a patch from the wrong branch, sorry.

Florian



More information about the Libc-alpha mailing list