Framework implementations for dup2(2), socketpair(2), alarm(2) needed by OpenSSH's sshd