head 1.5; access; symbols pkgsrc-2013Q2:1.5.0.54 pkgsrc-2013Q2-base:1.5 pkgsrc-2012Q4:1.5.0.52 pkgsrc-2012Q4-base:1.5 pkgsrc-2011Q4:1.5.0.50 pkgsrc-2011Q4-base:1.5 pkgsrc-2011Q2:1.5.0.48 pkgsrc-2011Q2-base:1.5 TNF:1.1.1 pkgsrc-2009Q4:1.5.0.46 pkgsrc-2009Q4-base:1.5 pkgsrc-2008Q4:1.5.0.44 pkgsrc-2008Q4-base:1.5 pkgsrc-2008Q3:1.5.0.42 pkgsrc-2008Q3-base:1.5 cube-native-xorg:1.5.0.40 cube-native-xorg-base:1.5 pkgsrc-2008Q2:1.5.0.38 pkgsrc-2008Q2-base:1.5 pkgsrc-2008Q1:1.5.0.36 pkgsrc-2008Q1-base:1.5 pkgsrc-2007Q4:1.5.0.34 pkgsrc-2007Q4-base:1.5 pkgsrc-2007Q3:1.5.0.32 pkgsrc-2007Q3-base:1.5 pkgsrc-2007Q2:1.5.0.30 pkgsrc-2007Q2-base:1.5 pkgsrc-2007Q1:1.5.0.28 pkgsrc-2007Q1-base:1.5 pkgsrc-2006Q4:1.5.0.26 pkgsrc-2006Q4-base:1.5 pkgsrc-2006Q3:1.5.0.24 pkgsrc-2006Q3-base:1.5 pkgsrc-2006Q2:1.5.0.22 pkgsrc-2006Q2-base:1.5 pkgsrc-2006Q1:1.5.0.20 pkgsrc-2006Q1-base:1.5 pkgsrc-2005Q4:1.5.0.18 pkgsrc-2005Q4-base:1.5 pkgsrc-2005Q3:1.5.0.16 pkgsrc-2005Q3-base:1.5 pkgsrc-2005Q2:1.5.0.14 pkgsrc-2005Q2-base:1.5 pkgsrc-2005Q1:1.5.0.12 pkgsrc-2005Q1-base:1.5 pkgsrc-2004Q4:1.5.0.10 pkgsrc-2004Q4-base:1.5 pkgsrc-2004Q3:1.5.0.8 pkgsrc-2004Q3-base:1.5 pkgsrc-2004Q2:1.5.0.6 pkgsrc-2004Q2-base:1.5 pkgsrc-2004Q1:1.5.0.4 pkgsrc-2004Q1-base:1.5 pkgsrc-2003Q4:1.5.0.2 pkgsrc-2003Q4-base:1.5 buildlink2-base:1.5 netbsd-1-4-PATCH002:1.4; locks; strict; comment @# @; 1.5 date 2000.05.02.00.27.33; author fredb; state dead; branches; next 1.4; 1.4 date 99.11.02.23.16.24; author tron; state Exp; branches; next 1.3; 1.3 date 99.01.02.19.50.18; author tron; state dead; branches; next 1.2; 1.2 date 98.11.01.23.22.19; author tron; state Exp; branches; next 1.1; 1.1 date 98.10.07.13.11.35; author agc; state Exp; branches 1.1.1.1; next ; 1.1.1.1 date 98.10.07.13.11.35; author agc; state Exp; branches; next ; desc @@ 1.5 log @Update to libgtop-1.0.7. Incorporate fix submitted by R. C. Dowdeswell in PR pkg/8691, to make it build on m68k. Also, kvm_uread() -> kvm_read(). This may fix the other problems alluded to in the PR. LibGTop-1.0.7 is a bug fix release, no details available. LibGTop-1.06 incorporated some *BSD fixes (including some pkg patches), and updated the reference manual somewhat. @ text @$NetBSD: patch-ai,v 1.4 1999/11/02 23:16:24 tron Exp $ --- sysdeps/freebsd/swap.c.orig Thu May 27 20:56:53 1999 +++ sysdeps/freebsd/swap.c Wed Nov 3 00:06:17 1999 @@@@ -95,7 +95,7 @@@@ { #if defined(__FreeBSD__) || defined(__bsdi__) #if __FreeBSD__ < 4 || defined(__bsdi__) - if (kvm_nlist (server->machine.kd, nlst) != 0) { + if (kvm_nlist (server->machine.kd, nlst) < 0) { glibtop_warn_io_r (server, "kvm_nlist (swap)"); return; } @ 1.4 log @Check return values of kvm_nlist() properly so that "libgtop_server" will not abort without reason. @ text @d1 1 a1 1 $NetBSD$ @ 1.3 log @Update "libgtop" package to version 0.99.0. @ text @d1 1 a1 1 $NetBSD: patch-ai,v 1.2 1998/11/01 23:22:19 tron Exp $ d3 10 a12 55 --- sysdeps/bsd/procmem.c 1998/10/07 11:22:59 1.1 +++ sysdeps/bsd/procmem.c 1998/10/07 11:39:30 @@@@ -31,6 +31,9 @@@@ #include #include #include +#ifdef __NetBSD__ +#include +#endif #include #include @@@@ -96,6 +99,9 @@@@ struct vnode vnode; struct inode inode; int count; +#ifdef __NetBSD__ + vn_pager_t vnpage; +#endif glibtop_init_p (server, (1 << GLIBTOP_SYSDEPS_PROC_MEM), 0); @@@@ -150,8 +156,16 @@@@ &entry, sizeof (entry)) != sizeof (entry)) glibtop_error_io_r (server, "kvm_read (entry)"); +#ifdef __FreeBSD__ if (entry.eflags & (MAP_ENTRY_IS_A_MAP|MAP_ENTRY_IS_SUB_MAP)) continue; +#elseif defined(UVM) + if (entry.eflags & (MAP_ENTRY_IS_A_MAP|MAP_ENTRY_IS_SUB_MAP)) + continue; +#else + if (entry.is_a_map || entry.is_sub_map) + continue; +#endif if (!entry.object.vm_object) continue; @@@@ -165,10 +179,17 @@@@ /* If the object is of type vnode, add its size */ +#ifdef __FreeBSD__ if (object.type != OBJT_VNODE) continue; - buf->share += object.un_pager.vnp.vnp_size; +#else + if (object.pager->pg_type != PG_VNODE) + continue; + vnpage = (vn_pager_t) object.pager->pg_handle; + buf->share += vnpage->vnp_size; +#endif + a13 2 glibtop_suid_leave (server); @ 1.2 log @Move "libgtop" package to "devel" category. @ text @d1 1 a1 1 $NetBSD: patch-ai,v 1.1.1.1 1998/10/07 13:11:35 agc Exp $ @ 1.1 log @Initial revision @ text @d1 1 a1 1 $NetBSD$ @ 1.1.1.1 log @Initial import of libgtop-0.26 into the Packages Collection. This is part of the GNOME project, and is used to retrieve system information, such as CPU usage etc. This is not yet complete, but is functional to the point where the whole thing compiles and installs. Someone else can pick this up and run with it now. @ text @@