Path: utzoo!utgpu!news-server.csri.toronto.edu!cs.utexas.edu!wuarchive!zaphod.mps.ohio-state.edu!sdd.hp.com!hplabs!hpda!hpcupt1!hpisod2!decot From: decot@hpisod2.HP.COM (Dave Decot) Newsgroups: comp.unix.questions Subject: Re: BSD job control Message-ID: <10650103@hpisod2.HP.COM> Date: 6 Sep 90 19:27:15 GMT References: <323@sherpa.UUCP> Organization: Hewlett Packard, Cupertino Lines: 33 > I'm attempting to port a program which uses BSD job control for use > with POSIX job control under system 5. Can someone explain to me what > the BSD function sigsetmask() does. I would also like to know what > the TIOCLGET and TIOCLSET ioctl() requests do. sigprocmask() is the POSIX equivalent of BSD's sigsetmask(), although the mask arguments must be constructed differently. TIOCLGET Get the process group control mode word and store it in the int referenced by arg. This command is allowed from a background process; however, the information may be subsequently changed by a foreground process. TIOCLSET Set the process group control mode word to the value of the int referenced by arg. TIOCLBIS Use the int referenced by arg as a mask of bits to set in the process group control mode word. TIOCLBIC Use the int referenced by arg as a mask of bits to clear in the process group control mode word. These are used to get, set, and clear flags such as TOSTOP (which controls whether a background process group receives a SIGTTOU signal when one of its process writes to its controlling terminal). Dave Decot HP