process.hh (11877:5ea85692a53e) | process.hh (11885:79af314e9f0d) |
---|---|
1/* 2 * Copyright (c) 2014-2016 Advanced Micro Devices, Inc. 3 * Copyright (c) 2001-2005 The Regents of The University of Michigan 4 * All rights reserved. 5 * 6 * Redistribution and use in source and binary forms, with or without 7 * modification, are permitted provided that the following conditions are 8 * met: redistributions of source code must retain the above copyright --- 81 unchanged lines hidden (view full) --- 90 virtual SyscallDesc *getDesc(int callnum) = 0; 91 92 inline uint64_t uid() { return _uid; } 93 inline uint64_t euid() { return _euid; } 94 inline uint64_t gid() { return _gid; } 95 inline uint64_t egid() { return _egid; } 96 inline uint64_t pid() { return _pid; } 97 inline uint64_t ppid() { return _ppid; } | 1/* 2 * Copyright (c) 2014-2016 Advanced Micro Devices, Inc. 3 * Copyright (c) 2001-2005 The Regents of The University of Michigan 4 * All rights reserved. 5 * 6 * Redistribution and use in source and binary forms, with or without 7 * modification, are permitted provided that the following conditions are 8 * met: redistributions of source code must retain the above copyright --- 81 unchanged lines hidden (view full) --- 90 virtual SyscallDesc *getDesc(int callnum) = 0; 91 92 inline uint64_t uid() { return _uid; } 93 inline uint64_t euid() { return _euid; } 94 inline uint64_t gid() { return _gid; } 95 inline uint64_t egid() { return _egid; } 96 inline uint64_t pid() { return _pid; } 97 inline uint64_t ppid() { return _ppid; } |
98 inline uint64_t pgid() { return _pgid; } 99 inline uint64_t tgid() { return _tgid; } 100 inline void setpgid(uint64_t pgid) { _pgid = pgid; } |
|
98 99 const char *progName() const { return executable.c_str(); } 100 std::string fullPath(const std::string &filename); 101 std::string getcwd() const { return cwd; } 102 103 /** 104 * Find an emulated device driver. 105 * --- 88 unchanged lines hidden (view full) --- 194 uint64_t _uid; 195 uint64_t _euid; 196 uint64_t _gid; 197 uint64_t _egid; 198 199 // pid of the process and it's parent 200 uint64_t _pid; 201 uint64_t _ppid; | 101 102 const char *progName() const { return executable.c_str(); } 103 std::string fullPath(const std::string &filename); 104 std::string getcwd() const { return cwd; } 105 106 /** 107 * Find an emulated device driver. 108 * --- 88 unchanged lines hidden (view full) --- 197 uint64_t _uid; 198 uint64_t _euid; 199 uint64_t _gid; 200 uint64_t _egid; 201 202 // pid of the process and it's parent 203 uint64_t _pid; 204 uint64_t _ppid; |
205 uint64_t _pgid; 206 uint64_t _tgid; |
|
202 203 // Emulated drivers available to this process 204 std::vector<EmulatedDriver *> drivers; 205 206 std::shared_ptr<FDArray> fds; 207}; 208 209#endif // __PROCESS_HH__ | 207 208 // Emulated drivers available to this process 209 std::vector<EmulatedDriver *> drivers; 210 211 std::shared_ptr<FDArray> fds; 212}; 213 214#endif // __PROCESS_HH__ |