1570af302Sopenharmony_ci#include "time32.h" 2570af302Sopenharmony_ci#include <time.h> 3570af302Sopenharmony_ci#include <sys/stat.h> 4570af302Sopenharmony_ci 5570af302Sopenharmony_ciint __utimensat_time32(int fd, const char *path, const struct timespec32 times32[2], int flags) 6570af302Sopenharmony_ci{ 7570af302Sopenharmony_ci return utimensat(fd, path, !times32 ? 0 : ((struct timespec[2]){ 8570af302Sopenharmony_ci {.tv_sec = times32[0].tv_sec,.tv_nsec = times32[0].tv_nsec}, 9570af302Sopenharmony_ci {.tv_sec = times32[1].tv_sec,.tv_nsec = times32[1].tv_nsec}}), 10570af302Sopenharmony_ci flags); 11570af302Sopenharmony_ci} 12