Files
2023-04-20 10:16:42 +02:00

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 */