From c12bb17d66fa58422a0d50b4242a7507852d0405 Mon Sep 17 00:00:00 2001 From: Ian Moffett Date: Tue, 24 Jun 2025 02:29:00 -0400 Subject: usr: libc: Add fileno() Add POSIX fileno() to grab a file descriptor number from a stream pointer. Signed-off-by: Ian Moffett --- lib/libc/include/stdio.h | 1 + 1 file changed, 1 insertion(+) (limited to 'lib/libc/include/stdio.h') diff --git a/lib/libc/include/stdio.h b/lib/libc/include/stdio.h index 88e66f6..4bbe81a 100644 --- a/lib/libc/include/stdio.h +++ b/lib/libc/include/stdio.h @@ -79,6 +79,7 @@ int vsnprintf(char *s, size_t size, const char *fmt, va_list ap); int snprintf(char *s, size_t size, const char *fmt, ...); int printf(const char *__restrict fmt, ...); +int fileno(FILE *stream); int fputc(int c, FILE *stream); int putchar(int c); -- cgit v1.2.3