Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
1 changed file
with
57 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,57 @@ | ||
//===- ClasspathVMSystem/Properties.cpp -----------------------------------===// | ||
//===--------------------- GNU classpath gnu/classpath/VMSystemProperties -===// | ||
// | ||
// The VMKit project | ||
// | ||
// This file is distributed under the University of Illinois Open Source | ||
// License. See LICENSE.TXT for details. | ||
// | ||
//===----------------------------------------------------------------------===// | ||
|
||
#include <sys/utsname.h> | ||
|
||
#include "types.h" | ||
|
||
#include "Classpath.h" | ||
#include "JavaArray.h" | ||
#include "JavaClass.h" | ||
#include "JavaObject.h" | ||
#include "JavaThread.h" | ||
#include "JavaUpcalls.h" | ||
#include "Jnjvm.h" | ||
|
||
#include "SetProperties.inc" | ||
|
||
using namespace j3; | ||
|
||
extern "C" { | ||
|
||
|
||
JNIEXPORT void JNICALL Java_gnu_classpath_VMSystemProperties_preInit( | ||
#ifdef NATIVE_JNI | ||
JNIEnv *env, | ||
jclass clazz, | ||
#endif | ||
JavaObject* prop) { | ||
|
||
llvm_gcroot(prop, 0); | ||
|
||
BEGIN_NATIVE_EXCEPTION(0) | ||
|
||
setProperties(prop); | ||
|
||
END_NATIVE_EXCEPTION | ||
} | ||
|
||
extern "C" void Java_gnu_classpath_VMSystemProperties_postInit__Ljava_util_Properties_2(JavaObject* prop) { | ||
|
||
llvm_gcroot(prop, 0); | ||
|
||
BEGIN_NATIVE_EXCEPTION(0) | ||
|
||
setCommandLineProperties(prop); | ||
|
||
END_NATIVE_EXCEPTION | ||
} | ||
|
||
} |