Lines Matching refs:rd
980 struct { int rd; int wr; } fromCgi; /* CGI -> httpd pipe */
981 struct { int rd; int wr; } toCgi; /* httpd -> CGI pipe */
1073 xpipe(&fromCgi.rd);
1074 xpipe(&toCgi.rd);
1086 xmove_fd(toCgi.rd, 0); /* replace stdin with the pipe */
1088 close(fromCgi.rd);
1143 close(toCgi.rd);
1163 FD_SET(fromCgi.rd, &readSet);
1166 nfound = toCgi.wr > fromCgi.rd ? toCgi.wr : fromCgi.rd;
1176 nfound = select(fromCgi.rd + 1, &readSet, NULL, NULL, NULL);
1185 close(fromCgi.rd);
1227 if (FD_ISSET(fromCgi.rd, &readSet)) {
1245 count = safe_read(fromCgi.rd, rbuf + buf_count, PIPESIZE - 8);
1285 count = safe_read(fromCgi.rd, rbuf, PIPESIZE);
1293 } /* if (FD_ISSET(fromCgi.rd)) */
1383 /* byte count (3rd arg) is rounded down to 64k */