2020-08-25 11:23:25 +00:00
|
|
|
#ifndef COSMOPOLITAN_LIBC_CALLS_STRUCT_SIGACTION_XNU_H_
|
|
|
|
#define COSMOPOLITAN_LIBC_CALLS_STRUCT_SIGACTION_XNU_H_
|
|
|
|
#if !(__ASSEMBLER__ + __LINKER__ + 0)
|
|
|
|
|
|
|
|
struct __darwin_ucontext;
|
|
|
|
struct __darwin_siginfo;
|
|
|
|
|
2021-02-04 03:35:29 +00:00
|
|
|
struct sigset_xnu {
|
2020-08-25 11:23:25 +00:00
|
|
|
uint32_t sig[1];
|
|
|
|
};
|
|
|
|
|
2021-02-04 03:35:29 +00:00
|
|
|
struct sigaction_xnu_in {
|
2020-08-25 11:23:25 +00:00
|
|
|
intptr_t sa_handler;
|
|
|
|
void (*sa_restorer)(void *, int, int, const struct __darwin_siginfo *,
|
|
|
|
const struct __darwin_ucontext *);
|
2021-02-04 03:35:29 +00:00
|
|
|
struct sigset_xnu sa_mask;
|
2020-08-25 11:23:25 +00:00
|
|
|
int32_t sa_flags;
|
|
|
|
};
|
|
|
|
|
2021-02-04 03:35:29 +00:00
|
|
|
struct sigaction_xnu_out {
|
2020-08-25 11:23:25 +00:00
|
|
|
intptr_t sa_handler;
|
2021-02-04 03:35:29 +00:00
|
|
|
struct sigset_xnu sa_mask;
|
2020-08-25 11:23:25 +00:00
|
|
|
int32_t sa_flags;
|
|
|
|
};
|
|
|
|
|
|
|
|
#endif /* !(__ASSEMBLER__ + __LINKER__ + 0) */
|
|
|
|
#endif /* COSMOPOLITAN_LIBC_CALLS_STRUCT_SIGACTION_XNU_H_ */
|