summaryrefslogtreecommitdiff
path: root/proc/readproc.h
diff options
context:
space:
mode:
authoralbert <>2002-10-22 06:12:12 +0000
committeralbert <>2002-10-22 06:12:12 +0000
commit9e098634f0b717d2d79991d00ecce1b4f02fed72 (patch)
treed9549c8d3070332e7f70499c8fcd61ffd232aa87 /proc/readproc.h
parent9cae81a6196296c5c0c9fdddf5d21e5b8d06c82a (diff)
downloadprocps-ng-9e098634f0b717d2d79991d00ecce1b4f02fed72.tar.gz
"Do" cleanup
Diffstat (limited to 'proc/readproc.h')
-rw-r--r--proc/readproc.h17
1 files changed, 7 insertions, 10 deletions
diff --git a/proc/readproc.h b/proc/readproc.h
index 7e85c27..eb169b0 100644
--- a/proc/readproc.h
+++ b/proc/readproc.h
@@ -146,12 +146,10 @@ typedef struct PROCTAB {
DIR* procfs;
int flags;
pid_t* pids; /* pids of the procs */
- dev_t* ttys; /* devnos of the cttys */
uid_t* uids; /* uids of procs */
int nuid; /* cannot really sentinel-terminate unsigned short[] */
- char* stats; /* status chars (actually output into /proc//stat) */
#ifdef FLASK_LINUX
-security_id_t* sids; /* SIDs of the procs */
+ security_id_t* sids; /* SIDs of the procs */
#endif
} PROCTAB;
@@ -192,9 +190,9 @@ extern void freeproc(proc_t* p);
* `flags' (a bitwise-or of PROC_* below) modifies the default behavior. The
* "fill" options will cause more of the proc_t to be filled in. The "filter"
* options all use the second argument as the pointer to a list of objects:
- * process status', process id's, user id's, and tty device numbers. The third
+ * process status', process id's, user id's. The third
* argument is the length of the list (currently only used for lists of user
- * id's since unsigned short[] supports no convenient termination sentinel.)
+ * id's since uid_t supports no convenient termination sentinel.)
*/
#define PROC_FILLMEM 0x0001 /* read statm */
#define PROC_FILLCOM 0x0002 /* alloc and fill in `cmdline' */
@@ -204,14 +202,13 @@ extern void freeproc(proc_t* p);
#define PROC_FILLSTATUS 0x0020 /* read status -- currently unconditional */
#define PROC_FILLSTAT 0x0040 /* read stat -- currently unconditional */
#define PROC_FILLWCHAN 0x0080 /* look up WCHAN name */
-#define PROC_FILLARG 0x1000 /* alloc and fill in `cmdline' */
+#define PROC_FILLARG 0x0100 /* alloc and fill in `cmdline' */
-#define PROC_FILLBUG 0xf0ff /* No idea what we need */
+#define PROC_FILLBUG 0x0fff /* No idea what we need */
#define PROC_FILLANY 0x0000 /* either stat or status will do */
/* Obsolete, consider only processes with one of the passed: */
-#define PROC_PID 0x0100 /* process id numbers ( 0 terminated) */
-#define PROC_TTY 0x0200 /* ctty device nos. ( 0 terminated) */
-#define PROC_UID 0x0400 /* user id numbers ( length needed ) */
+#define PROC_PID 0x1000 /* process id numbers ( 0 terminated) */
+#define PROC_UID 0x4000 /* user id numbers ( length needed ) */
#endif