Files
9base/lib9/dirwstat.c
garbeam@wmii.de e5f0f74b8a initial import
2005-11-20 18:27:27 +02:00

20 lines
293 B
C

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