jdk/src/jdk.management/aix/native/libmanagement_ext/UnixOperatingSystem.c
author sundar
Mon, 31 Aug 2015 17:51:02 +0530
changeset 32434 769b3d81ae69
parent 30377 0d3a70ab05f9
child 35775 00710c1b504a
permissions -rw-r--r--
8134731: Function.prototype.apply interacts incorrectly with arguments Reviewed-by: attila, hannesw
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
30377
0d3a70ab05f9 8079510: AIX: fix build after '8042901: Allow com.sun.management to be in a different module...'
simonis
parents:
diff changeset
     1
/*
0d3a70ab05f9 8079510: AIX: fix build after '8042901: Allow com.sun.management to be in a different module...'
simonis
parents:
diff changeset
     2
 * Copyright (c) 2008, 2015, Oracle and/or its affiliates. All rights reserved.
0d3a70ab05f9 8079510: AIX: fix build after '8042901: Allow com.sun.management to be in a different module...'
simonis
parents:
diff changeset
     3
 * Copyright 2015 SAP AG. All rights reserved.
0d3a70ab05f9 8079510: AIX: fix build after '8042901: Allow com.sun.management to be in a different module...'
simonis
parents:
diff changeset
     4
 * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
0d3a70ab05f9 8079510: AIX: fix build after '8042901: Allow com.sun.management to be in a different module...'
simonis
parents:
diff changeset
     5
 *
0d3a70ab05f9 8079510: AIX: fix build after '8042901: Allow com.sun.management to be in a different module...'
simonis
parents:
diff changeset
     6
 * This code is free software; you can redistribute it and/or modify it
0d3a70ab05f9 8079510: AIX: fix build after '8042901: Allow com.sun.management to be in a different module...'
simonis
parents:
diff changeset
     7
 * under the terms of the GNU General Public License version 2 only, as
0d3a70ab05f9 8079510: AIX: fix build after '8042901: Allow com.sun.management to be in a different module...'
simonis
parents:
diff changeset
     8
 * published by the Free Software Foundation.  Oracle designates this
0d3a70ab05f9 8079510: AIX: fix build after '8042901: Allow com.sun.management to be in a different module...'
simonis
parents:
diff changeset
     9
 * particular file as subject to the "Classpath" exception as provided
0d3a70ab05f9 8079510: AIX: fix build after '8042901: Allow com.sun.management to be in a different module...'
simonis
parents:
diff changeset
    10
 * by Oracle in the LICENSE file that accompanied this code.
0d3a70ab05f9 8079510: AIX: fix build after '8042901: Allow com.sun.management to be in a different module...'
simonis
parents:
diff changeset
    11
 *
0d3a70ab05f9 8079510: AIX: fix build after '8042901: Allow com.sun.management to be in a different module...'
simonis
parents:
diff changeset
    12
 * This code is distributed in the hope that it will be useful, but WITHOUT
0d3a70ab05f9 8079510: AIX: fix build after '8042901: Allow com.sun.management to be in a different module...'
simonis
parents:
diff changeset
    13
 * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
0d3a70ab05f9 8079510: AIX: fix build after '8042901: Allow com.sun.management to be in a different module...'
simonis
parents:
diff changeset
    14
 * FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License
0d3a70ab05f9 8079510: AIX: fix build after '8042901: Allow com.sun.management to be in a different module...'
simonis
parents:
diff changeset
    15
 * version 2 for more details (a copy is included in the LICENSE file that
0d3a70ab05f9 8079510: AIX: fix build after '8042901: Allow com.sun.management to be in a different module...'
simonis
parents:
diff changeset
    16
 * accompanied this code).
0d3a70ab05f9 8079510: AIX: fix build after '8042901: Allow com.sun.management to be in a different module...'
simonis
parents:
diff changeset
    17
 *
0d3a70ab05f9 8079510: AIX: fix build after '8042901: Allow com.sun.management to be in a different module...'
simonis
parents:
diff changeset
    18
 * You should have received a copy of the GNU General Public License version
0d3a70ab05f9 8079510: AIX: fix build after '8042901: Allow com.sun.management to be in a different module...'
simonis
parents:
diff changeset
    19
 * 2 along with this work; if not, write to the Free Software Foundation,
0d3a70ab05f9 8079510: AIX: fix build after '8042901: Allow com.sun.management to be in a different module...'
simonis
parents:
diff changeset
    20
 * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
0d3a70ab05f9 8079510: AIX: fix build after '8042901: Allow com.sun.management to be in a different module...'
simonis
parents:
diff changeset
    21
 *
0d3a70ab05f9 8079510: AIX: fix build after '8042901: Allow com.sun.management to be in a different module...'
simonis
parents:
diff changeset
    22
 * Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
0d3a70ab05f9 8079510: AIX: fix build after '8042901: Allow com.sun.management to be in a different module...'
simonis
parents:
diff changeset
    23
 * or visit www.oracle.com if you need additional information or have any
0d3a70ab05f9 8079510: AIX: fix build after '8042901: Allow com.sun.management to be in a different module...'
simonis
parents:
diff changeset
    24
 * questions.
0d3a70ab05f9 8079510: AIX: fix build after '8042901: Allow com.sun.management to be in a different module...'
simonis
parents:
diff changeset
    25
 */
