/dovecot/src/lib/ |
H A D | file-copy.c | 20 int fd_in, fd_out; local 43 fd_in = open(srcpath, O_RDONLY); 44 if (fd_in == -1) { 51 if (fstat(fd_in, &st) < 0) { 53 i_close_fd(&fd_in); 62 i_close_fd(&fd_in); 70 input = i_stream_create_fd(fd_in, IO_BLOCK_SIZE); 93 if (close(fd_in) < 0) {
|
H A D | fd-util.c | 115 void fd_close_maybe_stdio(int *fd_in, int *fd_out) argument 117 int *fdp[2] = { fd_in, fd_out }; 119 if (*fd_in == *fd_out) 120 *fd_in = -1;
|
H A D | connection.c | 138 conn->io = io_add_to(conn->ioloop, conn->fd_in, IO_READ, 156 conn->input = i_stream_create_unix(conn->fd_in, 159 conn->input = i_stream_create_fd(conn->fd_in, 219 conn->fd_in = -1; 234 int fd_in, int fd_out) 242 conn->fd_in = fd_in; 256 conn->fd_in = conn->fd_out = -1; 282 conn->fd_in = conn->fd_out = -1; 297 conn->fd_in 232 connection_init_server(struct connection_list *list, struct connection *conn, const char *name, int fd_in, int fd_out) argument [all...] |
H A D | connection.h | 82 int fd_in, fd_out; member in struct:connection 120 int fd_in, int fd_out);
|
/dovecot/src/util/ |
H A D | gdbhelper.c | 15 int fd_in[2], fd_out[2], fd_log, status; local 28 if (pipe(fd_in) < 0 || pipe(fd_out) < 0) 36 if (write(fd_in[1], cmd, strlen(cmd)) < 0) 39 if (dup2(fd_in[0], 0) < 0 ||
|
/dovecot/src/imap-urlauth/ |
H A D | imap-urlauth-client.h | 16 int fd_in, fd_out, fd_ctrl; member in struct:client 37 int fd_in, int fd_out, const struct imap_urlauth_settings *set,
|
H A D | imap-urlauth.c | 107 int fd_in, int fd_out) 111 if (client_create(service, username, fd_in, fd_out, 106 client_create_from_input(const char *service, const char *username, int fd_in, int fd_out) argument
|
H A D | imap-urlauth-client.c | 49 int fd_in, int fd_out, const struct imap_urlauth_settings *set, 56 net_set_nonblock(fd_in, TRUE); 60 client->fd_in = fd_in; 154 data = (client->fd_in == client->fd_out ? '0' : '1'); 155 ret = fd_send(client->fd_ctrl, client->fd_in, &data, sizeof(data)); 156 if (ret > 0 && client->fd_in != client->fd_out) { 341 fd_close_maybe_stdio(&client->fd_in, &client->fd_out); 48 client_create(const char *service, const char *username, int fd_in, int fd_out, const struct imap_urlauth_settings *set, struct client **client_r) argument
|
H A D | imap-urlauth-worker.c | 51 int fd_in, fd_out, fd_ctrl; member in struct:client 148 client->fd_in = -1; 167 int fd_in, int fd_out, bool debug) 172 net_set_nonblock(fd_in, TRUE); 177 client->fd_in = fd_in; 196 client->input = i_stream_create_fd(fd_in, MAX_INBUF_SIZE); 198 client->io = io_add(fd_in, IO_READ, client_input, client); 251 fd_close_maybe_stdio(&client->fd_in, &client->fd_out); 674 client->io = io_add(client->fd_in, IO_REA 165 client_create_standalone(const char *access_user, const char *const *access_applications, int fd_in, int fd_out, bool debug) argument [all...] |
/dovecot/src/lib-http/ |
H A D | http-server.h | 50 int fd_in, fd_out; member in struct:http_server_tunnel 305 int fd_in, int fd_out, bool ssl,
|
H A D | http-client.h | 184 int fd_in, fd_out; member in struct:http_client_tunnel
|
H A D | http-server-connection.c | 213 net_set_nonblock(conn->conn.fd_in, TRUE); 1037 int fd_in, int fd_out, bool ssl, 1057 net_set_nonblock(fd_in, TRUE); 1058 if (fd_in != fd_out) 1069 if (net_set_recv_buffer_size(fd_in, 1076 if (fd_in != fd_out || net_getpeername(fd_in, &addr, &port) < 0) { 1082 if (net_getunixcred(fd_in, &cred) < 0) { 1098 (server->conn_list, &conn->conn, name, fd_in, fd_out); 1221 tunnel.fd_in 1036 http_server_connection_create(struct http_server *server, int fd_in, int fd_out, bool ssl, const struct http_server_callbacks *callbacks, void *context) argument [all...] |
/dovecot/src/lib-compression/ |
H A D | test-compression.c | 235 int fd_in, fd_out; local 249 fd_in = open(in_path, O_RDONLY); 250 if (fd_in == -1) 259 input = i_stream_create_fd_autoclose(&fd_in, IO_BLOCK_SIZE);
|
/dovecot/src/lib-program-client/ |
H A D | program-client-local.c | 151 int fd_in[2] = { -1, -1 }, fd_out[2] = {-1, -1}; local 158 if (pipe(fd_in) < 0) { 198 if (fd_in[0] >= 0 && close(fd_in[0]) < 0) { 201 if (fd_in[1] >= 0 && close(fd_in[1]) < 0) { 225 if (fd_in[1] >= 0 && close(fd_in[1]) < 0) 243 fd_in[0], fd_out[1], child_extra_fds, 249 if (fd_in[ [all...] |
H A D | program-client-private.h | 42 int fd_in, fd_out; member in struct:program_client
|
H A D | program-client-remote.c | 318 pclient->fd_in = (prclient->noreply && pclient->output == NULL && 338 pclient->fd_in = pclient->fd_out = -1; 353 pclient->fd_in = pclient->fd_out = -1; 396 pclient->fd_in = (prclient->noreply && pclient->output == NULL && 527 int fd_out = pclient->fd_out, fd_in = pclient->fd_in; local 535 if (fd_in >= 0) {
|
/dovecot/src/lib-storage/list/ |
H A D | subscription-file.c | 127 int fd_in, fd_out; local 175 fd_in = nfs_safe_open(path, O_RDONLY); 176 if (fd_in == -1 && errno != ENOENT) { 181 if (fd_in != -1) { 182 input = i_stream_create_fd_autoclose(&fd_in, list->mailbox_name_max_length+1);
|
/dovecot/src/lmtp/ |
H A D | client.c | 125 struct client *client_create(int fd_in, int fd_out, argument 162 (lmtp_server, fd_in, fd_out,
|
/dovecot/src/pop3/ |
H A D | main.c | 100 int fd_in, int fd_out, struct client **client_r, 132 *client_r = client_create(fd_in, fd_out, input->session_id, 99 client_create_from_input(const struct mail_storage_service_input *input, int fd_in, int fd_out, struct client **client_r, const char **error_r) argument
|
H A D | pop3-client.h | 39 int fd_in, fd_out; member in struct:client 123 struct client *client_create(int fd_in, int fd_out, const char *session_id,
|
H A D | pop3-client.c | 378 struct client *client_create(int fd_in, int fd_out, const char *session_id, argument 387 net_set_nonblock(fd_in, TRUE); 397 client->fd_in = fd_in; 399 client->input = i_stream_create_fd(fd_in, MAX_INBUF_SIZE); 627 fd_close_maybe_stdio(&client->fd_in, &client->fd_out);
|
/dovecot/src/auth/ |
H A D | db-checkpassword.c | 34 int fd_out, fd_in; member in struct:chkpw_auth_request 69 i_close_fd(&request->fd_in); 202 if (!request->exited || request->fd_in != -1) 304 ret = read(request->fd_in, buf, sizeof(buf)); 381 int fd_in, int fd_out, bool authenticate) 387 if (dup2(fd_out, 3) < 0 || dup2(fd_in, 4) < 0) { 457 int fd_in[2], fd_out[2]; local 473 fd_in[0] = -1; 474 if (pipe(fd_in) < 0 || pipe(fd_out) < 0) { 477 if (fd_in[ 380 checkpassword_exec(struct db_checkpassword *db, struct auth_request *request, int fd_in, int fd_out, bool authenticate) argument [all...] |
/dovecot/src/submission/ |
H A D | main.c | 110 int fd_in, int fd_out, const buffer_t *input_buf, 169 (void)client_create(fd_in, fd_out, input->session_id, mail_user, 109 client_create_from_input(const struct mail_storage_service_input *input, int fd_in, int fd_out, const buffer_t *input_buf, const char **error_r) argument
|
H A D | submission-client.c | 180 struct client *client_create(int fd_in, int fd_out, argument 193 net_set_nonblock(fd_in, TRUE); 210 fd_in, fd_out, user->conn.remote_ip, user->conn.remote_port,
|
/dovecot/src/imap/ |
H A D | main.c | 236 int fd_in, int fd_out, 283 client = client_create(fd_in, fd_out, input->session_id, 235 client_create_from_input(const struct mail_storage_service_input *input, int fd_in, int fd_out, struct client **client_r, const char **error_r) argument
|