On Thu, Aug 18, 2022 at 6:40 AM Alexey Izbyshev <izbyshev@ispras.ru> wrote:
Glibc doesn't implement a fallback and explicitly says it in the manual.
Using a different implementation in musl seems undesirable.

True. I would note, however, that glibc also implements another function "closefrom", which first calls close_range, and if it fails, falls back to iterating /proc/self/fd.