ucontext.h 638 B

12345678910111213141516171819202122232425262728
  1. /*
  2. * This file is subject to the terms and conditions of the GNU General Public
  3. * License. See the file "COPYING" in the main directory of this archive
  4. * for more details.
  5. *
  6. * Copyright (C) 2018 Kalray Inc.
  7. */
  8. #ifndef _SYS_UCONTEXT_H
  9. #define _SYS_UCONTEXT_H 1
  10. #include <signal.h>
  11. #include <bits/sigcontext.h>
  12. #define NGREG 70
  13. /* Type for general register. */
  14. typedef unsigned long greg_t;
  15. typedef struct ucontext {
  16. unsigned long uc_flags;
  17. struct ucontext *uc_link;
  18. stack_t uc_stack;
  19. struct sigcontext uc_mcontext;
  20. sigset_t uc_sigmask; /* mask last for extensibility */
  21. } ucontext_t;
  22. #endif /* sys/ucontext.h */