/usr/include/BALL/SYSTEM/sysinfo.h is in libball1.4-dev 1.4.1+20111206-3.
This file is owned by root:root, with mode 0o644.
The actual contents of the file can be viewed below.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 | // -*- Mode: C++; tab-width: 2; -*-
// vi: set ts=2:
//
// $Id: sysinfo.h,v 1.10 2005/12/23 17:02:07 amoll Exp $
//
#ifndef BALL_SYSTEM_SYSINFO_H
#define BALL_SYSTEM_SYSINFO_H
#ifndef BALL_COMMON_H
# include <BALL/common.h>
#endif
namespace BALL
{
/** Namespace for methods to obtain informations about the systems hardware.
All memory values are returned in amounts of byte.
See the man page for sysinfo, GetSystemInfo and /proc/cpuinfo under Linux.
@see http://msdn.microsoft.com/library/en-us/memory/base/memorystatus_str.asp
@see http://msdn.microsoft.com/library/en-us/memory/base/globalmemorystatusex.asp
\ingroup System
*/
namespace SysInfo
{
/** The the total amount of free memory (under linux + getBufferedMemory()).
@return -1 if no valid value could be read
*/
BALL_EXPORT LongIndex getAvailableMemory();
/** The the amount of freee memory.
@return -1 if no valid value could be read
*/
BALL_EXPORT LongIndex getFreeMemory();
/** The the total amount of memory.
@return -1 if no valid value could be read
*/
BALL_EXPORT LongIndex getTotalMemory();
/** Return the buffered memory under Linux
@return -1 if no valid value could be read
*/
BALL_EXPORT LongIndex getBufferedMemory();
/** Return the the amount of free swap memory.
@return -1 if no valid value could be read
*/
BALL_EXPORT LongIndex getFreeSwapSpace();
/** Get the uptime of the system.
Works currently only under Unix, not under Windows.
@return -1 if no valid value could be read
*/
BALL_EXPORT Time getUptime();
/** Get the number of processors
@return -1 if no valid value could be read
*/
BALL_EXPORT Index getNumberOfProcessors();
}
}
#endif // BALL_SYSTEM_SYSINFO_H
|