From 073cb266079edddec64ea8cd5169dd2cbef8f812 Mon Sep 17 00:00:00 2001 From: Brandon Potter Date: Mon, 27 Feb 2017 14:10:02 -0500 Subject: syscall_emul: [patch 14/22] adds identifier system calls This changeset add fields to the process object and adds the following three system calls: setpgid, gettid, getpid. --- src/sim/syscall_emul.hh | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'src/sim/syscall_emul.hh') diff --git a/src/sim/syscall_emul.hh b/src/sim/syscall_emul.hh index 1ad2f087f..e0cbbe786 100644 --- a/src/sim/syscall_emul.hh +++ b/src/sim/syscall_emul.hh @@ -216,11 +216,17 @@ SyscallReturn ftruncate64Func(SyscallDesc *desc, int num, SyscallReturn umaskFunc(SyscallDesc *desc, int num, Process *p, ThreadContext *tc); +/// Target gettid() handler. +SyscallReturn gettidFunc(SyscallDesc *desc, int num, + Process *p, ThreadContext *tc); /// Target chown() handler. SyscallReturn chownFunc(SyscallDesc *desc, int num, Process *p, ThreadContext *tc); +/// Target setpgid() handler. +SyscallReturn setpgidFunc(SyscallDesc *desc, int num, + Process *p, ThreadContext *tc); /// Target fchown() handler. SyscallReturn fchownFunc(SyscallDesc *desc, int num, -- cgit v1.2.3