2.9
[glibc/nacl-glibc.git] / sysdeps / generic / sys / ucontext.h
blobd643dfbfc7c1e7309f9f34931e6c26ba702a015e
1 /* Data structures for user-level context switching. Generic version.
2 Copyright (C) 1997,98,99,2001 Free Software Foundation, Inc.
3 This file is part of the GNU C Library.
5 The GNU C Library is free software; you can redistribute it and/or
6 modify it under the terms of the GNU Lesser General Public
7 License as published by the Free Software Foundation; either
8 version 2.1 of the License, or (at your option) any later version.
10 The GNU C Library is distributed in the hope that it will be useful,
11 but WITHOUT ANY WARRANTY; without even the implied warranty of
12 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
13 Lesser General Public License for more details.
15 You should have received a copy of the GNU Lesser General Public
16 License along with the GNU C Library; if not, write to the Free
17 Software Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA
18 02111-1307 USA. */
20 /* This file's definitions suffice for any platform where all
21 the machine-specific state is described in `struct sigcontext'. */
23 #ifndef _SYS_UCONTEXT_H
24 #define _SYS_UCONTEXT_H 1
26 #include <features.h>
27 #include <signal.h>
29 /* We need the signal context definitions even if they are not used
30 included in <signal.h>. */
31 #include <bits/sigcontext.h>
33 typedef struct sigcontext mcontext_t;
35 /* Userlevel context. */
36 typedef struct ucontext
38 unsigned long int uc_flags;
39 struct ucontext *uc_link;
40 stack_t uc_stack;
41 mcontext_t uc_mcontext;
42 __sigset_t uc_sigmask;
43 } ucontext_t;
45 #endif /* sys/ucontext.h */