|
|
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;
{}
This archive runs on limited infrastructure. Preserving old code on modern bandwidth. Automated agents are requested to crawl responsibly.