projects
/
musl
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
fix for setenv bogus var argument handling
[musl]
/
include
/
ucontext.h
diff --git
a/include/ucontext.h
b/include/ucontext.h
index
96c27cb
..
87c89ca
100644
(file)
--- a/
include/ucontext.h
+++ b/
include/ucontext.h
@@
-6,31
+6,16
@@
extern "C" {
#include <signal.h>
#include <signal.h>
-struct __fpstate {
- unsigned long __x[7];
- unsigned char __y[80];
- unsigned long __z;
-};
-
-typedef struct {
- unsigned long __gregs[19];
- void *__fpregs;
- unsigned long __oldmask, __cr2;
-} mcontext_t;
+#ifdef _GNU_SOURCE
+#define ucontext __ucontext
+#endif
-typedef struct ucontext {
- unsigned long uc_flags;
- struct ucontext *uc_link;
- stack_t uc_stack;
- mcontext_t uc_mcontext;
- sigset_t uc_sigmask;
- struct __fpstate __fpregs_mem;
-} ucontext_t;
+struct __ucontext;
-int getcontext(
ucontext_
t *);
-void makecontext(
ucontext_
t *, void (*)(void), int, ...);
+int getcontext(
struct __ucontex
t *);
+void makecontext(
struct __ucontex
t *, void (*)(void), int, ...);
int setcontext(const ucontext_t *);
int setcontext(const ucontext_t *);
-int swapcontext(
ucontext_t *, const ucontext_
t *);
+int swapcontext(
struct __ucontext *, const struct __ucontex
t *);
#ifdef __cplusplus
}
#ifdef __cplusplus
}