#include "pm.h"
#include <sys/stat.h>
+#include <sys/ptrace.h>
#include <minix/callnr.h>
#include <minix/com.h>
#include <signal.h>
/* Write out the whole kernel process table entry to get the regs. */
trace_off = 0;
- while (sys_trace(3, slot, trace_off, &trace_data) == OK) {
+ while (sys_trace(T_GETUSER, slot, trace_off, &trace_data) == OK) {
if (write(fd, (char *) &trace_data, (unsigned) sizeof (long))
!= (unsigned) sizeof (long)) {
close(fd);