Lines Matching refs:now
24 struct timespec *now;
30 struct timespec *now = args->now, tst;
35 if (abs(tst.tv_sec - now->tv_sec) > 5) {
37 args->tst_name, tst.tv_sec, now->tv_sec);
44 static int check_in_thread(char *tst_name, struct timespec *now)
48 .now = now,
60 static int check(char *tst_name, struct timespec *now)
67 if (abs(tst.tv_sec - now->tv_sec) > 5)
69 tst_name, tst.tv_sec, now->tv_sec);
71 if (check_in_thread(tst_name, now))
79 struct timespec now;
87 now.tv_sec = strtoul(argv[1], &endptr, 0);
91 return check("child after exec", &now);
98 clock_gettime(CLOCK_MONOTONIC, &now);
106 if (check("parent before vfork", &now))
119 snprintf(now_str, sizeof(now_str), "%ld", now.tv_sec + OFFSET);
134 if (check("parent after vfork", &now))