home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
rtsi.com
/
2014.01.www.rtsi.com.tar
/
www.rtsi.com
/
OS9
/
OSK
/
EFFO
/
forum7.lzh
/
RICO
/
C
/
LIBSOURCE
/
SIGNAL
/
signal.h
< prev
Wrap
Text File
|
2009-11-06
|
1KB
|
30 lines
typedef int (* handlerfunc)();
extern handlerfunc signal();
/* OS-9 signals */
#define SIGKILL 0 /* sytem abort (cannot be caught or ignored)*/
#define SIGWAKE 1 /* wake up */
#define SIGQUIT 2 /* keyboard abort */
#define SIGINT 3 /* keyboard interrupt */
/* OS-9 error traps */
#define SIGBUSERR -1 /* Bus error */
#define SIGBUS -1 /* Bus error */
#define SIGADDERR -2 /* Address error */
#define SIGILLINS -3 /* Illegal instruction */
#define SIGILL -3 /* Illegal instruction */
#define SIGZERODIV -4 /* Integer zero division */
#define SIGCHK -5 /* Range error */
#define SIGTRAPV -6 /* Overflow */
#define SIGFPE -6 /* Floating point error */
#define SIGPRIV -7 /* Privilege violation */
#define SIG1010 -8 /* 1010 opcode emulator */
#define SIG1111 -9 /* 1111 opcode emulator */
/* special addresses */
#define SIG_DFL (handlerfunc) 0 /* Default behaviour (exit with error) */
#define SIG_IGN (handlerfunc) 1 /* Ignore signal */