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