banan-os/userspace/libraries/LibC/include/setjmp.h

21 lines
377 B
C
Raw Normal View History

#ifndef _SETJMP_H
#define _SETJMP_H 1
2023-05-10 23:00:53 +03:00
// https://pubs.opengroup.org/onlinepubs/9699919799/basedefs/setjmp.h.html
#include <sys/cdefs.h>
2023-05-10 23:00:53 +03:00
__BEGIN_DECLS
typedef int jmp_buf[1];
typedef int sigjmp_buf[1];
2023-05-10 23:00:53 +03:00
void longjmp(jmp_buf env, int val);
void siglongjmp(sigjmp_buf env, int val);
int setjmp(jmp_buf env);
int sigsetjmp(sigjmp_buf env, int savemask);
2023-05-10 23:00:53 +03:00
__END_DECLS
#endif