Re: [PATCH v2 0/2] nolibc: Add dirfd()
From: Willy Tarreau
Date: Wed Oct 07 2026 - 02:44:04 EST
Hi Daniel,
On Wed, Oct 07, 2026 at 02:29:11PM +0900, Daniel Palmer wrote:
> Add dirfd() to convert a DIR back to an fd for functions like fstatat()
> that take an fd.
>
> Change log:
> v2 - Fix the name of the dirfd helper, I debated over removing the helper
> as suggested by Thomas but it seems right to have the logic in a single
> place.
> Add test a basic test to make sure dirfd() actually does convert back
> to the expected fd and using dirfd() with fstatat().
The series looks good to me:
Reviewed-by: Willy Tarreau <w@xxxxxx>
Let's wait for Thomas in case he spots anything subtle.
Thanks!
Willy