function match_fds

[edit]
static int match_fds(fd_set *dst, fd_set *src, int max)