glibc/sysdeps/unix/sysv/linux/powerpc/powerpc64/ucontext_i.sym
Roland McGrath 0c7c6d531f * sysdeps/unix/sysv/linux/i386/ucontext_i.h: File removed.
* sysdeps/unix/sysv/linux/i386/ucontext_i.sym: New file.
	* sysdeps/unix/sysv/linux/powerpc/powerpc32/ucontext_i.h: File removed.
	* sysdeps/unix/sysv/linux/powerpc/powerpc32/ucontext_i.sym: New file.
	* sysdeps/unix/sysv/linux/powerpc/powerpc64/ucontext_i.h: File removed.
	* sysdeps/unix/sysv/linux/powerpc/powerpc64/ucontext_i.sym: New file.
	* sysdeps/unix/sysv/linux/s390/s390-32/ucontext_i.h: File removed.
	* sysdeps/unix/sysv/linux/s390/s390-64/ucontext_i.h: File removed.
	* sysdeps/unix/sysv/linux/s390/ucontext_i.sym: New file.
	* sysdeps/unix/sysv/linux/sh/sh3/ucontext_i.h: File removed.
	* sysdeps/unix/sysv/linux/sh/sh3/ucontext_i.sym: New file.
	* sysdeps/unix/sysv/linux/sh/sh4/ucontext_i.h: File removed.
	* sysdeps/unix/sysv/linux/sh/sh4/ucontext_i.sym: New file.
	* sysdeps/unix/sysv/linux/x86_64/ucontext_i.h: File removed.
	* sysdeps/unix/sysv/linux/x86_64/ucontext_i.sym: New file.
	* sysdeps/unix/sysv/linux/i386/Makefile [$(subdir) = stdlib]:
	(gen-as-const-headers): Add it.
	* sysdeps/unix/sysv/linux/powerpc/Makefile: Likewise.
	* sysdeps/unix/sysv/linux/sh/Makefile: Likewise.
	* sysdeps/unix/sysv/linux/s390/Makefile: Likewise.
	* sysdeps/unix/sysv/linux/x86_64/Makefile: Likewise.
	* stdlib/tst-ucontext-off.c: File removed.
	* stdlib/Makefile (tests): Remove it.

	* scripts/gen-as-const.awk: Support generating a test program.
	* Makerules [gen-as-const-headers] (tests): Add test-as-const.
	[gen-as-const-headers] ($(objpfx)test-as-const.c): New target.
2005-12-22 05:18:34 +00:00

51 lines
1.3 KiB
Plaintext

#include <stddef.h>
#include <signal.h>
#include <sys/ucontext.h>
--
SIG_BLOCK
SIG_SETMASK
-- Offsets of the fields in the powerpc64 ABI stack frame.
-- XXX Do these correspond to some struct?
FRAME_BACKCHAIN 0
FRAME_CR_SAVE 8
FRAME_LR_SAVE 16
FRAME_COMPILER_DW 24
FRAME_LINKER_DW 32
FRAME_TOC_SAVE 40
FRAME_PARM_SAVE 48
FRAME_PARM1_SAVE 48
FRAME_PARM2_SAVE 56
FRAME_PARM3_SAVE 64
FRAME_PARM4_SAVE 72
FRAME_PARM5_SAVE 80
FRAME_PARM6_SAVE 88
FRAME_PARM7_SAVE 96
FRAME_PARM8_SAVE 104
FRAME_PARM9_SAVE 112
-- Offsets of the fields in the ucontext_t structure.
#define ucontext(member) offsetof (ucontext_t, member)
#define mcontext(member) ucontext (uc_mcontext.member)
UCONTEXT_LINK ucontext (uc_link)
UCONTEXT_STACK ucontext (uc_stack)
UCONTEXT_STACK_SP ucontext (uc_stack.ss_sp)
UCONTEXT_STACK_FLAGS ucontext (uc_stack.ss_flags)
UCONTEXT_STACK_SIZE ucontext (uc_stack.ss_size)
UCONTEXT_SIGMASK ucontext (uc_sigmask)
UCONTEXT_MCONTEXT ucontext (uc_mcontext)
SIGCONTEXT_SIGNAL mcontext (signal)
SIGCONTEXT_HANDLER mcontext (handler)
SIGCONTEXT_OLDMASK mcontext (oldmask)
SIGCONTEXT_PT_REGS mcontext (regs)
SIGCONTEXT_GP_REGS mcontext (gp_regs)
SIGCONTEXT_FP_REGS mcontext (fp_regs)
SIGCONTEXT_V_REGS_PTR mcontext (v_regs)
SIGCONTEXT_V_RESERVE mcontext (vmx_reserve)