* <sys/ucontext.h> on alpha
@ 1999-10-12 6:48 Andreas Jaeger
1999-10-12 8:52 ` Ulrich Drepper
0 siblings, 1 reply; 2+ messages in thread
From: Andreas Jaeger @ 1999-10-12 6:48 UTC (permalink / raw)
To: libc-hacker
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;
^ permalink raw reply [flat|nested] 2+ messages in thread
* Re: <sys/ucontext.h> on alpha
1999-10-12 6:48 <sys/ucontext.h> on alpha Andreas Jaeger
@ 1999-10-12 8:52 ` Ulrich Drepper
0 siblings, 0 replies; 2+ messages in thread
From: Ulrich Drepper @ 1999-10-12 8:52 UTC (permalink / raw)
To: Andreas Jaeger; +Cc: libc-hacker
Andreas Jaeger <aj@suse.de> writes:
> 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.
I've checked in a little bit different patch which is in sync with the
definitions in asm/elf.h.
--
---------------. drepper at gnu.org ,-. 1325 Chesapeake Terrace
Ulrich Drepper \ ,-------------------' \ Sunnyvale, CA 94089 USA
Cygnus Solutions `--' drepper at cygnus.com `------------------------
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~1999-10-12 8:52 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
1999-10-12 6:48 <sys/ucontext.h> on alpha Andreas Jaeger
1999-10-12 8:52 ` Ulrich Drepper
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).