Lolly
1.4.28
Loading...
Searching...
No Matches
System
Misc
sys_utils.hpp
Go to the documentation of this file.
1
2
/******************************************************************************
3
* MODULE : sys_utils.hpp
4
* DESCRIPTION: system utilities
5
* COPYRIGHT : (C) 1999-2016 Joris van der Hoeven, Denis Raux
6
*******************************************************************************
7
* This software falls under the GNU general public license version 3 or later.
8
* It comes WITHOUT ANY WARRANTY WHATSOEVER. For details, see the file LICENSE
9
* in the root directory or <http://www.gnu.org/licenses/gpl-3.0.html>.
10
******************************************************************************/
11
12
#ifndef SYS_UTILS_H
13
#define SYS_UTILS_H
14
15
#include "
array.hpp
"
16
#include "
string.hpp
"
17
18
#if defined(OS_MINGW) || defined(_WIN32) || defined(_WIN64)
19
#define URL_CONCATER '\\'
20
#define URL_SEPARATOR ';'
21
#else
22
#define URL_CONCATER '/'
23
#define URL_SEPARATOR ':'
24
#endif
25
26
string
get_env
(
string
var
);
27
void
set_env
(
string
var
,
string
with
);
28
29
string
get_user_login
();
30
string
get_user_name
();
31
32
bool
os_win
();
33
bool
os_mingw
();
34
bool
os_macos
();
35
bool
os_wasm
();
36
37
SN
get_process_id
();
38
39
array<string>
evaluate_system
(
array<string>
arg
,
array<int>
fd_in
,
40
array<string>
in,
array<int>
fd_out
);
41
namespace
lolly
{
42
void
init_tbox
();
43
string
get_stacktrace
(
unsigned
int
max_frames
= 127);
44
}
// namespace lolly
45
46
#endif
// defined SYS_UTILS_H
array.hpp
list
The list class represents a linked list.
Definition
list.hpp:48
SN
unsigned int SN
Definition
minmax.hpp:11
lolly
Definition
lolly_tree_bench.cpp:13
lolly::init_tbox
void init_tbox()
Definition
sys_utils.cpp:169
lolly::get_stacktrace
string get_stacktrace(unsigned int max_frames)
Definition
sys_utils.cpp:175
string.hpp
get_user_name
string get_user_name()
Definition
sys_utils.cpp:79
os_macos
bool os_macos()
Definition
sys_utils.cpp:112
os_mingw
bool os_mingw()
Definition
sys_utils.cpp:103
evaluate_system
array< string > evaluate_system(array< string > arg, array< int > fd_in, array< string > in, array< int > fd_out)
Definition
sys_utils.cpp:145
get_process_id
SN get_process_id()
Definition
sys_utils.cpp:130
os_win
bool os_win()
Definition
sys_utils.cpp:94
set_env
void set_env(string var, string with)
Definition
sys_utils.cpp:49
get_env
string get_env(string var)
Definition
sys_utils.cpp:25
get_user_login
string get_user_login()
Definition
sys_utils.cpp:64
os_wasm
bool os_wasm()
Definition
sys_utils.cpp:121
Generated by
1.10.0