0d3a70ab05f9 8079510: AIX: fix build after '8042901: Allow com.sun.management to be in a different module...'
simonis
parents:
diff changeset
    26
0d3a70ab05f9 8079510: AIX: fix build after '8042901: Allow com.sun.management to be in a different module...'
simonis
parents:
diff changeset
    27
/* Empty stubs for now to satisfy the new build process.                 */
0d3a70ab05f9 8079510: AIX: fix build after '8042901: Allow com.sun.management to be in a different module...'
simonis
parents:
diff changeset
    28
/* Implement and update https://bugs.openjdk.java.net/browse/JDK-8030957 */
0d3a70ab05f9 8079510: AIX: fix build after '8042901: Allow com.sun.management to be in a different module...'
simonis
parents:
diff changeset
    29
0d3a70ab05f9 8079510: AIX: fix build after '8042901: Allow com.sun.management to be in a different module...'
simonis
parents:
diff changeset
    30
#include <jni.h>
0d3a70ab05f9 8079510: AIX: fix build after '8042901: Allow com.sun.management to be in a different module...'
simonis
parents:
diff changeset
    31
#include "com_sun_management_internal_OperatingSystemImpl.h"
0d3a70ab05f9 8079510: AIX: fix build after '8042901: Allow com.sun.management to be in a different module...'
simonis
parents:
diff changeset
    32
0d3a70ab05f9 8079510: AIX: fix build after '8042901: Allow com.sun.management to be in a different module...'
simonis
parents:
diff changeset
    33
JNIEXPORT jdouble JNICALL
0d3a70ab05f9 8079510: AIX: fix build after '8042901: Allow com.sun.management to be in a different module...'
simonis
parents:
diff changeset
    34
Java_com_sun_management_internal_OperatingSystemImpl_getSystemCpuLoad0
0d3a70ab05f9 8079510: AIX: fix build after '8042901: Allow com.sun.management to be in a different module...'
simonis
parents:
diff changeset
    35
(JNIEnv *env, jobject dummy)
0d3a70ab05f9 8079510: AIX: fix build after '8042901: Allow com.sun.management to be in a different module...'
simonis
parents:
diff changeset
    36
{
0d3a70ab05f9 8079510: AIX: fix build after '8042901: Allow com.sun.management to be in a different module...'
simonis
parents:
diff changeset
    37
    return -1.0;
0d3a70ab05f9 8079510: AIX: fix build after '8042901: Allow com.sun.management to be in a different module...'
simonis
parents:
diff changeset
    38
}
0d3a70ab05f9 8079510: AIX: fix build after '8042901: Allow com.sun.management to be in a different module...'
simonis
parents:
diff changeset
    39
0d3a70ab05f9 8079510: AIX: fix build after '8042901: Allow com.sun.management to be in a different module...'
simonis
parents:
diff changeset
    40
JNIEXPORT jdouble JNICALL
0d3a70ab05f9 8079510: AIX: fix build after '8042901: Allow com.sun.management to be in a different module...'
simonis
parents:
diff changeset
    41
Java_com_sun_management_internal_OperatingSystemImpl_getProcessCpuLoad0
0d3a70ab05f9 8079510: AIX: fix build after '8042901: Allow com.sun.management to be in a different module...'
simonis
parents:
diff changeset
    42
(JNIEnv *env, jobject dummy)
0d3a70ab05f9 8079510: AIX: fix build after '8042901: Allow com.sun.management to be in a different module...'
simonis
parents:
diff changeset
    43
{
0d3a70ab05f9 8079510: AIX: fix build after '8042901: Allow com.sun.management to be in a different module...'
simonis
parents:
diff changeset
    44
    return -1.0;
0d3a70ab05f9 8079510: AIX: fix build after '8042901: Allow com.sun.management to be in a different module...'
simonis
parents:
diff changeset
    45
}