Searched refs:isopen (Results 1 – 1 of 1) sorted by relevance
325 int isopen, wantfd; in freopen() local328 isopen = 0; in freopen()335 isopen = (fp->_close != nullptr); in freopen()336 if ((wantfd = fp->_file) < 0 && isopen) { in freopen()338 isopen = 0; in freopen()344 if (fd < 0 && isopen) { in freopen()348 isopen = 0; in freopen()358 if (isopen && fd != wantfd) (*fp->_close)(fp->_cookie); in freopen()