xref: /titanic_44/usr/src/lib/libshell/common/features/setjmp (revision da2e3ebdc1edfbc5028edf1354e7dd2fa69a7968)
1 lib	sigsetjmp,_setjmp,_longjmp
2 typ	sigjmp_buf	setjmp.h
3 cat{
4 	#undef sigsetjmp
5 	#undef siglongjmp
6 	#undef sigjmp_buf
7 	#define sigjmp_buf		jmp_buf
8 	#ifdef	_lib__setjmp
9 	#   define sigsetjmp(a,b)	_setjmp(a)
10 	#else
11 	#   define sigsetjmp(a,b)	setjmp(a)
12 	#endif 	/* _lib__setjmp */
13 	#ifdef	_lib__longjmp
14 	#   define siglongjmp(a,b)	_longjmp(a,b)
15 	#else
16 	#   define siglongjmp(a,b)	longjmp(a,b)
17 	#endif 	/* _lib__longjmp */
18 }end
19