[PATCH] nss: remove undefined behavior and optimize getaddrinfo
Collin Funk
collin.funk1@gmail.com
Tue Apr 29 01:59:07 GMT 2025
Cristian Rodríguez <cristian@rodriguez.im> writes:
> all the BSD have a fls* public functions in libc so adding one in
> glibc may reduce duplication.
The fls* functions are extensions that pre-date <stdbit.h> added by C23.
I don't really think it is worth adding these functions now. I would
prefer <stdbit.h> over ffs* even, but those are required by POSIX.1-2024
XSI anyways [1].
Collin
[1] https://pubs.opengroup.org/onlinepubs/9799919799/functions/ffs.html
More information about the Libc-alpha
mailing list