| Index: runtime/bin/platform_android.cc
|
| diff --git a/runtime/bin/platform_android.cc b/runtime/bin/platform_android.cc
|
| index cc21f19b43d74b55ab500310fc889c26e771e6f1..87ee9aa715f1dcca9aa426452c6e65c3e32d07b7 100644
|
| --- a/runtime/bin/platform_android.cc
|
| +++ b/runtime/bin/platform_android.cc
|
| @@ -36,27 +36,22 @@ bool Platform::Initialize() {
|
| return true;
|
| }
|
|
|
| -
|
| int Platform::NumberOfProcessors() {
|
| return sysconf(_SC_NPROCESSORS_ONLN);
|
| }
|
|
|
| -
|
| const char* Platform::OperatingSystem() {
|
| return "android";
|
| }
|
|
|
| -
|
| const char* Platform::LibraryPrefix() {
|
| return "lib";
|
| }
|
|
|
| -
|
| const char* Platform::LibraryExtension() {
|
| return "so";
|
| }
|
|
|
| -
|
| const char* Platform::LocaleName() {
|
| char* lang = getenv("LANG");
|
| if (lang == NULL) {
|
| @@ -65,12 +60,10 @@ const char* Platform::LocaleName() {
|
| return lang;
|
| }
|
|
|
| -
|
| bool Platform::LocalHostname(char* buffer, intptr_t buffer_length) {
|
| return gethostname(buffer, buffer_length) == 0;
|
| }
|
|
|
| -
|
| char** Platform::Environment(intptr_t* count) {
|
| // Using environ directly is only safe as long as we do not
|
| // provide access to modifying environment variables.
|
| @@ -88,17 +81,14 @@ char** Platform::Environment(intptr_t* count) {
|
| return result;
|
| }
|
|
|
| -
|
| const char* Platform::GetExecutableName() {
|
| return executable_name_;
|
| }
|
|
|
| -
|
| const char* Platform::ResolveExecutablePath() {
|
| return NULL;
|
| }
|
|
|
| -
|
| void Platform::Exit(int exit_code) {
|
| exit(exit_code);
|
| }
|
|
|