You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@harmony.apache.org by od...@apache.org on 2008/05/28 17:47:35 UTC

svn commit: r660987 - in /harmony/enhanced/classlib/trunk/modules/luni/src/main/native/luni/unix/zos: ./ OSResourcesMonitor.c

Author: odeakin
Date: Wed May 28 08:47:35 2008
New Revision: 660987

URL: http://svn.apache.org/viewvc?rev=660987&view=rev
Log:
Add OSResourcesMonitor.c stub implementation for z/OS.

Added:
    harmony/enhanced/classlib/trunk/modules/luni/src/main/native/luni/unix/zos/
    harmony/enhanced/classlib/trunk/modules/luni/src/main/native/luni/unix/zos/OSResourcesMonitor.c   (with props)

Added: harmony/enhanced/classlib/trunk/modules/luni/src/main/native/luni/unix/zos/OSResourcesMonitor.c
URL: http://svn.apache.org/viewvc/harmony/enhanced/classlib/trunk/modules/luni/src/main/native/luni/unix/zos/OSResourcesMonitor.c?rev=660987&view=auto
==============================================================================
--- harmony/enhanced/classlib/trunk/modules/luni/src/main/native/luni/unix/zos/OSResourcesMonitor.c (added)
+++ harmony/enhanced/classlib/trunk/modules/luni/src/main/native/luni/unix/zos/OSResourcesMonitor.c Wed May 28 08:47:35 2008
@@ -0,0 +1,35 @@
+/*
+ *  Licensed to the Apache Software Foundation (ASF) under one or more
+ *  contributor license agreements.  See the NOTICE file distributed with
+ *  this work for additional information regarding copyright ownership.
+ *  The ASF licenses this file to You under the Apache License, Version 2.0
+ *  (the "License"); you may not use this file except in compliance with
+ *  the License.  You may obtain a copy of the License at
+ *
+ *     http://www.apache.org/licenses/LICENSE-2.0
+ *
+ *  Unless required by applicable law or agreed to in writing, software
+ *  distributed under the License is distributed on an "AS IS" BASIS,
+ *  WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ *  See the License for the specific language governing permissions and
+ *  limitations under the License.
+ */
+
+/*
+ * Utilities to monitor system resources.
+ */
+#include <hyport.h>
+#include "OSResourcesMonitor.h"
+
+/*
+ * Class:     org_apache_harmony_luni_platform_OSResourcesMonitor
+ * Method:    isSystemPhysicalMemoryLow
+ * Signature: ()Z
+ */
+JNIEXPORT jboolean JNICALL Java_org_apache_harmony_luni_platform_OSResourcesMonitor_isSystemPhysicalMemoryLow
+  (JNIEnv *env, jclass thizClass)
+{
+    /* TODO: implement for z/OS */
+    return FALSE;	
+}
+ 

Propchange: harmony/enhanced/classlib/trunk/modules/luni/src/main/native/luni/unix/zos/OSResourcesMonitor.c
------------------------------------------------------------------------------
    svn:eol-style = native