|
|
2e9afc |
#
|
|
|
2e9afc |
# Upstream power patch to increase MINSIGSTKSZ and SIGSTKSZ to
|
|
|
2e9afc |
# account for the kernel signal frame size increase.
|
|
|
2e9afc |
#
|
|
|
2e9afc |
diff --git a/sysdeps/unix/sysv/linux/powerpc/bits/sigstack.h b/sysdeps/unix/sysv/linux/powerpc/bits/sigstack.h
|
|
|
2e9afc |
new file mode 100644
|
|
|
2e9afc |
index 0000000..33be9e8
|
|
|
2e9afc |
--- /dev/null
|
|
|
2e9afc |
+++ b/sysdeps/unix/sysv/linux/powerpc/bits/sigstack.h
|
|
|
2e9afc |
@@ -0,0 +1,54 @@
|
|
|
2e9afc |
+/* sigstack, sigaltstack definitions.
|
|
|
2e9afc |
+ Copyright (C) 1998-2013 Free Software Foundation, Inc.
|
|
|
2e9afc |
+ This file is part of the GNU C Library.
|
|
|
2e9afc |
+
|
|
|
2e9afc |
+ The GNU C Library is free software; you can redistribute it and/or
|
|
|
2e9afc |
+ modify it under the terms of the GNU Lesser General Public
|
|
|
2e9afc |
+ License as published by the Free Software Foundation; either
|
|
|
2e9afc |
+ version 2.1 of the License, or (at your option) any later version.
|
|
|
2e9afc |
+
|
|
|
2e9afc |
+ The GNU C Library is distributed in the hope that it will be useful,
|
|
|
2e9afc |
+ but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
|
2e9afc |
+ MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
|
|
|
2e9afc |
+ Lesser General Public License for more details.
|
|
|
2e9afc |
+
|
|
|
2e9afc |
+ You should have received a copy of the GNU Lesser General Public
|
|
|
2e9afc |
+ License along with the GNU C Library; if not, see
|
|
|
2e9afc |
+ <http://www.gnu.org/licenses/>. */
|
|
|
2e9afc |
+
|
|
|
2e9afc |
+#ifndef _SIGNAL_H
|
|
|
2e9afc |
+# error "Never include this file directly. Use <signal.h> instead"
|
|
|
2e9afc |
+#endif
|
|
|
2e9afc |
+
|
|
|
2e9afc |
+
|
|
|
2e9afc |
+/* Structure describing a signal stack (obsolete). */
|
|
|
2e9afc |
+struct sigstack
|
|
|
2e9afc |
+ {
|
|
|
2e9afc |
+ void *ss_sp; /* Signal stack pointer. */
|
|
|
2e9afc |
+ int ss_onstack; /* Nonzero if executing on this stack. */
|
|
|
2e9afc |
+ };
|
|
|
2e9afc |
+
|
|
|
2e9afc |
+
|
|
|
2e9afc |
+/* Possible values for `ss_flags.'. */
|
|
|
2e9afc |
+enum
|
|
|
2e9afc |
+{
|
|
|
2e9afc |
+ SS_ONSTACK = 1,
|
|
|
2e9afc |
+#define SS_ONSTACK SS_ONSTACK
|
|
|
2e9afc |
+ SS_DISABLE
|
|
|
2e9afc |
+#define SS_DISABLE SS_DISABLE
|
|
|
2e9afc |
+};
|
|
|
2e9afc |
+
|
|
|
2e9afc |
+/* Minimum stack size for a signal handler. */
|
|
|
2e9afc |
+#define MINSIGSTKSZ 4096
|
|
|
2e9afc |
+
|
|
|
2e9afc |
+/* System default stack size. */
|
|
|
2e9afc |
+#define SIGSTKSZ 16384
|
|
|
2e9afc |
+
|
|
|
2e9afc |
+
|
|
|
2e9afc |
+/* Alternate, preferred interface. */
|
|
|
2e9afc |
+typedef struct sigaltstack
|
|
|
2e9afc |
+ {
|
|
|
2e9afc |
+ void *ss_sp;
|
|
|
2e9afc |
+ int ss_flags;
|
|
|
2e9afc |
+ size_t ss_size;
|
|
|
2e9afc |
+ } stack_t;
|