diff options
author | cvs2svn <cvs2svn@FreeBSD.org> | 2001-04-18 21:37:32 +0000 |
---|---|---|
committer | cvs2svn <cvs2svn@FreeBSD.org> | 2001-04-18 21:37:32 +0000 |
commit | 01a9f79f0a3692d8148990805beabc8593d3596d (patch) | |
tree | 99d1ef5788fc9e55b6948a7d4951ac4a315f63bf /lang/erlang14/files/patch-ag | |
parent | New index, rebuilt due to samba changes. (Gee, how many things (diff) |
This commit was manufactured by cvs2svn to create tag 'RELEASE_4_3_0'.release/4.3.0
Diffstat (limited to 'lang/erlang14/files/patch-ag')
-rw-r--r-- | lang/erlang14/files/patch-ag | 33 |
1 files changed, 0 insertions, 33 deletions
diff --git a/lang/erlang14/files/patch-ag b/lang/erlang14/files/patch-ag deleted file mode 100644 index b32003f79b65..000000000000 --- a/lang/erlang14/files/patch-ag +++ /dev/null @@ -1,33 +0,0 @@ ---- lib/os_mon/c_src/memsup.c.orig Mon Sep 20 23:05:24 1999 -+++ lib/os_mon/c_src/memsup.c Sat Dec 2 22:23:25 2000 -@@ -89,6 +89,12 @@ - #include <ioLib.h> - #include <memLib.h> - #endif -+#ifdef __FreeBSD__ -+#include <sys/types.h> -+#include <sys/sysctl.h> -+#include <sys/vmmeter.h> -+#include <vm/vm_param.h> -+#endif - - /* commands */ - #include "memsup.h" -@@ -172,6 +178,16 @@ - load_statistics(); - *tot = (latest.numBytesFree + latest.numBytesAlloc) >> shiftleft; - *used = latest.numBytesAlloc >> shiftleft; -+#elif defined(__FreeBSD__) -+ int mib[2]; -+ size_t len; -+ struct vmtotal memory; -+ mib[0] = CTL_VM; -+ mib[1] = VM_METER; -+ len = sizeof memory; -+ sysctl(mib, 2, &memory, &len, NULL, 0); -+ *tot = memory.t_vm >> shiftleft; -+ *used = memory.t_avm >> shiftleft; - #elif defined(_SC_AVPHYS_PAGES) /* Does this exist on others than Solaris2? */ - unsigned long avPhys, phys, pgSz; - -# End |