Running os-test on glibc's POSIX headers
Adhemerval Zanella Netto
adhemerval.zanella@linaro.org
Fri Oct 3 13:31:40 GMT 2025
On 29/09/25 11:47, Jonas 'Sortie' Termansen wrote:
> Hi glibc,
>
> You might be interested in the os-test project I've been building
> lately to test POSIX header comformance. The new include test suite
> checks whether the standard library headers declare everything that
> POSIX.1-2024 requires, sliced by each option group:
>
> https://sortix.org/os-test/include/ has the raw data
> https://sortix.org/blog/os-testing-posix-headers/ is a write-up about
> the results
>
> Overall the glibc results are really good and gets a top three spot.
> I only tested on my system glibc rather than the latest bleeding
> version, but with a bit of feature macro adjustments for
> POSIX.1-2024, then the score can rise to a near perfect 95%. There
> are some missing declarations, some of which are new POSIX.1-2024
> features, some of which might not be added in the Linux kernel.
>
> If you're interested using this project to improve interoperability,
> then please dive into the data and have a look :)
>
> This os-test work has been funded by the NLnet foundation and next
> up I'll be working on namespace pollution and seeing if functions
> actually work if invoked.
>
This is an interesting project and I recall that I used your post of
the POSIX 2024 features to check what glibc has missing (like sig2str
and others). I wonder how hard would be to adapt the os-test to run
against an installed glibc build, so it would be easier to check
on master branch.
Thanks for bring this up.
More information about the Libc-alpha
mailing list