freebsd-dev/lib/libspl
Richard Yao 120ff39a75 Fix header inclusions for standards conformance
musl's sys/errno.h is literally:

/#warning redirecting incorrect #include <sys/errno.h> to <errno.h>
/#include <errno.h>

It does the same for sys/{poll,signal}.h. This is rather noisy when
building ZoL against musl. musl is also correct in pointing out that the
correct headers are outside of sys/ according to the single unix
specification:

http://pubs.opengroup.org/onlinepubs/7908799/xsh/errno.h.html
http://pubs.opengroup.org/onlinepubs/7908799/xsh/poll.h.html
http://pubs.opengroup.org/onlinepubs/7908799/xsh/signal.h.html

Lets implement our own sys/* versions of these headers to redirect to
the proper userland ones when building in userspace. That will silence
the warning.

There are also some instances where we include incorrectly from sys/ or
from outside of sys/ in userspace only code. In these instances, lets
just fix the includes directly.

Reviewed-by: George Melikov <mail@gmelikov.ru>
Reviewed-by: loli10K <ezomori.nozomu@gmail.com>
Reviewed-by: Brian Behlendorf <behlendorf1@llnl.gov>
Reviewed-by: George Melikov <mail@gmelikov.ru>
Signed-off-by: Richard Yao <ryao@gentoo.org>
Closes #5993
2017-04-12 08:58:09 -07:00
..
asm-generic Use cstyle -cpP in make cstyle check 2016-12-12 10:46:26 -08:00
asm-i386 Fix atomic_sub_64() i386 assembly implementation 2017-02-01 09:36:47 -08:00
asm-x86_64 Support parallel build trees (VPATH builds) 2015-07-17 13:42:51 -07:00
include Fix header inclusions for standards conformance 2017-04-12 08:58:09 -07:00
getexecname.c Fix coverity defects: CID 150921, 150927 2016-10-14 09:40:08 -07:00
gethrestime.c cstyle: Resolve C style issues 2013-12-18 16:46:35 -08:00
gethrtime.c cstyle: Resolve C style issues 2013-12-18 16:46:35 -08:00
getmntany.c Use cstyle -cpP in make cstyle check 2016-12-12 10:46:26 -08:00
list.c Add linux libspl support 2010-08-31 13:41:59 -07:00
Makefile.am ABD optimized page allocation code 2016-11-29 14:34:33 -08:00
mkdirp.c Set errno for mkdirp() called with NULL path ptr 2014-04-09 13:32:22 -07:00
page.c ABD optimized page allocation code 2016-11-29 14:34:33 -08:00
strlcat.c Add linux libspl support 2010-08-31 13:41:59 -07:00
strlcpy.c Add linux libspl support 2010-08-31 13:41:59 -07:00
strnlen.c Add linux libspl support 2010-08-31 13:41:59 -07:00
timestamp.c Fix zpool iostat -T d 1 on musl 2017-04-12 08:57:46 -07:00
zone.c cstyle: Resolve C style issues 2013-12-18 16:46:35 -08:00