From 4ac29bbce17909935858c8f380af30df34dd38a2 Mon Sep 17 00:00:00 2001 From: EnderIce2 Date: Wed, 19 Feb 2025 20:42:56 +0200 Subject: [PATCH] feat(userspace/libc): define file descriptor macros for standard input/output Signed-off-by: EnderIce2 --- Userspace/libc/include/stdio.h | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/Userspace/libc/include/stdio.h b/Userspace/libc/include/stdio.h index 1fa695f4..5377c645 100644 --- a/Userspace/libc/include/stdio.h +++ b/Userspace/libc/include/stdio.h @@ -78,6 +78,10 @@ extern "C" extern FILE *stdout; extern FILE *stderr; +#define STDIN_FILENO 0 +#define STDOUT_FILENO 1 +#define STDERR_FILENO 2 + #define stdin stdin #define stdout stdout #define stderr stderr