O'Reilly logo
  • Ivan Petrov thinks this is interesting:

#include <stdio.h> POSIX int fileno(FILE *stream);

From

Cover of Linux® Programming by Example

Note

accessing file descriptors from streams