comparison system/System.h @ 1057:5c5d4863b428 tonioni

Merge from cxx11 branch
author Chris Cannam
date Mon, 23 Mar 2015 11:26:28 +0000
parents cc27f35aa75c
children 7598a78cf915
comparison
equal deleted inserted replaced
1056:c4898e57eea5 1057:5c5d4863b428
141 141
142 enum ProcessStatus { ProcessRunning, ProcessNotRunning, UnknownProcessStatus }; 142 enum ProcessStatus { ProcessRunning, ProcessNotRunning, UnknownProcessStatus };
143 extern ProcessStatus GetProcessStatus(int pid); 143 extern ProcessStatus GetProcessStatus(int pid);
144 144
145 // Return a vague approximation to the number of free megabytes of real memory. 145 // Return a vague approximation to the number of free megabytes of real memory.
146 // Return -1 if unknown. 146 // Return -1 if unknown. (Hence signed args)
147 extern void GetRealMemoryMBAvailable(int &available, int &total); 147 extern void GetRealMemoryMBAvailable(ssize_t &available, ssize_t &total);
148 148
149 // Return a vague approximation to the number of free megabytes of disc space 149 // Return a vague approximation to the number of free megabytes of
150 // on the partition containing the given path. Return -1 if unknown. 150 // disc space on the partition containing the given path. Return -1
151 extern int GetDiscSpaceMBAvailable(const char *path); 151 // if unknown. (Hence signed return type)
152 extern ssize_t GetDiscSpaceMBAvailable(const char *path);
152 153
153 extern void StoreStartupLocale(); 154 extern void StoreStartupLocale();
154 extern void RestoreStartupLocale(); 155 extern void RestoreStartupLocale();
155 156
156 #include <cmath> 157 #include <cmath>