Annotation of coherent/b/bin/ps/ps.h, revision 1.1.1.1

1.1       root        1: /*
                      2:  * Define useful symbols for use in the ps program.
                      3:  */
                      4: #ifndef PS_H   /* Rest of file.  */
                      5: #define PS_H
                      6: 
                      7: /*
                      8:  * These flags, ar_proc_flags, indicate which processes should be printed.
                      9:  */
                     10: #define        ALL_PROC        0x0001          /* All processes */
                     11: #define        DRIVER          0x0002          /* Print drivers */
                     12: #define        SPECIAL         0x0004          /* Get special processes */
                     13: #define        USER            0x0008          /* All processes for a given user  */
                     14: #define ATTY           0x0010          /* All processes for a given tty */
                     15: 
                     16: /*
                     17:  * These flags indicate which fields should be printed.  There are
                     18:  * two kinds of these--flags that indicate a format and flags that
                     19:  * indicate specific fields.  They are the ar_field_flags.
                     20:  */
                     21: #define        ALL_FIELDS      0x0001          /* Print out all fields */
                     22: #define        LONG_FMT        0x0002          /* Long format */
                     23: #define        WIDE_FMT        0x0004          /* Wide format */
                     24: #define PID_ONLY       0x0008          /* Print only PIDs */
                     25: 
                     26: #define        GROUPS          0x0100          /* Print out process groups */
                     27: #define        SCHED           0x0200          /* Print scheduling values */
                     28: #define        TIMES           0x0400          /* Print times */
                     29: 
                     30: /*
                     31:  * These are miscellaneous flags, ar_msc_flags.
                     32:  */
                     33: #define        REAL_SIZES      0x0001          /* Print out real sizes */
                     34: #define        NO_HEAD         0x0002          /* No header */
                     35: #define        DEBUG           0x0004          /* Debug flag */
                     36: #define        IGN_PRESENT     0x0008          /* UNDOCUMENTED: ignore present bit.  */
                     37: 
                     38: 
                     39: /*
                     40:  * Here we define some assorted handy values.
                     41:  */
                     42: typedef int boolean;
                     43: #define TRUE   1
                     44: #define FALSE  0
                     45: 
                     46: typedef struct DEVICES {
                     47:        struct DEVICES  *next;                  /* Next entry */
                     48:        dev_t           dev;                    /* Device number */
                     49:        char            pDevName[DIRSIZ];       /* Device name */
                     50: } stDevices;
                     51: 
                     52: #endif /* PS_H */

unix.superglobalmegacorp.com

This archive runs on limited infrastructure. Preserving old code on modern bandwidth. Automated agents are requested to crawl responsibly.