Searched refs:isopen (Results 1 – 1 of 1) sorted by relevance
333 int isopen, wantfd; in freopen() local336 isopen = 0; in freopen()343 isopen = (fp->_close != nullptr); in freopen()344 if ((wantfd = fp->_file) < 0 && isopen) { in freopen()346 isopen = 0; in freopen()352 if (fd < 0 && isopen) { in freopen()356 isopen = 0; in freopen()366 if (isopen && fd != wantfd) (*fp->_close)(fp->_cookie); in freopen()