comparison src/os/linux/vm/os_linux.cpp @ 2181:d25d4ca69222

Merge.
author Thomas Wuerthinger <wuerthinger@ssw.jku.at>
date Wed, 16 Feb 2011 13:47:20 +0100
parents 06f017f7daa7 34d64ad817f4
children 0cd39a385a72
comparison
equal deleted inserted replaced
2108:50b45e2d9725 2181:d25d4ca69222
1608 1608
1609 // DLL functions 1609 // DLL functions
1610 1610
1611 const char* os::dll_file_extension() { return ".so"; } 1611 const char* os::dll_file_extension() { return ".so"; }
1612 1612
1613 const char* os::get_temp_directory() { 1613 // This must be hard coded because it's the system's temporary
1614 const char *prop = Arguments::get_property("java.io.tmpdir"); 1614 // directory not the java application's temp directory, ala java.io.tmpdir.
1615 return prop == NULL ? "/tmp" : prop; 1615 const char* os::get_temp_directory() { return "/tmp"; }
1616 }
1617 1616
1618 static bool file_exists(const char* filename) { 1617 static bool file_exists(const char* filename) {
1619 struct stat statbuf; 1618 struct stat statbuf;
1620 if (filename == NULL || strlen(filename) == 0) { 1619 if (filename == NULL || strlen(filename) == 0) {
1621 return false; 1620 return false;