Update copyright dates with scripts/update-copyrights.
[glibc.git] / sysdeps / unix / sysv / linux / aarch64 / sigcontextinfo.h
blob3c4697380110556018d5f17d7e42446ba0254bfe
1 /* AArch64 definitions for signal handling calling conventions.
2 Copyright (C) 1996-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 #include <sys/ucontext.h>
21 #define SIGCONTEXT siginfo_t *_si, struct ucontext *
22 #define GET_PC(ctx) ((void *) (ctx)->uc_mcontext.pc)
24 /* There is no reliable way to get the sigcontext unless we use a
25 three-argument signal handler. */
26 #define __sigaction(sig, act, oact) ({ \
27 (act)->sa_flags |= SA_SIGINFO; \
28 (__sigaction) (sig, act, oact); \
31 #define sigaction(sig, act, oact) ({ \
32 (act)->sa_flags |= SA_SIGINFO; \
33 (sigaction) (sig, act, oact); \