On Tue, 18 Feb 2003, Michael wrote:

> [EMAIL PROTECTED] michael $ more /proc/meminfo
> MemTotal:       646560 kB
> MemFree:        489164 kB
> Buffers:         28060 kB
> Cached:          31724 kB
> SwapCached:          0 kB
> Active:          47344 kB
> Inactive:        31124 kB
> HighTotal:           0 kB
> HighFree:            0 kB
> LowTotal:       646560 kB
> LowFree:        489164 kB
> SwapTotal:     1048568 kB
> SwapFree:      1048568 kB
> Dirty:             236 kB
> Writeback:           0 kB
> Mapped:          30496 kB
> Slab:            71948 kB
> Committed_AS:    34824 kB
> PageTables:        536 kB
> ReverseMaps:     11879

Ok, it seems that the "MemShared" field was removed. This is easy to fix
since this field isn't used by DOSEMU.

Bart

--- dosemu-1.1.4.13/src/dosext/dpmi/meminfo.h   Sat Feb 15 14:49:29 2003
+++ dosemu-1.1.4.14/src/dosext/dpmi/meminfo.h   Wed Mar  5 20:48:31 2003
@@ -12,7 +12,6 @@
   int total;
   int used;
   int free;
-  int shared;
   int buffers;
   int cached;
   int swaptotal;
--- dosemu-1.1.4.13/src/dosext/dpmi/meminfo.c   Sat Feb 15 14:49:29 2003
+++ dosemu-1.1.4.14/src/dosext/dpmi/meminfo.c   Wed Mar  5 20:54:50 2003
@@ -48,6 +48,7 @@
  *
  * linux <  2.1.41 has part A + B
  * linux >= 2.1.41 has only part B
+ * linux >= 2.5.x does not have the "MemShared" value
  * for compatibility reasons we only use Part B
  *
  * Part A:
@@ -89,7 +90,6 @@
   mem.total = getvalue_by_key(buf, "MemTotal:") <<10;
   mem.free = getvalue_by_key(buf, "MemFree:") <<10;
   mem.used = mem.total - mem.free;
-  mem.shared = getvalue_by_key(buf, "MemShared:") <<10;
   mem.buffers = getvalue_by_key(buf, "Buffers:") <<10;
   mem.cached = getvalue_by_key(buf, "Cached:") <<10;
   mem.swaptotal = getvalue_by_key(buf, "SwapTotal:") <<10;


-
To unsubscribe from this list: send the line "unsubscribe linux-msdos" in
the body of a message to [EMAIL PROTECTED]
More majordomo info at  http://vger.kernel.org/majordomo-info.html

Reply via email to