Path: blob/master/src/hotspot/os/aix/libo4.cpp
40930 views
/*1* Copyright (c) 2012, 2016 SAP SE. All rights reserved.2* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.3*4* This code is free software; you can redistribute it and/or modify it5* under the terms of the GNU General Public License version 2 only, as6* published by the Free Software Foundation.7*8* This code is distributed in the hope that it will be useful, but WITHOUT9* ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or10* FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License11* version 2 for more details (a copy is included in the LICENSE file that12* accompanied this code).13*14* You should have received a copy of the GNU General Public License version15* 2 along with this work; if not, write to the Free Software Foundation,16* Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.17*18* Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA19* or visit www.oracle.com if you need additional information or have any20* questions.21*22*/2324#include "libo4.hpp"2526// global variables2728// whether initialization worked29static bool g_initialized = false;3031//////////////////////////32// class libo4 - impl //33//////////////////////////3435bool libo4::init() {36if (g_initialized) {37return true;38}39return false;40}4142void libo4::cleanup() {43if (g_initialized) {44g_initialized = false;45}46}4748bool libo4::get_memory_info(unsigned long long* p_virt_total,49unsigned long long* p_real_total,50unsigned long long* p_real_free,51unsigned long long* p_pgsp_total,52unsigned long long* p_pgsp_free) {53return false;54}5556bool libo4::get_load_avg(double* p_avg1, double* p_avg5, double* p_avg15) {57return false;58}5960bool libo4::realpath(const char* file_name, char* resolved_name,61int resolved_name_len) {62return false;63}6465bool libo4::removeEscapeMessageFromJoblogByContext(const void* context) {66// Note: no tracing here! We run in signal handling context6768return false;69}707172