1
0
mirror of https://git.FreeBSD.org/src.git synced 2024-12-02 08:42:48 +00:00
Mirror of the FreeBSD src repository https://git.FreeBSD.org/src.git .
Go to file
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
.github
cmd Add missing includes to zed_log.c 2017-04-12 08:57:25 -07:00
config
contrib
etc
include OpenZFS 6865 - want zfs-tests cases for zpool labelclear command 2017-04-11 09:54:39 -07:00
lib Fix header inclusions for standards conformance 2017-04-12 08:58:09 -07:00
man OpenZFS 2932 - support crash dumps to raidz, etc. pools 2017-04-10 10:24:17 -07:00
module Skip rate limiting events in zfs_ereport_post 2017-04-11 18:37:45 -07:00
rpm
scripts
tests Fix header inclusions for standards conformance 2017-04-12 08:58:09 -07:00
udev
.gitignore
.gitmodules
AUTHORS
autogen.sh
configure.ac OpenZFS 6865 - want zfs-tests cases for zpool labelclear command 2017-04-11 09:54:39 -07:00
copy-builtin
COPYRIGHT
DISCLAIMER
Makefile.am
META
OPENSOLARIS.LICENSE
README.markdown
TEST
zfs-script-config.sh.in
zfs.release.in

ZFS is an advanced file system and volume manager which was originally developed for Solaris and is now maintained by the Illumos community.

ZFS on Linux, which is also known as ZoL, is currently feature complete. It includes fully functional and stable SPA, DMU, ZVOL, and ZPL layers. And it's native!

Official Resources

Installation

Full documentation for installing ZoL on your favorite Linux distribution can be found at our site.

Contribute & Develop

We have a separate document with contribution guidelines.