diff options
author | dzwdz | 2023-06-10 16:26:46 +0200 |
---|---|---|
committer | dzwdz | 2023-06-10 16:26:46 +0200 |
commit | b09263bd64b3408cbd109dacc4b7618d22b02248 (patch) | |
tree | e461c86fdf229670451f657ef83dd1e2ac802bba /src/user/lib/unistd.c | |
parent | 112eafe13c3628cad6e692179c064dbbc3be2d8b (diff) |
kernel: implement getpid, getppid
Diffstat (limited to 'src/user/lib/unistd.c')
-rw-r--r-- | src/user/lib/unistd.c | 4 |
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[]) { |