This system call is going away in favor of `getpid` from the C library, which simply retrieves the PID from __procinfo. Remove the stubs that call into the kernel from parlib.
Rebuild and reinstall parlib. Change-Id: Id498e5f63c8d75302410444a0d8dd4f259cf5b34 Signed-off-by: Dan Cross <[email protected]> --- user/parlib/include/parlib/parlib.h | 1 - user/parlib/syscall.c | 5 ----- 2 files changed, 6 deletions(-) diff --git a/user/parlib/include/parlib/parlib.h b/user/parlib/include/parlib/parlib.h index 93a5fb7..10c8998 100644 --- a/user/parlib/include/parlib/parlib.h +++ b/user/parlib/include/parlib/parlib.h @@ -28,7 +28,6 @@ enum { int sys_null(void); size_t sys_getpcoreid(void); -int sys_getpid(void); int sys_proc_destroy(int pid, int exitcode); void sys_yield(bool being_nice); int sys_proc_create(const char *path, size_t path_l, char *const argv[], diff --git a/user/parlib/syscall.c b/user/parlib/syscall.c index 2be1b91..92f14a7 100644 --- a/user/parlib/syscall.c +++ b/user/parlib/syscall.c @@ -9,11 +9,6 @@ int sys_proc_destroy(int pid, int exitcode) return ros_syscall(SYS_proc_destroy, pid, exitcode, 0, 0, 0, 0); } -int sys_getpid(void) -{ - return ros_syscall(SYS_getpid, 0, 0, 0, 0, 0, 0); -} - size_t sys_getpcoreid(void) { return ros_syscall(SYS_getpcoreid, 0, 0, 0, 0, 0, 0); -- 2.8.0.rc3.226.g39d4020 -- You received this message because you are subscribed to the Google Groups "Akaros" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To post to this group, send email to [email protected]. For more options, visit https://groups.google.com/d/optout.
