DataMuseum.dk

Presents historical artifacts from the history of:

DKUUG/EUUG Conference tapes

This is an automatic "excavation" of a thematic subset of
artifacts from Datamuseum.dk's BitArchive.

See our Wiki for more about DKUUG/EUUG Conference tapes

Excavated with: AutoArchaeologist - Free & Open Source Software.


top - download

⟦b49c7568e⟧ TextFile

    Length: 430 (0x1ae)
    Types: TextFile
    Names: »printall.c«

Derivation

└─⟦a0efdde77⟧ Bits:30001252 EUUGD11 Tape, 1987 Spring Conference Helsinki
    └─ ⟦this⟧ »EUUGD11/euug-87hel/sec8/sps/printall.c« 

TextFile

# 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 ;     
	}
}