Blob
1 #include <u.h>2 #define NOPLAN9DEFINES3 #include <libc.h>5 #include <sys/time.h>7 int8 dirwstat(char *file, Dir *dir)9 {10 struct timeval tv[2];12 /* BUG handle more */13 if(dir->mtime == ~0ULL)14 return 0;16 tv[0].tv_sec = dir->mtime;17 tv[0].tv_usec = 0;18 tv[1].tv_sec = dir->mtime;19 tv[1].tv_usec = 0;20 return utimes(file, tv);21 }