home *** CD-ROM | disk | FTP | other *** search
- # ifndef lint
- static char SccsId[] = "@(#)prheader.c 1.1\t10/1/88" ;
- # endif
-
- # include "sps.h"
- # include "flags.h"
-
- /* PRHEADER - Print a header according to the switches */
- prheader ()
- {
- extern struct flags Flg ;
-
- printf( "Ty User %s Proc#", Flg.flg_v ?
- # ifdef SUNOS40
- # ifdef OLDSTATS
- " Status Fl Nice Virt Res %M Time Child %C" :
- # else
- " Status Fl Nice Prv Shr Res %M Time Child %C" :
- # endif
- # else
- " Status Fl Nice Virtual Resident %M Time Child %C" :
- # endif
- Flg.flg_d ?
- " Files PageFaults Swap BlockI/O Kbytsecs" : "" ) ;
- if ( Flg.flg_f )
- printf( " Ppid#" ) ;
- if ( Flg.flg_g )
- printf( " Pgrp#" ) ;
- printf( " Command\n" ) ;
- }
-