process.hh (11005:e7f403b6b76f) | process.hh (11140:cf07f8bf58db) |
---|---|
1/* 2 * Copyright (c) 2014 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 --- 224 unchanged lines hidden (view full) --- 233class ObjectFile; 234class LiveProcess : public Process 235{ 236 protected: 237 ObjectFile *objFile; 238 std::vector<std::string> argv; 239 std::vector<std::string> envp; 240 std::string cwd; | 1/* 2 * Copyright (c) 2014 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 --- 224 unchanged lines hidden (view full) --- 233class ObjectFile; 234class LiveProcess : public Process 235{ 236 protected: 237 ObjectFile *objFile; 238 std::vector<std::string> argv; 239 std::vector<std::string> envp; 240 std::string cwd; |
241 std::string executable; |
|
241 242 LiveProcess(LiveProcessParams *params, ObjectFile *objFile); 243 244 // Id of the owner of the process 245 uint64_t __uid; 246 uint64_t __euid; 247 uint64_t __gid; 248 uint64_t __egid; --- 40 unchanged lines hidden (view full) --- 289 inline uint64_t uid() {return __uid;} 290 inline uint64_t euid() {return __euid;} 291 inline uint64_t gid() {return __gid;} 292 inline uint64_t egid() {return __egid;} 293 inline uint64_t pid() {return __pid;} 294 inline uint64_t ppid() {return __ppid;} 295 296 // provide program name for debug messages | 242 243 LiveProcess(LiveProcessParams *params, ObjectFile *objFile); 244 245 // Id of the owner of the process 246 uint64_t __uid; 247 uint64_t __euid; 248 uint64_t __gid; 249 uint64_t __egid; --- 40 unchanged lines hidden (view full) --- 290 inline uint64_t uid() {return __uid;} 291 inline uint64_t euid() {return __euid;} 292 inline uint64_t gid() {return __gid;} 293 inline uint64_t egid() {return __egid;} 294 inline uint64_t pid() {return __pid;} 295 inline uint64_t ppid() {return __ppid;} 296 297 // provide program name for debug messages |
297 virtual const char *progName() const { return argv[0].c_str(); } | 298 virtual const char *progName() const { return executable.c_str(); } |
298 299 std::string 300 fullPath(const std::string &filename) 301 { 302 if (filename[0] == '/' || cwd.empty()) 303 return filename; 304 305 std::string full = cwd; --- 36 unchanged lines hidden --- | 299 300 std::string 301 fullPath(const std::string &filename) 302 { 303 if (filename[0] == '/' || cwd.empty()) 304 return filename; 305 306 std::string full = cwd; --- 36 unchanged lines hidden --- |