home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Usenet 1994 October
/
usenetsourcesnewsgroupsinfomagicoctober1994disk2.iso
/
unix
/
volume23
/
sps2
/
part04
/
prheader.c
< prev
next >
Wrap
C/C++ Source or Header
|
1991-01-08
|
683b
|
31 lines
# 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" ) ;
}