mirror of
git://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
synced 2025-08-05 16:54:27 +00:00
20 lines
323 B
C
20 lines
323 B
C
![]() |
#ifndef __UML_LONGJMP_H
|
||
|
#define __UML_LONGJMP_H
|
||
|
|
||
|
#include <setjmp.h>
|
||
|
#include "os.h"
|
||
|
|
||
|
#define UML_SIGLONGJMP(buf, val) do { \
|
||
|
siglongjmp(*buf, val); \
|
||
|
} while(0)
|
||
|
|
||
|
#define UML_SIGSETJMP(buf, enable) ({ \
|
||
|
int n; \
|
||
|
enable = get_signals(); \
|
||
|
n = sigsetjmp(*buf, 1); \
|
||
|
if(n != 0) \
|
||
|
set_signals(enable); \
|
||
|
n; })
|
||
|
|
||
|
#endif
|