LCDproc development and user support list

Text archives Help


[Lcdproc] lcdproc-current FreeBSD 5 patch


Chronological Thread 
  • From: bcg AT flipt.com (Brenden Carter Grace)
  • Subject: [Lcdproc] lcdproc-current FreeBSD 5 patch
  • Date: Wed Jul 28 20:59:02 2004

I haven't been able to test this much but it should get FreeBSD 5
working in the snapshot. This patch obviously doesn't include the
supporting build system changes needed. I am not on the list so I will
need to be CC'd for any correspondence.

--
Brenden C Grace
--- lcdproc-CVS-current-bcg/clients/lcdproc/machine_FreeBSD.c Wed Jul 28
16:39:41 2004
+++ lcdproc-CVS-current-20040727/clients/lcdproc/machine_FreeBSD.c Wed
Dec 24 19:47:55 2003
@@ -31,7 +31,6 @@
*/

#ifdef __FreeBSD__
-#define __FreeBSD_5__

#include <sys/types.h>
#include <sys/param.h>
@@ -311,21 +310,10 @@
kvm_close(kvmd);
return(FALSE);
}
-#ifdef __FreeBSD_4__
strncpy(p->name, kprocs->kp_proc.p_comm, 15);
-#endif
-#ifdef __FreeBSD_5__
- strncpy(p->name, kprocs->ki_paddr->p_comm, 15);
-#endif
p->name[15] = '\0';
-#ifdef __FreeBSD_4__
p->totl = kprocs->kp_eproc.e_vm.vm_map.size / 1024;
p->number = kprocs->kp_proc.p_pid;
-#enfif
-#ifdef __FreeBSD_5__
- p->totl = kprocs->ki_vmspace->vm_map.size / 1024;
- p->number = kprocs->ki_paddr->p_pid;
-#endif
LL_Push(procs, (void *)p);

kprocs++;


  • [Lcdproc] lcdproc-current FreeBSD 5 patch, Brenden Carter Grace, 07/28/2004

Archive powered by MHonArc 2.6.18.

Top of page