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

/* rfputc.c - rfputc */

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

/*------------------------------------------------------------------------
 *  rfputc  --  put a single character into a remote file
 *------------------------------------------------------------------------
 */
rfputc(devptr, ch)
struct	devsw	*devptr;
char	ch;
{
	char	outch;

	outch = ch;
	if ( write(devptr->dvnum, &outch, 1) == 1)
		return(OK);
	else
		return(SYSERR);
}

unix.superglobalmegacorp.com

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