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