hook up ZFS Makefiles into Dfly Makefile system

Signed-off-by: Edward O'Callaghan <eocallaghan@alterapraxis.com>
cddl/*/Makefile: Deal with src.opts.mk

In DragonflyBSD we don't have 'src.opts.mk' for MK_FOO like FreeBSD
has. Trim that out of the Makefiles with tests and dtrace bits.

Signed-off-by: Edward O'Callaghan <eocallaghan@alterapraxis.com>
cddl/*/Makefile: Change MK_FOO -> NO_FOO

Signed-off-by: Edward O'Callaghan <eocallaghan@alterapraxis.com>
sys/cddl/compat/opensolaris: Dfly supports DIOCGPART for ioctl

Signed-off-by: Edward O'Callaghan <eocallaghan@alterapraxis.com>
sys/sys/sdt.h: Missing header in ZFS port

Probably can prune this latter.

Signed-off-by: Edward O'Callaghan <eocallaghan@alterapraxis.com>
cddl/lib/Makefile: libctf not yet

Don't build libctf just yet..

Signed-off-by: Edward O'Callaghan <eocallaghan@alterapraxis.com>
cddl/usr.bin/Makefile: Not yet - {ctfconvert, ctfdump, ctfmerge}

Signed-off-by: Edward O'Callaghan <eocallaghan@alterapraxis.com>
sys/crypto/sha2/sha256: Import FreeBSD in-kernel sha256 hash

Signed-off-by: Edward O'Callaghan <eocallaghan@alterapraxis.com>
sys/cddl: Splice out some capsicum from file.h API & fix a header

Signed-off-by: Edward O'Callaghan <eocallaghan@alterapraxis.com>
sys/cddl/compat: Fix opensolaris_vm.c locking

Signed-off-by: Edward O'Callaghan <eocallaghan@alterapraxis.com>
sys/cddl/compat: fix include in vnode.h

'sys/sys/syscallsubr.h' is called 'sys/kern_syscall.h' in Dfly.

Signed-off-by: Edward O'Callaghan <eocallaghan@alterapraxis.com>
sys/cddl/compat/opensolaris: Stub out (WIP)

Stub out function so we can continue to build..

Signed-off-by: Edward O'Callaghan <eocallaghan@alterapraxis.com>
sys/cddl/Makefile: Workaround complaints of userland inclusion

Workaround the following error message:

 error 'This file should not be included by userland programs'

Signed-off-by: Edward O'Callaghan <eocallaghan@alterapraxis.com>
cmd/zfs/zfs_main.c: fix jail.h include

Signed-off-by: Edward O'Callaghan <eocallaghan@alterapraxis.com>
sys/cpu/x86_64: Missing atomic_{add,subtract}_64 in atomic.h

Signed-off-by: Edward O'Callaghan <eocallaghan@alterapraxis.com>
sysmacros.h redefines howmany() that is already in param.h

This could be done better..

Signed-off-by: Edward O'Callaghan <eocallaghan@alterapraxis.com>
cddl/contrib/opensolaris: Various misc fixes

Signed-off-by: Edward O'Callaghan <eocallaghan@alterapraxis.com>