bf132be3fe1c9e8de84f10d0b05c0b46ca542ac4Timo Sirainenstruct istream *i_stream_create_unix(int fd, size_t max_buffer_size);
bf132be3fe1c9e8de84f10d0b05c0b46ca542ac4Timo Sirainen/* Start trying to read a file descriptor from the UNIX socket. */
bf132be3fe1c9e8de84f10d0b05c0b46ca542ac4Timo Sirainenvoid i_stream_unix_set_read_fd(struct istream *input);
bf132be3fe1c9e8de84f10d0b05c0b46ca542ac4Timo Sirainen/* Stop trying to read a file descriptor from the UNIX socket. */
bf132be3fe1c9e8de84f10d0b05c0b46ca542ac4Timo Sirainenvoid i_stream_unix_unset_read_fd(struct istream *input);
bf132be3fe1c9e8de84f10d0b05c0b46ca542ac4Timo Sirainen/* Returns the fd that the last i_stream_read() received, or -1 if no fd
bf132be3fe1c9e8de84f10d0b05c0b46ca542ac4Timo Sirainen was received. This function must be called before
bf132be3fe1c9e8de84f10d0b05c0b46ca542ac4Timo Sirainen i_stream_unix_set_read_fd() is called again after successfully receiving
bf132be3fe1c9e8de84f10d0b05c0b46ca542ac4Timo Sirainen a file descriptor. */