Searched refs:fd_out (Results 1 - 25 of 38) sorted by relevance

12

/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)
40 dup2(fd_out[1], 1) < 0 ||
41 dup2(fd_out[1], 2) < 0)
61 while ((ret = read(fd_out[0], buf, sizeof(buf))) > 0) {
/dovecot/src/lib/
H A Dfile-copy.c20 int fd_in, fd_out; local
58 fd_out = open(tmppath, O_WRONLY | O_CREAT | O_TRUNC, st.st_mode);
60 if (fd_out == -1) {
67 if (fchown(fd_out, (uid_t)-1, st.st_gid) < 0 && errno != EPERM)
71 output = o_stream_create_fd_file(fd_out, 0, FALSE);
97 if (close(fd_out) < 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 Dconnection.c166 conn->output = o_stream_create_unix(conn->fd_out,
169 conn->output = o_stream_create_fd(conn->fd_out,
220 conn->fd_out = -1;
234 int fd_in, int fd_out)
243 conn->fd_out = fd_out;
256 conn->fd_in = conn->fd_out = -1;
282 conn->fd_in = conn->fd_out = -1;
298 conn->fd_out = o_stream_get_fd(output);
301 i_assert(conn->fd_out >
232 connection_init_server(struct connection_list *list, struct connection *conn, const char *name, int fd_in, int fd_out) argument
[all...]
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)
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,
/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,
57 net_set_nonblock(fd_out, TRUE);
61 client->fd_out = fd_out;
92 client->output = o_stream_create_fd(fd_out, (size_t)-1);
154 data = (client->fd_in == client->fd_out ? '0' : '1');
156 if (ret > 0 && client->fd_in != client->fd_out) {
158 ret = fd_send(client->fd_ctrl, 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
149 client->fd_out = -1;
167 int fd_in, int fd_out, bool debug)
173 net_set_nonblock(fd_out, TRUE);
178 client->fd_out = fd_out;
197 client->output = o_stream_create_fd(fd_out, (size_t)-1);
251 fd_close_maybe_stdio(&client->fd_in, &client->fd_out);
766 client->fd_out = client->fd_in;
768 if (ret > 0 && client->fd_out
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/lib-program-client/
H A Dprogram-client-local.c151 int fd_in[2] = { -1, -1 }, fd_out[2] = {-1, -1}; local
164 if (pipe(fd_out) < 0) {
204 if (fd_out[0] >= 0 && close(fd_out[0]) < 0) {
207 if (fd_out[1] >= 0 && close(fd_out[1]) < 0) {
227 if (fd_out[0] >= 0 && close(fd_out[0]) < 0)
243 fd_in[0], fd_out[1], child_extra_fds,
251 if (fd_out[
282 int fd_out = pclient->fd_out; local
[all...]
H A Dprogram-client-remote.c320 pclient->fd_out = fd;
337 i_close_fd(&pclient->fd_out);
338 pclient->fd_in = pclient->fd_out = -1;
348 if ((errno = net_geterror(pclient->fd_out)) != 0) {
352 i_close_fd(&pclient->fd_out);
353 pclient->fd_in = pclient->fd_out = -1;
356 pclient->io = io_add(pclient->fd_out, IO_WRITE,
398 pclient->fd_out = fd;
527 int fd_out = pclient->fd_out, fd_i local
[all...]
H A Dprogram-client-private.h42 int fd_in, fd_out; member in struct:program_client
H A Dprogram-client.c133 if (pclient->fd_out != -1 && pclient->fd_out != pclient->fd_in
134 && close(pclient->fd_out) < 0)
136 pclient->fd_in = pclient->fd_out = -1;
443 pclient->fd_out = -1;
530 if (pclient->fd_out >= 0) {
532 o_stream_create_fd(pclient->fd_out,
/dovecot/src/auth/
H A Ddb-checkpassword.c34 int fd_out, fd_in; member in struct:chkpw_auth_request
70 i_close_fd(&request->fd_out);
353 ret = write(request->fd_out, data + request->output_pos,
374 if (close(request->fd_out) < 0)
376 request->fd_out = -1;
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
474 if (pipe(fd_in) < 0 || pipe(fd_out) < 0) {
492 i_close_fd(&fd_out[
380 checkpassword_exec(struct db_checkpassword *db, struct auth_request *request, int fd_in, int fd_out, bool authenticate) argument
[all...]
/dovecot/src/lmtp/
H A Dclient.h49 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
143 fd_out = file_dotlock_open_group(&dotlock_set, path, 0,
147 if (fd_out == -1 && errno == ENOENT) {
158 fd_out = file_dotlock_open_group(&dotlock_set, path, 0,
164 if (fd_out == -1) {
188 output = o_stream_create_fd_file(fd_out, 0, FALSE);
238 if (fsync(fd_out) < 0) {
/dovecot/src/lib-compression/
H A Dtest-compression.c235 int fd_in, fd_out; local
252 fd_out = open(out_path, O_TRUNC | O_CREAT | O_RDWR, 0600);
253 if (fd_out == -1)
257 file_output = o_stream_create_fd_file(fd_out, 0, FALSE);
276 file_input = i_stream_create_fd(fd_out, IO_BLOCK_SIZE);
288 i_close_fd(&fd_out);
/dovecot/src/submission/
H A Dmain.c94 send_error(int fd_out, const char *hostname, const char *error_code, argument
102 if (write(fd_out, msg, strlen(msg)) < 0) {
110 int fd_in, int fd_out, const buffer_t *input_buf,
122 send_error(fd_out, my_hostname,
134 send_error(fd_out, set->hostname,
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.h48 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/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)
165 dup2(fd_out[1], STDOUT_FILENO) < 0 ||
171 i_close_fd(&fd_out[0]);
172 i_close_fd(&fd_out[1]);
183 i_close_fd(&fd_out[1]);
185 ctx->fd_in = fd_out[0];
186 ctx->fd_out = fd_in[1];
192 if (write_full(ctx->fd_out, prefi
[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,
/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,
865 if (fd_in != fd_out)
866 net_set_nonblock(fd_out, TRUE);
867 (void)net_set_tcp_nodelay(fd_out, TRUE);
871 if (net_set_send_buffer_size(fd_out,
924 int fd_in, int fd_out,
933 set, fd_in, fd_out, remote_ip, remote_port,
937 &conn->conn, name, fd_in, fd_out);
960 int fd_in, fd_out; local
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
[all...]

Completed in 39 milliseconds

12