ce426f
commit b763f6ae859ecea70a5dacb8ad45c71d5f667e2e
ce426f
Author: Andreas Schwab <schwab@suse.de>
ce426f
Date:   Tue Sep 30 12:41:11 2014 +0200
ce426f
ce426f
    aarch64: Increase MINSIGSTKSZ and SIGSTKSZ (bug 16850)
ce426f
ce426f
diff --git a/sysdeps/unix/sysv/linux/aarch64/bits/sigstack.h b/sysdeps/unix/sysv/linux/aarch64/bits/sigstack.h
ce426f
new file mode 100644
ce426f
index 0000000..8f2fb76
ce426f
--- /dev/null
ce426f
+++ b/sysdeps/unix/sysv/linux/aarch64/bits/sigstack.h
ce426f
@@ -0,0 +1,54 @@
ce426f
+/* sigstack, sigaltstack definitions.
ce426f
+   Copyright (C) 2015 Free Software Foundation, Inc.
ce426f
+   This file is part of the GNU C Library.
ce426f
+
ce426f
+   The GNU C Library is free software; you can redistribute it and/or
ce426f
+   modify it under the terms of the GNU Lesser General Public
ce426f
+   License as published by the Free Software Foundation; either
ce426f
+   version 2.1 of the License, or (at your option) any later version.
ce426f
+
ce426f
+   The GNU C Library is distributed in the hope that it will be useful,
ce426f
+   but WITHOUT ANY WARRANTY; without even the implied warranty of
ce426f
+   MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
ce426f
+   Lesser General Public License for more details.
ce426f
+
ce426f
+   You should have received a copy of the GNU Lesser General Public
ce426f
+   License along with the GNU C Library; if not, see
ce426f
+   <http://www.gnu.org/licenses/>.  */
ce426f
+
ce426f
+#ifndef _SIGNAL_H
ce426f
+# error "Never include this file directly.  Use <signal.h> instead"
ce426f
+#endif
ce426f
+
ce426f
+
ce426f
+/* Structure describing a signal stack (obsolete).  */
ce426f
+struct sigstack
ce426f
+  {
ce426f
+    void *ss_sp;		/* Signal stack pointer.  */
ce426f
+    int ss_onstack;		/* Nonzero if executing on this stack.  */
ce426f
+  };
ce426f
+
ce426f
+
ce426f
+/* Possible values for `ss_flags.'.  */
ce426f
+enum
ce426f
+{
ce426f
+  SS_ONSTACK = 1,
ce426f
+#define SS_ONSTACK	SS_ONSTACK
ce426f
+  SS_DISABLE
ce426f
+#define SS_DISABLE	SS_DISABLE
ce426f
+};
ce426f
+
ce426f
+/* Minimum stack size for a signal handler.  */
ce426f
+#define MINSIGSTKSZ	5120
ce426f
+
ce426f
+/* System default stack size.  */
ce426f
+#define SIGSTKSZ	16384
ce426f
+
ce426f
+
ce426f
+/* Alternate, preferred interface.  */
ce426f
+typedef struct sigaltstack
ce426f
+  {
ce426f
+    void *ss_sp;
ce426f
+    int ss_flags;
ce426f
+    size_t ss_size;
ce426f
+  } stack_t;