I have been attempting to use Valgrind in some code that uses pselect() and I am getting:
--4765-- WARNING: unhandled syscall: 522 --4765-- You may be able to write your own handler. --4765-- Read the file README_MISSING_SYSCALL_OR_IOCTL. --4765-- Nevertheless we consider this a bug. Please report --4765-- it at http://valgrind.org/support/bug_reports.html.
I have been attempting to create a patch by copying the linux support of pselect to create my own syswrap but I am having some difficulty. Following the instructions in the README referenced has no mention of how to do it for FreeBSD as compared to linux, so I have been guessing (incorrectly)