Port t_mmap.c to FreeBSD
authorngie <ngie@FreeBSD.org>
Thu, 23 Oct 2014 06:42:53 +0000 (06:42 +0000)
committerngie <ngie@FreeBSD.org>
Thu, 23 Oct 2014 06:42:53 +0000 (06:42 +0000)
commitafc0360866f8f6b208b8bd7d584b89d6a9c75f7a
treed6c8ddec573a975cd3f9fd2412889fadb00b19f3
parent0637f547965251e7ff45666d26f94da8e6d2f1c3
Port t_mmap.c to FreeBSD

- Add needed headers for the testcases
- Omit mmap_block on non-NetBSD OSes
- Use "security.bsd.map_at_zero" instead of "vm.user_va0_disable"

Submitted by: pho
Sponsored by: EMC / Isilon Storage Division
contrib/netbsd-tests/lib/libc/sys/t_mmap.c