🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: comp.os.msdos.programmer
Article #1826

Turbo C 1.5 ssignal() function

#1826
From: Mark Holbrook
Date: Wed, 08 Aug 1990 18:16
21 lines
1455 bytes
The Turbo C version 1.5 ssignal() function seems to be like the
signal() function in other C compilers, but doesn't seem to intercept
signals the way signal() does (at least for ssignal() on my PC vs.
signal() on a real UNIX machine).  For example, if I define a routine
"fpe" to handle floating point exceptions, then use ssignal(SIGFPE,
fpe) to establish fpe() as the handler, and then execute, say, a floating
point divide-by-zero, I get the standard Turbo C error message rather
than whatever fpe() does.

Any advice?  Do I need 2.0?  Is there something I'm not doing right?

(The above question comes from trying to get gnuplot v. 2.0 compiled
and running on a 286 clone with Hercules graphics.  Some #ifdef __TURBOC__
code includes calls to signal(), which I (TC 1.5) don't have.)

Mark Holbrook

Alliant Computer Systems Corporation     Phone: (508) 486-1262
1 Monarch Drive                            FAX: (508) 486-1398
Littleton, MA 01460                     E-mail: holbrook@alliant.COM
Technical Details
Message-ID: <4050@alliant.Alliant.COM>
Path: arc1-ca.pugleaf.net!utzoo!utgpu!news-server.csri.toronto.edu!mailrus!cs.utexas.edu!samsung!xylogics!merk!alliant!holbrook

Show Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!utzoo!utgpu!news-server.csri.toronto.edu!mailrus!cs.utexas.edu!samsung!xylogics!merk!alliant!holbrook
From: holbrook@Alliant.COM (Mark Holbrook)
Newsgroups: comp.os.msdos.programmer
Subject: Turbo C 1.5 ssignal() function
Message-ID: <4050@alliant.Alliant.COM>
Date: 8 Aug 90 18:16:03 GMT
Reply-To: holbrook@alliant.COM (Mark Holbrook)
Distribution: na
Organization: Alliant Computer Systems, Littleton, MA
Lines: 21