Lines Matching refs:res
47 int res = posix_memalign (&stack, getpagesize (), 4 * PTHREAD_STACK_MIN); in do_test() local
48 if (res) in do_test()
50 printf ("malloc failed %s\n", strerror (res)); in do_test()
58 res = pthread_attr_setstack (&attr, stack, 4 * PTHREAD_STACK_MIN); in do_test()
59 if (res) in do_test()
61 printf ("pthread_attr_setstack failed %d\n", res); in do_test()
69 res = pthread_create (&th, &attr, tf, NULL); in do_test()
70 if (res) in do_test()
72 printf ("pthread_create failed %d\n", res); in do_test()
77 res = pthread_join (th, NULL); in do_test()
78 if (res) in do_test()
80 printf ("pthread_join failed %d\n", res); in do_test()