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

/* rfdump.c - rfdump */

#include <conf.h>
#include <kernel.h>
#include <fserver.h>
#include <rfile.h>

/*------------------------------------------------------------------------
 *  rfdump  --  dump the contents of the remote file device blocks
 *------------------------------------------------------------------------
 */
rfdump()
{
	struct	rfblk	*rfptr;
	int	i;

	kprintf("Remote files: server on dev=%d, server mutex=%d\n",
			Rf.device, Rf.rmutex);
	for (i=0 ; i<Nrf; i++) {
		rfptr = &Rf.rftab[i];
		if (rfptr->rf_state == RFREE)
			continue;
		kprintf(" %2d. ", rfptr->rf_dnum);
		kprintf("mode=%03o, sem=%2d, pos=%6D, file name=%s\n",
				rfptr->rf_mode,	rfptr->rf_mutex,
				rfptr->rf_pos, rfptr->rf_name);
	}
}

unix.superglobalmegacorp.com

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