diff options
author | Hisham Muhammad <hisham@gobolinux.org> | 2007-05-17 18:29:30 +0000 |
---|---|---|
committer | Hisham Muhammad <hisham@gobolinux.org> | 2007-05-17 18:29:30 +0000 |
commit | 9710a4300181927c6f4b9e34e23b1588dbb07f84 (patch) | |
tree | 4ce5bf5760aa061f93bce016a2938757ccbc4736 /Process.h | |
parent | df20abfd672d033ac62c4d9245b8bb89fc76be94 (diff) |
Fixes for /proc location, submitted by Florent Thoumie
Diffstat (limited to 'Process.h')
-rw-r--r-- | Process.h | 14 |
1 files changed, 8 insertions, 6 deletions
@@ -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 @@ -52,16 +54,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; |