diff options
author | Hisham Muhammad <hisham@gobolinux.org> | 2010-02-22 20:57:25 +0000 |
---|---|---|
committer | Hisham Muhammad <hisham@gobolinux.org> | 2010-02-22 20:57:25 +0000 |
commit | ef31893067f936cec512a9ab2edc4c95b5bc893a (patch) | |
tree | 4be18b2dbc4104866d6a33100f7c7db2b89739fd /Process.h | |
parent | c9e59b4a339522f01dcaa883989656f31534a124 (diff) |
minor tweak
Diffstat (limited to 'Process.h')
-rw-r--r-- | Process.h | 4 |
1 files changed, 4 insertions, 0 deletions
@@ -45,6 +45,10 @@ in the source distribution for its full text. #define PROCESS_COMM_LEN 300 +#ifndef Process_isThread +#define Process_isThread(process) (process->pid != process->tgid || process->m_size == 0) +#endif + typedef enum ProcessField_ { PID = 1, COMM, STATE, PPID, PGRP, SESSION, TTY_NR, TPGID, FLAGS, MINFLT, CMINFLT, MAJFLT, CMAJFLT, UTIME, STIME, CUTIME, CSTIME, PRIORITY, NICE, ITREALVALUE, STARTTIME, VSIZE, RSS, RLIM, STARTCODE, ENDCODE, |