diff options
author | Bartosz Fenski <fenio@debian.org> | 2006-08-14 13:03:15 +0200 |
---|---|---|
committer | Daniel Lange <DLange@git.local> | 2016-04-11 13:00:21 +0200 |
commit | 8ae888dfb193b86560b4d874767c347bf2be8097 (patch) | |
tree | d82d76a4fb242d84ab6371f76ca88459d9d8b98e /Process.h | |
parent | f520e61979ccb94cf3f6f8e5c67784c6c260924e (diff) | |
parent | 85bb4ad9cb820ac3b8e935a930084a06cbfd2847 (diff) | |
download | debian_htop-8ae888dfb193b86560b4d874767c347bf2be8097.tar.gz debian_htop-8ae888dfb193b86560b4d874767c347bf2be8097.tar.bz2 debian_htop-8ae888dfb193b86560b4d874767c347bf2be8097.zip |
Imported Debian patch 0.6.3-1debian/0.6.3-1
Diffstat (limited to 'Process.h')
-rw-r--r-- | Process.h | 23 |
1 files changed, 15 insertions, 8 deletions
@@ -1,4 +1,4 @@ -/* Do not edit this file. It was automatically genarated. */ +/* Do not edit this file. It was automatically generated. */ #ifndef HEADER_Process #define HEADER_Process @@ -34,7 +34,6 @@ in the source distribution for its full text. #define PAGE_SIZE ( sysconf(_SC_PAGESIZE) / 1024 ) #define PROCESS_COMM_LEN 300 -#define PROCESS_USER_LEN 10 typedef enum ProcessField_ { @@ -64,16 +63,19 @@ typedef struct Process_ { int tty_nr; int tpgid; unsigned long int flags; + #ifdef DEBUG unsigned long int minflt; unsigned long int cminflt; unsigned long int majflt; unsigned long int cmajflt; + #endif unsigned long int utime; unsigned long int stime; long int cutime; long int cstime; long int priority; long int nice; + #ifdef DEBUG long int itrealvalue; unsigned long int starttime; unsigned long int vsize; @@ -91,6 +93,7 @@ typedef struct Process_ { unsigned long int wchan; unsigned long int nswap; unsigned long int cnswap; + #endif int exit_signal; int processor; int m_size; @@ -103,15 +106,17 @@ typedef struct Process_ { uid_t st_uid; float percent_cpu; float percent_mem; - char user[PROCESS_USER_LEN + 1]; + char* user; } Process; -extern char* PROCESS_CLASS; - -extern char* Process_fieldNames[]; - +#ifdef DEBUG +extern char* PROCESS_CLASS; +#else +#define PROCESS_CLASS NULL +#endif +extern char *Process_fieldNames[]; Process* Process_new(struct ProcessList_ *pl); @@ -133,7 +138,9 @@ void Process_sendSignal(Process* this, int signal); void Process_writeField(Process* this, RichString* str, ProcessField field); -int Process_compare(const Object* v1, const Object* v2); +int Process_pidCompare(const void* v1, const void* v2); + +int Process_compare(const void* v1, const void* v2); char* Process_printField(ProcessField field); |