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
50extern "C" {
51#endif
52
77int 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
107int 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_
This header file is part of the Lely libraries; it contains the compiler feature definitions.
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
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
This header file is part of the C11 and POSIX compatibility library; it includes <stddef....