1570af302Sopenharmony_ci#include "time32.h" 2570af302Sopenharmony_ci#include <time.h> 3570af302Sopenharmony_ci#include <sys/time.h> 4570af302Sopenharmony_ci#include <sys/stat.h> 5570af302Sopenharmony_ci 6570af302Sopenharmony_ciint __utimes_time32(const char *path, const struct timeval32 times32[2]) 7570af302Sopenharmony_ci{ 8570af302Sopenharmony_ci return utimes(path, !times32 ? 0 : ((struct timeval[2]){ 9570af302Sopenharmony_ci {.tv_sec = times32[0].tv_sec,.tv_usec = times32[0].tv_usec}, 10570af302Sopenharmony_ci {.tv_sec = times32[1].tv_sec,.tv_usec = times32[1].tv_usec}})); 11570af302Sopenharmony_ci} 12