CeDOS - Commit 50ea6c5b

libcedos: Fix file descriptor argument naming The arguments cannot be named stdin and stdout as this can collide with the global variables by the same name Signed-off-by: Celina Sophie Kalus <hello@celinakalus.de>
Celina Sophie Kalus
Wed, 23 Jul 2025 22:45:55 +0200
2 files changed, 3 insertions(+), 3 deletions(-)
M libcedos/cedos.clibcedos/cedos.c

@@ -50,9 +50,9 @@ interrupt(0x30, res, 4, fname, args, 0);

return res; } -int process_spawn_pipe(const char *fname, const char *args, int stdin, int stdout) { +int process_spawn_pipe(const char *fname, const char *args, int fd_in, int fd_out) { volatile uint32_t res = 0; - interrupt(0x30, res, 4, fname, args, stdin | (stdout << 8)); + interrupt(0x30, res, 4, fname, args, fd_in | (fd_out << 8)); return res; }
M libcedos/cedos.hlibcedos/cedos.h

@@ -23,7 +23,7 @@ int yield();

void sleep(int msec); int get_pid(); int process_spawn(const char *fname, const char *args); -int process_spawn_pipe(const char *fname, const char *args, int stdin, int stdout); +int process_spawn_pipe(const char *fname, const char *args, int fd_in, int fd_out); void process_wait(int pid); void process_kill(int pid);