Lely core libraries  2.3.4
mkjmp.h
Go to the documentation of this file.
1 
41 #ifndef LELY_UTIL_MKJMP_H_
42 #define LELY_UTIL_MKJMP_H_
43 
44 #include <lely/features.h>
45 
46 #include <setjmp.h>
47 #include <stddef.h>
48 
49 #ifdef __cplusplus
50 extern "C" {
51 #endif
52 
77 int mkjmp(jmp_buf env, void (*func)(void *), void *arg, void *sp, size_t size);
78 
79 #if _POSIX_C_SOURCE >= 200112L && (!defined(__NEWLIB__) || defined(__CYGWIN__))
80 
107 int sigmkjmp(sigjmp_buf env, int savemask, void (*func)(void *), void *arg,
108  void *sp, size_t size);
109 
110 #endif // _POSIX_C_SOURCE >= 200112L && (!__NEWLIB__ || __CYGWIN__)
111 
112 #ifdef __cplusplus
113 }
114 #endif
115 
116 #endif // !LELY_UTIL_MKJMP_H_
features.h
mkjmp
int mkjmp(jmp_buf env, void(*func)(void *), void *arg, void *sp, size_t size)
Creates and stores a calling environment with a user-provided stack suitable for use by longjmp().
Definition: mkjmp.c:98
sigmkjmp
int sigmkjmp(sigjmp_buf env, int savemask, void(*func)(void *), void *arg, void *sp, size_t size)
Creates and stores a calling environment with a user-provided stack suitable for use by siglongjmp().
Definition: mkjmp.c:113
stddef.h