setjmp.h 1.7 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455
  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_fsr;
  38. unsigned long __mcfpu_fprs;
  39. unsigned long __mcfpu_gsr;
  40. void *__mcfpu_fq;
  41. unsigned char __mcfpu_qcnt;
  42. unsigned char __mcfpu_qentsz;
  43. unsigned char __mcfpu_enab;
  44. } __mc_fpregs;
  45. } __uc_mcontext;
  46. } __jmp_buf[1];
  47. #endif
  48. #endif /* bits/setjmp.h */