Searched refs:wantfd (Results 1 – 1 of 1) sorted by relevance
325 int isopen, wantfd; in freopen() local329 wantfd = -1; in freopen()336 if ((wantfd = fp->_file) < 0 && isopen) { in freopen()358 if (isopen && fd != wantfd) (*fp->_close)(fp->_cookie); in freopen()381 if (wantfd >= 0 && fd != wantfd) { in freopen()382 if (dup3(fd, wantfd, mode_flags & O_CLOEXEC) >= 0) { in freopen()384 fd = wantfd; in freopen()