Home
last modified time | relevance | path

Searched refs:wantfd (Results 1 – 1 of 1) sorted by relevance

/bionic/libc/stdio/
Dstdio.cpp285 int isopen, wantfd; in freopen() local
289 wantfd = -1; in freopen()
296 if ((wantfd = fp->_file) < 0 && isopen) { in freopen()
318 if (isopen && fd != wantfd) (*fp->_close)(fp->_cookie); in freopen()
341 if (wantfd >= 0 && fd != wantfd) { in freopen()
342 if (dup3(fd, wantfd, oflags & O_CLOEXEC) >= 0) { in freopen()
344 fd = wantfd; in freopen()