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

Unified Diff: components/nacl/loader/nonsfi/abi_conversion.cc

Issue 139303003: Implement nacl_irt_clock for non-sfi mode. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 6 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
Index: components/nacl/loader/nonsfi/abi_conversion.cc
diff --git a/components/nacl/loader/nonsfi/abi_conversion.cc b/components/nacl/loader/nonsfi/abi_conversion.cc
index 59771062bf41ba77a53aeee524e9a26a39bcf3dc..2cdb5dc8b8ad48a9b6e26d19caab77f4e9980ecd 100644
--- a/components/nacl/loader/nonsfi/abi_conversion.cc
+++ b/components/nacl/loader/nonsfi/abi_conversion.cc
@@ -13,6 +13,18 @@
namespace nacl {
namespace nonsfi {
+void NaClAbiTimeSpecToTimeSpec(const struct nacl_abi_timespec& nacl_timespec,
+ struct timespec* host_timespec) {
+ host_timespec->tv_sec = nacl_timespec.tv_sec;
+ host_timespec->tv_nsec = nacl_timespec.tv_nsec;
+}
+
+void TimeSpecToNaClAbiTimeSpec(const struct timespec& host_timespec,
+ struct nacl_abi_timespec* nacl_timespec) {
+ nacl_timespec->tv_sec = host_timespec.tv_sec;
+ nacl_timespec->tv_nsec = host_timespec.tv_nsec;
+}
+
void StatToNaClAbiStat(
const struct stat& host_stat, struct nacl_abi_stat* nacl_stat) {
// Some fields in host_stat, such as st_dev, group/other bits of mode and

Powered by Google App Engine
This is Rietveld 408576698