diff options
Diffstat (limited to 'sys/dev')
-rw-r--r-- | sys/dev/systrace.c | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/sys/dev/systrace.c b/sys/dev/systrace.c index 9fa8f3292cd..8670f716d0f 100644 --- a/sys/dev/systrace.c +++ b/sys/dev/systrace.c @@ -1,4 +1,4 @@ -/* $OpenBSD: systrace.c,v 1.39 2005/11/19 02:18:00 pedro Exp $ */ +/* $OpenBSD: systrace.c,v 1.40 2005/12/11 21:30:30 miod Exp $ */ /* * Copyright 2002 Niels Provos <provos@citi.umich.edu> * All rights reserved. @@ -47,11 +47,10 @@ #include <sys/mount.h> #include <sys/namei.h> #include <sys/poll.h> +#include <sys/ptrace.h> #include <compat/common/compat_util.h> -#include <miscfs/procfs/procfs.h> - #include <dev/systrace.h> void systraceattach(int); @@ -1211,7 +1210,7 @@ systrace_io(struct str_process *strp, struct systrace_io *io) uio.uio_segflg = UIO_USERSPACE; uio.uio_procp = p; - error = procfs_domem(p, t, NULL, &uio); + error = process_domem(p, t, &uio, PT_WRITE_I); io->strio_len -= uio.uio_resid; out: |