Relay-Version: version B 2.10 5/3/83; site utzoo.UUCP Path: utzoo!utgpu!water!watmath!clyde!rutgers!dayton!rosevax!sds!dave From: dave@sds.UUCP Newsgroups: comp.unix.xenix Subject: Lex Message-ID: <143@sds.UUCP> Date: Wed, 15-Apr-87 17:31:05 EST Article-I.D.: sds.143 Posted: Wed Apr 15 17:31:05 1987 Date-Received: Sat, 18-Apr-87 00:06:09 EST Organization: SciCom Data Services, Minnetonka, MN Lines: 21 I just found a nasty problem with lex on Microsoft XENIX System V; everything works as it ought except in large model, where the input() call will fail with the error ENOTTY (Not a typewriter). Unfortunately, no description of ENOTTY is to be found in the system manuals, so I don't even know what that's supposed to mean. Since I was reading from a text file, the error seems particularly strange. What's even worse about the matter is that I can't always duplicate the problem -- if I write a simple lex program and compile it under large model, it works fine. I thought maybe some of my code was trashing memory, but when I replaced their input() macro (which should be a function by the way) with my own input() function it worked. The only difference between their macro and my function was that I used fgetc(yyin) rather than getc(yyin). Has anyone seen or heard of anything similiar? Dave Schmidt (Currently not a member of the MicroSoft[-In-The-Head] fan club).