fopen(3c): POSIX violation in a documented way
The fopen(3c) man page says this:
RETURN VALUES Upon successful completion, fopen() returns a pointer to the object controlling the stream. Otherwise, a null pointer is returned and errno is set to indicate the error. The fopen() function may fail and not set errno if there are no free stdio streams.
I do not know whether the last sentence is valid for the current fopen(3c) implementation, but it definitely violates both POSIX.1-2001 <http://pubs.opengroup.org/onlinepubs/009695399/functions/fopen.html> and POSIX.1-2008 <http://pubs.opengroup.org/onlinepubs/9699919799/functions/fopen.html>.
No data to display