ucontext_i.sym 788 B

12345678910111213141516171819202122232425262728293031
  1. #include <inttypes.h>
  2. #include <signal.h>
  3. #include <stddef.h>
  4. #include <sys/ucontext.h>
  5. -- Constants used by the rt_sigprocmask call.
  6. SIG_BLOCK
  7. SIG_SETMASK
  8. _NSIG8 (_NSIG / 8)
  9. -- Offsets of the fields in the ucontext_t structure.
  10. #define ucontext(member) offsetof (ucontext_t, member)
  11. #define stack(member) ucontext (uc_stack.member)
  12. #define mcontext(member) ucontext (uc_mcontext.member)
  13. UCONTEXT_FLAGS ucontext (__uc_flags)
  14. UCONTEXT_LINK ucontext (uc_link)
  15. UCONTEXT_STACK ucontext (uc_stack)
  16. UCONTEXT_MCONTEXT ucontext (uc_mcontext)
  17. UCONTEXT_SIGMASK ucontext (uc_sigmask)
  18. STACK_SP stack (ss_sp)
  19. STACK_SIZE stack (ss_size)
  20. STACK_FLAGS stack (ss_flags)
  21. MCONTEXT_GREGS mcontext (__gregs)
  22. MCONTEXT_FPREGS mcontext (__fpregs)
  23. UCONTEXT_SIZE sizeof (ucontext_t)