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

Unified Diff: runtime/vm/os_fuchsia.cc

Issue 2171453002: Fuchsia: Make fuchsia_test use snapshots (Closed) Base URL: https://chromium.googlesource.com/external/github.com/dart-lang/sdk/@master
Patch Set: Created 4 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/fuchsia_test.cc ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: runtime/vm/os_fuchsia.cc
diff --git a/runtime/vm/os_fuchsia.cc b/runtime/vm/os_fuchsia.cc
index 2a813271b467d7d8d5be2a66149c99ad7d45caa7..b6343522633a5c30e7b7f50ee7db207ab7d731d2 100644
--- a/runtime/vm/os_fuchsia.cc
+++ b/runtime/vm/os_fuchsia.cc
@@ -167,19 +167,20 @@ void OS::DebugBreak() {
char* OS::StrNDup(const char* s, intptr_t n) {
- UNIMPLEMENTED();
- return NULL;
+ return strndup(s, n);
}
intptr_t OS::StrNLen(const char* s, intptr_t n) {
- UNIMPLEMENTED();
- return 0;
+ return strnlen(s, n);
}
void OS::Print(const char* format, ...) {
- UNIMPLEMENTED();
+ va_list args;
+ va_start(args, format);
+ VFPrint(stdout, format, args);
+ va_end(args);
}
« no previous file with comments | « runtime/bin/fuchsia_test.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698