brickOS Kernel Developer
v0.9.0
setjmp.h
Go to the documentation of this file.
1
6
/*
7
* The contents of this file are subject to the Mozilla Public License
8
* Version 1.0 (the "License"); you may not use this file except in
9
* compliance with the License. You may obtain a copy of the License
10
* at http://www.mozilla.org/MPL/
11
*
12
* Software distributed under the License is distributed on an "AS IS"
13
* basis, WITHOUT WARRANTY OF ANY KIND, either express or implied. See
14
* the License for the specific language governing rights and
15
* limitations under the License.
16
*
17
*/
18
19
#ifndef __setjmp_h__
20
#define __setjmp_h__
21
22
#ifdef __cplusplus
23
extern
"C"
{
24
#endif
25
26
#include <
config.h
>
27
28
#ifdef CONF_SETJMP
29
30
/*----[ Data type definitions ]-----------------------------------------*/
31
33
48
typedef
int
jmp_buf
[6];
49
50
51
/*----[ Function prototypes ]-------------------------------------------*/
52
54
62
extern
int
setjmp
(
jmp_buf
env);
63
65
70
extern
void
longjmp
(
jmp_buf
env,
int
val);
71
72
#endif
// CONF_SETJMP
73
74
#ifdef __cplusplus
75
}
76
#endif
77
78
#endif
// __setjmp_h__
config.h
kernel configuration file
longjmp
void longjmp(jmp_buf env, int val)
Non-local jump to saved machine context.
setjmp
int setjmp(jmp_buf env)
Save execution context for non-local goto.
jmp_buf
int jmp_buf[6]
Information stored for non-local jumps.
Definition
setjmp.h:48
include
setjmp.h
Generated by
1.9.8