• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1 #if defined(_POSIX_SOURCE) || defined(_POSIX_C_SOURCE) \
2  || defined(_XOPEN_SOURCE) || defined(_GNU_SOURCE) || defined(_BSD_SOURCE)
3 
4 #if defined(_XOPEN_SOURCE) || defined(_GNU_SOURCE) || defined(_BSD_SOURCE)
5 #define MINSIGSTKSZ 2048
6 #define SIGSTKSZ 8192
7 #endif
8 
9 #if defined(_GNU_SOURCE) || defined(_BSD_SOURCE)
10 typedef int greg_t, gregset_t[18];
11 typedef struct sigcontext {
12 	unsigned long trap_no, error_code, oldmask;
13 	unsigned long arm_r0, arm_r1, arm_r2, arm_r3;
14 	unsigned long arm_r4, arm_r5, arm_r6, arm_r7;
15 	unsigned long arm_r8, arm_r9, arm_r10, arm_fp;
16 	unsigned long arm_ip, arm_sp, arm_lr, arm_pc;
17 	unsigned long arm_cpsr, fault_address;
18 } mcontext_t;
19 #else
20 typedef struct {
21 	unsigned long __regs[21];
22 } mcontext_t;
23 #endif
24 
25 struct sigaltstack {
26 	void *ss_sp;
27 	int ss_flags;
28 	size_t ss_size;
29 };
30 
31 typedef struct __ucontext {
32 	unsigned long uc_flags;
33 	struct __ucontext *uc_link;
34 	stack_t uc_stack;
35 	mcontext_t uc_mcontext;
36 	sigset_t uc_sigmask;
37 	unsigned long long uc_regspace[64];
38 } ucontext_t;
39 
40 #define SA_NOCLDSTOP  1
41 #define SA_SIGINFO    2
42 #define SA_ONSTACK    0x08000000
43 #define SA_RESTART    0x10000000
44 #define SA_NODEFER    0x40000000
45 #define SA_RESETHAND  0x80000000
46 #define SA_RESTORER   0x04000000
47 
48 #endif
49 
50 #define SIGHUP    1
51 #define SIGINT    2
52 #define SIGQUIT   3
53 #define SIGILL    4
54 #define SIGTRAP   5
55 #define SIGABRT   6
56 #define SIGIOT    SIGABRT
57 #define SIGBUS    7
58 #define SIGFPE    8
59 #define SIGKILL   9
60 #define SIGUSR1   10
61 #define SIGSEGV   11
62 #define SIGUSR2   12
63 #define SIGPIPE   13
64 #define SIGALRM   14
65 #define SIGTERM   15
66 #define SIGSTKFLT 16
67 #define SIGCHLD   17
68 #define SIGCONT   18
69 #define SIGSTOP   19
70 #define SIGTSTP   20
71 #define SIGTTIN   21
72 #define SIGTTOU   22
73 #define SIGURG    23
74 #define SIGXCPU   24
75 #define SIGXFSZ   25
76 #define SIGVTALRM 26
77 #define SIGPROF   27
78 #define SIGWINCH  28
79 #define SIGIO     29
80 #define SIGPOLL   29
81 #define SIGPWR    30
82 #define SIGSYS    31
83 #define SIGUNUSED SIGSYS
84 
85 #define _NSIG 65
86