[BACK]Return to longjmp.h CVS log [TXT][DIR] Up to [Development] / linux-2.6-xfs / arch / um / include

File: [Development] / linux-2.6-xfs / arch / um / include / longjmp.h (download)

Revision 1.1, Mon Feb 6 14:53:10 2006 UTC (11 years, 8 months ago) by nathans.longdrop.melbourne.sgi.com
Branch: MAIN

Merge up to 2.6.16-rc2.
Merge of 2.6.x-xfs-melb:linux:25118a by kenmcd.

#ifndef __UML_LONGJMP_H
#define __UML_LONGJMP_H

#include <setjmp.h>
#include "os.h"

#define UML_SIGLONGJMP(buf, val) do { \
	longjmp(*buf, val);	\
} while(0)

#define UML_SIGSETJMP(buf, enable) ({ \
	int n; \
	enable = get_signals(); \
	n = setjmp(*buf); \
	if(n != 0) \
		set_signals(enable); \
	n; })

#endif