D | nanosleep.c | 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() [all …]
|