7 #if defined(__FreeBSD__) || defined(__APPLE__)
8 /* do nothing -- futimes exists and is fine */
10 #elif defined(__SunOS5_9__)
13 futimes(int fd, struct timeval *tv)
15 return futimesat(fd, 0, tv);
20 /* rename just in case -- linux provides an unusable one */
22 #define futimes myfutimes
24 futimes(int fd, struct timeval *tv)
26 werrstr("futimes not available");
33 dirfwstat(int fd, Dir *dir)
40 if(fchmod(fd, dir->mode) < 0)
44 tv[0].tv_sec = dir->mtime;
46 tv[1].tv_sec = dir->mtime;
48 if(futimes(fd, tv) < 0)