Lines Matching refs:fd
112 int fd;
130 fd = n->nfile.fd;
133 n->ndup.dupfd == fd)
136 if ((flags & REDIR_PUSH) && sv->renamed[fd] == EMPTY) {
139 if ((i = fcntl(fd, F_DUPFD, 10)) == -1) {
150 error("%d: %s", fd, strerror(errno));
155 sv->renamed[fd] = i;
156 close(fd);
160 close(fd);
162 if (fd == 0)
177 int fd = redir->nfile.fd;
188 memory[fd] = 0;
224 memory[fd] = 1;
226 copyfd(redir->ndup.dupfd, fd);
238 if (f != fd) {
239 copyfd(f, fd);
340 /* Return true if fd 0 has already been redirected at least once. */