#include #define NOPLAN9DEFINES #include #include #include int dirwstat(char *file, Dir *dir) { struct utimbuf ub; /* BUG handle more */ if(dir->mtime == ~0ULL) return 0; ub.actime = dir->mtime; ub.modtime = dir->mtime; return utime(file, &ub); }