Changeset 1897 for trunk/LMDZ.TITAN/libf/muphytitan/csystem.h
- Timestamp:
- Jan 24, 2018, 10:24:24 PM (7 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/LMDZ.TITAN/libf/muphytitan/csystem.h
r1793 r1897 1 /* Copyright Jérémie Burgalat (2010-2015 )2 * 3 * burgalat.jeremie@gmail.com1 /* Copyright Jérémie Burgalat (2010-2015,2017) 2 * 3 * jeremie.burgalat@univ-reims.fr 4 4 * 5 5 * This software is a computer program whose purpose is to provide configuration … … 31 31 * The fact that you are presently reading this means that you have had 32 32 * knowledge of the CeCILL-B license and that you accept its terms. 33 */ /* csystem.h */33 */ 34 34 35 35 … … 172 172 */ 173 173 int c_mkdir(const char *path, mode_t mode); 174 175 176 /** 177 * Copy file to another. 178 * @param to A C string with the new filepath 179 * @param from A C string with the filepath to copy 180 * @return An integer with 0 on success, 1 on failure. 181 */ 182 int c_copy(const char *to, const char *from); 174 183 175 184 /** … … 255 264 int c_termsize(int *rows,int *cols); 256 265 266 /** 267 * Get the current resident set size memory used by the program. 268 */ 269 size_t c_getCurrentRSS(); 270 271 /** 272 * Get the peak resident set size memory used by the program. 273 */ 274 size_t c_getPeakRSS(); 275 276 /** 277 * Get global memory usage informations. 278 * 279 * Note: The method attempts to read /proc/meminfo. If the file does not exists, all the given output arguments are 280 * set to zero. 281 */ 282 int c_getSystemMemory(long long int *m_total,long long int *m_available,long long int *m_free);
Note: See TracChangeset
for help on using the changeset viewer.