xref: /minix3/minix/include/minix/procfs.h (revision 305e366fe47197851cc728bd12ee4d4f1d8f7d64)
1 #ifndef _MINIX_PROCFS_H
2 #define _MINIX_PROCFS_H
3 
4 /*
5  * The compatibility model is as follows. The current format should be retained
6  * for as long as possible; new fields can be added at the end of the line,
7  * because ps/top only read as much as they know of from the start of the line.
8  * Once fields (really) have to be removed, or the whole line becomes too big
9  * of a mess, a completely new format string can be put in, but with an
10  * increased PSINFO_VERSION at the beginning. That way, older ps/top copies
11  * will not misinterpret the new fields, but rather fail cleanly.
12  */
13 #define PSINFO_VERSION	1
14 
15 /* Process types. */
16 #define TYPE_TASK	'T'
17 #define TYPE_SYSTEM	'S'
18 #define TYPE_USER	'U'
19 
20 /* General process states. */
21 #define STATE_SLEEP	'S'
22 #define STATE_ZOMBIE	'Z'
23 #define STATE_RUN	'R'
24 #define STATE_STOP	'T'
25 
26 #endif /* _MINIX_PROCFS_H */
27