Subversion Repositories Kolibri OS

Rev

Blame | Last modification | View Log | 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. #define _longjmp longjmp
  26. #define _setjmp setjmp
  27.  
  28. #ifndef __STRICT_ANSI__
  29.  
  30. typedef jmp_buf sigjmp_buf;
  31.  
  32. int     sigsetjmp(sigjmp_buf env, int savemask);
  33. int     siglongjmp(sigjmp_buf env, int val);
  34.  
  35. #ifndef _POSIX_SOURCE
  36.  
  37. #endif /* !_POSIX_SOURCE */
  38. #endif /* !__STRICT_ANSI__ */
  39. #endif /* !__dj_ENFORCE_ANSI_FREESTANDING */
  40.  
  41. #ifndef __dj_ENFORCE_FUNCTION_CALLS
  42. #endif /* !__dj_ENFORCE_FUNCTION_CALLS */
  43.  
  44. #ifdef __cplusplus
  45. }
  46. #endif
  47.  
  48. #endif /* !__dj_include_setjmp_h_ */
  49.