From b09263bd64b3408cbd109dacc4b7618d22b02248 Mon Sep 17 00:00:00 2001 From: dzwdz Date: Sat, 10 Jun 2023 16:26:46 +0200 Subject: kernel: implement getpid, getppid --- src/user/lib/unistd.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/user/lib/unistd.c') 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[]) { -- cgit v1.2.3