~ubuntu-branches/ubuntu/jaunty/htop/jaunty

« back to all changes in this revision

Viewing changes to Process.h

  • Committer: Bazaar Package Importer
  • Author(s): Bartosz Fenski
  • Date: 2008-04-26 13:57:14 UTC
  • mfrom: (1.1.10 upstream) (2.1.3 lenny)
  • Revision ID: james.westby@ubuntu.com-20080426135714-teunz1rh1mda44w1
Tags: 0.7-1
* New upstrem version. (Closes: #452634)
* Move URL to homepage header.
* Bumped Standards-Version (no changes needed).
* Fixed watch file. (Closes: #449631)

Show diffs side-by-side

added added

removed removed

Lines of Context:
28
28
#include <string.h>
29
29
#include <stdbool.h>
30
30
#include <pwd.h>
 
31
#include <sched.h>
31
32
 
32
33
// This works only with glibc 2.1+. On earlier versions
33
34
// the behavior is similar to have a hardcoded page size.
43
44
   STIME, CUTIME, CSTIME, PRIORITY, NICE, ITREALVALUE, STARTTIME, VSIZE, RSS, RLIM, STARTCODE, ENDCODE,
44
45
   STARTSTACK, KSTKESP, KSTKEIP, SIGNAL, BLOCKED, SSIGIGNORE, SIGCATCH, WCHAN, NSWAP, CNSWAP, EXIT_SIGNAL,
45
46
   PROCESSOR, M_SIZE, M_RESIDENT, M_SHARE, M_TRS, M_DRS, M_LRS, M_DT, ST_UID, PERCENT_CPU, PERCENT_MEM,
46
 
   USER, TIME, NLWP, 
 
47
   USER, TIME, NLWP, TGID,
47
48
   #ifdef HAVE_OPENVZ
48
49
   VEID, VPID,
49
50
   #endif
67
68
   unsigned int pgrp;
68
69
   unsigned int session;
69
70
   unsigned int tty_nr;
70
 
   unsigned int tpgid;
 
71
   unsigned int tgid;
 
72
   int tpgid;
71
73
   unsigned long int flags;
72
74
   #ifdef DEBUG
73
75
   unsigned long int minflt;
141
143
 
142
144
void Process_setPriority(Process* this, int priority);
143
145
 
 
146
unsigned long Process_getAffinity(Process* this);
 
147
 
 
148
void Process_setAffinity(Process* this, unsigned long mask);
 
149
 
144
150
void Process_sendSignal(Process* this, int signal);
145
151
 
146
152
#define ONE_K 1024