aboutsummaryrefslogtreecommitdiff
path: root/src/libthread/386-ucontext.h
diff options
context:
space:
mode:
authorrsc <devnull@localhost>2005-07-20 23:29:56 +0000
committerrsc <devnull@localhost>2005-07-20 23:29:56 +0000
commitb4b686415dcb5ffd64a48d04ad5576de54958eaf (patch)
tree3f7bc224bf28aa1fb3a150d614f9aa0b655c4436 /src/libthread/386-ucontext.h
parent1d41999e22bdc554ec760310f2ff9fb46468ff58 (diff)
downloadplan9port-b4b686415dcb5ffd64a48d04ad5576de54958eaf.tar.gz
plan9port-b4b686415dcb5ffd64a48d04ad5576de54958eaf.tar.bz2
plan9port-b4b686415dcb5ffd64a48d04ad5576de54958eaf.zip
openbsd
Diffstat (limited to 'src/libthread/386-ucontext.h')
-rw-r--r--src/libthread/386-ucontext.h11
1 files changed, 6 insertions, 5 deletions
diff --git a/src/libthread/386-ucontext.h b/src/libthread/386-ucontext.h
index 87edc797..35e99ca5 100644
--- a/src/libthread/386-ucontext.h
+++ b/src/libthread/386-ucontext.h
@@ -1,4 +1,5 @@
-
+typedef struct mcontext mcontext_t;
+typedef struct ucontext ucontext_t;
extern int getcontext(ucontext_t*);
extern void setcontext(ucontext_t*);
@@ -67,7 +68,7 @@ extern void makecontext(ucontext_t*, void(*)(), int, ...);
* $FreeBSD: src/sys/i386/include/ucontext.h,v 1.4 1999/10/11 20:33:09 luoqi Exp $
*/
-typedef struct __mcontext {
+struct mcontext {
/*
* The first 20 fields must match the definition of
* sigcontext. So that we can support sigcontext
@@ -96,9 +97,9 @@ typedef struct __mcontext {
int mc_fpregs[28]; /* env87 + fpacc87 + u_long */
int __spare__[17];
-} mcontext_t;
+};
-typedef struct __ucontext {
+struct ucontext {
/*
* Keep the order of the first two fields. Also,
* keep them the first two fields in the structure.
@@ -113,6 +114,6 @@ typedef struct __ucontext {
struct __ucontext *uc_link;
stack_t uc_stack;
int __spare__[8];
-} ucontext_t;
+};