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