xref: /csrg-svn/sys/scripts/pgrpdump (revision 63238)
1*63238Sbostic#	@(#)pgrpdump	8.1 (Berkeley) 06/10/93
255818Sbostic
355645Sbosticdefine allpgrps
455645Sbostic	set $lim = pidhashmask + 1
555645Sbostic	set $i = 0
655645Sbostic	while ($i < $lim)
755645Sbostic		if (pgrphash[$i])
855645Sbostic			printf "--- pgrphash[%d] ---\n", $i
955645Sbostic			pgrpchain pgrphash[$i]
1055645Sbostic		end
1155645Sbostic		set $i++
1255645Sbostic	end
1355645Sbosticend
1455645Sbostic
1555645Sbosticdefine pgrpchain
1655645Sbostic	set $pgrp = (struct pgrp *)$arg0
1755645Sbostic	while ($pgrp)
1855645Sbostic		print *$pgrp
1955645Sbostic		set $pgrp = $pgrp->pg_hforw
2055645Sbostic	end
2155645Sbosticend
22