From: CRDGW2::CRDGW2::MRGATE::"SMTP::CRVAX.SRI.COM::RELAY-INFO-VAX" 30-OCT-1989 19:58 To: MRGATE::"ARISIA::EVERHART" Subj: READMODEM.C Message-Id: <8910302037.AA04559@crdgw1.ge.com> Received: From INDYVAX.IUPUI.EDU by CRVAX.SRI.COM with TCP; Mon, 30 OCT 89 12:22:12 PDT Date: Mon, 30 Oct 89 15:17 EST From: "James A. Harvey" Subject: READMODEM.C To: info-vax@sri.COM X-Vms-To: IN%"info-vax@sri.com" I recently posted some example code in VAX C (READMODEM.C) that displays the controller type and modem control bits for a terminal, the idea being that you can determine if a terminal is a LAT terminal by whether the controller type code is equal to DT$_LAT. Sites running versions of VAXC prior to 3.0 will get an undefined symbol error for the symbol DT$_LAT when compiling the program. To correct the problem, add the following #define statement after the #include statements at the beginning of the program: #define DT$_LAT 74 /* Controller type code - LAT server */ This will correct the undefined symbol problem. I don't know if the program will give correct results on versions of VMS prior to 5.1 or not, the only system I had to test it was a 5.1 system. The problem doesn't occur for sites running the current version of VAXC (3.0). Sorry about this; I should have included version information in the comments. - Jim Harvey, Senior Analyst/Programmer, IUPUI Computing Svcs. (DEC Systems) Internet: ijah400@indyvax.iupui.edu UUCP: ...{uunet, ?}!iuvax!ivax!ijah400 BITNET: ijah400@indyvax AT&T: (317) 274-0747 Disclaimer: Opinions expressed here are my own and not necessarily those of my employer.