Lines Matching refs:res

50   int res = 0;  in get_self_comm()  local
61 res = errno; in get_self_comm()
67 res = ERANGE; in get_self_comm()
73 return res; in get_self_comm()
80 int res; in do_test() local
91 res = pthread_getname_np (self, name, TASK_COMM_LEN); in do_test()
93 if (res == 0) in do_test()
95 res = get_self_comm (gettid (), name_check, TASK_COMM_LEN); in do_test()
97 if (res == 0) in do_test()
116 printf ("FAIL: Test 1 - pthread_getname_np failed with error %d\n", res); in do_test()
122 res = pthread_setname_np (self, NEW_NAME); in do_test()
124 if (res == 0) in do_test()
126 res = get_self_comm (gettid (), name_check, TASK_COMM_LEN); in do_test()
127 if (res == 0) in do_test()
148 printf ("FAIL: Test 2 - pthread_setname_np failed with error %d\n", res); in do_test()
153 res = pthread_getname_np (self, name, TASK_COMM_LEN); in do_test()
155 if (res == 0) in do_test()
157 res = pthread_setname_np (self, BIG_NAME); in do_test()
158 if (res != 0) in do_test()
160 if (res == ERANGE) in do_test()
166 res = get_self_comm (gettid (), name_check, TASK_COMM_LEN); in do_test()
167 if (res == 0) in do_test()
190 " i.e. ERANGE != %d\n", res); in do_test()
208 res = pthread_setname_np (self, LONGEST_NAME); in do_test()
210 if (res == 0) in do_test()
212 res = get_self_comm (gettid (), name_check, TASK_COMM_LEN); in do_test()
213 if (res == 0) in do_test()
233 printf ("FAIL: Test 4 - pthread_setname_np failed with error %d\n", res); in do_test()
243 res = pthread_getname_np (self, name, strlen (LONGEST_NAME)); in do_test()
245 if (res != 0) in do_test()
247 if (res == ERANGE) in do_test()
272 res = pthread_getname_np (self, name, strlen (LONGEST_NAME) + 1); in do_test()
274 if (res == 0) in do_test()
289 printf ("FAIL: Test 6 - pthread_getname_np failed with error %d\n", res); in do_test()