aboutsummaryrefslogtreecommitdiff
path: root/sys/sys/ucontext.h
diff options
context:
space:
mode:
authorJonathan Mini <mini@FreeBSD.org>2002-09-16 19:28:01 +0000
committerJonathan Mini <mini@FreeBSD.org>2002-09-16 19:28:01 +0000
commita3ad85e51b8dbb685ea451e3129cd39a84e9dcf7 (patch)
treecc10e1243ba2d04a18c1c1d27702a8b1d595ee08 /sys/sys/ucontext.h
parentc76e33b68184b098311dd5841fff2e20df049249 (diff)
downloadsrc-a3ad85e51b8dbb685ea451e3129cd39a84e9dcf7.tar.gz
src-a3ad85e51b8dbb685ea451e3129cd39a84e9dcf7.zip
Notes
Diffstat (limited to 'sys/sys/ucontext.h')
-rw-r--r--sys/sys/ucontext.h6
1 files changed, 5 insertions, 1 deletions
diff --git a/sys/sys/ucontext.h b/sys/sys/ucontext.h
index 424e06f6619a..194b63a73595 100644
--- a/sys/sys/ucontext.h
+++ b/sys/sys/ucontext.h
@@ -31,6 +31,7 @@
#ifndef _SYS_UCONTEXT_H_
#define _SYS_UCONTEXT_H_
+#include <sys/signal.h>
#include <machine/ucontext.h>
typedef struct __ucontext {
@@ -47,7 +48,9 @@ typedef struct __ucontext {
struct __ucontext *uc_link;
stack_t uc_stack;
- int __spare__[8];
+ int uc_flags;
+#define UCF_SWAPPED 0x00000001 /* Used by swapcontext(3). */
+ int __spare__[4];
} ucontext_t;
#ifndef _KERNEL
@@ -57,6 +60,7 @@ __BEGIN_DECLS
int getcontext(ucontext_t *);
int setcontext(const ucontext_t *);
void makecontext(ucontext_t *, void (*)(void), int, ...);
+int signalcontext(ucontext_t *, int, __sighandler_t *);
int swapcontext(ucontext_t *, const ucontext_t *);
__END_DECLS