zephyr/include/sys
Stephanos Ioannidis 07e9394dba sys: Explicitly include toolchain.h to check for endianness definitions.
This commit adds an explicit inclusion of toolchain.h from byteorder.h.

The endianness preprocessor definitions (__BYTE_ORDER__,
__ORDER_LITTLE_ENDIAN__, __ORDER_BIG_ENDIAN__) are used by byteorder.h;
these being not defined can easily go unnoticed and cause unexpected
behaviours, as detailed in PR #18922.

toolchain.h ensures that these preprocessor definitions are defined and
*must* be included in a file that uses these definitions.

Signed-off-by: Stephanos Ioannidis <root@stephanos.io>
2019-09-09 21:40:54 +02:00
..
__assert.h cleanup: include/: move misc/printk.h to sys/printk.h 2019-06-27 22:55:49 -04:00
atomic.h include: rearrange for standard use of extern "C" in various headers 2019-08-13 18:00:31 +02:00
base64.h
byteorder.h sys: Explicitly include toolchain.h to check for endianness definitions. 2019-09-09 21:40:54 +02:00
crc.h cleanup: include/: move crc.h to sys/crc.h 2019-06-27 22:55:49 -04:00
dlist.h cleanup: include/: move misc/dlist.h to sys/dlist.h 2019-06-27 22:55:49 -04:00
errno_private.h cleanup: include/: move misc/errno_private.h to sys/errno_private.h 2019-06-27 22:55:49 -04:00
fdtable.h cleanup: include/: move misc/fdtable.h to sys/fdtable.h 2019-06-27 22:55:49 -04:00
libc-hooks.h cleanup: include/: move misc/libc-hooks.h to sys/libc-hooks.h 2019-06-27 22:55:49 -04:00
list_gen.h cleanup: include/: move misc/util.h to sys/util.h 2019-06-27 22:55:49 -04:00
math_extras_impl.h cleanup: include/: move misc/math_extras_impl.h to sys/math_extras_impl.h 2019-06-27 22:55:49 -04:00
math_extras.h cleanup: include/: move misc/math_extras_impl.h to sys/math_extras_impl.h 2019-06-27 22:55:49 -04:00
mempool_base.h mempool: simplify the logic for sizing the free block bitmap 2019-07-31 10:09:29 -07:00
mempool.h mempool: make sure max block size isn't smaller than minimum allowed 2019-07-02 19:41:20 -07:00
mutex.h cleanup: include/: move misc/mutex.h to sys/mutex.h 2019-06-27 22:55:49 -04:00
printk.h cleanup: include/: move misc/printk.h to sys/printk.h 2019-06-27 22:55:49 -04:00
rb.h cleanup: include/: move misc/rb.h to sys/rb.h 2019-06-27 22:55:49 -04:00
ring_buffer.h ring_buffer: Fix return types 2019-08-05 13:26:28 +02:00
sem.h sys_sem: add build time definition macros 2019-08-22 07:38:56 -05:00
sflist.h cleanup: include/: move misc/sflist.h to sys/sflist.h 2019-06-27 22:55:49 -04:00
slist.h cleanup: include/: move misc/slist.h to sys/slist.h 2019-06-27 22:55:49 -04:00
speculation.h cleanup: include/: move misc/speculation.h to sys/speculation.h 2019-06-27 22:55:49 -04:00
sys_io.h include: rearrange for standard use of extern "C" in various headers 2019-08-13 18:00:31 +02:00
timeutil.h sys: timeutil: add module 2019-07-17 14:04:44 +02:00
util.h Revert "sys/util.h: helper macro to perform pointer difference" 2019-07-17 03:44:03 -04:00