svcore
1.9
|
#include "System.h"
#include <QStringList>
#include <QString>
#include <stdint.h>
#include <signal.h>
#include <sys/statvfs.h>
#include <locale.h>
#include <unistd.h>
#include <limits.h>
#include <cstdlib>
#include <iostream>
![](System_8cpp__incl.png)
Go to the source code of this file.
Functions | |
ProcessStatus | GetProcessStatus (int pid) |
void | GetRealMemoryMBAvailable (ssize_t &available, ssize_t &total) |
ssize_t | GetDiscSpaceMBAvailable (const char *path) |
void | StoreStartupLocale () |
void | RestoreStartupLocale () |
double | mod (double x, double y) |
float | modf (float x, float y) |
double | princarg (double a) |
float | princargf (float a) |
bool | getEnvUtf8 (std::string variable, std::string &value) |
Return the value of the given environment variable by reference. More... | |
bool | putEnvUtf8 (std::string variable, std::string value) |
Set the value of the given environment variable. More... | |
Variables | |
static char * | startupLocale = nullptr |
Function Documentation
ProcessStatus GetProcessStatus | ( | int | pid | ) |
Definition at line 84 of file System.cpp.
References ProcessNotRunning, ProcessRunning, and UnknownProcessStatus.
Referenced by TempDirectory::cleanupAbandonedDirectories().
void GetRealMemoryMBAvailable | ( | ssize_t & | available, |
ssize_t & | total | ||
) |
Definition at line 126 of file System.cpp.
Referenced by StorageAdviser::recommend().
ssize_t GetDiscSpaceMBAvailable | ( | const char * | path | ) |
Definition at line 262 of file System.cpp.
References SystemMemoryBarrier().
Referenced by StorageAdviser::recommend().
void StoreStartupLocale | ( | ) |
Definition at line 319 of file System.cpp.
void RestoreStartupLocale | ( | ) |
Definition at line 328 of file System.cpp.
Referenced by RealTimePluginFactory::enumerateAllPlugins(), RealTimePluginFactory::getAllPluginIdentifiers(), and NativeVampPluginFactory::getPluginIdentifiers().
double mod | ( | double | x, |
double | y | ||
) |
Definition at line 337 of file System.cpp.
Referenced by princarg().
float modf | ( | float | x, |
float | y | ||
) |
Definition at line 338 of file System.cpp.
double princarg | ( | double | a | ) |
Definition at line 340 of file System.cpp.
Referenced by FFTModel::estimateStableFrequency(), FFTModel::getPeakFrequencies(), and princargf().
float princargf | ( | float | a | ) |
Definition at line 341 of file System.cpp.
References princarg().
bool getEnvUtf8 | ( | std::string | variable, |
std::string & | value | ||
) |
Return the value of the given environment variable by reference.
Return true if successfully retrieved, false if unset or on error. Both the variable name and the returned value are UTF-8 encoded.
Definition at line 344 of file System.cpp.
References SVCERR.
Referenced by PluginPathSetter::getPaths(), DSSIPluginFactory::getPluginPath(), LADSPAPluginFactory::getPluginPath(), ResourceFinder::getSystemResourcePrefixList(), and PluginPathSetter::initialiseEnvironmentVariables().
bool putEnvUtf8 | ( | std::string | variable, |
std::string | value | ||
) |
Set the value of the given environment variable.
Return true if successfully set, false on error. Both the variable name and the value must be UTF-8 encoded.
Definition at line 407 of file System.cpp.
References SVCERR.
Referenced by PluginPathSetter::initialiseEnvironmentVariables().
Variable Documentation
|
static |
Definition at line 316 of file System.cpp.
Generated by
![doxygen](doxygen.png)