Date: Wed, 19 Jun 1996 13:12:59 PDT From: "Marty Leisner" <leisner@sdsp.mc.xerox.com> To: hackers@freebsd.org Subject: top 3.4beta2 on freebsd 2.2 (5/1/96 snapshot) Message-ID: <9606192013.AA01277@gnu.mc.xerox.com>
next in thread | raw e-mail | index | archive | help
I kinda got top 3.4beta2 working on freebsd 5.1.96 (2.2 snapshot). I took the stuff in top 3.3 for freebsd 2.1 and kinda knocked out the swap space stuff to get it to work...it doesn't report swap space... (seems swap space is now machine dependent instead of generic [don't have the 3.3 code here to look at]) The files for Freebsd 2.1 aren't here, the changes wrt 2.1 files (from top 3.3) are: : leisner@compaq.home;diff -u m_freebsd21.c m_freebsd22.c - --- m_freebsd21.c Tue Jun 18 20:01:37 1996 +++ m_freebsd22.c Tue Jun 18 20:44:56 1996 @@ -297,7 +297,11 @@ statics->procstate_names = procstatenames; statics->cpustate_names = cpustatenames; statics->memory_names = memorynames; +#if 0 + /* maybe order_name?? */ + statics->swap_names = swapnames; +#endif /* all done! */ return(0); @@ -418,7 +422,10 @@ /* set arrays and strings */ si->cpustates = cpu_states; si->memory = memory_stats; +#if 0 + /* no swap? */ si->swap = swap_stats; +#endif if(lastpid > 0) { In addition, in utils.c, we have problems with sys_errlist (its defined in /usr/include/stdio.h:244:extern __const char *__const sys_errlist[]; I ended up: : leisner@compaq.home;rcsdiff -u utils.c =================================================================== RCS file: utils.c,v retrieving revision 1.1 diff -u -r1.1 utils.c - --- utils.c 1996/06/18 18:59:20 1.1 +++ utils.c 1996/06/18 18:59:59 @@ -323,8 +323,12 @@ /* externs referenced by errmsg */ +#ifdef NEED_SYS_ERRLIST extern char *sys_errlist[]; +#endif +#ifdef NEED_SYS_NERR extern int sys_nerr; +#endif Also, how are we supposed to generate HAVE_GETOPT (I added it by hand to the makefile). Does the current 2.0 freebsd 3.4beta1 top files run against 2.1? I know they don't run against 2.2. marty leisner@sdsp.mc.xerox.com Member of the League for Programming Freedom (http://www.lpf.org) Any sufficiently advanced technology is indistinguishable from magic Arthur C. Clarke, The Lost Worlds of 2001
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?9606192013.AA01277>