Lines Matching full:selection
17 static inline int select_nanosleep(int selection, clockid_t clock_id, int flags, in select_nanosleep() argument
20 if (selection == SELECT_NANOSLEEP) { in select_nanosleep()
35 static void common_errors(int selection, clockid_t clock_id, int flags) in common_errors() argument
43 zassert_equal(select_nanosleep(selection, clock_id, flags, NULL, NULL), -1); in common_errors()
48 zassert_equal(select_nanosleep(selection, clock_id, flags, NULL, &rem), -1); in common_errors()
57 zassert_equal(select_nanosleep(selection, clock_id, flags, &req, NULL), -1); in common_errors()
62 zassert_equal(select_nanosleep(selection, clock_id, flags, &req, NULL), -1); in common_errors()
67 zassert_equal(select_nanosleep(selection, clock_id, flags, &req, NULL), -1); in common_errors()
73 zassert_equal(select_nanosleep(selection, clock_id, flags, &req, NULL), -1); in common_errors()
83 zassert_equal(select_nanosleep(selection, clock_id, flags, &req, NULL), 0); in common_errors()
89 zassert_equal(select_nanosleep(selection, clock_id, flags, &req, &rem), 0); in common_errors()
101 zassert_equal(select_nanosleep(selection, clock_id, flags, &req, &req), 0); in common_errors()
139 * when @p selection is set to @ref SELECT_CLOCK_NANOSLEEP. The time is assumed to be relative
140 * when @p selection is set to @ref SELECT_NANOSLEEP.
142 * @param selection Either @ref SELECT_CLOCK_NANOSLEEP or @ref SELECT_NANOSLEEP
148 static void common_lower_bound_check(int selection, clockid_t clock_id, int flags, const uint32_t s, in common_lower_bound_check() argument
161 r = select_nanosleep(selection, clock_id, flags, &req, &rem); in common_lower_bound_check()
171 switch (selection) { in common_lower_bound_check()