diff options
author | dyson <dyson@FreeBSD.org> | 1996-06-18 05:16:00 +0000 |
---|---|---|
committer | dyson <dyson@FreeBSD.org> | 1996-06-18 05:16:00 +0000 |
commit | 01d0667f094f295d42229575567f6b5a2ce0b746 (patch) | |
tree | 56e5b93363f08a48419fadcd9de833c9ef6a5292 /sys/miscfs/procfs/procfs_map.c | |
parent | 26ad2004f9ad2d994e528b2448f065726dfe7ca2 (diff) | |
download | FreeBSD-src-01d0667f094f295d42229575567f6b5a2ce0b746.zip FreeBSD-src-01d0667f094f295d42229575567f6b5a2ce0b746.tar.gz |
Clean-up the new VM map procfs code, and also add support for executable
format file "etype". It contains a description of the binary type for
a process.
Diffstat (limited to 'sys/miscfs/procfs/procfs_map.c')
-rw-r--r-- | sys/miscfs/procfs/procfs_map.c | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/sys/miscfs/procfs/procfs_map.c b/sys/miscfs/procfs/procfs_map.c index 2117048..0a586bf 100644 --- a/sys/miscfs/procfs/procfs_map.c +++ b/sys/miscfs/procfs/procfs_map.c @@ -36,7 +36,7 @@ * * @(#)procfs_status.c 8.3 (Berkeley) 2/17/94 * - * $Id: procfs_status.c,v 1.5 1996/02/02 05:19:20 wosch Exp $ + * $Id: procfs_map.c,v 1.1 1996/06/17 22:53:27 dyson Exp $ */ #include <sys/param.h> @@ -167,3 +167,10 @@ case OBJT_DEVICE: kmem_free(kernel_map, (vm_offset_t)kbuffer, MAXKBUFFER); return error; } + +int +procfs_validmap(p) + struct proc *p; +{ + return ((p->p_flag & P_SYSTEM) == 0); +} |