numam-dpdk/lib/librte_eal/freebsd
Dmitry Kozlyuk 45d62067c2 eal: make OS shims internal
DPDK code often relies on functions and macros that are not standard C,
but are found on all platforms, even if by slightly different names.
Windows <rte_os.h> provided macros or inline definitions for such symbols.
However, when placed in public header, these symbols were unnecessarily
exposed, breaking consumer POSIX compatibility code.

Move most of the shims to <rte_os_shim.h>, a header to be used instead
of <rte_os.h> by internal code. Include it in libraries and PMDs that
previously imported shims from <rte_os.h>. Directly replace shims that
were only used inside EAL:
* index -> strchr, rindex -> strrchr
* sleep -> rte_delay_us_sleep
* strerror_r -> strerror_s

Signed-off-by: Dmitry Kozlyuk <dmitry.kozliuk@gmail.com>
Acked-by: Thomas Monjalon <thomas@monjalon.net>
Acked-by: Ranjit Menon <ranjit.menon@intel.com>
2021-04-15 01:56:20 +02:00
..
include eal: make OS shims internal 2021-04-15 01:56:20 +02:00
eal_alarm_private.h eal: move OS-specific sub-directories 2020-03-31 13:08:55 +02:00
eal_alarm.c trace: add alarm tracepoints 2020-04-23 15:39:47 +02:00
eal_cpuflags.c eal: move OS-specific sub-directories 2020-03-31 13:08:55 +02:00
eal_debug.c eal: move OS common debug functions to single file 2020-06-24 11:02:29 +02:00
eal_dev.c eal: move OS-specific sub-directories 2020-03-31 13:08:55 +02:00
eal_hugepage_info.c eal: move OS common config objects 2020-06-30 00:02:53 +02:00
eal_interrupts.c eal: add synchronous interrupt unregister 2021-04-07 11:16:11 +02:00
eal_lcore.c eal: move OS-specific sub-directories 2020-03-31 13:08:55 +02:00
eal_memalloc.c mem: detach memsegs on cleanup 2021-03-03 10:05:23 +01:00
eal_memory.c remove config prefix used with make 2020-10-23 19:25:21 +02:00
eal_thread.c eal: rename lcore master and slave 2020-10-20 13:17:08 +02:00
eal_timer.c eal: move OS-specific sub-directories 2020-03-31 13:08:55 +02:00
eal.c eal: fix evaluation of log level option 2021-04-09 14:20:23 +02:00
meson.build eal: add telemetry as dependency 2020-05-11 00:37:16 +02:00