#include "defs.h"
+#include DEF_MPERS_TYPE(siginfo_t)
+
#include <signal.h>
#include <linux/audit.h>
+#include MPERS_DEFS
+
+#ifndef IN_MPERS
#include "printsiginfo.h"
+#endif
#include "xlat/audit_arch.h"
#include "xlat/sigbus_codes.h"
static void
printsigsource(const siginfo_t *sip)
{
- tprintf(", si_pid=%lu, si_uid=%lu",
- (unsigned long) sip->si_pid,
- (unsigned long) sip->si_uid);
+ tprintf(", si_pid=%u, si_uid=%u",
+ (unsigned int) sip->si_pid,
+ (unsigned int) sip->si_uid);
}
static void
if (!verbose)
tprints(", ...");
else
- tprintf(", si_value={int=%u, ptr=%#lx}",
+ tprintf(", si_value={int=%d, ptr=%#lx}",
sip->si_int,
(unsigned long) sip->si_ptr);
}
}
}
+#ifdef IN_MPERS
+static
+#endif
void
printsiginfo(const siginfo_t *sip, bool verbose)
{
tprints("}");
}
-void
-printsiginfo_at(struct tcb *tcp, long addr)
+MPERS_PRINTER_DECL(void, printsiginfo_at)(struct tcb *tcp, long addr)
{
siginfo_t si;