ucontext.h 425 B

1234567891011121314151617181920212223
  1. #ifndef _UCONTEXT_H
  2. #define _UCONTEXT_H
  3. #ifdef __cplusplus
  4. extern "C" {
  5. #endif
  6. #include <signal.h>
  7. #ifdef _GNU_SOURCE
  8. #define ucontext __ucontext
  9. #endif
  10. struct __ucontext;
  11. int getcontext(struct __ucontext *);
  12. void makecontext(struct __ucontext *, void (*)(void), int, ...);
  13. int setcontext(const struct __ucontext *);
  14. int swapcontext(struct __ucontext *, const struct __ucontext *);
  15. #ifdef __cplusplus
  16. }
  17. #endif
  18. #endif