setjmp.h 1.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354
  1. /* Copyright (C) 1997-2017 Free Software Foundation, Inc.
  2. The GNU C Library is free software; you can redistribute it and/or
  3. modify it under the terms of the GNU Lesser General Public
  4. License as published by the Free Software Foundation; either
  5. version 2.1 of the License, or (at your option) any later version.
  6. The GNU C Library is distributed in the hope that it will be useful,
  7. but WITHOUT ANY WARRANTY; without even the implied warranty of
  8. MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
  9. Lesser General Public License for more details.
  10. You should have received a copy of the GNU Lesser General Public
  11. License along with the GNU C Library; if not, see
  12. <http://www.gnu.org/licenses/>. */
  13. #ifndef _BITS_SETJMP_H
  14. #define _BITS_SETJMP_H 1
  15. #if !defined _SETJMP_H && !defined _PTHREAD_H
  16. # error "Never include <bits/setjmp.h> directly; use <setjmp.h> instead."
  17. #endif
  18. #ifndef _ASM
  19. typedef struct __sparc64_jmp_buf
  20. {
  21. struct __sparc64_jmp_buf *__uc_link;
  22. unsigned long __uc_flags;
  23. unsigned long __uc_sigmask;
  24. struct __sparc64_jmp_buf_mcontext
  25. {
  26. unsigned long __mc_gregs[19];
  27. unsigned long __mc_fp;
  28. unsigned long __mc_i7;
  29. struct __sparc64_jmp_buf_fpu
  30. {
  31. union
  32. {
  33. unsigned int __sregs[32];
  34. unsigned long __dregs[32];
  35. long double __qregs[16];
  36. } __mcfpu_fpregs;
  37. unsigned long __mcfpu_fprs;
  38. unsigned long __mcfpu_gsr;
  39. void *__mcfpu_fq;
  40. unsigned char __mcfpu_qcnt;
  41. unsigned char __mcfpu_qentsz;
  42. unsigned char __mcfpu_enab;
  43. } __mc_fpregs;
  44. } __uc_mcontext;
  45. } __jmp_buf[1];
  46. #endif
  47. #endif /* bits/setjmp.h */