haiku/headers/posix/setjmp.h
Scott McCreary 0fae873352 Updated posix headers to remove commas from copyright line, to match the preferred coding guidelines.
Cleaned up some header style violations, making sure there are two blank lines after the header guards.
This fixes the posix header part of #2191.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@39288 a95241bf-73f2-0310-859d-f6bbb57e9c96
2010-11-03 21:46:47 +00:00

42 lines
858 B
C

/*
* Copyright 2004-2010 Haiku Inc.
* Distributed under the terms of the MIT License.
*/
#ifndef _SETJMP_H_
#define _SETJMP_H_
#include <config/HaikuConfig.h>
#include <signal.h>
/* include architecture specific definitions */
#include __HAIKU_ARCH_HEADER(arch_setjmp.h)
typedef struct __jmp_buf_tag {
__jmp_buf regs; /* saved registers, stack & program pointer */
int mask_was_saved;
sigset_t saved_mask;
} jmp_buf[1];
typedef jmp_buf sigjmp_buf;
#ifdef __cplusplus
extern "C" {
#endif
extern int _setjmp(jmp_buf jumpBuffer);
extern int setjmp(jmp_buf jumpBuffer);
extern int sigsetjmp(jmp_buf jumpBuffer, int saveMask);
extern void _longjmp(jmp_buf jumpBuffer, int value);
extern void longjmp(jmp_buf jumpBuffer, int value);
extern void siglongjmp(sigjmp_buf jumpBuffer, int value);
#ifdef __cplusplus
}
#endif
#endif /* _SETJMP_H_ */