- filesystem read/write accounting works fine, so there's no reason not to export it.
fixes the "Disk" graph from gnome-applets multiload applet
This commit is contained in:
parent
90542cc4a2
commit
6a5430296f
@ -1,4 +1,4 @@
|
||||
# $OpenBSD: Makefile,v 1.72 2011/05/31 14:19:18 jasper Exp $
|
||||
# $OpenBSD: Makefile,v 1.73 2011/05/31 18:06:28 jasper Exp $
|
||||
|
||||
COMMENT= portable library for obtaining system information
|
||||
|
||||
@ -6,7 +6,7 @@ GNOME_VERSION= 2.28.3
|
||||
GNOME_PROJECT= libgtop
|
||||
PKGNAME= libgtop2-${VERSION}
|
||||
|
||||
REVISION= 15
|
||||
REVISION= 16
|
||||
|
||||
SHARED_LIBS= gtop-2.0 9.0 # .9.0
|
||||
|
||||
|
@ -1,7 +1,23 @@
|
||||
$OpenBSD: patch-sysdeps_common_fsusage_c,v 1.1 2008/02/09 16:52:25 ajacoutot Exp $
|
||||
--- sysdeps/common/fsusage.c.orig Fri Dec 28 17:23:01 2007
|
||||
+++ sysdeps/common/fsusage.c Fri Dec 28 17:23:28 2007
|
||||
@@ -270,7 +270,7 @@ glibtop_get_fsusage_s (glibtop *server, glibtop_fsusag
|
||||
$OpenBSD: patch-sysdeps_common_fsusage_c,v 1.2 2011/05/31 18:06:28 jasper Exp $
|
||||
--- sysdeps/common/fsusage.c.orig Mon Mar 14 23:08:03 2011
|
||||
+++ sysdeps/common/fsusage.c Tue May 31 19:56:53 2011
|
||||
@@ -149,6 +149,15 @@ _glibtop_freebsd_get_fsusage_read_write(glibtop *serve
|
||||
#define _glibtop_get_fsusage_read_write(S, B, P) \
|
||||
_glibtop_freebsd_get_fsusage_read_write(S, B, P)
|
||||
|
||||
+#elif defined(__OpenBSD__)
|
||||
+void
|
||||
+_glibtop_bsd_get_fsusage_read_write(glibtop *server,
|
||||
+ glibtop_fsusage *buf,
|
||||
+ const char *path);
|
||||
+
|
||||
+#define _glibtop_get_fsusage_read_write(S, B, P) \
|
||||
+ _glibtop_bsd_get_fsusage_read_write(S, B, P)
|
||||
+
|
||||
#else /* default fallback */
|
||||
#warning glibtop_get_fsusage .read .write are not implemented.
|
||||
static inline void
|
||||
@@ -270,7 +279,7 @@ glibtop_get_fsusage_s (glibtop *server, glibtop_fsusag
|
||||
return;
|
||||
|
||||
#if (defined(sun) || defined(__sun)) && (defined(__SVR4) || defined(__svr4__)) \
|
||||
|
Loading…
Reference in New Issue
Block a user