Path: utzoo!utgpu!news-server.csri.toronto.edu!bonnie.concordia.ca!uunet!spool.mu.edu!think.com!linus!linus!mbunix!lfs From: lfs@d62iggy.mitre.org (Lyman F. Sheats Jr.) Newsgroups: comp.unix.ultrix Subject: TIOCCONS ioctl under sunos: does ultrix have something similar? Message-ID: Date: 13 Jun 91 14:01:23 GMT Sender: news@linus.mitre.org (News Service) Distribution: comp.unix.ultrix Organization: The Mitre Corp., Bedford, MA. Lines: 36 Nntp-Posting-Host: d62iggy.mitre.org While recently building the X11R4 distribution for sunos 4.1.1 and ultrix 4.1, I came across the following in mit/clients/xterm/main.c: #ifdef TIOCCONS static int Console; #endif /* TIOCCONS */ ... [other references to TIOCCONS deleted] ... On the sparc under sunos 4.1.1, the #define of TIOCCONS is in the file , which gets included (indirectly) by ioctl.h. Under ultrix, however, I was unable to find the definition of TIOCCONS in any .h file in the /usr/include tree. What I would like to know is: 1) Does ultrix 4.2 have this #define somewhere? We have the 4.2 tapes, but it will probably be many weeks before any of our machines get upgraded. We are currently using ultrix 4.1 on VAXstation 3100s. 2) If ultrix 4.2 does not have TIOCCONS, is there an equivalent under any/other version(s) of ultrix? Maybe under a slightly different name? The reason I ask is that the xterm code to capture console output is #ifdefed around TIOCCONS. 'xterm -C' under sunos 4.1.1 causes console output to be redirected to the xterm window. 'xterm -C' under ultrix causes console output to go to the console (since the definition of TIOCCONS is nonexistent). I usually find myself typing 'xrefresh' alot, and it's starting to piss me off. I do know about xcons(R3) and xconsole(R4), but I'm really looking for a 'clean' solution to this problem. Thanks in advance for any help. -- Lyman F. Sheats Jr. The MITRE Corporation Burlington Road, Bedford MA 01730 email: lfs@mbunix.mitre.org phone: (617)-271-6084