rfdump.c,v

来自「TCP-IP红宝书源代码」· C,V 代码 · 共 53 行

C,V
53
字号
head	1.1;
access;
symbols;
locks
	dls:1.1; strict;
comment	@ * @;


1.1
date	97.09.21.19.28.54;	author dls;	state Dist;
branches;
next	;


desc
@@


1.1
log
@pre-3e code
@
text
@/* 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);
	}
}
@

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?