Searched refs:fd_in (Results 1 - 25 of 42) 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.h13 /* Close fd_in and fd_out, unless they're already -1. They can point to the
16 void fd_close_maybe_stdio(int *fd_in, int *fd_out);
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/imap/
H A Dimap-common.h36 int fd_in, int fd_out, struct client **client_r,
H A Dimap-client-hibernate.c57 if (fstat(client->fd_in, &peer_st) == 0) {
174 if (imap_hibernate_process_send_cmd(fd, path, cmd, client->fd_in) < 0 ||
199 if (client->fd_in != client->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-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...]
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
/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/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.c131 if (pclient->fd_in != -1 && close(pclient->fd_in) < 0)
133 if (pclient->fd_out != -1 && pclient->fd_out != pclient->fd_in
136 pclient->fd_in = pclient->fd_out = -1;
442 pclient->fd_in = -1;
537 if (pclient->fd_in >= 0) {
539 i_stream_create_fd(pclient->fd_in, (size_t)-1);
541 pclient->io = io_add(pclient->fd_in, IO_READ,
/dovecot/src/lmtp/
H A Dclient.h49 struct client *client_create(int fd_in, int fd_out,
/dovecot/src/pop3/
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,
/dovecot/src/submission/
H A Dsubmission-client.h48 struct client *client_create(int fd_in, int fd_out,
/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/doveadm/
H A Ddoveadm-dsync.c81 int fd_in, fd_out, fd_err; member in struct:dsync_cmd_context
150 int fd_in[2], fd_out[2], fd_err[2]; local
154 if (pipe(fd_in) < 0 || pipe(fd_out) < 0 || pipe(fd_err) < 0)
164 if (dup2(fd_in[0], STDIN_FILENO) < 0 ||
169 i_close_fd(&fd_in[0]);
170 i_close_fd(&fd_in[1]);
182 i_close_fd(&fd_in[0]);
185 ctx->fd_in = fd_out[0];
186 ctx->fd_out = fd_in[1];
507 fd_set_nonblock(ctx->fd_in, TRU
[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-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-smtp/
H A Dsmtp-server-connection.c765 const struct smtp_server_settings *set, int fd_in, int fd_out,
845 } else if (fd_in != fd_out || net_getpeername(fd_in,
854 if (net_getunixcred(fd_in, &cred) >= 0) {
864 net_set_nonblock(fd_in, TRUE);
865 if (fd_in != fd_out)
877 if (net_set_recv_buffer_size(fd_in,
924 int fd_in, int fd_out,
933 set, fd_in, fd_out, remote_ip, remote_port,
937 &conn->conn, name, fd_in, fd_ou
764 smtp_server_connection_alloc(struct smtp_server *server, const struct smtp_server_settings *set, int fd_in, int fd_out, const struct ip_addr *remote_ip, in_port_t remote_port, const struct smtp_server_callbacks *callbacks, void *context) argument
923 smtp_server_connection_create(struct smtp_server *server, int fd_in, int fd_out, const struct ip_addr *remote_ip, in_port_t remote_port, bool ssl_start, const struct smtp_server_settings *set, const struct smtp_server_callbacks *callbacks, void *context) argument
960 int fd_in, fd_out; local
[all...]

Completed in 31 milliseconds

12