diff options
Diffstat (limited to 'src/stdio/fileno.c')
-rw-r--r-- | src/stdio/fileno.c | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/src/stdio/fileno.c b/src/stdio/fileno.c new file mode 100644 index 00000000..9ffb26d5 --- /dev/null +++ b/src/stdio/fileno.c @@ -0,0 +1,8 @@ +#include "stdio_impl.h" + +int fileno(FILE *f) +{ + return f->fd; +} + +weak_alias(fileno, fileno_unlocked); |