Lines Matching refs:output_fd
94 int output_fd; member
116 static void socket_wr(int output_fd) { in socket_wr() argument
121 ret = write(output_fd, outbuf, outsiz); in socket_wr()
308 if (state->output_fd != -1 && outsiz) { in data_loop()
309 FD_SET(state->output_fd, &wfds); in data_loop()
310 if (state->output_fd > max_fd) in data_loop()
311 max_fd = state->output_fd; in data_loop()
327 socket_wr(state->output_fd); in data_loop()
328 close(state->output_fd); in data_loop()
329 state->output_fd = -1; in data_loop()
352 if (state->input_fd == state->output_fd) in data_loop()
353 state->output_fd = -1; in data_loop()
362 if (FD_ISSET(state->output_fd, &wfds)) in data_loop()
363 socket_wr(state->output_fd); in data_loop()
372 socket_wr(state->output_fd); in data_loop()
397 .output_fd = -1 }; in main()
445 state.output_fd = 1; in main()
480 state.output_fd = 1; in main()
482 state.input_fd = state.output_fd = connect_socket(socket_path); in main()
497 state.input_fd = state.output_fd = accept(socket_fd, in main()
505 set_nonblocking(state.output_fd, 1); in main()
523 if (state.output_fd >= 0) in main()
524 close(state.output_fd); in main()