Fake poll() and ppoll()