Path: utzoo!utgpu!news-server.csri.toronto.edu!rpi!zaphod.mps.ohio-state.edu!samsung!think.com!mintaka!bloom-beacon!eru!hagbard!sunic!dkuug!diku!carllp From: carllp@diku.dk (Carl-Lykke Pedersen) Newsgroups: comp.sys.hp Subject: Re: About wait(2)... Message-ID: <1991May9.184506.21729@odin.diku.dk> Date: 9 May 91 18:45:06 GMT References: <281737c1.49d2@petunia.CalPoly.EDU> <5570624@hpfcdc.HP.COM> Sender: carllp@skinfaxe.diku.dk Organization: Department of Computer Science, U of Copenhagen Lines: 20 rml@hpfcdc.HP.COM (Bob Lenk) writes: >> So I changed the above line to >> if (WIFEXITED(w.w_status)) return w.w_retcode; >> which compiles ok. > >This should work fine. The HP-UX macros are compatible with POSIX rather >than BSD. In newer versions of HP-UX, has a BSD compatible >version of these macros within #ifdef _BSD. But WTERMSIG and WSTOPSIG still seems to be defined the POSIX-way (in hpux 7.0). Regards Carl-Lykke -- Carl-Lykke Pedersen (System Administrator) Email: carllp@diku.dk DIKU (Dept. Comp. Sci. Univ. Copenhagen) Fax: +45 31 39 02 21 Universitetsparken 1 DK-2100 Copenhagen, Denmark