Lines Matching refs:tempfd
776 int tempfd, bytes, pipefd[2], status; in nroff() local
789 if ((tempfd = mkstemp(tempname)) == -1) in nroff()
793 if (write(tempfd, buffer, (size_t)bytes) != bytes) { in nroff()
799 (void)close(tempfd); in nroff()
803 if (lseek(tempfd, (off_t)0, SEEK_SET) == (off_t)-1) { in nroff()
804 (void)close(tempfd); in nroff()
809 (void)close(tempfd); in nroff()
818 (void)close(tempfd); in nroff()
824 if (tempfd != STDIN_FILENO) { in nroff()
825 (void)dup2(tempfd, STDIN_FILENO); in nroff()
826 (void)close(tempfd); in nroff()
841 (void)close(tempfd); in nroff()