Lines Matching defs:mv
88 tvtouch(const char* path, register const Tv_t* av, register const Tv_t* mv, const Tv_t* cv, int flags)
125 if (!mv)
130 else if (mv == TV_TOUCH_RETAIN)
137 ts[1].tv_sec = mv->tv_sec;
138 ts[1].tv_nsec = NS(mv->tv_nsec);
140 if (!cv && av == TV_TOUCH_RETAIN && mv == TV_TOUCH_RETAIN && !stat(path, &st) && !chmod(path, st.st_mode & S_IPERM))
159 if ((av == TV_TOUCH_RETAIN || mv == TV_TOUCH_RETAIN) && stat(path, &st))
164 if (mv == TV_TOUCH_RETAIN)
165 mv = 0;
167 if (!av || !mv)
172 if (!mv)
173 mv = (const Tv_t*)&now;
186 if (mv == TV_TOUCH_RETAIN)
193 ts[1].tv_sec = mv->tv_sec;
194 ts[1].tv_nsec = NS(mv->tv_nsec);
198 if (errno != ENOENT && av == (const Tv_t*)&now && mv == (const Tv_t*)&now && !utimets(path, NiL))
215 if (mv == TV_TOUCH_RETAIN)
222 am[1].tv_sec = mv->tv_sec;
223 am[1].tv_usec = NS(mv->tv_nsec) / 1000;
227 if (errno != ENOENT && av == (const Tv_t*)&now && mv == (const Tv_t*)&now && !utimes(path, NiL))
235 am.modtime = (mv == TV_TOUCH_RETAIN) ? st.st_mtime : mv->tv_sec;
239 if (errno != ENOENT && av == (const Tv_t*)&now && mv == (const Tv_t*)&now && !utime(path, NiL))
249 if (av != (const Tv_t*)&now || mv != (const Tv_t*)&now)
278 if (av == (const Tv_t*)&now && mv == (const Tv_t*)&now)