diff options
author | Ian Moffett <ian@osmora.org> | 2025-07-17 00:25:52 -0400 |
---|---|---|
committer | Ian Moffett <ian@osmora.org> | 2025-07-17 00:31:19 -0400 |
commit | 3a486d207fc948bf1d146b6071480a6ecdae41b7 (patch) | |
tree | aa8b9e29488756bbed30c6b1ccfe78920814b1ae /sys/include | |
parent | 24b850e55e1dd8c36a4b2e946b941422db17abb5 (diff) |
kernel: spawn: Add waitpid()
Add waitpid() in preparation of deprecating SPAWN_WAIT.
Signed-off-by: Ian Moffett <ian@osmora.org>
Diffstat (limited to 'sys/include')
-rw-r--r-- | sys/include/sys/proc.h | 1 | ||||
-rw-r--r-- | sys/include/sys/syscall.h | 1 |
2 files changed, 2 insertions, 0 deletions
diff --git a/sys/include/sys/proc.h b/sys/include/sys/proc.h index decc615..972d3c4 100644 --- a/sys/include/sys/proc.h +++ b/sys/include/sys/proc.h @@ -119,6 +119,7 @@ pid_t getppid(void); scret_t sys_getpid(struct syscall_args *scargs); scret_t sys_getppid(struct syscall_args *scargs); +scret_t sys_waitpid(struct syscall_args *scargs); int md_spawn(struct proc *p, struct proc *parent, uintptr_t ip); diff --git a/sys/include/sys/syscall.h b/sys/include/sys/syscall.h index 51c2579..02629a9 100644 --- a/sys/include/sys/syscall.h +++ b/sys/include/sys/syscall.h @@ -58,6 +58,7 @@ #define SYS_getppid 17 #define SYS_setuid 18 #define SYS_getuid 19 +#define SYS_waitpid 20 #if defined(_KERNEL) /* Syscall return value and arg type */ |