Dmitry V. Levin
0e946ab2c2
* printsiginfo.h: New file. * Makefile.am (strace_SOURCES): Add it. * defs.h: Do not include <signal.h>. (printsiginfo): Remove. * printsiginfo.c: Include <signal.h> and "printsiginfo.h". * strace.c: Likewise. * sigaltstack.c: Include <signal.h>. * signal.c: Likewise. * sigreturn.c: Likewise. * time.c: Likewise.
24 lines
383 B
C
24 lines
383 B
C
#include "defs.h"
|
|
#include <signal.h>
|
|
#include "regs.h"
|
|
#include "ptrace.h"
|
|
|
|
#if defined HAVE_ASM_SIGCONTEXT_H && !defined HAVE_STRUCT_SIGCONTEXT
|
|
# include <asm/sigcontext.h>
|
|
#endif
|
|
|
|
#ifndef NSIG
|
|
# warning NSIG is not defined, using 32
|
|
# define NSIG 32
|
|
#elif NSIG < 32
|
|
# error NSIG < 32
|
|
#endif
|
|
|
|
SYS_FUNC(sigreturn)
|
|
{
|
|
if (entering(tcp)) {
|
|
#include "arch_sigreturn.c"
|
|
}
|
|
return 0;
|
|
}
|