| 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..ae746f4932bde012d8bb47daf19d62aae4f67708 100644
|
| --- a/components/nacl/loader/nonsfi/abi_conversion.cc
|
| +++ b/components/nacl/loader/nonsfi/abi_conversion.cc
|
| @@ -9,10 +9,23 @@
|
|
|
| #include "base/logging.h"
|
| #include "native_client/src/trusted/service_runtime/include/sys/stat.h"
|
| +#include "native_client/src/trusted/service_runtime/include/sys/time.h"
|
|
|
| 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
|
|
|