Searched defs:fd_in (Results 1 - 25 of 29) sorted by relevance

12

/dovecot/src/lib/
H A Dfile-copy.c20 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 Dfd-util.c115 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 Dconnection.c138 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 Dconnection.h82 int fd_in, fd_out; member in struct:connection
120 int fd_in, int fd_out);
/dovecot/src/util/
H A Dgdbhelper.c15 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 Dimap-urlauth-client.h16 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 Dimap-urlauth.c107 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 Dimap-urlauth-client.c49 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 Dimap-urlauth-worker.c51 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 Dhttp-server.h50 int fd_in, fd_out; member in struct:http_server_tunnel
305 int fd_in, int fd_out, bool ssl,
H A Dhttp-client.h184 int fd_in, fd_out; member in struct:http_client_tunnel
H A Dhttp-server-connection.c213 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 Dtest-compression.c235 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 Dprogram-client-local.c151 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 Dprogram-client-private.h42 int fd_in, fd_out; member in struct:program_client
H A Dprogram-client-remote.c318 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 Dsubscription-file.c127 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 Dclient.c125 struct client *client_create(int fd_in, int fd_out, argument
162 (lmtp_server, fd_in, fd_out,
/dovecot/src/pop3/
H A Dmain.c100 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 Dpop3-client.h39 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 Dpop3-client.c378 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 Ddb-checkpassword.c34 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 Dmain.c110 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 Dsubmission-client.c180 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 Dmain.c236 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

Completed in 31 milliseconds

12