Lines Matching refs:res
63 static void test_timeout(int res, int *ret, char *test_name, int err) in test_timeout() argument
65 if (!res || errno != err) { in test_timeout()
67 res < 0 ? errno : res); in test_timeout()
98 int res, ret = RET_PASS; in main() local
136 res = futex_wait(&f1, f1, &to, 0); in main()
137 test_timeout(res, &ret, "futex_wait relative", ETIMEDOUT); in main()
142 res = futex_wait_bitset(&f1, f1, &to, 1, FUTEX_CLOCK_REALTIME); in main()
143 test_timeout(res, &ret, "futex_wait_bitset realtime", ETIMEDOUT); in main()
148 res = futex_wait_bitset(&f1, f1, &to, 1, 0); in main()
149 test_timeout(res, &ret, "futex_wait_bitset monotonic", ETIMEDOUT); in main()
154 res = futex_wait_requeue_pi(&f1, f1, &futex_pi, &to, FUTEX_CLOCK_REALTIME); in main()
155 test_timeout(res, &ret, "futex_wait_requeue_pi realtime", ETIMEDOUT); in main()
160 res = futex_wait_requeue_pi(&f1, f1, &futex_pi, &to, 0); in main()
161 test_timeout(res, &ret, "futex_wait_requeue_pi monotonic", ETIMEDOUT); in main()
178 res = futex_lock_pi(&futex_pi, &to, 0, 0); in main()
179 test_timeout(res, &ret, "futex_lock_pi realtime", ETIMEDOUT); in main()
182 res = futex_lock_pi(&futex_pi, NULL, 0, FUTEX_CLOCK_REALTIME); in main()
183 test_timeout(res, &ret, "futex_lock_pi invalid timeout flag", ENOSYS); in main()