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.
This commit is contained in:
@@ -551,6 +551,11 @@ class System : public MemObject
|
||||
// For futex system call
|
||||
std::map<uint64_t, std::list<ThreadContext *> * > futexMap;
|
||||
|
||||
static const int maxPID = 32768;
|
||||
|
||||
/** Process set to track which PIDs have already been allocated */
|
||||
std::set<int> PIDs;
|
||||
|
||||
protected:
|
||||
|
||||
/**
|
||||
|
||||
Reference in New Issue
Block a user