summaryrefslogtreecommitdiffstats
path: root/Process.h
diff options
context:
space:
mode:
authorHisham Muhammad <hisham@gobolinux.org>2007-05-17 18:29:30 +0000
committerHisham Muhammad <hisham@gobolinux.org>2007-05-17 18:29:30 +0000
commit9710a4300181927c6f4b9e34e23b1588dbb07f84 (patch)
tree4ce5bf5760aa061f93bce016a2938757ccbc4736 /Process.h
parentdf20abfd672d033ac62c4d9245b8bb89fc76be94 (diff)
Fixes for /proc location, submitted by Florent Thoumie
Diffstat (limited to 'Process.h')
-rw-r--r--Process.h14
1 files changed, 8 insertions, 6 deletions
diff --git a/Process.h b/Process.h
index 5c4c7166..618fa2ae 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
@@ -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;

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