diff options
author | deischen <deischen@FreeBSD.org> | 2002-01-10 02:44:30 +0000 |
---|---|---|
committer | deischen <deischen@FreeBSD.org> | 2002-01-10 02:44:30 +0000 |
commit | 5f4d0626f53396691d8ef86738606246af9b029e (patch) | |
tree | d61103a5ddba1ca46d7bd3c21eb3b900bdbfca9b /sys/sys/ucontext.h | |
parent | e1f74be694147bb02870412a7cb3af53ece7abca (diff) | |
download | FreeBSD-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.h | 7 |
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_ */ |