Relay-Version: version B 2.10 5/3/83; site utzoo.UUCP Path: utzoo!utgpu!water!watnot!watmath!clyde!rutgers!seismo!lll-lcc!styx!twg-ap!amdahl!pyramid!prls!philabs!micomvax!musocs!mcgill-vision!mouse From: mouse@mcgill-vision.UUCP Newsgroups: comp.unix.questions Subject: Re: Wanted: info about signal handling routines Message-ID: <722@mcgill-vision.UUCP> Date: Wed, 1-Apr-87 19:15:13 EST Article-I.D.: mcgill-v.722 Posted: Wed Apr 1 19:15:13 1987 Date-Received: Thu, 9-Apr-87 00:11:06 EST References: <276@pluto.UUCP> Organization: McGill University, Montreal Lines: 32 Keywords: sighold, sigrelse, sigset In article <276@pluto.UUCP>, warren@pluto.UUCP (Warren Burstein) writes: > I found undefined refs in a program that does job control to sighold, > sigrelse, and sigset. Are they part of BSD4.2, I believe those are 4.1c -ljobs routines. Under 4.2 they migrated into libc and got renamed: sighold to sigblock, sigrelse disappeared, sigset to sigvec. The arguments also changed somewhat. > what do they do, Been a while since I used 4.1. But as I recall, sighold blocks delivery of a signal but does not throw away instances the way sigignore does. Under 4.2, use sigblock instead. Sigrelse is necessary when longjmp()ing out of a signal handler. Under 4.2 this is handled correctly by longjmp, so sigrelse vanished. Sigset was the primitive for installing a handler. Under 4.2, use signal() or sigvec(). > and can I replace them with something? You don't say what operating system you want the replacements to run under, so I can't help you. Above are rough equivalents for 4.2 and 4.3, though I think the arguments have changed. der Mouse Smart mailers: mouse@mcgill-vision.uucp USA: {ihnp4,decvax,akgua,utzoo,etc}!utcsri!musocs!mcgill-vision!mouse think!mosart!mcgill-vision!mouse ARPAnet: think!mosart!mcgill-vision!mouse@harvard.harvard.edu