9109d7af7f
FILE* innards; allow plats to replace the entire emulated FILE* system.
16 lines
201 B
C
16 lines
201 B
C
/*
|
|
* fileno .c - map a stream to a file descriptor
|
|
*/
|
|
/* $Id$ */
|
|
|
|
#include <stdio.h>
|
|
|
|
#if ACKCONF_WANT_STDIO && ACKCONF_WANT_EMULATED_FILE
|
|
|
|
int(fileno)(FILE* stream)
|
|
{
|
|
return stream->_fd;
|
|
}
|
|
|
|
#endif
|