llvm-mos-sdk
common
include
signal.h
Go to the documentation of this file.
1
#ifndef _SIGNAL_H_
2
#define _SIGNAL_H_
3
4
#ifdef __cplusplus
5
extern
"C"
{
6
#endif
7
8
typedef
char
sig_atomic_t
;
9
10
// Originally from the Public Domain C Library (PDCLib).
11
12
/* These are the values used by Linux. */
13
14
/* Abnormal termination / abort() */
15
#define SIGABRT 6
16
/* Arithmetic exception / division by zero / overflow */
17
#define SIGFPE 8
18
/* Illegal instruction */
19
#define SIGILL 4
20
/* Interactive attention signal */
21
#define SIGINT 2
22
/* Invalid memory access */
23
#define SIGSEGV 11
24
/* Termination request */
25
#define SIGTERM 15
26
27
/* The following should be defined to pointer values that could NEVER point to
28
a valid signal handler function. (They are used as special arguments to
29
signal().) Again, these are the values used by Linux.
30
*/
31
#define SIG_DFL ((void (*)(int))0)
32
#define SIG_ERR ((void (*)(int))-1)
33
#define SIG_IGN ((void (*)(int))1)
34
35
void (*
signal
(
int
sig,
void
(*func)(
int
)))(int);
36
int
raise
(
int
sig);
37
38
#ifdef __cplusplus
39
}
40
#endif
41
42
#endif // not _SIGNAL_H_
signal
void(*)(int) signal(int sig, void(*func)(int))
Definition:
signal.h:35
sig_atomic_t
char sig_atomic_t
Definition:
signal.h:8
Generated by
1.8.17