fix fcntl(FD_DUP)
fix select timeout
add recvmsg, sendmsg
fix select on UDP sockets