fileno is a #define macro - rename to filenum