* Alejandro Colomar <alx@xxxxxxxxxx>, 2023-11-30 13:40:
Since POSIX doesn't specify, I assume it allows setting errno on success, as with any other libc function. That includes setting errno on a successful call that returns 0.
No? "These functions shall not change the setting of errno if successful."
-- Jakub Wilk