|
|
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);
}
This archive runs on limited infrastructure. Preserving old code on modern bandwidth. Automated agents are requested to crawl responsibly.