home *** CD-ROM | disk | FTP | other *** search
- # ifndef lint
- static char SccsId[] = "@(#)printall.c 1.1\t10/1/88" ;
- # endif
-
- # include <stdio.h>
- # include "sps.h"
-
- /* PRINTALL - Recursively print the process tree. */
- printall ( p, md )
-
- register struct process *p ;
- register int md ;
-
- {
- while ( p )
- { /* Print this process */
- printproc( p, md ) ;
- (void)fflush( stdout ) ;
- /* Print child processes */
- printall( p->pr_child, md+1 ) ;
- /* Print brother processes */
- p = p->pr_sibling ;
- }
- }
-