zephyr/boards/posix/native_posix
Alberto Escolar Piedras de168b9bc2 native_posix: timer: Ignore nanosleep return
Explicitly ignore the nanosleep() return value.
nanosleep() is called to slow down native_posix in real time
mode.
There is no real reason to handle this call returning too early:
The call may return earlier if a signal was sent to the process
(e.g. the user pressed Ctrl+C), or in case of errors.
In case of SIGKILL, SIGTERM, what we do is what we should do
(not wait, but terminate the program as requested by the user ASAP)
In case of another signal, we will wait the appropriate
amount of time in the next systick (so we won't accumulate any
error over time)
So there is no real need to add extra code here to handle
those cases.

Solves coverity CID 211046

Signed-off-by: Alberto Escolar Piedras <alpi@oticon.com>
2020-06-24 08:57:10 -04:00
..
doc doc: native_posix: Add section about 32 and 64 bits 2020-05-04 15:57:33 +02:00
board.cmake license: cleanup: add SPDX Apache-2.0 license identifier 2019-04-07 08:45:22 -04:00
board_irq.h zephyr: replace zephyr integer types with C99 types 2020-06-08 08:23:57 -05:00
board_soc.h native_posix: irq_offload to use a sw interrupt 2018-06-11 17:25:58 -04:00
CMakeLists.txt headers: Refactor kernel and arch headers. 2019-11-06 16:07:32 -08:00
cmdline.c headers: Refactor kernel and arch headers. 2019-11-06 16:07:32 -08:00
cmdline.h native_posix: Refactor cmd line options 2018-07-30 22:13:46 -04:00
cmdline_common.c zephyr: replace zephyr integer types with C99 types 2020-06-08 08:23:57 -05:00
cmdline_common.h global: Remove leading/trailing blank lines in files 2019-12-11 19:17:27 +01:00
hw_models_top.c zephyr: replace zephyr integer types with C99 types 2020-06-08 08:23:57 -05:00
hw_models_top.h zephyr: replace zephyr integer types with C99 types 2020-06-08 08:23:57 -05:00
irq_ctrl.c zephyr: replace zephyr integer types with C99 types 2020-06-08 08:23:57 -05:00
irq_ctrl.h board: posix: add native_posix board definition 2017-12-27 14:16:08 -05:00
irq_handler.c kernel: remove legacy fields in _kernel 2020-05-08 17:42:49 +02:00
irq_handler.h board: posix: add native_posix board definition 2017-12-27 14:16:08 -05:00
Kconfig arch: posix: Kconfig: select HAS_DTS as the arch level 2020-04-04 16:01:11 +02:00
Kconfig.board native_posix: introduce a native_posix_64 board configuration 2019-07-16 10:41:11 -07:00
Kconfig.defconfig drivers: kscan: Introduce SDL mouse driver 2020-03-11 13:23:19 -05:00
main.c cleanup: include/: move misc/util.h to sys/util.h 2019-06-27 22:55:49 -04:00
native_posix.dts drivers/flash: Add support for flash_get_parameters to drivers 2020-06-22 14:35:03 +02:00
native_posix.yaml boards: native_posix: list eeprom as supported 2020-03-30 08:24:06 -05:00
native_posix_64.dts native_posix: introduce a native_posix_64 board configuration 2019-07-16 10:41:11 -07:00
native_posix_64.yaml boards: native_posix: list eeprom as supported 2020-03-30 08:24:06 -05:00
native_posix_64_defconfig kconfig: Remove assignments to CONFIG_<arch> syms and hide them 2020-02-08 00:50:08 -06:00
native_posix_defconfig kconfig: Remove assignments to CONFIG_<arch> syms and hide them 2020-02-08 00:50:08 -06:00
native_rtc.c zephyr: replace zephyr integer types with C99 types 2020-06-08 08:23:57 -05:00
native_rtc.h zephyr: replace zephyr integer types with C99 types 2020-06-08 08:23:57 -05:00
native_tracing.h native_posix: Add control of traces color 2018-09-18 14:56:10 +02:00
sdl_events.c zephyr: replace zephyr integer types with C99 types 2020-06-08 08:23:57 -05:00
sdl_events.h global: Remove leading/trailing blank lines in files 2019-12-11 19:17:27 +01:00
timer_model.c native_posix: timer: Ignore nanosleep return 2020-06-24 08:57:10 -04:00
timer_model.h zephyr: replace zephyr integer types with C99 types 2020-06-08 08:23:57 -05:00
tracing.c native_posix: Add control of traces color 2018-09-18 14:56:10 +02:00