1 #include <utime.h> 2 #include <sys/stat.h> 3 #include <time.h> 4 #include <fcntl.h> 5 #include <unsupported_api.h> 6 utime(const char * path,const struct utimbuf * times)7int utime(const char *path, const struct utimbuf *times) 8 { 9 unsupported_api(__FUNCTION__); 10 return utimensat(AT_FDCWD, path, times ? ((struct timespec [2]){ 11 { .tv_sec = times->actime }, { .tv_sec = times->modtime }}) 12 : 0, 0); 13 } 14