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

/* ttyopen.c - ttyopen */

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

/*------------------------------------------------------------------------
 *  ttyopen - open tty device and return return descriptor (for namespace)
 *------------------------------------------------------------------------
 */
ttyopen(devptr, nam, mode)
struct	devsw	*devptr;
char	*nam;
char	*mode;
{

	/* This routine is not usually used to open tty devices,   */
	/* but is provided so that automatic calls to open do not  */
	/* fail.  It returns SYSERR unless called with a null name */

	if (*nam == '\0')
		return( devptr->dvnum );
	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.