34647
|
1 |
/*
|
39298
|
2 |
* Copyright (c) 2012, 2016 SAP SE. All rights reserved.
|
34647
|
3 |
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
|
|
4 |
*
|
|
5 |
* This code is free software; you can redistribute it and/or modify it
|
|
6 |
* under the terms of the GNU General Public License version 2 only, as
|
|
7 |
* published by the Free Software Foundation.
|
|
8 |
*
|
|
9 |
* This code is distributed in the hope that it will be useful, but WITHOUT
|
|
10 |
* ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
|
|
11 |
* FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
|
|
12 |
* version 2 for more details (a copy is included in the LICENSE file that
|
|
13 |
* accompanied this code).
|
|
14 |
*
|
|
15 |
* You should have received a copy of the GNU General Public License version
|
|
16 |
* 2 along with this work; if not, write to the Free Software Foundation,
|
|
17 |
* Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
|
|
18 |
*
|
|
19 |
* Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
|
|
20 |
* or visit www.oracle.com if you need additional information or have any
|
|
21 |
* questions.
|
|
22 |
*
|
|
23 |
*/
|
|
24 |
|
|
25 |
#include "libo4.hpp"
|
|
26 |
|
39298
|
27 |
// global variables
|
|
28 |
|
|
29 |
// whether initialization worked
|
|
30 |
static bool g_initialized = false;
|
|
31 |
|
|
32 |
//////////////////////////
|
|
33 |
// class libo4 - impl //
|
|
34 |
//////////////////////////
|
|
35 |
|
|
36 |
bool libo4::init() {
|
|
37 |
if (g_initialized) {
|
|
38 |
return true;
|
|
39 |
}
|
34647
|
40 |
return false;
|
|
41 |
}
|
39298
|
42 |
|
|
43 |
void libo4::cleanup() {
|
|
44 |
if (g_initialized) {
|
|
45 |
g_initialized = false;
|
|
46 |
}
|
|
47 |
}
|
|
48 |
|
|
49 |
bool libo4::get_memory_info(unsigned long long* p_virt_total,
|
|
50 |
unsigned long long* p_real_total,
|
|
51 |
unsigned long long* p_real_free,
|
|
52 |
unsigned long long* p_pgsp_total,
|
|
53 |
unsigned long long* p_pgsp_free) {
|
|
54 |
return false;
|
|
55 |
}
|
34647
|
56 |
|
39298
|
57 |
bool libo4::get_load_avg(double* p_avg1, double* p_avg5, double* p_avg15) {
|
|
58 |
return false;
|
|
59 |
}
|
|
60 |
|
|
61 |
bool libo4::realpath(const char* file_name, char* resolved_name,
|
|
62 |
int resolved_name_len) {
|
|
63 |
return false;
|
|
64 |
}
|
|
65 |
|
|
66 |
bool libo4::removeEscapeMessageFromJoblogByContext(const void* context) {
|
|
67 |
// Note: no tracing here! We run in signal handling context
|
|
68 |
|
|
69 |
return false;
|
|
70 |
}
|