summaryrefslogtreecommitdiff
path: root/sys/include
diff options
context:
space:
mode:
authorIan Moffett <ian@osmora.org>2025-07-03 18:03:44 -0400
committerIan Moffett <ian@osmora.org>2025-07-03 18:03:44 -0400
commit3701a82d3f2d27b8097ce56c0655df7efc0f0153 (patch)
tree35d46cd7f7951319b25f86a24ebfe13125491067 /sys/include
parenta9965cb3292782f2072141c12d609de0871d1c7c (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.h6
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);