Really applied that patch. Don't know what happened to it before.

1999-02-21  Martin Baulig  <martin@home-of-linux.org>

	* procmap.c, procmem.c: Applied patch from Jeremy Lea.
This commit is contained in:
Martin Baulig
1999-02-23 12:58:16 +00:00
committed by Martin Baulig
parent 83d8b9aedc
commit 5b43466d5f
3 changed files with 15 additions and 5 deletions
+2 -3
View File
@@ -1,11 +1,10 @@
1999-02-21 Martin Baulig <martin@home-of-linux.org>
* procmap.c, procmem.c: Applied patch from Jeremy Lea.
* prockernel.c, proctime.c: Applied patch from the FreeBSD 2.2.8
ports collection.
* procmap.c, procmem.c: Applied patch from Jeremy Lea; this
patch is also included in the FreeBSD-current ports collection.
* procsignal.c: Applied patch from the NetBSD-current ports
collection.
+6 -1
View File
@@ -140,8 +140,13 @@ glibtop_get_proc_map_p (glibtop *server, glibtop_proc_map *buf,
}
#ifdef __FreeBSD__
if (entry.eflags & MAP_ENTRY_IS_SUB_MAP)
#if __FreeBSD__ >= 4
if (entry.eflags & (MAP_ENTRY_IS_SUB_MAP))
continue;
#else
if (entry.eflags & (MAP_ENTRY_IS_A_MAP|MAP_ENTRY_IS_SUB_MAP))
continue;
#endif
#else
if (entry.is_a_map || entry.is_sub_map)
continue;
+7 -1
View File
@@ -166,8 +166,14 @@ glibtop_get_proc_mem_p (glibtop *server, glibtop_proc_mem *buf,
}
#ifdef __FreeBSD__
if (entry.eflags & MAP_ENTRY_IS_SUB_MAP)
#ifdef __FreeBSD__
#if __FreeBSD__ >= 4
if (entry.eflags & (MAP_ENTRY_IS_SUB_MAP))
continue;
#else
if (entry.eflags & (MAP_ENTRY_IS_A_MAP|MAP_ENTRY_IS_SUB_MAP))
continue;
#endif
#else
if (entry.is_a_map || entry.is_sub_map)
continue;