[prev in list] [next in list] [prev in thread] [next in thread] 

List:       kde-commits
Subject:    kdebase/ksysguard [POSSIBLY UNSAFE]
From:       Tobias Koenig <tokoe () kde ! org>
Date:       2002-12-30 20:35:39
[Download RAW message or body]

CVS commit by tokoe: 


add the OpenBSD support to ksysguard


  A            ksysguardd/OpenBSD/.cvsignore   1.1
  A            ksysguardd/OpenBSD/Makefile.am   1.1
  A            ksysguardd/OpenBSD/cpu.c   1.1 [POSSIBLY UNSAFE: printf]
  A            ksysguardd/OpenBSD/cpu.h   1.1
  A            ksysguardd/OpenBSD/memory.c   1.1
  A            ksysguardd/OpenBSD/memory.h   1.1
  M +2 -0      configure.in.in   1.20
  M +4 -1      ksysguardd/Makefile.am   1.13
  M +12 -2     ksysguardd/modules.h   1.9


--- kdebase/ksysguard/configure.in.in  #1.19:1.20
@@ -8,4 +8,5 @@
   *-*-osf*) ksysguardd_compile=yes; UNAME='Tru64' ;;
   *-*-irix*) ksysguardd_compile=yes; UNAME='Irix' ;;
+  *-*-openbsd*) ksysguardd_compile=yes; UNAME='OpenBSD' ;;
   *) ksysguardd_compile=no; UNAME='' ;;
 esac
@@ -20,4 +21,5 @@
 AM_CONDITIONAL(include_ksysguardd_tru64, test "$UNAME" = Tru64)
 AM_CONDITIONAL(include_ksysguardd_irix, test "$UNAME" = Irix)
+AM_CONDITIONAL(include_ksysguardd_openbsd, test "$UNAME" = OpenBSD)
 AC_SUBST(UNAME)
 

--- kdebase/ksysguard/ksysguardd/Makefile.am  #1.12:1.13
@@ -19,7 +19,10 @@
 irix_SUBDIR = Irix
 endif
+if include_ksysguardd_openbsd
+openbsd_SUBDIR = OpenBSD
+endif
 
 SUBDIRS = $(linux_SUBDIR) $(freebsd_SUBDIR) $(netbsd_SUBDIR)\
-        $(solaris_SUBDIR) $(tru64_SUBDIR) $(irix_SUBDIR)
+        $(solaris_SUBDIR) $(tru64_SUBDIR) $(irix_SUBDIR) $(openbsd_SUBDIR)
 
 KSYSGUARDDRCFILE=$(sysconfdir)/ksysguarddrc

--- kdebase/ksysguard/ksysguardd/modules.h  #1.8:1.9
@@ -77,4 +77,9 @@
 #endif /* OSTYPE_Tru64 */
 
+#ifdef OSTYPE_OpenBSD
+#include "cpu.h"
+#include "memory.h"
+#endif /* OSTYPE_OpenBSD */
+
 typedef void (*VSFunc)(struct SensorModul*);
 #define NULLVSFUNC ((VSFunc) 0)
@@ -91,5 +96,5 @@ struct SensorModul SensorModulList[] = {
         { "Memory", initMemory, exitMemory, updateMemory, NULLVVFUNC, 0, NULLTIME },
         { "Stat", initStat, exitStat, updateStat, NULLVVFUNC, 0, NULLTIME },
-        { "NetDev", initNetDev, exitNetDev, updateNetDev, NULLVVFUNC, 0, NULLTIME },
+        { "NetDev", initNetDev, exitNetDev, updateNetDev, checkNetDev, 0, NULLTIME },
         { "NetStat", initNetStat, exitNetStat, NULLIVFUNC, NULLVVFUNC, 0, NULLTIME },
         { "Apm", initApm, exitApm, updateApm, NULLVVFUNC, 0, NULLTIME },
@@ -135,4 +140,9 @@ struct SensorModul SensorModulList[] = {
         { "NetDev", initNetDev, exitNetDev, updateNetDev, NULLVVFUNC, 0, NULLTIME },
 #endif /* OSTYPE_Tru64 */
+
+#ifdef OSTYPE_OpenBSD
+        { "CpuInfo", initCpuInfo, exitCpuInfo, updateCpuInfo, NULLVVFUNC, 0, NULLTIME },
+        { "Memory", initMemory, exitMemory, updateMemory, NULLVVFUNC, 0, NULLTIME },
+#endif /* OSTYPE_OpenBSD */
 
         { NULL, NULLVSFUNC, NULLVVFUNC, NULLIVFUNC, NULLVVFUNC, 0, NULLTIME }


[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic