summary refs log tree commit diff
path: root/sysdeps
diff options
context:
space:
mode:
authorUlrich Drepper <drepper@redhat.com>2005-10-17 17:01:06 +0000
committerUlrich Drepper <drepper@redhat.com>2005-10-17 17:01:06 +0000
commit4fa64d66fef11970e4b57b5a60e8d23144c4b899 (patch)
tree1657535276446ec579d36c9ca59791d63bd1524c /sysdeps
parentdd3af58b91f0b1a479368bcba329ee81c60e893a (diff)
downloadglibc-4fa64d66fef11970e4b57b5a60e8d23144c4b899.tar.gz
glibc-4fa64d66fef11970e4b57b5a60e8d23144c4b899.tar.xz
glibc-4fa64d66fef11970e4b57b5a60e8d23144c4b899.zip
* sysdeps/unix/sysv/linux/s390/s390-32/ucontext_i.h (SC_STSZ, TESTS):
	Define.
	* sysdeps/unix/sysv/linux/s390/s390-64/ucontext_i.h (SC_STSZ, TESTS):
	Likewise.
Diffstat (limited to 'sysdeps')
-rw-r--r--sysdeps/unix/sysv/linux/s390/s390-32/ucontext_i.h14
-rw-r--r--sysdeps/unix/sysv/linux/s390/s390-64/ucontext_i.h13
2 files changed, 27 insertions, 0 deletions
diff --git a/sysdeps/unix/sysv/linux/s390/s390-32/ucontext_i.h b/sysdeps/unix/sysv/linux/s390/s390-32/ucontext_i.h
index 2e51f04e65..61f018621b 100644
--- a/sysdeps/unix/sysv/linux/s390/s390-32/ucontext_i.h
+++ b/sysdeps/unix/sysv/linux/s390/s390-32/ucontext_i.h
@@ -27,9 +27,23 @@
 #define SC_FLGS 0x000
 #define SC_LINK 0x004
 #define SC_STCK 0x008
+#define SC_STSZ 0x010
 #define SC_PSW  0x018
 #define SC_GPRS 0x020
 #define SC_ACRS 0x060
 #define SC_FPC  0x0A0
 #define SC_FPRS 0x0A8
 #define SC_MASK 0x128
+
+/* Tests run in stdlib/tst-ucontext-off.  */
+#define TESTS \
+  TEST (uc_flags, SC_FLGS);				\
+  TEST (uc_link, SC_LINK);				\
+  TEST (uc_stack.ss_sp, SC_STCK);			\
+  TEST (uc_stack.ss_size, SC_STSZ);			\
+  TEST (uc_mcontext.psw, SC_PSW);			\
+  TEST (uc_mcontext.gregs, SC_GPRS);			\
+  TEST (uc_mcontext.aregs, SC_ACRS);			\
+  TEST (uc_mcontext.fpregs.fpc, SC_FPC);		\
+  TEST (uc_mcontext.fpregs.fprs, SC_FPRS);		\
+  TEST (uc_sigmask, SC_MASK);
diff --git a/sysdeps/unix/sysv/linux/s390/s390-64/ucontext_i.h b/sysdeps/unix/sysv/linux/s390/s390-64/ucontext_i.h
index 6d223a08a6..28ef915fc1 100644
--- a/sysdeps/unix/sysv/linux/s390/s390-64/ucontext_i.h
+++ b/sysdeps/unix/sysv/linux/s390/s390-64/ucontext_i.h
@@ -27,6 +27,7 @@
 #define SC_FLGS 0x000
 #define SC_LINK 0x008
 #define SC_STCK 0x010
+#define SC_STSZ 0x020
 #define SC_PSW  0x028
 #define SC_GPRS 0x038
 #define SC_ACRS 0x0B8
@@ -34,3 +35,15 @@
 #define SC_FPRS 0x100
 #define SC_MASK 0x180
 
+/* Tests run in stdlib/tst-ucontext-off.  */
+#define TESTS \
+  TEST (uc_flags, SC_FLGS);				\
+  TEST (uc_link, SC_LINK);				\
+  TEST (uc_stack.ss_sp, SC_STCK);			\
+  TEST (uc_stack.ss_size, SC_STSZ);			\
+  TEST (uc_mcontext.psw, SC_PSW);			\
+  TEST (uc_mcontext.gregs, SC_GPRS);			\
+  TEST (uc_mcontext.aregs, SC_ACRS);			\
+  TEST (uc_mcontext.fpregs.fpc, SC_FPC);		\
+  TEST (uc_mcontext.fpregs.fprs, SC_FPRS);		\
+  TEST (uc_sigmask, SC_MASK);