zephyr/include/posix
Paul Sokolovsky 347f6784fb include: posix: time: Make possible to include with CONFIG_ARCH_POSIX
While CONFIG_ARCH_POSIX in general isn't compatible with Zephyr POSIX
subsys (because CONFIG_ARCH_POSIX itself is implemented on top of
POSIX, so there're obvious conflicts), apply workaround to allow to
at least use clock_gettime() and clock_settime() functions.

This change is grounded in upcoming support for date manipulation
commands for Zephyr shell, which are implemented using functions
above. There's no guarantee that CONFIG_ARCH_POSIX and Zephyr POSIX
subsys will coexist for any other usecase. (But the change is
relatively clean and is definitely in the right direction of
prototyping ways of such a coexistance.)

Signed-off-by: Paul Sokolovsky <paul.sokolovsky@linaro.org>
(cherry picked from commit 4a05644bce81f4792c018964d29c1158f1982d1e)
2020-03-10 15:04:12 +02:00
..
arpa include/posix: rearrange for standard use of extern "C" 2019-08-13 18:00:31 +02:00
net posix: Add headers related to BSD Sockets API 2019-08-07 15:02:11 +03:00
netinet posix: Add headers related to BSD Sockets API 2019-08-07 15:02:11 +03:00
sys include: posix: sys/socket.h: Export MSG_* constants. 2019-08-27 15:02:42 +02:00
dirent.h include/posix: rearrange for standard use of extern "C" 2019-08-13 18:00:31 +02:00
mqueue.h posix: mqueue.h: Move O_CREAT and friends to fcntl.h 2019-07-25 13:50:58 -04:00
netdb.h include/posix: rearrange for standard use of extern "C" 2019-08-13 18:00:31 +02:00
poll.h include: posix: Add poll.h header 2019-08-27 15:02:42 +02:00
posix_sched.h posix: rename priority in sched_param struct 2019-02-19 11:24:45 -05:00
posix_types.h include: posix: time: Make possible to include with CONFIG_ARCH_POSIX 2020-03-10 15:04:12 +02:00
pthread.h pthread: wrap header with extern C 2020-02-08 10:21:01 +02:00
pthread_key.h include/posix: rearrange for standard use of extern "C" 2019-08-13 18:00:31 +02:00
semaphore.h include/posix: rearrange for standard use of extern "C" 2019-08-13 18:00:31 +02:00
signal.h include/posix: rearrange for standard use of extern "C" 2019-08-13 18:00:31 +02:00
time.h include: posix: time: Make possible to include with CONFIG_ARCH_POSIX 2020-03-10 15:04:12 +02:00
unistd.h posix: fix unistd.h extern C brace mismatch 2020-02-11 17:50:21 +02:00