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

Side by Side Diff: fusl/include/signal.h

Issue 1689833004: [fusl] Update fusl (Closed) Base URL: git@github.com:domokit/mojo.git@master
Patch Set: remove stray space Created 4 years, 10 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/include/netpacket/packet.h ('k') | fusl/include/sys/mman.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 #ifndef _SIGNAL_H 1 #ifndef _SIGNAL_H
2 #define _SIGNAL_H 2 #define _SIGNAL_H
3 3
4 #ifdef __cplusplus 4 #ifdef __cplusplus
5 extern "C" { 5 extern "C" {
6 #endif 6 #endif
7 7
8 #include <features.h> 8 #include <features.h>
9 9
10 #if defined(_POSIX_SOURCE) || defined(_POSIX_C_SOURCE) \ 10 #if defined(_POSIX_SOURCE) || defined(_POSIX_C_SOURCE) \
11 || defined(_XOPEN_SOURCE) || defined(_GNU_SOURCE) \ 11 || defined(_XOPEN_SOURCE) || defined(_GNU_SOURCE) \
12 || defined(_BSD_SOURCE) 12 || defined(_BSD_SOURCE)
13 13
14 #ifdef _GNU_SOURCE 14 #ifdef _GNU_SOURCE
15 #define __ucontext ucontext 15 #define __ucontext ucontext
16 #endif 16 #endif
17 17
18 #define __NEED_size_t 18 #define __NEED_size_t
19 #define __NEED_pid_t 19 #define __NEED_pid_t
20 #define __NEED_uid_t 20 #define __NEED_uid_t
21 #define __NEED_struct_timespec 21 #define __NEED_struct_timespec
22 #define __NEED_pthread_t 22 #define __NEED_pthread_t
23 #define __NEED_pthread_attr_t 23 #define __NEED_pthread_attr_t
24 #define __NEED_time_t 24 #define __NEED_time_t
25 #define __NEED_clock_t 25 #define __NEED_clock_t
26 #define __NEED_sigset_t 26 #define __NEED_sigset_t
27 27
28 #include <bits/alltypes.h> 28 #include <bits/alltypes.h>
29 29
30 #define SIG_HOLD ((void (*)(int)) 2)
31
32 #define SIG_BLOCK 0 30 #define SIG_BLOCK 0
33 #define SIG_UNBLOCK 1 31 #define SIG_UNBLOCK 1
34 #define SIG_SETMASK 2 32 #define SIG_SETMASK 2
35 33
36 #define SI_ASYNCNL (-60) 34 #define SI_ASYNCNL (-60)
37 #define SI_TKILL (-6) 35 #define SI_TKILL (-6)
38 #define SI_SIGIO (-5) 36 #define SI_SIGIO (-5)
39 #define SI_ASYNCIO (-4) 37 #define SI_ASYNCIO (-4)
40 #define SI_MESGQ (-3) 38 #define SI_MESGQ (-3)
41 #define SI_TIMER (-2) 39 #define SI_TIMER (-2)
42 #define SI_QUEUE (-1) 40 #define SI_QUEUE (-1)
43 #define SI_USER 0 41 #define SI_USER 0
44 #define SI_KERNEL 128 42 #define SI_KERNEL 128
45 43
44 typedef struct sigaltstack stack_t;
45
46 #endif
47
48 #include <bits/signal.h>
49
50 #if defined(_POSIX_SOURCE) || defined(_POSIX_C_SOURCE) \
51 || defined(_XOPEN_SOURCE) || defined(_GNU_SOURCE) \
52 || defined(_BSD_SOURCE)
53
54 #define SIG_HOLD ((void (*)(int)) 2)
55
46 #define FPE_INTDIV 1 56 #define FPE_INTDIV 1
47 #define FPE_INTOVF 2 57 #define FPE_INTOVF 2
48 #define FPE_FLTDIV 3 58 #define FPE_FLTDIV 3
49 #define FPE_FLTOVF 4 59 #define FPE_FLTOVF 4
50 #define FPE_FLTUND 5 60 #define FPE_FLTUND 5
51 #define FPE_FLTRES 6 61 #define FPE_FLTRES 6
52 #define FPE_FLTINV 7 62 #define FPE_FLTINV 7
53 #define FPE_FLTSUB 8 63 #define FPE_FLTSUB 8
54 64
55 #define ILL_ILLOPC 1 65 #define ILL_ILLOPC 1
(...skipping 15 matching lines...) Expand all
71 #define BUS_MCEERR_AR 4 81 #define BUS_MCEERR_AR 4
72 #define BUS_MCEERR_AO 5 82 #define BUS_MCEERR_AO 5
73 83
74 #define CLD_EXITED 1 84 #define CLD_EXITED 1
75 #define CLD_KILLED 2 85 #define CLD_KILLED 2
76 #define CLD_DUMPED 3 86 #define CLD_DUMPED 3
77 #define CLD_TRAPPED 4 87 #define CLD_TRAPPED 4
78 #define CLD_STOPPED 5 88 #define CLD_STOPPED 5
79 #define CLD_CONTINUED 6 89 #define CLD_CONTINUED 6
80 90
81 typedef struct sigaltstack stack_t;
82
83 union sigval { 91 union sigval {
84 int sival_int; 92 int sival_int;
85 void *sival_ptr; 93 void *sival_ptr;
86 }; 94 };
87 95
88 typedef struct { 96 typedef struct {
97 #ifdef __SI_SWAP_ERRNO_CODE
98 int si_signo, si_code, si_errno;
99 #else
89 int si_signo, si_errno, si_code; 100 int si_signo, si_errno, si_code;
101 #endif
90 union { 102 union {
91 char __pad[128 - 2*sizeof(int) - sizeof(long)]; 103 char __pad[128 - 2*sizeof(int) - sizeof(long)];
92 struct { 104 struct {
93 union { 105 union {
94 struct { 106 struct {
95 pid_t si_pid; 107 pid_t si_pid;
96 uid_t si_uid; 108 uid_t si_uid;
97 } __piduid; 109 } __piduid;
98 struct { 110 struct {
99 int si_timerid; 111 int si_timerid;
(...skipping 133 matching lines...) Expand 10 before | Expand all | Expand 10 after
233 typedef void (*sighandler_t)(int); 245 typedef void (*sighandler_t)(int);
234 void (*bsd_signal(int, void (*)(int)))(int); 246 void (*bsd_signal(int, void (*)(int)))(int);
235 int sigisemptyset(const sigset_t *); 247 int sigisemptyset(const sigset_t *);
236 int sigorset (sigset_t *, const sigset_t *, const sigset_t *); 248 int sigorset (sigset_t *, const sigset_t *, const sigset_t *);
237 int sigandset(sigset_t *, const sigset_t *, const sigset_t *); 249 int sigandset(sigset_t *, const sigset_t *, const sigset_t *);
238 250
239 #define SA_NOMASK SA_NODEFER 251 #define SA_NOMASK SA_NODEFER
240 #define SA_ONESHOT SA_RESETHAND 252 #define SA_ONESHOT SA_RESETHAND
241 #endif 253 #endif
242 254
243 #include <bits/signal.h>
244
245 #define SIG_ERR ((void (*)(int))-1) 255 #define SIG_ERR ((void (*)(int))-1)
246 #define SIG_DFL ((void (*)(int)) 0) 256 #define SIG_DFL ((void (*)(int)) 0)
247 #define SIG_IGN ((void (*)(int)) 1) 257 #define SIG_IGN ((void (*)(int)) 1)
248 258
249 typedef int sig_atomic_t; 259 typedef int sig_atomic_t;
250 260
251 void (*signal(int, void (*)(int)))(int); 261 void (*signal(int, void (*)(int)))(int);
252 int raise(int); 262 int raise(int);
253 263
254 #ifdef __cplusplus 264 #ifdef __cplusplus
255 } 265 }
256 #endif 266 #endif
257 267
258 #endif 268 #endif
OLDNEW
« no previous file with comments | « fusl/include/netpacket/packet.h ('k') | fusl/include/sys/mman.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698