Subversion Repositories Kolibri OS

Rev

Go to most recent revision | Blame | Last modification | View Log | Download | RSS feed

  1. /* Copyright (C) 1999 DJ Delorie, see COPYING.DJ for details */
  2. /* Copyright (C) 1995 DJ Delorie, see COPYING.DJ for details */
  3. #ifndef __dj_include_setjmp_h_
  4. #define __dj_include_setjmp_h_
  5.  
  6. #ifdef __cplusplus
  7. extern "C" {
  8. #endif
  9.  
  10. #ifndef __dj_ENFORCE_ANSI_FREESTANDING
  11.  
  12. typedef struct __jmp_buf {
  13.   unsigned long __eax, __ebx, __ecx, __edx, __esi;
  14.   unsigned long __edi, __ebp, __esp, __eip, __eflags;
  15.   unsigned short __cs, __ds, __es, __fs, __gs, __ss;
  16.   unsigned long __sigmask; /* for POSIX signals only */
  17.   unsigned long __signum; /* for expansion */
  18.   unsigned long __exception_ptr; /* pointer to previous exception */
  19.   unsigned char __fpu_state[108]; /* for future use */
  20. } jmp_buf[1];
  21.  
  22. void    longjmp(jmp_buf env, int val);
  23. int     setjmp(jmp_buf env);
  24.  
  25. #ifndef __STRICT_ANSI__
  26.  
  27. typedef jmp_buf sigjmp_buf;
  28.  
  29. int     sigsetjmp(sigjmp_buf env, int savemask);
  30. int     siglongjmp(sigjmp_buf env, int val);
  31.  
  32. #ifndef _POSIX_SOURCE
  33.  
  34. #endif /* !_POSIX_SOURCE */
  35. #endif /* !__STRICT_ANSI__ */
  36. #endif /* !__dj_ENFORCE_ANSI_FREESTANDING */
  37.  
  38. #ifndef __dj_ENFORCE_FUNCTION_CALLS
  39. #endif /* !__dj_ENFORCE_FUNCTION_CALLS */
  40.  
  41. #ifdef __cplusplus
  42. }
  43. #endif
  44.  
  45. #endif /* !__dj_include_setjmp_h_ */
  46.