SolarisProcess.h 1.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748
  1. #ifndef HEADER_SolarisProcess
  2. #define HEADER_SolarisProcess
  3. /*
  4. htop - SolarisProcess.h
  5. (C) 2015 Hisham H. Muhammad
  6. (C) 2017,2018 Guy M. Broome
  7. Released under the GNU GPLv2+, see the COPYING file
  8. in the source distribution for its full text.
  9. */
  10. #include <zone.h>
  11. #include <sys/proc.h>
  12. /* On OmniOS /usr/include/sys/regset.h redefines ERR to 13 - \r, breaking the Enter key.
  13. * Since ncruses macros use the ERR macro, we can not use another name.
  14. */
  15. #undef ERR
  16. #include <libproc.h>
  17. #undef ERR
  18. #define ERR (-1)
  19. #include "Machine.h"
  20. #include "Process.h"
  21. typedef struct SolarisProcess_ {
  22. Process super;
  23. zoneid_t zoneid;
  24. char* zname;
  25. taskid_t taskid;
  26. projid_t projid;
  27. poolid_t poolid;
  28. ctid_t contid;
  29. pid_t realpid;
  30. pid_t realppid;
  31. pid_t realtgid;
  32. pid_t lwpid;
  33. } SolarisProcess;
  34. extern const ProcessClass SolarisProcess_class;
  35. extern const ProcessFieldData Process_fields[LAST_PROCESSFIELD];
  36. Process* SolarisProcess_new(const Machine* host);
  37. void Process_delete(Object* cast);
  38. #endif