Lines Matching refs:mtime
73 touch(const char* file, time_t atime, time_t mtime, int force)
90 if (atime == (time_t)(-1) || mtime == (time_t)(-1))
94 if (mtime == (time_t)(-1)) mtime = st.st_mtime;
96 if (!atime || !mtime)
98 if (atime || mtime)
103 if (!mtime) mtime = now;
108 ut.modtime = mtime;
110 n = utime(file, (force < 0 || atime || mtime) ? &ut : (struct utimbuf*)0);
116 ut[1] = mtime;
121 if (mtime)
125 * for mtime only requests
149 return((force < 0 || atime || mtime) ? utime(file, &ut) : 0);
154 return((atime != now || mtime != now) ? utime(file, ut) : 0);
162 if (atime == now && mtime == now && (fd = open(file, O_RDWR|O_cloexec)) >= 0)