xref: /aosp_15_r20/external/musl/src/internal/ksigaction.h (revision c9945492fdd68bbe62686c5b452b4dc1be3f8453)
1*c9945492SAndroid Build Coastguard Worker #include <features.h>
2*c9945492SAndroid Build Coastguard Worker 
3*c9945492SAndroid Build Coastguard Worker /* This is the structure used for the rt_sigaction syscall on most archs,
4*c9945492SAndroid Build Coastguard Worker  * but it can be overridden by a file with the same name in the top-level
5*c9945492SAndroid Build Coastguard Worker  * arch dir for a given arch, if necessary. */
6*c9945492SAndroid Build Coastguard Worker struct k_sigaction {
7*c9945492SAndroid Build Coastguard Worker 	void (*handler)(int);
8*c9945492SAndroid Build Coastguard Worker 	unsigned long flags;
9*c9945492SAndroid Build Coastguard Worker #ifdef SA_RESTORER
10*c9945492SAndroid Build Coastguard Worker 	void (*restorer)(void);
11*c9945492SAndroid Build Coastguard Worker #endif
12*c9945492SAndroid Build Coastguard Worker 	unsigned mask[2];
13*c9945492SAndroid Build Coastguard Worker #ifndef SA_RESTORER
14*c9945492SAndroid Build Coastguard Worker 	void *unused;
15*c9945492SAndroid Build Coastguard Worker #endif
16*c9945492SAndroid Build Coastguard Worker };
17*c9945492SAndroid Build Coastguard Worker 
18*c9945492SAndroid Build Coastguard Worker hidden void __restore(), __restore_rt();
19