This simplifies handling of select syscall.
It may be moved into a separate project at some point, who knows...