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

Unified Diff: runtime/bin/process_openbsd.cc

Issue 1559053002: Refs #10260 OpenBSD support #25327 Base URL: git@github.com:dart-lang/sdk.git@master
Patch Set: Address code review issues Created 4 years, 11 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_openbsd.cc ('k') | runtime/bin/socket.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: runtime/bin/process_openbsd.cc
diff --git a/runtime/bin/process_android.cc b/runtime/bin/process_openbsd.cc
similarity index 99%
copy from runtime/bin/process_android.cc
copy to runtime/bin/process_openbsd.cc
index b9d245bbb888e8e0051c7f1c6da252de79d1791c..f5dc08f620035695c94e95cefd97228741efc7b2 100644
--- a/runtime/bin/process_android.cc
+++ b/runtime/bin/process_openbsd.cc
@@ -3,7 +3,7 @@
// BSD-style license that can be found in the LICENSE file.
#include "platform/globals.h"
-#if defined(TARGET_OS_ANDROID)
+#if defined(TARGET_OS_OPENBSD)
#include "bin/process.h"
@@ -22,7 +22,6 @@
#include "bin/thread.h"
#include "platform/signal_blocker.h"
-#include "platform/utils.h"
extern char **environ;
@@ -645,7 +644,7 @@ class ProcessStarter {
void SetChildOsErrorMessage() {
const int kBufferSize = 1024;
char error_message[kBufferSize];
- Utils::StrError(errno, error_message, kBufferSize);
+ strerror_r(errno, error_message, kBufferSize);
*os_error_message_ = strdup(error_message);
}
@@ -656,7 +655,7 @@ class ProcessStarter {
int child_errno = errno;
const int kBufferSize = 1024;
char os_error_message[kBufferSize];
- Utils::StrError(errno, os_error_message, kBufferSize);
+ strerror_r(errno, os_error_message, kBufferSize);
int bytes_written =
FDUtils::WriteToBlocking(
exec_control_[1], &child_errno, sizeof(child_errno));
@@ -1005,4 +1004,4 @@ void Process::ClearSignalHandler(intptr_t signal) {
} // namespace bin
} // namespace dart
-#endif // defined(TARGET_OS_ANDROID)
+#endif // defined(TARGET_OS_OPENBSD)
« no previous file with comments | « runtime/bin/platform_openbsd.cc ('k') | runtime/bin/socket.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698