Searched refs:output (Results 1 - 25 of 353) sorted by relevance

1234567891011>>

/dovecot/src/lib/
H A Dtest-iostream-temp.c13 struct ostream *output; local
16 output = iostream_temp_create_sized(".intentional-nonexistent-error/", 0, "test", 4);
17 test_assert(o_stream_send(output, "123", 3) == 3);
18 test_assert(output->offset == 3);
19 test_assert(o_stream_send(output, "4", 1) == 1);
20 test_assert(output->offset == 4);
21 test_assert(o_stream_get_fd(output) == -1);
25 test_assert(o_stream_send(output, "5", 1) == 1);
28 test_assert(o_stream_get_fd(output) == -1);
29 o_stream_destroy(&output);
35 struct ostream *output; local
53 struct ostream *output; local
79 struct ostream *output; local
[all...]
H A Dtest-ostream-failure-at.c14 struct ostream *output, *buf_output; local
23 output = o_stream_create_failure_at(buf_output, i, TEST_ERRMSG);
25 test_assert(o_stream_send(output, test_data, sizeof(test_data)) == (int)i);
26 test_assert_idx(o_stream_send(output, test_data, sizeof(test_data)) == -1 &&
27 output->offset == i &&
28 output->stream_errno == EIO &&
29 strcmp(o_stream_get_error(output), TEST_ERRMSG) == 0, i);
30 o_stream_destroy(&output);
35 output = o_stream_create_failure_at(buf_output, TEST_DATA_LENGTH, TEST_ERRMSG);
36 test_assert(o_stream_send(output, test_dat
[all...]
H A Dostream-failure-at.h5 o_stream_create_failure_at(struct ostream *output, uoff_t failure_offset,
8 o_stream_create_failure_at_flush(struct ostream *output, const char *error_string);
H A Diostream.h6 struct ostream *output);
H A Dtest-ostream-buffer.c15 struct ostream *output; local
23 output = o_stream_create_buffer(buffer);
24 o_stream_cork(output);
29 test_assert(o_stream_send(output, buf, size) > 0);
36 test_assert(o_stream_pwrite(output, randbuf, size, offset) == 0);
38 test_assert(o_stream_flush(output) > 0);
41 o_stream_uncork(output);
42 test_assert(o_stream_finish(output) > 0);
47 o_stream_unref(&output);
64 struct ostream *output; local
[all...]
H A Dostream-rawlog.h7 o_stream_create_rawlog(struct ostream *output, const char *rawlog_path,
10 o_stream_create_rawlog_from_stream(struct ostream *output,
H A Diostream-rawlog.h13 struct ostream **output);
17 struct ostream **output);
18 /* Create rawlog path, writing both input and output to the same file. */
21 struct ostream **output);
23 Both input and output are written to the same stream. */
26 struct ostream **output);
H A Dostream-hash.h9 o_stream_create_hash(struct ostream *output, const struct hash_method *method,
H A Dostream-null.c23 struct ostream *output; local
29 output = o_stream_create(stream, NULL, -1);
30 o_stream_set_no_error_handling(output, TRUE);
31 o_stream_set_name(output, "(/dev/null)");
32 return output;
H A Dtest-time-util.c12 int output; member in struct:__anon70
17 .output = 0,
21 .output = 0,
25 .output = -1,
29 .output = -1,
33 .output = -1,
37 .output = -1,
41 .output = -1,
49 int output = tests[i].output; local
62 int output; member in struct:__anon71
186 int output = tests[i].output; local
203 static int output[] = { local
[all...]
H A Dtest-ostream-file.c18 struct ostream *output; local
30 output = o_stream_create_fd(fd, MAX_BUFSIZE);
31 o_stream_cork(output);
36 test_assert(o_stream_send(output, buf, size) > 0);
43 test_assert(o_stream_pwrite(output, randbuf, size, offset) == 0);
45 test_assert(o_stream_flush(output) > 0);
48 o_stream_uncork(output);
49 test_assert(o_stream_finish(output) > 0);
57 o_stream_unref(&output);
75 struct ostream *output; local
141 struct ostream *output; local
[all...]
H A Dostream-unix.h8 bool o_stream_unix_write_fd(struct ostream *output, int fd);
/dovecot/src/lib-compression/
H A Dostream-zlib.h4 struct ostream *o_stream_create_gz(struct ostream *output, int level);
5 struct ostream *o_stream_create_deflate(struct ostream *output, int level);
6 struct ostream *o_stream_create_bz2(struct ostream *output, int level);
7 struct ostream *o_stream_create_lzma(struct ostream *output, int level);
8 struct ostream *o_stream_create_lz4(struct ostream *output, int level);
/dovecot/src/lib-mail/
H A Dmessage-header-encode.h4 /* Encode UTF-8 input into output wherever necessary using either Q or B
8 void message_header_encode(const char *input, string_t *output);
10 string_t *output);
12 /* Encode the whole UTF-8 input using "Q" or "B" encoding into output.
13 The output is split into multiple lines if necessary (max 76 chars/line).
17 string_t *output, unsigned int first_line_len);
19 string_t *output, unsigned int first_line_len);
H A Dostream-dot.h4 /* Create output stream for writing SMTP DATA style message: Add additional "."
7 relied on since it could fail due to output buffer being full.)
9 If output ends with CRLF, force_extra_crlf controls whether additional CRLF
12 struct ostream *o_stream_create_dot(struct ostream *output,
H A Dtest-message-id.c15 const char *output[] = { local
28 if (output[j] == NULL)
30 test_assert(strcmp(output[j], next_msgid) == 0);
33 test_assert(output[j++] == NULL && next_msgid == NULL);
35 test_assert(j == N_ELEMENTS(output));
H A Dtest-mbox-from.c36 static struct test_mbox_from_parse_output output[] = { local
66 success = (ret < 0 && output[i].ret < 0) ||
67 (ret == output[i].ret && t == output[i].time &&
68 tz == output[i].tz_offset &&
69 strcmp(sender, output[i].sender) == 0);
74 if (output[i].ret == 0) {
75 output[i].time += output[i].tz_offset*60;
76 tm = localtime(&output[
[all...]
H A Dtest-ostream-dot.c13 const char *output; member in struct:dot_test
19 struct ostream *output, *test_output; local
29 output = o_stream_create_dot(test_output, FALSE);
33 ret = o_stream_send(output, data, size);
42 test_assert(o_stream_finish(output) > 0);
43 test_assert(output->offset == strlen(test->input));
44 test_assert(test_output->offset == strlen(test->output));
45 o_stream_unref(&output);
48 test_assert(strcmp(str_c(output_data), test->output) == 0);
H A Dtest-rfc2231-parser.c19 const char *output[] = { local
37 for (i = 0; output[i] != NULL && result[i] != NULL; i++)
38 test_assert(strcmp(output[i], result[i]) == 0);
39 test_assert(output[i] == NULL && result[i] == NULL);
/dovecot/src/plugins/mail-filter/
H A Dostream-ext-filter.h5 o_stream_create_ext_filter(struct ostream *output, const char *socket_path,
/dovecot/src/lib-fs/
H A Dostream-metawrap.h5 o_stream_create_metawrap(struct ostream *output,
H A Dostream-cmp.h4 /* Compare given input stream to output being written to output stream. */
6 o_stream_create_cmp(struct ostream *output, struct istream *input);
7 /* Returns TRUE if input and output are equal so far. If the caller needs to
10 bool o_stream_cmp_equals(struct ostream *output);
/dovecot/src/imap/
H A Dmail-storage-callbacks.c13 if (o_stream_get_buffer_used_size(client->output) != 0)
20 o_stream_nsend_str(client->output, str);
21 (void)o_stream_flush(client->output);
30 if (o_stream_get_buffer_used_size(client->output) != 0)
37 o_stream_nsend_str(client->output, str);
38 (void)o_stream_flush(client->output);
/dovecot/src/lib-dcrypt/
H A Dostream-encrypt.h16 o_stream_create_encrypt(struct ostream *output,
28 o_stream_create_sym_encrypt(struct ostream *output,
/dovecot/src/auth/
H A Dcrypt-blowfish.h22 extern int crypt_output_magic(const char *setting, char *output, size_t size);
24 char *output, size_t size);
27 const char *input, size_t size, char *output, size_t output_size);

Completed in 53 milliseconds

1234567891011>>