fileno - stream status inquiries
#include <stdio.h>
The fileno() function shall return the integer file descriptor associated with the stream pointed to by stream
RETURN VALUE
Upon successful completion, fileno() shall return the integer value of the file descriptor associated with stream. Otherwise, the value -1 shall be returned and errno set to indicate the error.