File:  [XINU] / xinu / sys / ndump.c
Revision 1.1.1.1 (vendor branch): download - view: text, annotated - select for diffs
Tue Apr 24 17:39:03 2018 UTC (8 years, 3 months ago) by root
Branches: xinu, MAIN
CVS tags: xinu-19870308, HEAD
Xinu for VAX

/* ndump.c - ndump */

#include <conf.h>
#include <kernel.h>
#include <io.h>
#include <name.h>

#define	PADTO	24

/*------------------------------------------------------------------------
 *  ndump  -  dump current mappings in object naming system
 *------------------------------------------------------------------------
 */
ndump()
{
	struct	nament	*nptr;
	int	i, len, dev;
	char	*p;

	for (i=0 ; i<Nam.nnames ; i++) {
		nptr = & Nam.nametab[i];
		kprintf("\"%-s\"", nptr->npre);
		for (len=strlen(nptr->npre) ; len < PADTO ; len++)
			kprintf(" ");
		dev = nptr->ndev;
		if (isbaddev(dev))
			p = "SYSERR";
		else
			p = devtab[dev].dvname;
		kprintf(" -> (%-8s) \"%s\"\n", p, nptr->nrepl);
	}
}

unix.superglobalmegacorp.com

This archive runs on limited infrastructure. Preserving old code on modern bandwidth. Automated agents are requested to crawl responsibly.