|
|
1.1 ! root 1: /* ! 2: * Define useful symbols for use in the ps program. ! 3: */ ! 4: #ifndef __SYS_COH_PS_H__ ! 5: #define __SYS_COH_PS_H__ ! 6: ! 7: #define ARGSZ 64 /* size of argument list */ ! 8: ! 9: /* ! 10: * This structure contains fields of interest to the ps command. ! 11: */ ! 12: typedef struct { ! 13: unsigned p_pid; /* Process id */ ! 14: unsigned p_ppid; /* Process id of parent */ ! 15: unsigned p_uid; /* Effective uid */ ! 16: unsigned p_ruid; /* Real uid */ ! 17: unsigned p_rgid; /* Real gid */ ! 18: unsigned p_state; /* Scheduling state */ ! 19: unsigned p_flags; /* Flags */ ! 20: char *p_event; /* Wakeup event channel */ ! 21: dev_t p_ttdev; /* Controlling terminal */ ! 22: unsigned p_nice; /* Nice value */ ! 23: short size; /* Size of the process */ ! 24: short rsize; /* Real size of the process */ ! 25: long p_utime; /* User time (HZ) */ ! 26: long p_stime; /* System time */ ! 27: unsigned char rrun; /* Ready to run */ ! 28: char u_comm[U_COMM_LEN]; /* Command name */ ! 29: char u_sleep[U_SLEEP_LEN]; /* Sleep on event */ ! 30: #if _I386 ! 31: int p_schedPri; /* will index into table in sys/ts.h */ ! 32: #endif ! 33: /* All new fields should be added here. */ ! 34: char pr_argv[ARGSZ]; /* Insert the argument vector here. */ ! 35: } stMonitor; ! 36: ! 37: #endif /* _SYS_COH_PS_H */
This archive runs on limited infrastructure. Preserving old code on modern bandwidth. Automated agents are requested to crawl responsibly.