Lines Matching refs:i
29 int i = (intptr_t) arg; in thread_function() local
38 printf ("%ld for %d\n", (long int) getpid (), i); in thread_function()
39 struct timespec ts = { .tv_sec = 0, .tv_nsec = 100000000 * i }; in thread_function()
41 _exit (i); in thread_function()
58 (long int) pid, WEXITSTATUS (status), i); in thread_function()
60 return WEXITSTATUS (status) == i ? NULL : (void *) 1l; in thread_function()
70 int i; in do_test() local
86 for (i = 0; i < N; ++i) in do_test()
87 if (pthread_create (&th[i], NULL, thread_function, in do_test()
88 (void *) (intptr_t) t[i]) != 0) in do_test()
90 printf ("creation of thread %d failed\n", i); in do_test()
100 for (i = 0; i < N; ++i) in do_test()
103 if (pthread_join (th[i], &v) != 0) in do_test()
105 printf ("join of thread %d failed\n", i); in do_test()
110 printf ("join %d successful, but child failed\n", i); in do_test()
114 printf ("join %d successful\n", i); in do_test()