|
|
1.1 root 1: #include <stdio.h>
2: /*
3: * NAME
4: * connect, disconnect
5: *
6: * SYNOPSIS
7: * connect(host,dev)
8: * char *host, *dev;
9: * disconnect(host,dev)
10: * char *host, *dev;
11: *
12: * DESCRIPTION
13: * Installation-supplied exits from bscd
14: * connect - installation connect routine
15: * disconnect - installation disconnect routine
16: */
17: #ifndef lint
18: static char sccsid[] = "@(#)inst3280.c 1.4 ";
19: #endif
20:
21: /* connect - installation connect routine */
22: connect(host,dev)
23: char *host, *dev;
24: {
25: char answer[10];
26:
27: if (isatty(0)) {
28: printf("Ready to connect to host <%s> via <%s>.\n",
29: host,dev);
30: printf("Press Return to continue or enter 'q' to quit: ");
31:
32: gets(answer);
33: if (answer[0] == 'q' || answer[0] == 'Q') {
34: write_aud("D","User entered 'q' to quit");
35: return(1);
36: }
37: } else
38: printf("\nem3280: Connecting to host <%s> via <%s>\n",
39: host,dev);
40:
41: return(0);
42: }
43:
44: /* disconnect - installation disconnect routine */
45: /* ARGSUSED */
46: disconnect(host, dev)
47: char *host, *dev;
48: {}
This archive runs on limited infrastructure. Preserving old code on modern bandwidth. Automated agents are requested to crawl responsibly.