Format for reading /proc/self/status and /proc/meminfo
I want to be able to read the information in /proc/self/status (primarily memory information) and the total available memory from /proc/meminfo. This needs to be done "on the fly" in code which will be used on different systems. Are there include files which specify the format used? While I can (on one system) do a simple search for MemFree for instance, I would prefer not to have to search for MEMFREE, Memfree etc since I am not sure if the format is standardized across all OS.
|