#include <string.h>
#include <time.h>
#include <unistd.h>
-#include <sys/utsname.h>
-#include "mm/memory.h"
+#include "mm/memory.hpp"
#include "native/llni.h"
-#include "toolbox/util.h"
-
-#include "vm/class.h"
+#include "vm/class.hpp"
#include "vm/global.h"
-#include "vm/method.h"
+#include "vm/method.hpp"
#include "vm/options.h"
#include "vm/os.hpp"
#include "vm/properties.hpp"
p = MNEW(char, 4096);
if (os::readlink("/proc/self/exe", p, 4095) == -1)
- VM::get_current()->abort_errno("readlink failed");
+ os::abort_errno("readlink failed");
/* We have a path like:
{
/* XXX We don't support java.lang.Compiler */
/* put("java.compiler", "cacao.jit"); */
- put("java.vm.info", "JIT mode");
+ put("java.vm.info", "compiled mode");
}
# if defined(WITH_JAVA_RUNTIME_LIBRARY_GNU_CLASSPATH)
/* Get properties from system. */
- char* cwd = _Jv_getcwd();
+ char* cwd = os::getcwd();
char* env_user = os::getenv("USER");
char* env_home = os::getenv("HOME");
#endif
-// Legacy C interface.
-extern "C" {
- void Properties_put(const char *key, const char *value) { VM::get_current()->get_properties().put(key, value); }
- const char *Properties_get(const char *key) { return VM::get_current()->get_properties().get(key); }
-}
-
-
/*
* These are local overrides for various environment variables in Emacs.
* Please do not remove this and leave it at the end of the file, where