diff options
Diffstat (limited to 'devel/libgtop/files/patch-aj')
-rw-r--r-- | devel/libgtop/files/patch-aj | 22 |
1 files changed, 15 insertions, 7 deletions
diff --git a/devel/libgtop/files/patch-aj b/devel/libgtop/files/patch-aj index da75746963c1..9adf3b28d865 100644 --- a/devel/libgtop/files/patch-aj +++ b/devel/libgtop/files/patch-aj @@ -71,9 +71,9 @@ - switch (pinfo [0].kp_proc.p_stat) { + switch (pinfo [0].XXX_P_STAT) { case SIDL: ---- sysdeps/freebsd/procuid.c.orig Thu Sep 16 16:08:07 1999 -+++ sysdeps/freebsd/procuid.c Fri Dec 22 18:37:41 2000 -@@ -86,13 +86,38 @@ +--- sysdeps/freebsd/procuid.c.orig Fri Sep 17 06:08:07 1999 ++++ sysdeps/freebsd/procuid.c Thu Feb 15 01:16:50 2001 +@@ -86,13 +86,42 @@ - buf->uid = pinfo [0].kp_eproc.e_pcred.p_ruid; - buf->euid = pinfo [0].kp_eproc.e_pcred.p_svuid; @@ -95,7 +95,11 @@ +#define XXX_E_PGID ki_pgid +#define XXX_E_TPGID ki_tpgid +#define XXX_P_NICE ki_nice ++#if __FreeBSD_version >= 500013 ++#define XXX_P_PRIORITY ki_pri.pri_user ++#else +#define XXX_P_PRIORITY ki_priority ++#endif +#else + +#define XXX_P_RUID kp_eproc.e_pcred.p_ruid @@ -122,8 +126,8 @@ + buf->nice = pinfo [0].XXX_P_NICE; + buf->priority = pinfo [0].XXX_P_PRIORITY; ---- sysdeps/freebsd/proctime.c.orig Thu Sep 16 16:08:07 1999 -+++ sysdeps/freebsd/proctime.c Fri Dec 22 22:45:57 2000 +--- sysdeps/freebsd/proctime.c.orig Fri Sep 17 06:08:07 1999 ++++ sysdeps/freebsd/proctime.c Thu Feb 15 01:15:11 2001 @@ -68,5 +68,2 @@ u_quad_t u, st, ut, it, tot; -#if (__FreeBSD_version < 300003) @@ -150,10 +154,14 @@ - buf->rtime = tv2sec (pinfo [0].kp_proc.p_rtime); + buf->rtime = pinfo [0].kp_proc.p_runtime; #endif -@@ -194,2 +186,13 @@ +@@ -194,2 +186,17 @@ #else +#if __FreeBSD_version >= 500013 ++#if __FreeBSD_version >= 500016 ++ if ((pinfo [0].ki_flag & PS_INMEM)) { ++#else + if ((pinfo [0].ki_flag & P_INMEM)) { ++#endif + buf->utime = pinfo [0].ki_runtime; + buf->stime = 0; /* XXX */ + buf->cutime = tv2sec (pinfo [0].ki_childtime); @@ -164,7 +172,7 @@ + +#else glibtop_suid_enter (server); -@@ -224,2 +227,3 @@ +@@ -224,2 +231,3 @@ } +#endif |