Return correct memory size when over 2G.

PR:		ports/35352
Submitted by:	Steve Shorter <steve@nomad.tor.lets.net>
This commit is contained in:
Jun Kuriyama 2002-03-07 03:02:37 +00:00
parent 94af2756c1
commit 54efd30dae
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=55662
12 changed files with 72 additions and 6 deletions

View File

@ -7,7 +7,7 @@
PORTNAME= ucd-snmp
PORTVERSION= 4.2.3
PORTREVISION= 1
PORTREVISION= 2
CATEGORIES= net ipv6
MASTER_SITES= ${MASTER_SITE_SOURCEFORGE} \
ftp://ucd-snmp.ucdavis.edu/ \

View File

@ -0,0 +1,11 @@
--- agent/mibgroup/ucd-snmp/memory_freebsd2.c.orig Mon Sep 17 06:16:16 2001
+++ agent/mibgroup/ucd-snmp/memory_freebsd2.c Mon Mar 4 10:00:56 2002
@@ -232,7 +232,7 @@
size_t total_size = sizeof (total);
int total_mib[] = { CTL_VM, VM_METER };
- long phys_mem;
+ u_long phys_mem;
size_t phys_mem_size = sizeof(phys_mem);
int phys_mem_mib[] = { CTL_HW, HW_USERMEM };

View File

@ -7,7 +7,7 @@
PORTNAME= ucd-snmp
PORTVERSION= 4.2.3
PORTREVISION= 1
PORTREVISION= 2
CATEGORIES= net ipv6
MASTER_SITES= ${MASTER_SITE_SOURCEFORGE} \
ftp://ucd-snmp.ucdavis.edu/ \

View File

@ -0,0 +1,11 @@
--- agent/mibgroup/ucd-snmp/memory_freebsd2.c.orig Mon Sep 17 06:16:16 2001
+++ agent/mibgroup/ucd-snmp/memory_freebsd2.c Mon Mar 4 10:00:56 2002
@@ -232,7 +232,7 @@
size_t total_size = sizeof (total);
int total_mib[] = { CTL_VM, VM_METER };
- long phys_mem;
+ u_long phys_mem;
size_t phys_mem_size = sizeof(phys_mem);
int phys_mem_mib[] = { CTL_HW, HW_USERMEM };

View File

@ -7,7 +7,7 @@
PORTNAME= ucd-snmp
PORTVERSION= 4.2.3
PORTREVISION= 1
PORTREVISION= 2
CATEGORIES= net ipv6
MASTER_SITES= ${MASTER_SITE_SOURCEFORGE} \
ftp://ucd-snmp.ucdavis.edu/ \

View File

@ -0,0 +1,11 @@
--- agent/mibgroup/ucd-snmp/memory_freebsd2.c.orig Mon Sep 17 06:16:16 2001
+++ agent/mibgroup/ucd-snmp/memory_freebsd2.c Mon Mar 4 10:00:56 2002
@@ -232,7 +232,7 @@
size_t total_size = sizeof (total);
int total_mib[] = { CTL_VM, VM_METER };
- long phys_mem;
+ u_long phys_mem;
size_t phys_mem_size = sizeof(phys_mem);
int phys_mem_mib[] = { CTL_HW, HW_USERMEM };

View File

@ -7,7 +7,7 @@
PORTNAME= ucd-snmp
PORTVERSION= 4.2.3
PORTREVISION= 1
PORTREVISION= 2
CATEGORIES= net ipv6
MASTER_SITES= ${MASTER_SITE_SOURCEFORGE} \
ftp://ucd-snmp.ucdavis.edu/ \

View File

@ -0,0 +1,11 @@
--- agent/mibgroup/ucd-snmp/memory_freebsd2.c.orig Mon Sep 17 06:16:16 2001
+++ agent/mibgroup/ucd-snmp/memory_freebsd2.c Mon Mar 4 10:00:56 2002
@@ -232,7 +232,7 @@
size_t total_size = sizeof (total);
int total_mib[] = { CTL_VM, VM_METER };
- long phys_mem;
+ u_long phys_mem;
size_t phys_mem_size = sizeof(phys_mem);
int phys_mem_mib[] = { CTL_HW, HW_USERMEM };

View File

@ -7,7 +7,7 @@
PORTNAME= ucd-snmp
PORTVERSION= 4.2.3
PORTREVISION= 1
PORTREVISION= 2
CATEGORIES= net ipv6
MASTER_SITES= ${MASTER_SITE_SOURCEFORGE} \
ftp://ucd-snmp.ucdavis.edu/ \

View File

@ -0,0 +1,11 @@
--- agent/mibgroup/ucd-snmp/memory_freebsd2.c.orig Mon Sep 17 06:16:16 2001
+++ agent/mibgroup/ucd-snmp/memory_freebsd2.c Mon Mar 4 10:00:56 2002
@@ -232,7 +232,7 @@
size_t total_size = sizeof (total);
int total_mib[] = { CTL_VM, VM_METER };
- long phys_mem;
+ u_long phys_mem;
size_t phys_mem_size = sizeof(phys_mem);
int phys_mem_mib[] = { CTL_HW, HW_USERMEM };

View File

@ -7,7 +7,7 @@
PORTNAME= ucd-snmp
PORTVERSION= 4.2.3
PORTREVISION= 1
PORTREVISION= 2
CATEGORIES= net ipv6
MASTER_SITES= ${MASTER_SITE_SOURCEFORGE} \
ftp://ucd-snmp.ucdavis.edu/ \

View File

@ -0,0 +1,11 @@
--- agent/mibgroup/ucd-snmp/memory_freebsd2.c.orig Mon Sep 17 06:16:16 2001
+++ agent/mibgroup/ucd-snmp/memory_freebsd2.c Mon Mar 4 10:00:56 2002
@@ -232,7 +232,7 @@
size_t total_size = sizeof (total);
int total_mib[] = { CTL_VM, VM_METER };
- long phys_mem;
+ u_long phys_mem;
size_t phys_mem_size = sizeof(phys_mem);
int phys_mem_mib[] = { CTL_HW, HW_USERMEM };