ucontext.h 674 B

1234567891011121314151617181920212223242526272829
  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. /* Type for general register. */
  13. typedef unsigned long greg_t;
  14. /* Number of general registers. */
  15. #define NGREG 64
  16. typedef struct ucontext {
  17. unsigned long uc_flags;
  18. struct ucontext *uc_link;
  19. stack_t uc_stack;
  20. struct sigcontext uc_mcontext;
  21. sigset_t uc_sigmask; /* mask last for extensibility */
  22. } ucontext_t;
  23. #endif /* sys/ucontext.h */