Lines Matching defs:efds
103 struct program_client_extra_fd *efds;
109 efds = array_get_modifiable(&pclient->extra_fds, &count);
111 i_stream_unref(&efds[i].input);
112 io_remove(&efds[i].io);
113 if (efds[i].parent_fd != -1 && close(efds[i].parent_fd) < 0)
114 i_error("close(fd=%d) failed: %m", efds[i].parent_fd);
184 struct program_client_extra_fd *efds = NULL;
194 efds = array_get_modifiable(&pclient->extra_fds, &count);
196 if (efds[i].input != NULL &&
197 !efds[i].input->closed &&
198 i_stream_have_bytes_left(efds[i].input)) {
489 struct program_client_extra_fd *efds;
497 efds = array_get_modifiable(&pclient->extra_fds, &count);
499 if (efds[i].child_fd == fd) {
500 efd = &efds[i];
547 struct program_client_extra_fd *efds = NULL;
550 efds = array_get_modifiable(&pclient->extra_fds, &count);
552 i_assert(efds[i].parent_fd >= 0);
553 efds[i].input = i_stream_create_fd
554 (efds[i].parent_fd, (size_t)-1);
555 i_stream_set_name(efds[i].input,
557 efds[i].child_fd));
558 efds[i].io = io_add(efds[i].parent_fd, IO_READ,
560 &efds[i]);