svcore  1.9
System.cpp File Reference
#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>
Include dependency graph for System.cpp:

Go to the source code of this file.

Functions

ProcessStatus GetProcessStatus (int pid)
 
void GetRealMemoryMBAvailable (int &available, int &total)
 
int GetDiscSpaceMBAvailable (const char *path)
 
void SystemMemoryBarrier ()
 
void StoreStartupLocale ()
 
void RestoreStartupLocale ()
 
double mod (double x, double y)
 
float modf (float x, float y)
 
double princarg (double a)
 
float princargf (float a)
 

Variables

static char * startupLocale = 0
 

Function Documentation

◆ GetProcessStatus()

ProcessStatus GetProcessStatus ( int  pid)

Definition at line 84 of file System.cpp.

References ProcessNotRunning, ProcessRunning, and UnknownProcessStatus.

Referenced by TempDirectory::cleanupAbandonedDirectories().

Here is the caller graph for this function:

◆ GetRealMemoryMBAvailable()

void GetRealMemoryMBAvailable ( int &  available,
int &  total 
)

Definition at line 126 of file System.cpp.

Referenced by StorageAdviser::recommend().

Here is the caller graph for this function:

◆ GetDiscSpaceMBAvailable()

int GetDiscSpaceMBAvailable ( const char *  path)

Definition at line 247 of file System.cpp.

Referenced by StorageAdviser::recommend().

Here is the caller graph for this function:

◆ SystemMemoryBarrier()

void SystemMemoryBarrier ( )

Definition at line 291 of file System.cpp.

◆ StoreStartupLocale()

void StoreStartupLocale ( )

Definition at line 304 of file System.cpp.

References startupLocale.

◆ RestoreStartupLocale()

void RestoreStartupLocale ( )

◆ mod()

double mod ( double  x,
double  y 
)

Definition at line 322 of file System.cpp.

Referenced by princarg().

Here is the caller graph for this function:

◆ modf()

float modf ( float  x,
float  y 
)

Definition at line 323 of file System.cpp.

Referenced by princargf().

Here is the caller graph for this function:

◆ princarg()

double princarg ( double  a)

Definition at line 325 of file System.cpp.

References mod().

◆ princargf()

float princargf ( float  a)

Definition at line 326 of file System.cpp.

References modf().

Referenced by FFTModel::estimateStableFrequency(), and FFTModel::getPeakFrequencies().

Here is the caller graph for this function:

Variable Documentation

◆ startupLocale

char* startupLocale = 0
static

Definition at line 301 of file System.cpp.

Referenced by RestoreStartupLocale(), and StoreStartupLocale().