If fclose() fails, is the file descriptor still open?
man fclose
does not provide the answer on my system either, but man 3p fclose
reveals the official version from the POSIX Programmer's manual, which is much more comprehensive on the matter:
The
fclose()
function shall perform the equivalent of aclose()
on the file descriptor that is associated with the stream pointed to by stream.