1 #ifndef _MINIX_PROCFS_H 2 #define _MINIX_PROCFS_H 3 4 /* The compatibility model is as follows. The current format should be retained 5 * for as long as possible; new fields can be added at the end of the line, 6 * because ps/top only read as much as they know of from the start of the line. 7 * Once fields (really) have to be removed, or the whole line becomes too big 8 * of a mess, a completely new format string can be put in, but with an 9 * increased PSINFO_VERSION at the beginning. That way, older ps/top copies 10 * will not misinterpret the new fields, but rather fail cleanly. 11 */ 12 #define PSINFO_VERSION 0 13 14 /* Process types. */ 15 #define TYPE_TASK 'T' 16 #define TYPE_SYSTEM 'S' 17 #define TYPE_USER 'U' 18 19 /* General process states. */ 20 #define STATE_SLEEP 'S' 21 #define STATE_WAIT 'W' 22 #define STATE_ZOMBIE 'Z' 23 #define STATE_RUN 'R' 24 #define STATE_STOP 'T' 25 26 /* PM sleep states. */ 27 #define PSTATE_NONE '-' 28 #define PSTATE_WAITING 'W' 29 #define PSTATE_SIGSUSP 'S' 30 31 /* VFS block states. */ 32 #define FSTATE_NONE '-' 33 #define FSTATE_PIPE 'P' 34 #define FSTATE_LOCK 'L' 35 #define FSTATE_POPEN 'O' 36 #define FSTATE_SELECT 'S' 37 #define FSTATE_TASK 'T' 38 #define FSTATE_UNKNOWN '?' 39 40 #endif /* _MINIX_PROCFS_H */ 41