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

/* rfgetc.c - rfgetc */

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

/*------------------------------------------------------------------------
 *  rfgetc  --  get a character from a remote file
 *------------------------------------------------------------------------
 */
rfgetc(devptr)
struct	devsw	*devptr;
{
	char	ch;
	int	retcode;

	if ( (retcode=read(devptr->dvnum, &ch, 1)) == 1)
		return(ch);
	else if (retcode != EOF)
		retcode = SYSERR;
	return(retcode);
}

unix.superglobalmegacorp.com

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