Lines Matching defs:mytime
30 struct mytime {
39 static struct mytime tnn = {0, UTIME_NOW, 0, UTIME_NOW, 1, 1};
40 static struct mytime too = {0, UTIME_OMIT, 0, UTIME_OMIT, 0, 0};
41 static struct mytime tno = {0, UTIME_NOW, 0, UTIME_OMIT, 1, 0};
42 static struct mytime ton = {0, UTIME_OMIT, 0, UTIME_NOW, 0, 1};
43 static struct mytime t11 = {1, 1, 1, 1, 1, 1};
48 struct mytime *mytime;
130 static void multi_set_time(enum tst_ts_type type, struct mytime *mytime)
134 ts.libc_ts[0].tv_sec = mytime->access_tv_sec;
135 ts.libc_ts[0].tv_nsec = mytime->access_tv_nsec;
136 ts.libc_ts[1].tv_sec = mytime->mod_tv_sec;
137 ts.libc_ts[1].tv_nsec = mytime->mod_tv_nsec;
140 ts.kern_old_ts[0].tv_sec = mytime->access_tv_sec;
141 ts.kern_old_ts[0].tv_nsec = mytime->access_tv_nsec;
142 ts.kern_old_ts[1].tv_sec = mytime->mod_tv_sec;
143 ts.kern_old_ts[1].tv_nsec = mytime->mod_tv_nsec;
146 ts.kern_ts[0].tv_sec = mytime->access_tv_sec;
147 ts.kern_ts[0].tv_nsec = mytime->access_tv_nsec;
148 ts.kern_ts[1].tv_sec = mytime->mod_tv_sec;
149 ts.kern_ts[1].tv_nsec = mytime->mod_tv_nsec;
227 struct mytime *mytime = tc->mytime;
245 if (mytime) {
246 multi_set_time(tv->ts_type, mytime);
268 atime_change = mytime ? mytime->atime_change : 1;
269 mtime_change = mytime ? mytime->mtime_change : 1;