Lines Matching defs:ifd
45 int ifd, ofd;
82 if (io->ifd == io->ofd && io->ifd >= 0) {
96 io->input_event = io->output_event = io->mainloop->io_new(io->mainloop, io->ifd, f, callback, io);
102 if (io->ifd >= 0) {
107 io->input_event = io->mainloop->io_new(io->mainloop, io->ifd, PA_IO_EVENT_INPUT, callback, io);
162 pa_iochannel* pa_iochannel_new(pa_mainloop_api*m, int ifd, int ofd) {
166 pa_assert(ifd >= 0 || ofd >= 0);
169 io->ifd = ifd;
173 if (io->ifd >= 0)
174 pa_make_fd_nonblock(io->ifd);
176 if (io->ofd >= 0 && io->ofd != io->ifd)
189 if (io->ifd >= 0)
190 pa_close(io->ifd);
191 if (io->ofd >= 0 && io->ofd != io->ifd)
248 pa_assert(io->ifd >= 0);
250 if ((r = pa_read(io->ifd, data, l, &io->ifd_type)) >= 0) {
283 pa_assert(io->ifd >= 0);
284 pa_assert(io->ofd == io->ifd);
287 if (getsockname(io->ifd, &sa.sa, &l) < 0)
299 pa_assert(io->ifd >= 0);
302 if (setsockopt(io->ifd, SOL_SOCKET, SO_PASSCRED, &t, sizeof(t)) < 0) {
427 pa_assert(io->ifd >= 0);
445 if ((r = recvmsg(io->ifd, &mh, 0)) >= 0) {
516 pa_socket_peer_to_string(io->ifd, s, l);
522 return pa_socket_set_rcvbuf(io->ifd, l);
540 return io->ifd;
552 if (pa_socket_is_local(io->ifd))
555 if (io->ifd != io->ofd)