Lines Matching refs:pfd
101 static int pfd; /* printer file descriptor */
281 (void)close(pfd); /* close printer */
713 fo = pfd;
894 int save_pfd = pfd;
897 pfd = open(tempremote, O_WRONLY|O_CREAT|O_TRUNC|O_EXCL, 0664);
898 if (pfd == -1) {
899 pfd = save_pfd;
911 pfd = save_pfd;
929 if (write(pfd, buf, amt) != amt ||
959 if (write(pfd, buf, amt) != amt) {
973 (void)write(pfd, "\1", 1);
976 if (write(pfd, "", 1) != 1 || response())
998 if (read(pfd, &resp, 1) != 1) {
1334 dup2(pfd, 1); /* printer is std out */
1350 ofd = pfd;
1356 * Close the output filter and reset ofd back to the main pfd descriptor
1366 ofd = pfd;
1410 pfd = getport(LP);
1411 if (pfd < 0 && errno == ECONNREFUSED)
1413 else if (pfd >= 0) {
1442 pfd = open(LP, RW ? O_RDWR : O_WRONLY);
1443 if (pfd >= 0) {
1456 if (isatty(pfd))
1472 pfd = getport(RM);
1473 if (pfd >= 0) {
1475 if (write(pfd, line, n) == n &&
1478 (void) close(pfd);
1535 i.fd = pfd;