opnsense-src/sys/compat
Bjoern A. Zeeb 111619ff70 LinuxKPI: add bcd.h
Add bcd2bin() in bcd.h.

Libkern does provide a bcd2bin() which cannot be used cirectly leaving
us with a conflict (see comment in file).
Rather than having code to re-define bcd2bin() for the LinuxKPI
make sure libkern.h is always included before the LinuxKPI version.
Then only re-define our local LinuxKPI implementation.  [1]
From the argument truncating wrapper call the libkern version.
If we change our libkern implementation in the future we can save
us the remainder of the hassle. [2].

Suggested by:	Johannes Berg (johannes sipsolutions.net) [1]
Suggested by:	ian [2]
Sponsored by:	The FreeBSD Foundation

(cherry picked from commit 548ada00e5)
(cherry picked from commit ae2268efd5)
2021-11-21 18:15:58 +00:00
..
cloudabi cloudabi and linux ABIs: do not call umtx_thread_cleanup() from thr_exit syscall 2021-07-22 01:11:52 +03:00
cloudabi32 regen syscall files after 0bd5d81f1e 2021-05-19 20:32:47 -04:00
cloudabi64 regen syscall files after 0bd5d81f1e 2021-05-19 20:32:47 -04:00
freebsd32 freebsd32: Fix a double copyin in sendmsg() and recvmsg() 2021-09-26 11:55:05 -04:00
ia32 Do not call FreeBSD-ABI specific code for all ABIs 2021-07-22 01:11:52 +03:00
lindebugfs Add emulation support for the Linux kcov(4) ioctl API. 2020-09-04 00:12:28 +00:00
linprocfs linprocfs: find cwd and root handling 2021-10-11 09:13:29 +00:00
linsysfs Add emulation support for the Linux kcov(4) ioctl API. 2020-09-04 00:12:28 +00:00
linux cloudabi and linux ABIs: do not call umtx_thread_cleanup() from thr_exit syscall 2021-07-22 01:11:52 +03:00
linuxkpi/common LinuxKPI: add bcd.h 2021-11-21 18:15:58 +00:00
ndis compat: clean up empty lines in .c and .h files 2020-09-01 21:24:33 +00:00
x86bios Mark more nodes as CTLFLAG_MPSAFE or CTLFLAG_NEEDGIANT (17 of many) 2020-02-26 14:26:36 +00:00