[patch] ia64/bits/sigcontext.h
Jes Sorensen
jes@trained-monkey.org
Mon Feb 11 18:00:00 GMT 2002
Hi
Included is a patch to add definitions for the sc_flags bits in
struct sigcontext on ia64.
The patch was generated against libc-2.2, but should apply cleanly to
2.3 I assume (can't seem to be able to get a cvs update from
sources.redhat.com right now ;-().
Jes
2002-02-11 Jes Sorensen <jes@trained-monkey.org>
* sysdeps/unix/sysv/linux/ia64/bits/sigcontext.h: Add sc_flag bit
definitions for struct sigcontext.
Suggested by David Mosberger-Tang.
--- sysdeps/unix/sysv/linux/ia64/bits/sigcontext.h~ Sat Sep 29 19:09:55 2001
+++ sysdeps/unix/sysv/linux/ia64/bits/sigcontext.h Mon Feb 11 21:34:44 2002
@@ -57,4 +57,13 @@
unsigned long int sc_mask; /* signal mask to restore after handler returns */
};
+/* sc_flag bit definitions. */
+#define IA64_SC_FLAG_ONSTACK_BIT 0 /* is handler running on signal stack? */
+#define IA64_SC_FLAG_IN_SYSCALL_BIT 1 /* did signal interrupt a syscall? */
+#define IA64_SC_FLAG_FPH_VALID_BIT 2 /* is state in f[32]-f[127] valid? */
+
+#define IA64_SC_FLAG_ONSTACK (1 << IA64_SC_FLAG_ONSTACK_BIT)
+#define IA64_SC_FLAG_IN_SYSCALL (1 << IA64_SC_FLAG_IN_SYSCALL_BIT)
+#define IA64_SC_FLAG_FPH_VALID (1 << IA64_SC_FLAG_FPH_VALID_BIT)
+
#endif /* _BITS_SIGCONTEXT_H */
More information about the Libc-hacker
mailing list