|
|
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: * ! 10: * disconnect(host,dev) ! 11: * char *host, *dev; ! 12: * ! 13: * DESCRIPTION ! 14: * Installation-supplied exits from bscd ! 15: * connect - installation connect routine ! 16: * disconnect - installation disconnect routine ! 17: */ ! 18: ! 19: char *termtype; ! 20: int strcmp (); ! 21: int strncmp (); ! 22: ! 23: /* connect - installation connect routine */ ! 24: connect (host, dev) ! 25: register char *host, *dev; ! 26: { ! 27: if (strcmp (termtype, "cci1") == 0) ! 28: termtype = "3270cci1"; ! 29: else if (strncmp (termtype, "h19", 3) == 0) ! 30: termtype = "3270h19"; ! 31: printf( ! 32: "em3277: Attempting to connect to host <%s> via <%s>\n", ! 33: host,dev); ! 34: return(0); } ! 35: ! 36: /* disconnect - installation disconnect routine */ ! 37: disconnect (host, dev) ! 38: register char *host, *dev; ! 39: { ! 40: printf ("\r\n"); ! 41: }
This archive runs on limited infrastructure. Preserving old code on modern bandwidth. Automated agents are requested to crawl responsibly.