|
Last change
on this file since cd1e3fc0 was d7f7a4a, checked in by Jiří Zárevúcky <zarevucky.jiri@…>, 3 years ago |
|
Replace some license headers with SPDX identifier
Headers are replaced using tools/transorm-copyright.sh only
when it can be matched verbatim with the license header used
throughout most of the codebase.
|
-
Property mode
set to
100644
|
|
File size:
574 bytes
|
| Line | |
|---|
| 1 | /*
|
|---|
| 2 | * SPDX-FileCopyrightText: 2018 CZ.NIC, z.s.p.o.
|
|---|
| 3 | *
|
|---|
| 4 | * SPDX-License-Identifier: BSD-3-Clause
|
|---|
| 5 | */
|
|---|
| 6 |
|
|---|
| 7 | /** @addtogroup libc
|
|---|
| 8 | * @{
|
|---|
| 9 | */
|
|---|
| 10 |
|
|---|
| 11 | #ifndef _LIBC_SETJMP_H_
|
|---|
| 12 | #define _LIBC_SETJMP_H_
|
|---|
| 13 |
|
|---|
| 14 | #include <libarch/fibril_context.h>
|
|---|
| 15 | #include <_bits/__noreturn.h>
|
|---|
| 16 | #include <_bits/decls.h>
|
|---|
| 17 |
|
|---|
| 18 | __C_DECLS_BEGIN;
|
|---|
| 19 |
|
|---|
| 20 | typedef __context_t jmp_buf[1];
|
|---|
| 21 |
|
|---|
| 22 | extern int __context_save(__context_t *) __attribute__((returns_twice));
|
|---|
| 23 | extern __noreturn void __context_restore(__context_t *, int);
|
|---|
| 24 |
|
|---|
| 25 | extern __noreturn void longjmp(jmp_buf, int);
|
|---|
| 26 |
|
|---|
| 27 | __C_DECLS_END;
|
|---|
| 28 |
|
|---|
| 29 | #define setjmp __context_save
|
|---|
| 30 |
|
|---|
| 31 | #endif
|
|---|
| 32 |
|
|---|
| 33 | /** @}
|
|---|
| 34 | */
|
|---|
Note:
See
TracBrowser
for help on using the repository browser.