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

/* lfwrite.c - lfwrite */

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

/*------------------------------------------------------------------------
 *  lfwrite  --  write 'count' bytes onto a local disk file
 *------------------------------------------------------------------------
 */
lfwrite(devptr, buff, count)
struct	devsw	*devptr;
char	*buff;
int	count;
{
	int	i;

	if (count < 0)
		return(SYSERR);
	for (i=count; i>0 ; i--)
		if (lfputc(devptr, *buff++) == SYSERR)
			return(SYSERR);
	return(count);
}

unix.superglobalmegacorp.com

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