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

Unified Diff: runtime/platform/utils_android.h

Issue 1466523002: Landing patch set 7 from https://codereview.chromium.org/1450113003/ (Closed) Base URL: git@github.com:dart-lang/sdk.git@master
Patch Set: Created 5 years, 1 month 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/platform/utils.h ('k') | runtime/platform/utils_linux.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: runtime/platform/utils_android.h
diff --git a/runtime/platform/utils_android.h b/runtime/platform/utils_android.h
index 904f6f4613583ad2a6b89d220fc55ee8d6b65f3f..770944213edcad04fdf6100088a84cc26dade6cb 100644
--- a/runtime/platform/utils_android.h
+++ b/runtime/platform/utils_android.h
@@ -60,6 +60,13 @@ inline uint64_t Utils::HostToLittleEndian64(uint64_t value) {
return htole64(value);
}
+inline char* Utils::StrError(int err, char* buffer, size_t bufsize) {
+ if (strerror_r(err, buffer, bufsize) != 0) {
+ snprintf(buffer, bufsize, "%s", "strerror_r failed");
+ }
+ return buffer;
+}
+
} // namespace dart
#endif // PLATFORM_UTILS_ANDROID_H_
« no previous file with comments | « runtime/platform/utils.h ('k') | runtime/platform/utils_linux.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698