getmaxfd
maxfd = getmaxfd(td);
static int getmaxfd(struct thread *td);
td->td_retval[0] = getmaxfd(td);