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/cddl/contrib/*/arc.c: Fix missing includes

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>
cddl/compat/opensolaris/sys/sig.h: Convert mtx_ to lwkt_ locking

Signed-off-by: Edward O'Callaghan <eocallaghan@alterapraxis.com>
sys/cddl/compat/opensolaris/kern: Rename 'printf' to 'kprintf'

Signed-off-by: Edward O'Callaghan <eocallaghan@alterapraxis.com>
sys/cddl/compat/opensolaris/kern: Rename malloc/free to kmalloc/kfree

Signed-off-by: Edward O'Callaghan <eocallaghan@alterapraxis.com>
sys/cddl/contrib/*/zfs_vnops.c: No need for vm_page_{lock,unlock}

In DragonflyBSD there is no need for vm_page_{lock,unlock}() calls.

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>
include/rpc/xdr.h: Partial sync with FreeBSD

Signed-off-by: Edward O'Callaghan <eocallaghan@alterapraxis.com>
cddl/contrib/*/thread.h: Internalise thread_t as it conflicts

Signed-off-by: Edward O'Callaghan <eocallaghan@alterapraxis.com>
sys/cddl/compat/*/vnode.h: Implement rename/remove syscalls

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>
stub zones
stub sys/file.h

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

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

Signed-off-by: Edward O'Callaghan <eocallaghan@alterapraxis.com>
sys/sig.h stub for the moment

Signed-off-by: Edward O'Callaghan <eocallaghan@alterapraxis.com>
sys/vnode.h stub for the moment

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

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