aboutsummaryrefslogtreecommitdiff
path: root/src/libthread/OpenBSD-386.c
diff options
context:
space:
mode:
authorrsc <devnull@localhost>2005-11-04 16:34:19 +0000
committerrsc <devnull@localhost>2005-11-04 16:34:19 +0000
commit1e05fdf92cf4c3ae32c52d6928f3e74000b76f6a (patch)
tree2df6702fe73590dbf26e59a854d903481362574a /src/libthread/OpenBSD-386.c
parentb4d5d19438106b3904185eb9ba7d6e1b8b0cfdf7 (diff)
downloadplan9port-1e05fdf92cf4c3ae32c52d6928f3e74000b76f6a.tar.gz
plan9port-1e05fdf92cf4c3ae32c52d6928f3e74000b76f6a.tar.bz2
plan9port-1e05fdf92cf4c3ae32c52d6928f3e74000b76f6a.zip
use macro for getcontext (setjmp)
Diffstat (limited to 'src/libthread/OpenBSD-386.c')
-rw-r--r--src/libthread/OpenBSD-386.c15
1 files changed, 0 insertions, 15 deletions
diff --git a/src/libthread/OpenBSD-386.c b/src/libthread/OpenBSD-386.c
index 74179743..3725f264 100644
--- a/src/libthread/OpenBSD-386.c
+++ b/src/libthread/OpenBSD-386.c
@@ -13,21 +13,6 @@ makecontext(ucontext_t *ucp, void (*func)(void), int argc, ...)
ucp->uc_mcontext.mc_esp = (int)sp;
}
-extern int getmcontext(mcontext_t*);
-extern int setmcontext(mcontext_t*);
-
-int
-getcontext(ucontext_t *uc)
-{
- return getmcontext(&uc->uc_mcontext);
-}
-
-void
-setcontext(ucontext_t *uc)
-{
- setmcontext(&uc->uc_mcontext);
-}
-
int
swapcontext(ucontext_t *oucp, ucontext_t *ucp)
{