[comp.unix.xenix.sco] TIOCNOTTY under SCO System V/386

stockett@jeanluc.UUCP (Jeffrey M. Stockett) (06/21/91)

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