i386: Add static asssert for context size
Add a static assert for the siginfo_t, mcontext_t and ucontext_t sizes. These are de-facto ABI options and cannot change size ever. Reviewed by: kib Differential Revision: https://reviews.freebsd.org/D34211
This commit is contained in:
parent
0c988f92dc
commit
d4f495fbf8
@ -115,6 +115,10 @@ static void freebsd4_sendsig(sig_t catcher, ksiginfo_t *, sigset_t *mask);
|
||||
|
||||
extern struct sysentvec elf32_freebsd_sysvec;
|
||||
|
||||
_Static_assert(sizeof(mcontext_t) == 640, "mcontext_t size incorrect");
|
||||
_Static_assert(sizeof(ucontext_t) == 704, "ucontext_t size incorrect");
|
||||
_Static_assert(sizeof(siginfo_t) == 64, "siginfo_t size incorrect");
|
||||
|
||||
/*
|
||||
* Send an interrupt to process.
|
||||
*
|
||||
|
Loading…
Reference in New Issue
Block a user