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 |