@lanodan @psykose That's the syscall not the function. There is no "linux ABI" governing the function. Assuming the function is nonconforming because the kernel is linux is wrong. Either write code not to care, or probe it with a configure test, or probe it with _Generic.
Arguably this is a case where "POSIX is wrong", but changing it would be breaking our own existing ABI to meet other-libc ones we have no obligation to match, so it's probably not a good idea to change..