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

/* rfseek.c - rfseek */

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

/*------------------------------------------------------------------------
 *  rfseek  --  seek to a specified position of a remote file
 *------------------------------------------------------------------------
 */
rfseek(devptr, offset)
struct	devsw	*devptr;
long	offset;
{
	struct	rfblk	*rfptr;

	rfptr = (struct rfblk *)devptr->dvioblk;
	wait(rfptr->rf_mutex);
	rfptr->rf_pos = offset;
	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.