| Index: runtime/bin/platform_fuchsia.cc
|
| diff --git a/runtime/bin/platform_fuchsia.cc b/runtime/bin/platform_fuchsia.cc
|
| index cf6e52377b426128e1b6a46696d208fab55c363c..0a14909a621f43e9d2746a0f08c3fa9e3e2fc603 100644
|
| --- a/runtime/bin/platform_fuchsia.cc
|
| +++ b/runtime/bin/platform_fuchsia.cc
|
| @@ -29,27 +29,22 @@ bool Platform::Initialize() {
|
| return true;
|
| }
|
|
|
| -
|
| int Platform::NumberOfProcessors() {
|
| return sysconf(_SC_NPROCESSORS_CONF);
|
| }
|
|
|
| -
|
| const char* Platform::OperatingSystem() {
|
| return "fuchsia";
|
| }
|
|
|
| -
|
| const char* Platform::LibraryPrefix() {
|
| return "lib";
|
| }
|
|
|
| -
|
| const char* Platform::LibraryExtension() {
|
| return "so";
|
| }
|
|
|
| -
|
| const char* Platform::LocaleName() {
|
| char* lang = getenv("LANG");
|
| if (lang == NULL) {
|
| @@ -58,12 +53,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.
|
| @@ -81,7 +74,6 @@ char** Platform::Environment(intptr_t* count) {
|
| return result;
|
| }
|
|
|
| -
|
| const char* Platform::GetExecutableName() {
|
| if (executable_name_ != NULL) {
|
| return executable_name_;
|
| @@ -95,7 +87,6 @@ const char* Platform::GetExecutableName() {
|
| return name;
|
| }
|
|
|
| -
|
| const char* Platform::ResolveExecutablePath() {
|
| const char* executable_name = Platform::GetExecutableName();
|
| if (executable_name == NULL) {
|
| @@ -132,7 +123,6 @@ const char* Platform::ResolveExecutablePath() {
|
| return NULL;
|
| }
|
|
|
| -
|
| void Platform::Exit(int exit_code) {
|
| exit(exit_code);
|
| }
|
|
|