File:  [Power 6/32 Unix Tahoe 4.2BSD] / cci / usr / src / usr.bin / bsc / misc / 3270 / inst3270.c
Revision 1.1.1.1 (vendor branch): download - view: text, annotated - select for diffs
Sun Jul 28 12:26:12 2019 UTC (7 years ago) by root
Branches: bsd, MAIN
CVS tags: v121, HEAD
Power 6/32 Unix version 1.21

#include <stdio.h>
/*
 * NAME
 *	connect, disconnect
 *
 * SYNOPSIS
 *	connect(host,dev)
 *	char *host, *dev;
 *
 *	disconnect(host,dev)
 *	char *host, *dev;
 *
 * DESCRIPTION
 *	Installation-supplied exits from bscd
 *	connect - installation connect routine
 *	disconnect - installation disconnect routine
 */

char	*termtype;
int	strcmp ();
int	strncmp ();

/* connect - installation connect routine */
connect (host, dev)
register char *host, *dev;
{
	if (strcmp (termtype, "cci1") == 0)
		termtype = "3270cci1";
	else if (strncmp (termtype, "h19", 3) == 0)
		termtype = "3270h19";
	printf(
	"em3277: Attempting to connect to host <%s> via <%s>\n",
	host,dev);
	return(0);	}

/* disconnect - installation disconnect routine */
disconnect (host, dev)
register char *host, *dev;
{
	printf ("\r\n");
}

unix.superglobalmegacorp.com

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