Path: utzoo!utgpu!news-server.csri.toronto.edu!rpi!think.com!sdd.hp.com!hplabs!hpcc05!aspen!tai From: tai@aspen.IAG.HP.COM (Tai Jin) Newsgroups: comp.sys.hp Subject: Re: usleep [Re: BSD and HPUX, The Questions Continue...] Message-ID: <2130012@aspen.IAG.HP.COM> Date: 21 May 91 01:50:30 GMT References: <1991May2.202710.5152@odin.diku.dk> Organization: HP Information Architecture Group - Cupertino, CA Lines: 18 In comp.sys.hp, s900387@minyos.xx.rmit.oz.au (Craig Macbride) writes: jdudeck@polyslo.CalPoly.EDU (John R. Dudeck) writes: >I don't understand. I just wasted many tens of hours trying to port a >large package (the PP X.400 system) to HP/UX, which broke signal() >because I was trying to use -lBSD in order to get the b*() functions. Join the club. I love the way the on-line docs say how signal() works and how the BSD sigset() (etc) commands work, and then HP slips a BSD signal() into the same library as bzero(), etc, so that you can't use these routines without breaking (or rewriting) all your signal-handling. The way to make this work is to link the libraries in the correct order ie. cc ... -lc -lBSD This finds signal in libc.a and also finds the b* routines in libBSD.a. ...tai