fix for netbsd ioctl numbers
fix for netbsd ioctl numbers ctest
doc update