Home
last modified time | relevance | path

Searched refs:my_timeval (Results 1 – 1 of 1) sorted by relevance

/linux-6.1.9/tools/include/nolibc/
Dunistd.h19 struct timeval my_timeval = { msecs / 1000, (msecs % 1000) * 1000 }; in msleep() local
21 if (sys_select(0, 0, 0, 0, &my_timeval) < 0) in msleep()
22 return (my_timeval.tv_sec * 1000) + in msleep()
23 (my_timeval.tv_usec / 1000) + in msleep()
24 !!(my_timeval.tv_usec % 1000); in msleep()
32 struct timeval my_timeval = { seconds, 0 }; in sleep() local
34 if (sys_select(0, 0, 0, 0, &my_timeval) < 0) in sleep()
35 return my_timeval.tv_sec + !!my_timeval.tv_usec; in sleep()
43 struct timeval my_timeval = { usecs / 1000000, usecs % 1000000 }; in usleep() local
45 return sys_select(0, 0, 0, 0, &my_timeval); in usleep()