summaryrefslogtreecommitdiffstats
path: root/sys/fs/procfs/procfs_regs.c
diff options
context:
space:
mode:
authordes <des@FreeBSD.org>2001-12-04 01:35:06 +0000
committerdes <des@FreeBSD.org>2001-12-04 01:35:06 +0000
commite05a1e171262ce51abe71929ef3e9a1ae6f484b4 (patch)
tree07f1c8ada3010a162b86de0898b3c815f2d89562 /sys/fs/procfs/procfs_regs.c
parentff81a8c93d59929b948835d3b2ea7b294d3d55ea (diff)
downloadFreeBSD-src-e05a1e171262ce51abe71929ef3e9a1ae6f484b4.zip
FreeBSD-src-e05a1e171262ce51abe71929ef3e9a1ae6f484b4.tar.gz
Pseudofsize procfs(5).
Diffstat (limited to 'sys/fs/procfs/procfs_regs.c')
-rw-r--r--sys/fs/procfs/procfs_regs.c21
1 files changed, 4 insertions, 17 deletions
diff --git a/sys/fs/procfs/procfs_regs.c b/sys/fs/procfs/procfs_regs.c
index 8488f13..623eb45 100644
--- a/sys/fs/procfs/procfs_regs.c
+++ b/sys/fs/procfs/procfs_regs.c
@@ -46,28 +46,22 @@
#include <sys/mutex.h>
#include <sys/proc.h>
#include <sys/ptrace.h>
-#include <sys/vnode.h>
+#include <sys/uio.h>
#include <machine/reg.h>
-#include <vm/vm.h>
-#include <vm/vm_extern.h>
-
+#include <fs/pseudofs/pseudofs.h>
#include <fs/procfs/procfs.h>
int
-procfs_doregs(curp, p, pfs, uio)
- struct proc *curp;
- struct proc *p;
- struct pfsnode *pfs;
- struct uio *uio;
+procfs_doprocregs(PFS_FILL_ARGS)
{
int error;
struct reg r;
char *kv;
int kl;
- if (p_candebug(curp, p))
+ if (p_candebug(td->td_proc, p))
return EPERM;
kl = sizeof(r);
kv = (char *) &r;
@@ -96,10 +90,3 @@ procfs_doregs(curp, p, pfs, uio)
uio->uio_offset = 0;
return (error);
}
-
-int
-procfs_validregs(struct thread *td)
-{
-
- return ((td->td_proc->p_flag & P_SYSTEM) == 0);
-}
OpenPOWER on IntegriCloud