5 PUBLIC
long ptrace(int req
, pid_t pid
, long addr
, long data
)
11 m
.PMTRACE_ADDR
= addr
;
13 if (_syscall(MM
, PTRACE
, &m
) < 0) return(-1);
15 /* There was no error, but -1 is a legal return value. Clear errno if
16 * necessary to distinguish this case. _syscall has set errno to nonzero
19 if (m
.m2_l2
== -1) errno
= 0;