Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(132)

Side by Side Diff: fusl/arch/arm/bits/signal.h

Issue 1573973002: Add a "fork" of musl as //fusl. (Closed) Base URL: https://github.com/domokit/mojo.git@master
Patch Set: Created 4 years, 11 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « fusl/arch/arm/bits/shm.h ('k') | fusl/arch/arm/bits/socket.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
(Empty)
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 {
13 unsigned long trap_no, error_code, oldmask;
14 unsigned long arm_r0, arm_r1, arm_r2, arm_r3;
15 unsigned long arm_r4, arm_r5, arm_r6, arm_r7;
16 unsigned long arm_r8, arm_r9, arm_r10, arm_fp;
17 unsigned long arm_ip, arm_sp, arm_lr, arm_pc;
18 unsigned long arm_cpsr, fault_address;
19 } mcontext_t;
20 #else
21 typedef struct {
22 unsigned long __regs[21];
23 } mcontext_t;
24 #endif
25
26 struct sigaltstack {
27 void *ss_sp;
28 int ss_flags;
29 size_t ss_size;
30 };
31
32 typedef struct __ucontext {
33 unsigned long uc_flags;
34 struct __ucontext *uc_link;
35 stack_t uc_stack;
36 mcontext_t uc_mcontext;
37 sigset_t uc_sigmask;
38 unsigned long long uc_regspace[64];
39 } ucontext_t;
40
41 #define SA_NOCLDSTOP 1
42 #define SA_NOCLDWAIT 2
43 #define SA_SIGINFO 4
44 #define SA_ONSTACK 0x08000000
45 #define SA_RESTART 0x10000000
46 #define SA_NODEFER 0x40000000
47 #define SA_RESETHAND 0x80000000
48 #define SA_RESTORER 0x04000000
49
50 #endif
51
52 #define SIGHUP 1
53 #define SIGINT 2
54 #define SIGQUIT 3
55 #define SIGILL 4
56 #define SIGTRAP 5
57 #define SIGABRT 6
58 #define SIGIOT SIGABRT
59 #define SIGBUS 7
60 #define SIGFPE 8
61 #define SIGKILL 9
62 #define SIGUSR1 10
63 #define SIGSEGV 11
64 #define SIGUSR2 12
65 #define SIGPIPE 13
66 #define SIGALRM 14
67 #define SIGTERM 15
68 #define SIGSTKFLT 16
69 #define SIGCHLD 17
70 #define SIGCONT 18
71 #define SIGSTOP 19
72 #define SIGTSTP 20
73 #define SIGTTIN 21
74 #define SIGTTOU 22
75 #define SIGURG 23
76 #define SIGXCPU 24
77 #define SIGXFSZ 25
78 #define SIGVTALRM 26
79 #define SIGPROF 27
80 #define SIGWINCH 28
81 #define SIGIO 29
82 #define SIGPOLL 29
83 #define SIGPWR 30
84 #define SIGSYS 31
85 #define SIGUNUSED SIGSYS
86
87 #define _NSIG 65
OLDNEW
« no previous file with comments | « fusl/arch/arm/bits/shm.h ('k') | fusl/arch/arm/bits/socket.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698