tests: manually wrap libc functions
The way we're wrapping libc functions via dlsym() is pretty fragile and breaks on FreeBSD.
Use a more manual way to wrap via a function pointer.
Edited by Simon Ser
Due to an influx of spam, we have had to impose restrictions on new accounts. Please see this wiki page for instructions on how to get full permissions. Sorry for the inconvenience.
The way we're wrapping libc functions via dlsym() is pretty fragile and breaks on FreeBSD.
Use a more manual way to wrap via a function pointer.