mirror of
https://github.com/VARCem/PTV_Archive.git
synced 2026-07-19 15:34:57 +00:00
44 lines
1.3 KiB
C
44 lines
1.3 KiB
C
/*
|
|
* Version : @(#)signal.h 1.2
|
|
*/
|
|
|
|
/**************************************************************************
|
|
** *
|
|
** FILE : signal.h *
|
|
** *
|
|
** DESCRIPTION : Include file with prototypes and macros for handling *
|
|
** various signals. *
|
|
** *
|
|
** COPYRIGHT : 1996 TASKING, Inc. *
|
|
** *
|
|
**************************************************************************/
|
|
|
|
#ifndef _SIGNAL_H
|
|
#define _SIGNAL_H
|
|
|
|
typedef int sig_atomic_t;
|
|
typedef void signalfunction( int );
|
|
|
|
#define _NSIG 7 /* one more then last code */
|
|
|
|
#define SIGINT 1
|
|
#define SIGILL 2
|
|
#define SIGFPE 3
|
|
#define SIGSEGV 4
|
|
#define SIGTERM 5
|
|
#define SIGABRT 6
|
|
#define SIG_DFL (void (*)())0
|
|
#define SIG_IGN (void (*)())1
|
|
#define SIG_ERR (void (*)())-1
|
|
|
|
#ifdef __cplusplus
|
|
extern "C" {
|
|
#endif /* __cplusplus */
|
|
signalfunction *signal(int, signalfunction *);
|
|
int raise( int );
|
|
#ifdef __cplusplus
|
|
}
|
|
#endif /* __cplusplus */
|
|
|
|
#endif /* _SIGNAL_H */
|