| // Copyright 2013 Google Inc. All Rights Reserved. |
| // |
| // Define nacl_abi_timespec and its conversion functions. |
| // |
| // Note that nacl-glibc's timespec is as same as NaCl IRT's. In |
| // bionic, time_t is a 32bit value so we need conversion. |
| // |
| |
| #include <stdint.h> |
| #include <time.h> |
| |
| struct nacl_abi_timespec { |
| int64_t tv_sec; |
| int64_t tv_nsec; |
| }; |
| |
| void __nacl_abi_timespec_to_timespec(struct nacl_abi_timespec *nacl_timespec, |
| struct timespec *timespec); |
| |
| void __timespec_to_nacl_abi_timespec(struct timespec *timespec, |
| struct nacl_abi_timespec *nacl_timespec); |