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: Rich Felker <dalias at libc dot org>
- To: Florian Weimer <fweimer at redhat dot com>
- Cc: libc-alpha at sourceware dot org
- Date: Mon, 8 Jul 2019 13:53:19 -0400
- Subject: Re: [PATCH] Linux: Add <sys/direntries.h>
- References: <87o92v7yyt.fsf@oldenburg2.str.redhat.com>
On Tue, Jun 18, 2019 at 04:24:58PM +0200, Florian Weimer wrote:
> 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).
I don't understand the motivation for these interfaces vs using the
standard ones. It seems like adding them explicitly discourages
portable code and has few if any benefits.
Rich