Path: utzoo!attcan!utgpu!jarvis.csri.toronto.edu!mailrus!wuarchive!gem.mps.ohio-state.edu!apple!csibtfr!motcsd!hpda!hpcupt1!hpisod2!decot From: decot@hpisod2.HP.COM (Dave Decot) Newsgroups: comp.sys.hp Subject: Re: BSD job control problem Message-ID: <16710030@hpisod2.HP.COM> Date: 9 Oct 89 10:31:06 GMT References: Organization: Hewlett Packard, Cupertino Lines: 29 > I am trying to install bash, the born again shell, on our HP9000/835. > I cannot get job control to work. The HP manuals give me the > impression that HPUX supports BSD job control. But a few things come > up undefined when compiling the bash routine jobs.c : NTTYDISC, > TIOCGETD, TIOCSETD, TIOCSETN, WNOHANG, and WUNTRACED. I cannot find > these in any include files, though I find similar things in > "sys/bsdtty.h". I have found them in include files on a Sun, so they > exist. Is this a case of lack of BSD job control support, or > something else? NTTYDISC, TIOCGETD, TIOSETD, and TIOCSETN are not supported on HP-UX, but they have little to do with job control. They are mostly related to the Berkeley tty driver, which is not used by HP-UX. NTTYDISC, TIOCGETD, TIOSETD are used to control tty line disciplines. HP-UX has only the System V/POSIX tty line discipline. I don't know why bash wants to set or examine the line discipline, but I think it might possibly be OK if you just put "#ifndef hpux ... #endif" around that code. TIOCSETN is roughly the equivalent of TCSETA, but for the stty()-style parameter buffers. This will take rewriting to use the System V style, or you could try just using TIOCSETP instead. If the bash source has #ifdefs for System V on some of this code, by all means have it use the System V style interface. As in BSD systems, WNOHANG and WUNTRACED are found on HP-UX in , which the source code should have included in order to use wait3(). Dave Decot