From 1518a682f922c43aa8d66ecdd0ef123db83cefcc Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Stephan=20A=C3=9Fmus?= Date: Mon, 25 Jan 2010 18:06:50 +0000 Subject: [PATCH] Patch by Andreas Faerber: Adding ucontext.h POSIX header. mcontext_h can be typedef'd to the existing vregs type. Applies #5324. Thanks a lot! git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@35287 a95241bf-73f2-0310-859d-f6bbb57e9c96 --- headers/posix/ucontext.h | 22 ++++++++++++++++++++++ 1 file changed, 22 insertions(+) create mode 100644 headers/posix/ucontext.h diff --git a/headers/posix/ucontext.h b/headers/posix/ucontext.h new file mode 100644 index 0000000000..6900401afc --- /dev/null +++ b/headers/posix/ucontext.h @@ -0,0 +1,22 @@ +/* + * Copyright 2008, Haiku Inc. All Rights Reserved. + * Distributed under the terms of the MIT license. + */ +#ifndef _UCONTEXT_H_ +#define _UCONTEXT_H_ + +#include + + +typedef struct vregs mcontext_t; + + +typedef struct ucontext_t { + ucontext_t *uc_link; + sigset_t uc_sigmask; + stack_t uc_stack; + mcontext_t uc_mcontext; +} ucontext_t; + + +#endif /* _UCONTEXT_H_ */