Searched refs:wantfd (Results 1 – 1 of 1) sorted by relevance
323 int isopen, wantfd; in freopen() local327 wantfd = -1; in freopen()334 if ((wantfd = fp->_file) < 0 && isopen) { in freopen()356 if (isopen && fd != wantfd) (*fp->_close)(fp->_cookie); in freopen()379 if (wantfd >= 0 && fd != wantfd) { in freopen()380 if (dup3(fd, wantfd, mode_flags & O_CLOEXEC) >= 0) { in freopen()382 fd = wantfd; in freopen()