diff options
author | Ian Moffett <ian@osmora.org> | 2025-07-03 18:03:44 -0400 |
---|---|---|
committer | Ian Moffett <ian@osmora.org> | 2025-07-03 18:03:44 -0400 |
commit | 3701a82d3f2d27b8097ce56c0655df7efc0f0153 (patch) | |
tree | 35d46cd7f7951319b25f86a24ebfe13125491067 /sys/include | |
parent | a9965cb3292782f2072141c12d609de0871d1c7c (diff) |
kernel: proc: Add getpid() and getppid()
Signed-off-by: Ian Moffett <ian@osmora.org>
Diffstat (limited to 'sys/include')
-rw-r--r-- | sys/include/sys/proc.h | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/sys/include/sys/proc.h b/sys/include/sys/proc.h index 241d990..7aa04b2 100644 --- a/sys/include/sys/proc.h +++ b/sys/include/sys/proc.h @@ -90,6 +90,12 @@ struct proc *this_td(void); struct proc *get_child(struct proc *cur, pid_t pid); void proc_reap(struct proc *td); +pid_t getpid(void); +pid_t getppid(void); + +scret_t sys_getpid(struct syscall_args *scargs); +scret_t sys_getppid(struct syscall_args *scargs); + int md_spawn(struct proc *p, struct proc *parent, uintptr_t ip); scret_t sys_spawn(struct syscall_args *scargs); |