summaryrefslogtreecommitdiffstats
path: root/sys/sys/ucontext.h
diff options
context:
space:
mode:
authordeischen <deischen@FreeBSD.org>2002-01-10 02:44:30 +0000
committerdeischen <deischen@FreeBSD.org>2002-01-10 02:44:30 +0000
commit5f4d0626f53396691d8ef86738606246af9b029e (patch)
treed61103a5ddba1ca46d7bd3c21eb3b900bdbfca9b /sys/sys/ucontext.h
parente1f74be694147bb02870412a7cb3af53ece7abca (diff)
downloadFreeBSD-src-5f4d0626f53396691d8ef86738606246af9b029e.zip
FreeBSD-src-5f4d0626f53396691d8ef86738606246af9b029e.tar.gz
Add getcontext, setcontext, makecontext, and swapcontext prototypes
to ucontext.h. Approved by: -arch
Diffstat (limited to 'sys/sys/ucontext.h')
-rw-r--r--sys/sys/ucontext.h7
1 files changed, 7 insertions, 0 deletions
diff --git a/sys/sys/ucontext.h b/sys/sys/ucontext.h
index 7f10da5..4d0b61e 100644
--- a/sys/sys/ucontext.h
+++ b/sys/sys/ucontext.h
@@ -50,4 +50,11 @@ typedef struct __ucontext {
int __spare__[8];
} ucontext_t;
+#ifndef _KERNEL
+int getcontext(ucontext_t *);
+int setcontext(const ucontext_t *);
+void makecontext(ucontext_t *, void (*)(void), int, ...);
+int swapcontext(ucontext_t *, const ucontext_t *);
+#endif /* !_KERNEL */
+
#endif /* !_SYS_UCONTEXT_H_ */
OpenPOWER on IntegriCloud