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

/* rfclose.c - rfclose */

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

/*------------------------------------------------------------------------
 *  rfclose  --  close a remote file by deallocating pseudo device
 *------------------------------------------------------------------------
 */
rfclose(devptr)
struct	devsw	*devptr;
{
	struct	rfblk	*rfptr;
	long	junk;		/* argument to rfmkpac; not really used	*/

	rfptr = (struct rfblk *)devptr->dvioblk;
	if (rfptr->rf_state == RFREE)
		return(SYSERR);
	wait(rfptr->rf_mutex);
	junk = 0L; /* 0L is long zero constant */
	rfmkpac(FS_CLOSE,rfptr->rf_name,&junk,(char *)&junk,0);
	rfptr->rf_state = RFREE;
	signal(rfptr->rf_mutex);
	return(OK);
}

unix.superglobalmegacorp.com

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