This is the mail archive of the
libc-alpha@sourceware.org
mailing list for the glibc project.
Re: [PATCH] Linux: Add <sys/direntries.h>
- From: Florian Weimer <fweimer at redhat dot com>
- To: libc-alpha at sourceware dot org
- Date: Mon, 08 Jul 2019 13:19:25 +0200
- Subject: Re: [PATCH] Linux: Add <sys/direntries.h>
- References: <87o92v7yyt.fsf@oldenburg2.str.redhat.com>
* Florian Weimer:
> This header file provides the types struct direntry and struct
> direntries, and the functions direntries_init, direntries_read,
> and direntries_next. Using a separate header file (instead of
> augmenting <dirent.h>) allows more straightforward type names
> because identifier collisions are less of a problem (new code
> can work around them).
>
> The d_off member is not exposed via struct direntry because it is
> difficult to use correctly (it refers to the *next* entry), and
> it is also difficult to emulate with other interfaces.
Any comments on this patch? I think it fits the addition of getdents64.
<https://sourceware.org/ml/libc-alpha/2019-06/msg00418.html>
Thanks,
Florian