CeDOS - Commit 7fb8a580

libcedos: Add return value to process_wait Signed-off-by: Celina Sophie Kalus <hello@celinakalus.de>
Celina Sophie Kalus
Fri, 25 Jul 2025 19:27:34 +0200
2 files changed, 3 insertions(+), 2 deletions(-)
M libcedos/cedos.clibcedos/cedos.c

@@ -56,9 +56,10 @@ interrupt(0x30, res, 4, fname, args, fd_in | (fd_out << 8));

return res; } -void process_wait(int pid) { +int process_wait(int pid) { volatile uint32_t res = 0; interrupt(0x30, res, 5, pid, 0, 0); + return res; } int sc_file_open(const char *pathname, uint32_t flags) {
M libcedos/cedos.hlibcedos/cedos.h

@@ -24,7 +24,7 @@ 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 fd_in, int fd_out); -void process_wait(int pid); +int process_wait(int pid); void process_kill(int pid); void graphics_set_mode(int mode);