File:  [Power 6/32 Unix Tahoe 4.2BSD] / cci / usr / src / usr.bin / bsc / cmd / 3270 / inst3280.c
Revision 1.1.1.1 (vendor branch): download - view: text, annotated - select for diffs
Sun Jul 28 12:26:11 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
 */
#ifndef lint
static char sccsid[] = "@(#)inst3280.c	1.4 ";
#endif

/* connect - installation connect routine */
connect(host,dev)
char *host, *dev;
{
	char answer[10];

	if (isatty(0))	{
		printf("Ready to connect to host <%s> via <%s>.\n",
			host,dev);
		printf("Press Return to continue or enter 'q' to quit: ");

		gets(answer);
		if (answer[0] == 'q' || answer[0] == 'Q')	{
			write_aud("D","User entered 'q' to quit");
			return(1);
		}
	} else
		printf("\nem3280: Connecting to host <%s> via <%s>\n",
			host,dev);

	return(0);	
}

/* disconnect - installation disconnect routine */
/* ARGSUSED */
disconnect(host, dev)
char *host, *dev;
{}

unix.superglobalmegacorp.com

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