icedb
version 0.5.1
Snow particle scattering database API
|
#include <mutex>
#include <thread>
#include <ctime>
#include <iostream>
#include <stdio.h>
#include <algorithm>
#include <cstdlib>
#include <sstream>
#include <string>
#include <vector>
#include <map>
#include <memory>
#include "../icedb/error.h"
#include "../icedb/error_context.h"
#include "../icedb/misc/os_functions.h"
#include "../icedb/misc/os_functions.hpp"
#include "../icedb/util.h"
Go to the source code of this file.
Namespaces | |
icedb | |
icedb::os_functions | |
icedb::os_functions::vars | |
icedb::os_functions::win | |
icedb::os_functions::unix | |
ICEDB_enumModulesRes* ICEDB_enumModules | ( | int | pid | ) |
Definition at line 607 of file os_functions.cpp.
References icedb::free(), icedb::os_functions::getPID(), ICEDB_COMPAT_strdup_s(), ICEDB_error_context_add_string2, ICEDB_error_context_create, ICEDB_error_getOSname, ICEDB_ERRORCODES_OS, ICEDB_malloc(), icedb::os_functions::vars::mmods, icedb::os_functions::vars::moduleCallbackBuffer, ICEDB_enumModulesRes::modules, and ICEDB_enumModulesRes::sz.
char* ICEDB_findModuleByFunc | ( | void * | ptr, |
size_t | sz, | ||
char * | res | ||
) |
Find the file that contains the symbol.
ptr | is the symbol. Can be any pointer. |
sz | is the size of the output buffer (bytes). |
res | is the output buffer, of size at least sz. Gets null terminated. |
Definition at line 677 of file os_functions.cpp.
References ICEDB_COMPAT_strncpy_s(), and ICEDB_DEBUG_RAISE_EXCEPTION.
void ICEDB_free_enumModulesRes | ( | ICEDB_enumModulesRes * | p | ) |
Definition at line 596 of file os_functions.cpp.
References ICEDB_free(), ICEDB_enumModulesRes::modules, and ICEDB_enumModulesRes::sz.
const char* ICEDB_getAppConfigDir | ( | ) |
Definition at line 587 of file os_functions.cpp.
References icedb::os_functions::vars::appConfigDir, and icedb::os_functions::populateOSstrings().
Referenced by icedb::os_functions::getAppConfigDir().
char* ICEDB_getAppDir | ( | size_t | sz, |
char * | res | ||
) |
Definition at line 765 of file os_functions.cpp.
References icedb::os_functions::vars::appDir, ICEDB_COMPAT_strncpy_s(), and ICEDB_getAppDirI().
const char* ICEDB_getAppDirC | ( | ) |
Definition at line 770 of file os_functions.cpp.
References icedb::os_functions::vars::appDir, and ICEDB_getAppDirI().
void ICEDB_getAppDirI | ( | ) |
Definition at line 723 of file os_functions.cpp.
References icedb::os_functions::vars::appDir, icedb::os_functions::vars::appPath, icedb::free(), ICEDB_DEBUG_RAISE_EXCEPTION, and ICEDB_getPID().
Referenced by icedb::os_functions::getAppDir(), icedb::os_functions::getAppPath(), ICEDB_getAppDir(), ICEDB_getAppDirC(), ICEDB_getAppPath(), and ICEDB_getAppPathC().
char* ICEDB_getAppPath | ( | size_t | sz, |
char * | res | ||
) |
Definition at line 813 of file os_functions.cpp.
References icedb::os_functions::vars::appPath, ICEDB_COMPAT_strncpy_s(), and ICEDB_getAppDirI().
const char* ICEDB_getAppPathC | ( | ) |
Definition at line 818 of file os_functions.cpp.
References icedb::os_functions::vars::appPath, and ICEDB_getAppDirI().
char* ICEDB_getCWD | ( | size_t | ssz, |
char * | res | ||
) |
Definition at line 794 of file os_functions.cpp.
References icedb::os_functions::vars::CWD, ICEDB_COMPAT_strncpy_s(), and ICEDB_getCWDI().
const char* ICEDB_getCWDC | ( | ) |
Definition at line 799 of file os_functions.cpp.
References icedb::os_functions::vars::CWD, and ICEDB_getCWDI().
void ICEDB_getCWDI | ( | ) |
Definition at line 774 of file os_functions.cpp.
References icedb::os_functions::vars::CWD, ICEDB_DEBUG_RAISE_EXCEPTION, ICEDB_error_context_create, and ICEDB_ERRORCODES_OS.
Referenced by icedb::os_functions::getCWD(), ICEDB_getCWD(), and ICEDB_getCWDC().
const char* ICEDB_getHomeDir | ( | ) |
Definition at line 591 of file os_functions.cpp.
References icedb::os_functions::vars::homeDir, and icedb::os_functions::populateOSstrings().
Referenced by icedb::os_functions::getHomeDir().
const char* ICEDB_getHostName | ( | ) |
Definition at line 583 of file os_functions.cpp.
References icedb::os_functions::vars::hostname, and icedb::os_functions::populateOSstrings().
Referenced by icedb::os_functions::getHostName().
char* ICEDB_getLibDir | ( | size_t | sz, |
char * | res | ||
) |
Definition at line 714 of file os_functions.cpp.
References ICEDB_COMPAT_strncpy_s(), ICEDB_getLibDirI(), and icedb::os_functions::vars::libDir.
const char* ICEDB_getLibDirC | ( | ) |
Definition at line 719 of file os_functions.cpp.
References ICEDB_getLibDirI(), and icedb::os_functions::vars::libDir.
void ICEDB_getLibDirI | ( | ) |
Definition at line 706 of file os_functions.cpp.
References icedb::os_functions::vars::libDir, and icedb::os_functions::vars::libPath.
Referenced by icedb::os_functions::getLibDir(), icedb::os_functions::getLibPath(), ICEDB_getLibDir(), ICEDB_getLibDirC(), ICEDB_getLibPath(), ICEDB_getLibPathC(), and ICEDB_getPluginDirI().
char* ICEDB_getLibPath | ( | size_t | sz, |
char * | res | ||
) |
Definition at line 804 of file os_functions.cpp.
References ICEDB_COMPAT_strncpy_s(), ICEDB_getLibDirI(), and icedb::os_functions::vars::libPath.
const char* ICEDB_getLibPathC | ( | ) |
Definition at line 809 of file os_functions.cpp.
References ICEDB_getLibDirI(), and icedb::os_functions::vars::libPath.
int ICEDB_getPID | ( | ) |
Definition at line 481 of file os_functions.cpp.
References ICEDB_error_context_add_string2, ICEDB_error_context_create, ICEDB_error_getOSname, and ICEDB_ERRORCODES_UNIMPLEMENTED.
Referenced by icedb::os_functions::getPID(), and ICEDB_getAppDirI().
char* ICEDB_getPluginDir | ( | size_t | sz, |
char * | res | ||
) |
Definition at line 827 of file os_functions.cpp.
References ICEDB_COMPAT_strncpy_s(), ICEDB_getPluginDirI(), and icedb::os_functions::vars::pluginDir.
const char* ICEDB_getPluginDirC | ( | ) |
Definition at line 832 of file os_functions.cpp.
References ICEDB_getPluginDirI(), and icedb::os_functions::vars::pluginDir.
void ICEDB_getPluginDirI | ( | ) |
Definition at line 823 of file os_functions.cpp.
References ICEDB_getLibDirI(), icedb::os_functions::vars::libDir, and icedb::os_functions::vars::pluginDir.
Referenced by icedb::os_functions::getPluginDir(), ICEDB_getPluginDir(), and ICEDB_getPluginDirC().
int ICEDB_getPPID | ( | int | pid | ) |
Definition at line 501 of file os_functions.cpp.
References ICEDB_error_context_add_string2, ICEDB_error_context_create, ICEDB_error_getOSname, and ICEDB_ERRORCODES_UNIMPLEMENTED.
Referenced by icedb::os_functions::getPPID().
const char* ICEDB_getUserName | ( | ) |
Definition at line 579 of file os_functions.cpp.
References icedb::os_functions::populateOSstrings(), and icedb::os_functions::vars::username.
Referenced by icedb::os_functions::getUserName().
void ICEDB_libEntry | ( | int | , |
char ** | |||
) |
Entry function that gets called when a debugged application first loads.
This function gets called at the beginning of an application's execution (generally). It:
Definition at line 848 of file os_functions.cpp.
References ICEDB_libExit().
Referenced by icedb::os_functions::libEntry().
void ICEDB_libExit | ( | ) |
Definition at line 904 of file os_functions.cpp.
References icedb::os_functions::vars::_consoleTerminated, and ICEDB_waitOnExitGet().
Referenced by ICEDB_libEntry().
bool ICEDB_pidExists | ( | int | pid, |
bool & | res | ||
) |
Definition at line 401 of file os_functions.cpp.
References ICEDB_error_context_add_string2, ICEDB_error_context_create, ICEDB_error_getOSname, ICEDB_ERRORCODES_OS, and ICEDB_ERRORCODES_UNIMPLEMENTED.
Referenced by icedb::os_functions::pidExists().
bool ICEDB_waitOnExitGet | ( | ) |
Definition at line 570 of file os_functions.cpp.
References icedb::os_functions::vars::doWaitOnExit, icedb::os_functions::vars::doWaitOnExitQueriedDefault, ICEDB_waitOnExitGetDefault(), and icedb::os_functions::vars::m_sys_names.
Referenced by ICEDB_libExit(), and icedb::os_functions::waitOnExit().
bool ICEDB_waitOnExitGetDefault | ( | ) |
Definition at line 530 of file os_functions.cpp.
Referenced by ICEDB_waitOnExitGet().
void ICEDB_waitOnExitSet | ( | bool | val | ) |
Definition at line 565 of file os_functions.cpp.
References icedb::os_functions::vars::doWaitOnExit, icedb::os_functions::vars::doWaitOnExitQueriedDefault, and icedb::os_functions::vars::m_sys_names.
Referenced by icedb::os_functions::waitOnExit().
void ICEDB_writeDebugString | ( | const char * | c | ) |
Definition at line 922 of file os_functions.cpp.
References ICEDB_COMPAT_fprintf_s.
Referenced by icedb::logging::emit_log().