diff options
| author | Jakob Kaivo <jkk@ung.org> | 2019-02-09 13:14:01 -0500 |
|---|---|---|
| committer | Jakob Kaivo <jkk@ung.org> | 2019-02-09 13:14:01 -0500 |
| commit | 253a32e2f9ff1cbb8edbe7c79834a678daebeb93 (patch) | |
| tree | 599cf5baf01c6dae33a2f89989b08b7d553f7fd0 /src/stdio/fileno.c | |
| parent | 88d0b5e7ffbf0554b236dc46225846061b5f4817 (diff) | |
merge POSIX.1-1988/1990
Diffstat (limited to 'src/stdio/fileno.c')
| -rw-r--r-- | src/stdio/fileno.c | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/src/stdio/fileno.c b/src/stdio/fileno.c new file mode 100644 index 00000000..a3af0ec2 --- /dev/null +++ b/src/stdio/fileno.c @@ -0,0 +1,12 @@ +#include <stdio.h> +#include "nonstd/FILE.h" +#include "nonstd/assert.h" + +int fileno(FILE * stream) +{ + ASSERT_NONNULL(stream); + return stream->fd; +} +/* +POSIX(1) +*/ |
