Removed fileno() function call