fxlibc/include/setjmp.h

27 lines
487 B
C
Raw Normal View History

2020-09-17 19:27:01 +02:00
#ifndef __LIB_SETJMP_H__
# define __LIB_SETJMP_H__
#include <stddef.h>
#include <stdint.h>
/* Get '__jmp_buf' */
#include <bits/setjmp.h>
2020-09-17 19:27:01 +02:00
/* User jmp_buf alias */
2020-09-17 19:27:01 +02:00
typedef struct __jmp_buf jmp_buf[1];
/*
** Store the calling environment in ENV, also saving the signal mask.
** Return 0.
*/
2020-09-17 19:27:01 +02:00
extern int setjmp(jmp_buf env);
/*
** Store the calling environment in ENV, not saving the signal mask.
** Return 0.
*/
2020-09-17 19:27:01 +02:00
extern void longjmp(jmp_buf env, int val);
#endif /*__LIB_SETJMP_H__*/