Index: runtime/bin/platform_linux.cc |
diff --git a/runtime/bin/platform_linux.cc b/runtime/bin/platform_linux.cc |
index 97a9437724d36818b48bd3d51ad444793ac6031c..ce89c19688c36286200022f5066720353169c66b 100644 |
--- a/runtime/bin/platform_linux.cc |
+++ b/runtime/bin/platform_linux.cc |
@@ -27,7 +27,6 @@ static void segv_handler(int signal, siginfo_t* siginfo, void* context) { |
abort(); |
} |
- |
bool Platform::Initialize() { |
// Turn off the signal handler for SIGPIPE as it causes the process |
// to terminate on writing to a closed pipe. Without the signal |
@@ -61,27 +60,22 @@ bool Platform::Initialize() { |
return true; |
} |
- |
int Platform::NumberOfProcessors() { |
return sysconf(_SC_NPROCESSORS_ONLN); |
} |
- |
const char* Platform::OperatingSystem() { |
return "linux"; |
} |
- |
const char* Platform::LibraryPrefix() { |
return "lib"; |
} |
- |
const char* Platform::LibraryExtension() { |
return "so"; |
} |
- |
const char* Platform::LocaleName() { |
char* lang = getenv("LANG"); |
if (lang == NULL) { |
@@ -90,12 +84,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. |
@@ -113,17 +105,14 @@ char** Platform::Environment(intptr_t* count) { |
return result; |
} |
- |
const char* Platform::GetExecutableName() { |
return executable_name_; |
} |
- |
const char* Platform::ResolveExecutablePath() { |
return File::LinkTarget("/proc/self/exe"); |
} |
- |
void Platform::Exit(int exit_code) { |
exit(exit_code); |
} |