File:  [XINU] / xinu / sys / rfcntl.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

/* rfcntl.c - rfcntl */

#include <conf.h>
#include <kernel.h>
#include <network.h>

/*------------------------------------------------------------------------
 *  rfcntl  --  control the remote file server access system
 *------------------------------------------------------------------------
 */
rfcntl(devptr, func, addr, addr2)
struct	devsw	*devptr;
int	func;
char	*addr;
char	*addr2;
{
	long	junk;
	int	len;

	junk = 0L;
	switch (func) {

	case RFCLEAR:
		/* clear port associated with rfserver */
		control(Rf.device, DG_CLEAR);
		return(OK);

	/* Universal file manipulation functions */

	case FLACCESS:
		return(rfmkpac(FS_ACCESS,addr,&junk,(char *)&junk,addr2));

	case FLREMOVE:
		return( rfmkpac(FS_UNLINK, addr, &junk, NULLSTR, 0) );

	case FLRENAME:
		len = strlen(addr2) + 1;
		return( rfmkpac(FS_RENAME, addr, &junk, addr2, len) );

	default:
		return(SYSERR);
	}	
}

unix.superglobalmegacorp.com

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