1#include <inttypes.h>
2#include <signal.h>
3#include <stddef.h>
4#include <sys/ucontext.h>
5
6#include "kernel_rt_sigframe.h"
7
8SIG_BLOCK
9SIG_SETMASK
10
11_NSIG8				(_NSIG / 8)
12
13MCONTEXT_VERSION
14
15-- Offsets of the fields in the kernel rt_sigframe_t structure.
16#define rt_sigframe(member)	offsetof (struct kernel_rt_sigframe, member)
17
18RT_SIGFRAME_SIZE		sizeof (struct kernel_rt_sigframe)
19RT_SIGFRAME_UCONTEXT		rt_sigframe (uc)
20
21-- Offsets of the fields in the ucontext_t structure.
22#define ucontext(member)	offsetof (ucontext_t, member)
23
24UCONTEXT_FLAGS			ucontext (uc_flags)
25UCONTEXT_LINK			ucontext (uc_link)
26UCONTEXT_STACK			ucontext (uc_stack)
27UCONTEXT_MCONTEXT		ucontext (uc_mcontext)
28UCONTEXT_SIGMASK		ucontext (uc_sigmask)
29UCONTEXT_SIZE			sizeof (ucontext_t)
30