summaryrefslogtreecommitdiff
path: root/src/user/lib/unistd.c
diff options
context:
space:
mode:
authordzwdz2023-06-10 16:26:46 +0200
committerdzwdz2023-06-10 16:26:46 +0200
commitb09263bd64b3408cbd109dacc4b7618d22b02248 (patch)
treee461c86fdf229670451f657ef83dd1e2ac802bba /src/user/lib/unistd.c
parent112eafe13c3628cad6e692179c064dbbc3be2d8b (diff)
kernel: implement getpid, getppid
Diffstat (limited to 'src/user/lib/unistd.c')
-rw-r--r--src/user/lib/unistd.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/user/lib/unistd.c b/src/user/lib/unistd.c
index 28164e6..d6f24f8 100644
--- a/src/user/lib/unistd.c
+++ b/src/user/lib/unistd.c
@@ -185,11 +185,11 @@ pid_t getpgrp(void) {
}
pid_t getpid(void) {
- __libc_panic("unimplemented");
+ return _sys_getpid();
}
pid_t getppid(void) {
- __libc_panic("unimplemented");
+ return _sys_getppid();
}
int getgroups(int size, gid_t list[]) {