check_fd
else if ((fd = check_fd(s, W_OK, &emsg)) < 0) {
else if ((fd = check_fd(cp, R_OK, &emsg)) < 0) {
} else if ((u = check_fd(cp,
int check_fd(char *, int, const char **);