Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(1910)

Unified Diff: runtime/bin/platform_linux.cc

Issue 2974233002: VM: Re-format to use at most one newline between functions (Closed)
Patch Set: Rebase and merge Created 3 years, 5 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « runtime/bin/platform_fuchsia.cc ('k') | runtime/bin/platform_macos.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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);
}
« no previous file with comments | « runtime/bin/platform_fuchsia.cc ('k') | runtime/bin/platform_macos.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698