rosen@mtgzz.UUCP (05/11/87)
Someone wrote me mail asking: I read your response to the guy trying to trap ctrl-C's. Can the signal() function be used to trap hardware interrupts? Have you seen any go software to do this (for MSC 4.0)? I answered: According to the MSC manual signal() can only be used to trap for SIGINT (ctrl C) or SIGFPE (floating point exception). It seems to me all interrupts are the same (hardware and software) so I don't know why MSC only handles 2 of them. I suppose to catch other interrupts you can use the type of code the other fellow was writing for ctrl C. That is, replace the interrupt vector or chain to it. Does anyone else have any opinions/suggestions. I once had to chain to a hardware interrupt. I wrote some general purpose C routines, and an assembly program callable from C that will let me chain any C routine to any interrupt vector. Is there a better way? -- Tom Rosenfeld @ AT&T Information Systems Labs, Middletown, NJ (201) 957-5867 UUCP: {harpo,ihnp4,burl,akgua}!mtgzz!rosen Disclaimer: I don't claim anything.