Direct-BT v3.3.0-1-gc2d430c
Direct-BT - Direct Bluetooth Programming.
Macros | Functions
os_support.cpp File Reference
#include <cstdint>
#include <cinttypes>
#include <cstring>
#include <ctime>
#include <algorithm>
#include <jau/cpuid.hpp>
#include <jau/string_util.hpp>
#include <jau/debug.hpp>
#include <jau/file_util.hpp>
#include <jau/os/dyn_linker.hpp>
#include <jau/os/os_support.hpp>
#include <jau/os/user_info.hpp>
#include <sys/utsname.h>
Include dependency graph for os_support.cpp:

Go to the source code of this file.

Macros

#define ABITYPE_ENUM(X)
 
#define CASE_TO_STRING(U, V)   case U::V: return #V;
 
#define OSTYPE_ENUM(X)
 

Functions

static void DynamicLinker_addAbsPaths (const std::string &cause, const std::string &abs_path, const std::vector< std::string > &baseNames, std::vector< std::string > &paths) noexcept
 
static void DynamicLinker_addBasenames (const std::string &cause, const std::vector< std::string > &baseNames, std::vector< std::string > &paths) noexcept
 
static void DynamicLinker_addSysPaths (const std::string &cause, const std::vector< std::string > &baseNames, std::vector< std::string > &paths) noexcept
 
static std::vector< std::string > DynamicLinker_buildNames (const std::string &libName) noexcept
 
static std::pair< std::string, bool > DynamicLinker_processCanonicalNameImpl (bool strip, const std::string &filename, const bool isBasename, const bool caseInsensitive=jau::os::is_windows()) noexcept
 

Macro Definition Documentation

◆ CASE_TO_STRING

#define CASE_TO_STRING (   U,
 
)    case U::V: return #V;

Definition at line 47 of file os_support.cpp.

◆ OSTYPE_ENUM

#define OSTYPE_ENUM (   X)
Value:
X(os_type_t,Unix) \
X(os_type_t,Windows) \
X(os_type_t,Linux) \
X(os_type_t,Android) \
X(os_type_t,FreeBSD) \
X(os_type_t,Darwin) \
X(os_type_t,QnxNTO) \
X(os_type_t,GenWasm) \
X(os_type_t,Emscripten)
os_type_t
OS type bits and unique IDs.
Definition: os_support.hpp:99

Definition at line 49 of file os_support.cpp.

◆ ABITYPE_ENUM

#define ABITYPE_ENUM (   X)
Value:
X(abi_type_t,generic) \
X(abi_type_t,gnu_armel) \
X(abi_type_t,gnu_armhf) \
X(abi_type_t,aarch64) \
X(abi_type_t,wasm32_gen) \
X(abi_type_t,wasm32_ems) \
X(abi_type_t,wasm64_gen) \
X(abi_type_t,wasm64_ems)

Definition at line 87 of file os_support.cpp.

Function Documentation

◆ DynamicLinker_processCanonicalNameImpl()

static std::pair< std::string, bool > DynamicLinker_processCanonicalNameImpl ( bool  strip,
const std::string &  filename,
const bool  isBasename,
const bool  caseInsensitive = jau::os::is_windows() 
)
staticnoexcept

Definition at line 229 of file os_support.cpp.

Here is the caller graph for this function:

◆ DynamicLinker_buildNames()

static std::vector< std::string > DynamicLinker_buildNames ( const std::string &  libName)
staticnoexcept

Definition at line 270 of file os_support.cpp.

Here is the caller graph for this function:

◆ DynamicLinker_addBasenames()

static void DynamicLinker_addBasenames ( const std::string &  cause,
const std::vector< std::string > &  baseNames,
std::vector< std::string > &  paths 
)
staticnoexcept

Definition at line 288 of file os_support.cpp.

Here is the caller graph for this function:

◆ DynamicLinker_addAbsPaths()

static void DynamicLinker_addAbsPaths ( const std::string &  cause,
const std::string &  abs_path,
const std::vector< std::string > &  baseNames,
std::vector< std::string > &  paths 
)
staticnoexcept

Definition at line 294 of file os_support.cpp.

Here is the caller graph for this function:

◆ DynamicLinker_addSysPaths()

static void DynamicLinker_addSysPaths ( const std::string &  cause,
const std::vector< std::string > &  baseNames,
std::vector< std::string > &  paths 
)
staticnoexcept

Definition at line 301 of file os_support.cpp.

Here is the caller graph for this function: