zephyr/lib
Chris Friedt 7b95428fa0 lib: posix: update usleep() to follow the POSIX spec
The original implementation of `usleep()` was not compliant
to the POSIX spec in 3 ways.
- calling thread may not be suspended (because `k_busy_wait()`
  was previously used for short durations)
- if `usecs` > 1000000, previously we did not return -1 or set
  `errno` to `EINVAL`
- if interrupted, previously we did not return -1 or set
  `errno` to `EINTR`

This change addresses those issues to make `usleep()` more
POSIX-compliant.

Signed-off-by: Chris Friedt <cfriedt@meta.com>
2022-11-24 19:31:33 -05:00
..
libc libc/picolibc: Remove unused POSIX-ish hooks 2022-11-02 06:49:32 -04:00
open-amp includes: prefer <zephyr/kernel.h> over <zephyr/zephyr.h> 2022-09-05 16:31:47 +02:00
os crc: Make the build of crc function dependent on a Kconfig 2022-11-23 13:30:00 +01:00
posix lib: posix: update usleep() to follow the POSIX spec 2022-11-24 19:31:33 -05:00
smf lib: smf: fix include 2022-05-25 11:14:18 +09:00
util lib: getopt: rework and extend getopt library 2022-01-06 21:26:59 +01:00
CMakeLists.txt lvgl: move the lvgl glue out of the zephyr tree 2022-02-24 11:51:33 +01:00
Kconfig lvgl: move the lvgl glue out of the zephyr tree 2022-02-24 11:51:33 +01:00