Lines Matching refs:read_pipe
38 int parent_process(char *qname, int read_pipe, int write_pipe, int child_pid);
39 int child_process(char *qname, int read_pipe, int write_pipe);
41 int send_receive(int read_pipe, int write_pipe, char send, char *reply);
95 int parent_process(char *qname, int read_pipe, int write_pipe, int child_pid)
118 rval = send_receive(read_pipe, write_pipe, 'a', &reply);
141 rval = send_receive(read_pipe, write_pipe, 'c', &reply);
158 int child_process(char *qname, int read_pipe, int write_pipe)
166 rval = send_receive(read_pipe, write_pipe, 0, &reply);
192 rval = send_receive(read_pipe, write_pipe, 'b', &reply);
209 send_receive(read_pipe, write_pipe, rval ? 'e':'d', NULL);
225 int send_receive(int read_pipe, int write_pipe, char send, char *reply) {
237 bytes = read(read_pipe, reply, 1);