Xref: utzoo comp.unix.sysv386:9181 comp.unix.xenix.sco:2832 Path: utzoo!utgpu!news-server.csri.toronto.edu!cs.utexas.edu!ut-emx!jeanluc!stockett From: stockett@jeanluc.UUCP (Jeffrey M. Stockett) Newsgroups: comp.unix.sysv386,comp.unix.xenix.sco Subject: TIOCNOTTY under SCO System V/386 Keywords: TIOCNOTTY Message-ID: <54@jeanluc.UUCP> Date: 20 Jun 91 18:45:43 GMT Followup-To: comp.unix.sysv386 Organization: Open Systems Solutions Lines: 22 I'm trying to port over some code from a BSD machine to SCO System V/386, and I have run into a problem with the following lines: if ((s = open("/dev/tty", O_RDWR)) >= 0) { ioctl(s, TIOCNOTTY, 0); close(s); } I have grepped for TIOCNOTTY in /usr/include/*.h and /usr/include/sys/*.h, and it is not to be found. Does anyone know why it is missing, and what would be an appropriate substitute for it under SCO System V/386? (This is the only line that causes a problem. If I define it to some bogus value, the rest of the code compiles fine.) Thanks, Jeffrey M. Stockett Internet: stockett@titan.tsd.arlut.utexas.edu UUCP: ..cs.utexas.edu!ut-emx!jeanluc!stockett