mirror_zfs/lib/libspl/include/sys
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
..
dktp
acl_impl.h
acl.h
bitmap.h
byteorder.h codebase style improvements for OpenZFS 6459 port 2017-01-22 13:25:40 -08:00
callb.h
cmn_err.h
compress.h
cred.h
debug.h
dkio.h Fix spelling 2017-01-03 11:31:18 -06:00
dklabel.h Fix spelling 2017-01-03 11:31:18 -06:00
errno.h Fix header inclusions for standards conformance 2017-04-12 08:58:09 -07:00
feature_tests.h
file.h Illumos Crypto Port module added to enable native encryption in zfs 2016-07-20 10:43:30 -07:00
frame.h
int_limits.h
int_types.h
inttypes.h
isa_defs.h libspl: Fix incorrect use of platform defines on sparc64 2017-03-22 17:55:00 -07:00
kmem.h
kstat.h
list_impl.h
list.h
Makefile.am Fix header inclusions for standards conformance 2017-04-12 08:58:09 -07:00
mhd.h
mkdev.h
mnttab.h Change /etc/mtab to /proc/self/mounts 2016-09-20 10:07:58 -07:00
mount.h
note.h
param.h ABD optimized page allocation code 2016-11-29 14:34:33 -08:00
policy.h
poll.h Fix header inclusions for standards conformance 2017-04-12 08:58:09 -07:00
priv.h
processor.h
signal.h Fix header inclusions for standards conformance 2017-04-12 08:58:09 -07:00
stack.h
stat.h
stropts.h
sunddi.h
sysmacros.h glibc 2.5 compat: use correct header for makedev() et al. 2017-03-31 09:32:00 -07:00
systeminfo.h
systm.h
time.h OpenZFS 6672 - arc_reclaim_thread() should use gethrtime() 2016-05-06 09:35:52 -07:00
types32.h
types.h glibc 2.5 compat: use correct header for makedev() et al. 2017-03-31 09:32:00 -07:00
tzfile.h
uio.h
va_list.h
varargs.h
vnode.h
vtoc.h
zone.h