Update copyright dates with scripts/update-copyrights.
[glibc.git] / sysdeps / unix / sysv / linux / aarch64 / sys / ucontext.h
blobdb7a7c1a7e8cadf01ab66e832e1e2e7c652656b5
1 /* Copyright (C) 1998-2015 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, see
17 <http://www.gnu.org/licenses/>. */
19 /* System V/AArch64 ABI compliant context switching support. */
21 #ifndef _SYS_UCONTEXT_H
22 #define _SYS_UCONTEXT_H 1
24 #include <features.h>
25 #include <signal.h>
26 #include <sys/procfs.h>
28 /* We need the signal context definitions even if they are not used
29 included in <signal.h>. */
30 #include <bits/sigcontext.h>
32 typedef int greg_t;
34 /* Container for all general registers. */
35 typedef elf_gregset_t gregset_t;
37 /* Structure to describe FPU registers. */
38 typedef elf_fpregset_t fpregset_t;
40 /* Context to describe whole processor state. This only describes
41 the core registers; coprocessor registers get saved elsewhere
42 (e.g. in uc_regspace, or somewhere unspecified on the stack
43 during non-RT signal handlers). */
44 typedef struct sigcontext mcontext_t;
46 /* Userlevel context. */
47 typedef struct ucontext
49 unsigned long uc_flags;
50 struct ucontext *uc_link;
51 stack_t uc_stack;
52 __sigset_t uc_sigmask;
53 mcontext_t uc_mcontext;
54 } ucontext_t;
56 #endif /* sys/ucontext.h */