/* Copyright (C) 1994 DJ Delorie, see COPYING.DJ for details */ #include #include #undef fileno int fileno(FILE *stream) { return stream ? stream->_file : -1; }