about summary refs log tree commit diff
diff options
context:
space:
mode:
authorMark Kettenis <kettenis@gnu.org>2001-03-24 21:53:18 +0000
committerMark Kettenis <kettenis@gnu.org>2001-03-24 21:53:18 +0000
commit0cdd0c51b6b5b42045bb4983ff4d146fbb374eaa (patch)
tree759e0f8c6f0c412b10c4dc7ee1ed0c1eaf38eebf
parent8443afdc7ccfb5b56468e6beea99142ccdf8ebc4 (diff)
downloadglibc-0cdd0c51b6b5b42045bb4983ff4d146fbb374eaa.tar.gz
glibc-0cdd0c51b6b5b42045bb4983ff4d146fbb374eaa.tar.xz
glibc-0cdd0c51b6b5b42045bb4983ff4d146fbb374eaa.zip
* sysdeps/mach/hurd/i386/bits/sigcontext.h (sc_sp, sc_fp, sc_pc, sc_ps): Define as aliases for sc_uesp, sc_ebl, sc_eip and sc_efl.
	* sysdeps/mach/hurd/i386/bits/sigcontext.h (sc_sp, sc_fp, sc_pc,
	sc_ps): Define as aliases for sc_uesp, sc_ebl, sc_eip and sc_efl.
-rw-r--r--ChangeLog3
-rw-r--r--sysdeps/mach/hurd/i386/bits/sigcontext.h8
2 files changed, 10 insertions, 1 deletions
diff --git a/ChangeLog b/ChangeLog
index 7b5f041bc0..035472fc73 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,5 +1,8 @@
 2001-03-24  Mark Kettenis  <kettenis@gnu.org>
 
+	* sysdeps/mach/hurd/i386/bits/sigcontext.h (sc_sp, sc_fp, sc_pc,
+	sc_ps): Define as aliases for sc_uesp, sc_ebl, sc_eip and sc_efl.
+
 	* sysdeps/mach/hurd/i386/init-first.c: Include <assert.h>.
 	(_dl_argv): Declare.
 	(init) [SHARED]: Readjust _dl_argv if we switched to a new stack.
diff --git a/sysdeps/mach/hurd/i386/bits/sigcontext.h b/sysdeps/mach/hurd/i386/bits/sigcontext.h
index c5edb3119e..b935753420 100644
--- a/sysdeps/mach/hurd/i386/bits/sigcontext.h
+++ b/sysdeps/mach/hurd/i386/bits/sigcontext.h
@@ -1,5 +1,5 @@
 /* Machine-dependent signal context structure for GNU Hurd.  i386 version.
-   Copyright (C) 1991, 1992, 1994, 1997 Free Software Foundation, Inc.
+   Copyright (C) 1991, 1992, 1994, 1997, 2001 Free Software Foundation, Inc.
    This file is part of the GNU C Library.
 
    The GNU C Library is free software; you can redistribute it and/or
@@ -87,6 +87,12 @@ struct sigcontext
     int sc_fpexcsr;		/* FPSR including exception bits.  */
   };
 
+/* Traditional BSD names for some members.  */
+#define sc_sp	sc_uesp		/* Stack pointer.  */
+#define sc_fp	sc_ebp		/* Frame pointer.  */
+#define sc_pc	sc_eip		/* Process counter.  */
+#define sc_ps	sc_efl
+
 
 /* Codes for SIGFPE.  */
 #define FPE_INTOVF_TRAP		0x1 /* integer overflow */