home *** CD-ROM | disk | FTP | other *** search
/ Usenet 1994 January / usenetsourcesnewsgroupsinfomagicjanuary1994.iso / sources / unix / volume3 / sps / part1 / flags.h < prev    next >
Encoding:
C/C++ Source or Header  |  1986-11-30  |  2.4 KB  |  43 lines

  1. /* Structure holding information specified in the option list ... */
  2. union flaglist
  3. {
  4.     char                    *f_chp ;        /* Option specified as string */
  5.     int                     f_uid ;         /* Numerical user id */
  6.     int                     f_pid ;         /* Numerical process id */
  7.     struct ttyline          *f_ttyline ;    /* Specified tty */
  8. } ;
  9.  
  10. /* Structure holding global information specifed by arg list options ... */
  11. struct flags
  12. {
  13.     int                     flg_d:1 ;       /* disc orientated output */
  14.     int                     flg_e:1 ;       /* print environment string */
  15.     int                     flg_f:1 ;       /* print process father # */
  16.     int                     flg_g:1 ;       /* print process group # */
  17.     int                     flg_i:1 ;       /* initialise sps */
  18.     char                    *flg_j ;        /* Use this as the info file */
  19.     char                    *flg_k ;        /* Use this as the {k}mem file*/
  20.     int                     flg_o:1 ;       /* avoid the swap device */
  21.     int                     flg_q:1 ;       /* show user time only */
  22.     int                     flg_r:1 ;       /* repeat output */
  23.     unsigned                flg_rdelay ;    /* ... with this much delay */
  24.     char                    *flg_s ;        /* Use this as the symbol file*/
  25.     int                     flg_v:1 ;       /* print verbose listing */
  26.     int                     flg_w:1 ;       /* print wide output */
  27.     int                     flg_y:1 ;       /* print tty information */
  28.     int                     flg_A:1 ;       /* print all processes */
  29.     int                     flg_B:1 ;       /* print busy processes */
  30.     int                     flg_F:1 ;       /* print foreground processes */
  31.     int                     flg_N:1 ;       /* print no processes */
  32.     int                     flg_P:1 ;       /* print specified process #'s*/
  33.     int                     flg_S:1 ;       /* print stopped processes */
  34.     int                     flg_T:1 ;       /* print procs for given ttys */
  35.     int                     flg_U:1 ;       /* print procs for given users*/
  36.     int                     flg_W:1 ;       /* print waiting processes */
  37.     int                     flg_Z:1 ;       /* print zombie processes */
  38.     int                     flg_AZ:1 ;      /* One of A to Z was specified*/
  39.     union flaglist          *flg_Plist ;    /* List of specified processes*/
  40.     union flaglist          *flg_Tlist ;    /* List of specified ttys */
  41.     union flaglist          *flg_Ulist ;    /* List of specified users */
  42. } ;
  43.