ref: 1a54d1f0b13124bfbc60a4ecf3ed1f15869c8e3d
dir: /libnpe/utime.c/
#include <utime.h>
int
utime(const char *path, const struct utimbuf *times)
{
Dir d;
nulldir(&d);
if(times == nil)
d.atime = d.mtime = time(nil);
else{
d.atime = times->actime;
d.mtime = times->modtime;
}
return dirwstat(path, &d);
}