merge in netbsd changes.
[unix-history] / usr / src / sys / miscfs / procfs / procfs_regs.c
index 05a9657..34847bc 100644 (file)
@@ -8,7 +8,7 @@
  *
  * %sccs.include.redist.c%
  *
  *
  * %sccs.include.redist.c%
  *
- *     @(#)procfs_regs.c       8.3 (Berkeley) %G%
+ *     @(#)procfs_regs.c       8.4 (Berkeley) %G%
  *
  * From:
  *     $Id: procfs_regs.c,v 3.2 1993/12/15 09:40:17 jsp Exp $
  *
  * From:
  *     $Id: procfs_regs.c,v 3.2 1993/12/15 09:40:17 jsp Exp $
@@ -59,3 +59,11 @@ procfs_doregs(curp, p, pfs, uio)
        uio->uio_offset = 0;
        return (error);
 }
        uio->uio_offset = 0;
        return (error);
 }
+
+int
+procfs_validregs(p)
+       struct proc *p;
+{
+
+       return ((p->p_flag & P_SYSTEM) == 0);
+}