summaryrefslogtreecommitdiff
path: root/sysdeps
diff options
context:
space:
mode:
authorBenoît Dejean <bdejean@src.gnome.org>2004-05-26 11:51:09 +0000
committerBenoît Dejean <bdejean@src.gnome.org>2004-05-26 11:51:09 +0000
commit0cdaaf1f62f36e7002501d5d9ebc23e98b43a1e4 (patch)
tree11ae7d062afefebd1092653e46f4f8689880bffc /sysdeps
parent0a761f37f2c7a9140bc5e0dad6a8aca9035a39d6 (diff)
downloadlibgtop-0cdaaf1f62f36e7002501d5d9ebc23e98b43a1e4.tar.gz
Moved LINUX_VERSION macro to glibtop_server.h.
* glibtop_server.h: * open.c: * procuid.c: Moved LINUX_VERSION macro to glibtop_server.h. * Changelog: Converted to UTF-8.
Diffstat (limited to 'sysdeps')
-rw-r--r--sysdeps/linux/ChangeLog18
-rw-r--r--sysdeps/linux/glibtop_server.h2
-rw-r--r--sysdeps/linux/open.c1
-rw-r--r--sysdeps/linux/procuid.c1
4 files changed, 15 insertions, 7 deletions
diff --git a/sysdeps/linux/ChangeLog b/sysdeps/linux/ChangeLog
index 743dd5ce..54f80b69 100644
--- a/sysdeps/linux/ChangeLog
+++ b/sysdeps/linux/ChangeLog
@@ -1,4 +1,12 @@
-2004-05-19 Benoit Dejean <TazForEver@dlfp.org>
+2004-05-26 Benoît Dejean <tazforever@dlfp.org>
+
+ * glibtop_server.h:
+ * open.c:
+ * procuid.c: Moved LINUX_VERSION macro to glibtop_server.h.
+
+ * Changelog: Converted to UTF-8.
+
+2004-05-19 Benoît Dejean <TazForEver@dlfp.org>
* glibtop_server.h (skip_line): Added test for end of string.
(get_scaled): Cleaned.
@@ -11,7 +19,7 @@
2004-03-09 Bastien Nocera <hadess@hadess.net>
* cpu.c: (glibtop_get_cpu_s): fixup CPU usage calculation on 2.6
- kernels (patch by Benoit Dejean <bnet@ifrance.com>) (Closes: #134252)
+ kernels (patch by Benoît Dejean <bnet@ifrance.com>) (Closes: #134252)
2004-03-04 Bastien Nocera <hadess@hadess.net>
@@ -21,7 +29,7 @@
2004-02-02 Sebastien Bacher <seb128@debian.org>
* sysdeps/linux/mem.c: (glibtop_get_mem_s): patch from
- Benoît Dejean <bnet@ifrance.com> to fix libtop_mem.used
+ Benoît Dejean <bnet@ifrance.com> to fix libtop_mem.used
and glibtop_mem.shared values (Closes: #129863).
2003-12-23 Bastien Nocera <hadess@hadess.net>
@@ -37,14 +45,14 @@
* procsignal.c: (glibtop_get_proc_signal_s):
* proctime.c: (glibtop_get_proc_time_s):
* procuid.c: (glibtop_get_proc_uid_s):
- * swap.c: (glibtop_get_swap_s): Apply patch from Benoît Dejean
+ * swap.c: (glibtop_get_swap_s): Apply patch from Benoît Dejean
<bnet@ifrance.com> to fix overflow issues using strtol
(Closes: #129881)
2003-12-23 Bastien Nocera <hadess@hadess.net>
* mem.c: (glibtop_get_mem_s): Fix calculation of used memory,
- patch by Benoît Dejea, <bnet@ifrance.com> (Closes: #129863)
+ patch by Benoît Dejea, <bnet@ifrance.com> (Closes: #129863)
2003-12-07 Jon K Hellan <hellan@acm.org>
diff --git a/sysdeps/linux/glibtop_server.h b/sysdeps/linux/glibtop_server.h
index d96bbb33..e40c6bc6 100644
--- a/sysdeps/linux/glibtop_server.h
+++ b/sysdeps/linux/glibtop_server.h
@@ -31,6 +31,8 @@ G_BEGIN_DECLS
#ifdef _IN_LIBGTOP
+#define LINUX_VERSION(x,y,z) (0x10000*(x) + 0x100*(y) + z)
+
static inline char *
skip_token (const char *p)
{
diff --git a/sysdeps/linux/open.c b/sysdeps/linux/open.c
index 6943764c..4390420f 100644
--- a/sysdeps/linux/open.c
+++ b/sysdeps/linux/open.c
@@ -31,7 +31,6 @@
*/
#include <sys/utsname.h>
-#define LINUX_VERSION(x,y,z) (0x10000*(x) + 0x100*(y) + z)
static int linux_version_code = 0;
diff --git a/sysdeps/linux/procuid.c b/sysdeps/linux/procuid.c
index 4ba09139..9e39c506 100644
--- a/sysdeps/linux/procuid.c
+++ b/sysdeps/linux/procuid.c
@@ -35,7 +35,6 @@ static const unsigned long _glibtop_sysdeps_proc_uid_stat =
(1L << GLIBTOP_PROC_UID_TTY) + (1L << GLIBTOP_PROC_UID_TPGID) +
(1L << GLIBTOP_PROC_UID_PRIORITY) + (1L << GLIBTOP_PROC_UID_NICE);
-#define LINUX_VERSION(x,y,z) (0x10000*(x) + 0x100*(y) + z)
/* Init function. */