home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
The Datafile PD-CD 4
/
DATAFILE_PDCD4.iso
/
unix
/
unixlib36d
/
clib
/
h
/
signal
< prev
next >
Wrap
Text File
|
1994-02-26
|
2KB
|
75 lines
/* signal.h (c) Copyright 1990 H.Rogers */
#ifndef __SIGNAL_H
#define __SIGNAL_H
#ifdef __cplusplus
extern "C" {
#endif
/* asterisked signals generate a core dump if uncaught */
#define SIGHUP 1 /* hangup */
#define SIGINT 2 /* terminal interrupt */
#define SIGQUIT 3 /* * ^\ from terminal */
#define SIGILL 4 /* * illegal instruction */
#define SIGTRAP 5 /* * trace trap - unused */
#define SIGIOT 6 /* abort */
#define SIGABRT 6 /* abort */
#define SIGEMT 7 /* * EMT (h/ware error) */
#define SIGFPE 8 /* * FPE trap */
#define SIGKILL 9 /* kill signal */
#define SIGBUS 10 /* * bus error */
#define SIGSEGV 11 /* * segmentation violation */
#define SIGSYS 12 /* * bad system call */
#define SIGPIPE 13 /* broken pipe */
#define SIGALRM 14 /* alarm call */
#define SIGVTALRM 14 /* alarm call */
#define SIGTERM 15 /* termination signal */
#define SIGUSR1 16 /* user signal 1 */
#define SIGUSR2 17 /* user signal 2 */
#define SIGCLD 18 /* child process dead */
#define SIGPWR 19 /* power failure - unused */
#define SIGERR 20 /* RiscOS error */
#define NSIG 21
extern void (*__sigvec[NSIG])(int); /* signal handlers */
extern void (*__sigdfl[NSIG])(int); /* default signal handlers */
extern int sys_nsig; /* = NSIG */
extern char *sys_siglist[NSIG]; /* signal messages */
extern void __core(int); /* generate core dump */
struct trace
{
unsigned int *fp;
unsigned int *sp;
unsigned int *lr;
unsigned int *pc;
};
extern void __backtrace(unsigned int *); /* backtrace(fp) */
#define SIG_DFL ((void (*)(int))-1)
#define SIG_IGN ((void (*)(int))0)
#define SIG_ERR ((void (*)(int))1)
#define SIG_EXIT ((void (*)(int))2)
#define SIG_CORE ((void (*)(int))3)
extern void (*signal(int,void (*)(int)))(int);
extern int raise(int);
extern int __raise(int);
extern volatile int __sigrec; /* flag to avoid infinite signal recursion */
#ifdef __cplusplus
}
#endif
#endif