Path: utzoo!utgpu!news-server.csri.toronto.edu!cs.utexas.edu!wuarchive!udel!haven!umbc3!gmuvax2!rauletta From: rauletta@gmuvax2.gmu.edu (R. J. Auletta) Newsgroups: comp.unix.ultrix Subject: TIOCNMODEM/tty/VS2000 Keywords: Permanent change to tty Message-ID: <3356@gmuvax2.gmu.edu> Date: 4 Feb 91 00:39:25 GMT Organization: George Mason Univ., Fairfax, Va. Lines: 29 We have a VS2000 (Ultrix 3.1) which boots requiring modem signals on tty02. Since we wish to use the serial port as a printer port we have getty disabled and have run the following program. (Which should permanently disable modem control.) But when the system reboots, the port once again requires modem signals to avoid having writes block. Any suggestions? What's missing? Is this ioctl broken? -R J Auletta #include main() { int fd; int turnoff = 1; int error = 0; fd = open("/dev/tty02",O_NDELAY | O_RDWR); error = ioctl(fd, TIOCNMODEM, &turnoff); fd = open("/dev/tty03",O_NDELAY | O_RDWR); error = ioctl(fd, TIOCNMODEM, &turnoff); }