aboutsummaryrefslogtreecommitdiffstats
path: root/Process.h
diff options
context:
space:
mode:
authorBartosz Fenski <fenio@debian.org>2007-09-15 14:37:41 +0200
committerDaniel Lange <DLange@git.local>2016-04-11 13:00:22 +0200
commit6e3bbb32d3cd1c09b0d1a79c433e0728a7ea44f4 (patch)
tree4e5660f891b09b7755a97a75edefdd167365e336 /Process.h
parent8ae888dfb193b86560b4d874767c347bf2be8097 (diff)
parent9675cf654d86464344e56705db7a71ea17f76c6f (diff)
downloaddebian_htop-6e3bbb32d3cd1c09b0d1a79c433e0728a7ea44f4.tar.gz
debian_htop-6e3bbb32d3cd1c09b0d1a79c433e0728a7ea44f4.tar.bz2
debian_htop-6e3bbb32d3cd1c09b0d1a79c433e0728a7ea44f4.zip
Imported Debian patch 0.6.6+svn20070915-1debian/0.6.6+svn20070915-1
Diffstat (limited to 'Process.h')
-rw-r--r--Process.h25
1 files changed, 18 insertions, 7 deletions
diff --git a/Process.h b/Process.h
index 5c4c716..37a20cb 100644
--- a/Process.h
+++ b/Process.h
@@ -31,7 +31,9 @@ in the source distribution for its full text.
// This works only with glibc 2.1+. On earlier versions
// the behavior is similar to have a hardcoded page size.
+#ifndef PAGE_SIZE
#define PAGE_SIZE ( sysconf(_SC_PAGESIZE) / 1024 )
+#endif
#define PROCESS_COMM_LEN 300
@@ -41,7 +43,11 @@ typedef enum ProcessField_ {
STIME, CUTIME, CSTIME, PRIORITY, NICE, ITREALVALUE, STARTTIME, VSIZE, RSS, RLIM, STARTCODE, ENDCODE,
STARTSTACK, KSTKESP, KSTKEIP, SIGNAL, BLOCKED, SSIGIGNORE, SIGCATCH, WCHAN, NSWAP, CNSWAP, EXIT_SIGNAL,
PROCESSOR, M_SIZE, M_RESIDENT, M_SHARE, M_TRS, M_DRS, M_LRS, M_DT, ST_UID, PERCENT_CPU, PERCENT_MEM,
- USER, TIME, LAST_PROCESSFIELD
+ USER, TIME, NLWP,
+ #ifdef HAVE_OPENVZ
+ VEID, VPID,
+ #endif
+ LAST_PROCESSFIELD
} ProcessField;
struct ProcessList_;
@@ -52,16 +58,16 @@ typedef struct Process_ {
struct ProcessList_ *pl;
bool updated;
- int pid;
+ unsigned int pid;
char* comm;
int indent;
char state;
bool tag;
- int ppid;
- int pgrp;
- int session;
- int tty_nr;
- int tpgid;
+ unsigned int ppid;
+ unsigned int pgrp;
+ unsigned int session;
+ unsigned int tty_nr;
+ unsigned int tpgid;
unsigned long int flags;
#ifdef DEBUG
unsigned long int minflt;
@@ -75,6 +81,7 @@ typedef struct Process_ {
long int cstime;
long int priority;
long int nice;
+ long int nlwp;
#ifdef DEBUG
long int itrealvalue;
unsigned long int starttime;
@@ -107,6 +114,10 @@ typedef struct Process_ {
float percent_cpu;
float percent_mem;
char* user;
+ #ifdef HAVE_OPENVZ
+ unsigned int veid;
+ unsigned int vpid;
+ #endif
} Process;

© 2014-2024 Faster IT GmbH | imprint | privacy policy