<sys/ucontext.h> on alpha
Andreas Jaeger
aj@suse.de
Tue Oct 12 06:48:00 GMT 1999
Trying to compile the current glibc 2.2 on alpha, I noticed that
<sys/ucontext.h> isn't in synch with the other architectures.
Appended is a patch to add the missing parts. I'd appreciate if
somebody would check if this is ok.
Andreas
1999-10-12 Andreas Jaeger <aj@delta.suse.de>
* sysdeps/unix/sysv/linux/alpha/sys/ucontext.h: Synch with
other architectures: Add NGREGS, greg_t, gregset_t, _fpstate.
Index: sysdeps/unix/sysv/linux/alpha/sys/ucontext.h
===================================================================
RCS file: /cvs/glibc/libc/sysdeps/unix/sysv/linux/alpha/sys/ucontext.h,v
retrieving revision 1.2
diff -u -u -r1.2 ucontext.h
--- ucontext.h 1999/03/01 07:20:35 1.2
+++ ucontext.h 1999/10/12 13:46:00
@@ -22,7 +22,21 @@
#include <features.h>
#include <signal.h>
+/* We need the signal context definitions even if they are not used
+ included in <signal.h>. */
#include <bits/sigcontext.h>
+
+/* Type for general register. */
+typedef long int greg_t;
+
+/* Number of general registers. */
+#define NGREG 33
+
+/* Container for all general registers. */
+typedef greg_t gregset_t[NGREG];
+
+/* Structure to describe FPU registers. */
+typedef struct _fpstate *fpregset_t;
/* A machine context is exactly a sigcontext. */
typedef struct sigcontext mcontext_t;
More information about the Libc-hacker
mailing list