From 0a761f37f2c7a9140bc5e0dad6a8aca9035a39d6 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Beno=C3=AEt=20Dejean?= Date: Wed, 26 May 2004 11:44:00 +0000 Subject: [PATCH] Removed Linux related code. * procdata.c: (glibtop_get_procdata_s): Removed Linux related code. --- sysdeps/freebsd/ChangeLog | 4 ++++ sysdeps/freebsd/procdata.c | 10 ---------- 2 files changed, 4 insertions(+), 10 deletions(-) diff --git a/sysdeps/freebsd/ChangeLog b/sysdeps/freebsd/ChangeLog index e4de94b9..af841bc8 100644 --- a/sysdeps/freebsd/ChangeLog +++ b/sysdeps/freebsd/ChangeLog @@ -1,3 +1,7 @@ +2004-05-26 BenoƮt Dejean + + * procdata.c: (glibtop_get_procdata_s): Removed Linux related code. + 2004-04-07 Bastien Nocera * prockernel.c: (glibtop_get_proc_kernel_p): patch for NetBSD/AMD64 diff --git a/sysdeps/freebsd/procdata.c b/sysdeps/freebsd/procdata.c index 65ec6822..65890cef 100644 --- a/sysdeps/freebsd/procdata.c +++ b/sysdeps/freebsd/procdata.c @@ -26,7 +26,6 @@ #include -#define LINUX_VERSION(x,y,z) (0x10000*(x) + 0x100*(y) + z) #define BIT_SHIFT(x) (1L << (x % 64)) @@ -143,15 +142,6 @@ glibtop_get_procdata_s (glibtop *server, glibtop_procdata *buf, pid_t pid) if (buf->tty == 0) /* the old notty val, update elsewhere bef. moving to 0 */ buf->tty = -1; - - if (server->os_version_code < LINUX_VERSION(1,3,39)) { - /* map old meanings to new */ - buf->priority = 2*15 - buf->priority; - buf->nice = 15 - buf->nice; - } - if (server->os_version_code < LINUX_VERSION(1,1,30) && buf->tty != -1) - /* when tty wasn't full devno */ - buf->tty = 4*0x100 + buf->tty; fclose (f);