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

/* rfwrite.c - rfwrite */

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

/*------------------------------------------------------------------------
 *  rfwrite  --  write one or more bytes to a remote file
 *------------------------------------------------------------------------
 */
rfwrite(devptr, buff, len)
struct	devsw	*devptr;
char	*buff;
int	len;
{
	int	i;

	if (len < 0)
		return(SYSERR);
	for (i=len ; i > 0 ; i-=RDATLEN, buff+=RDATLEN)
		if (rfio(devptr,FS_WRITE,buff,min(i,RDATLEN)) == SYSERR)
			return(SYSERR);
	return(len);
}

unix.superglobalmegacorp.com

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