During a test of the memory sanitizer I found that ioctl(FIONREAD, ..) caused an unjustified error abort.
Inspection of the sanitizer source code revealed that a lot of functions that are intercepted in NetBSD are not on FreeBSD.
This patch adds 4 FIO* definitions that are missing for FreeBSD.
I have not performed an exhaustive search for further missing ioctl() intercepts, but I'd expect there to be many ...
This change should be up-streamed to LLVM.