Path: utzoo!utgpu!jarvis.csri.toronto.edu!rutgers!ucsd!tut.cis.ohio-state.edu!AI.MIT.EDU!tmb From: tmb@AI.MIT.EDU (Thomas M. Breuel) Newsgroups: gnu.bash.bug Subject: (none) Message-ID: <8909110114.AA05031@wilde.ai.mit.edu> Date: 11 Sep 89 01:14:59 GMT Sender: daemon@tut.cis.ohio-state.edu Distribution: gnu Organization: GNUs Not Usenet Lines: 31 The following code from nojobs.c won't compile under HPUX (and probably not under SysV either): /* Fill the contents of shell_tty_info with the current tty info. */ get_tty_state () { int tty = open ("/dev/tty", O_RDONLY); if (tty != -1) { ioctl (tty, TIOCGETP, &shell_tty_info); close (tty); } } /* Make the current tty use the state in shell_tty_info. */ set_tty_state () { int tty = open ("/dev/tty", O_RDONLY); if (tty != -1) { ioctl (tty, TIOCSETN, &shell_tty_info); close (tty); } } ^C