Searched refs:file (Results 1 - 25 of 89) sorted by relevance

1234

/dovecot/src/lib-storage/index/dbox-common/
H A Ddbox-file.c1 /* Copyright (c) 2007-2018 Dovecot authors, see the included COPYING file */
11 #include "file-lock.h"
12 #include "file-dotlock.h"
17 #include "dbox-file.h"
44 void dbox_file_set_syscall_error(struct dbox_file *file, const char *function) argument
46 mail_storage_set_critical(&file->storage->storage,
47 "%s failed for file %s: %m",
48 function, file->cur_path);
51 void dbox_file_set_corrupted(struct dbox_file *file, const char *reason, ...) argument
56 mail_storage_set_critical(&file
65 dbox_file_init(struct dbox_file *file) argument
73 dbox_file_free(struct dbox_file *file) argument
86 struct dbox_file *file = *_file; local
95 dbox_file_parse_header(struct dbox_file *file, const char *line) argument
144 dbox_file_read_header(struct dbox_file *file) argument
171 dbox_file_open_fd(struct dbox_file *file, bool try_altpath) argument
203 dbox_file_open_full(struct dbox_file *file, bool try_altpath, bool *notfound_r) argument
233 dbox_file_open(struct dbox_file *file, bool *deleted_r) argument
238 dbox_file_open_primary(struct dbox_file *file, bool *notfound_r) argument
243 dbox_file_stat(struct dbox_file *file, struct stat *st_r) argument
279 dbox_file_header_write(struct dbox_file *file, struct ostream *output) argument
295 dbox_file_close(struct dbox_file *file) argument
311 dbox_file_try_lock(struct dbox_file *file) argument
335 dbox_file_unlock(struct dbox_file *file) argument
350 dbox_file_read_mail_header(struct dbox_file *file, uoff_t *physical_size_r) argument
387 dbox_file_seek(struct dbox_file *file, uoff_t offset) argument
410 dbox_file_seek_next_at_metadata(struct dbox_file *file, uoff_t *offset) argument
434 dbox_file_seek_rewind(struct dbox_file *file) argument
439 dbox_file_seek_next(struct dbox_file *file, uoff_t *offset_r, bool *last_r) argument
472 dbox_file_append_init(struct dbox_file *file) argument
517 struct dbox_file *file = ctx->file; local
589 struct dbox_file *file = ctx->file; local
639 dbox_file_metadata_skip_header(struct dbox_file *file) argument
671 dbox_file_metadata_read_at(struct dbox_file *file, uoff_t metadata_offset) argument
708 dbox_file_metadata_read(struct dbox_file *file) argument
728 dbox_file_metadata_get(struct dbox_file *file, enum dbox_metadata_key key) argument
742 dbox_file_get_plaintext_size(struct dbox_file *file) argument
773 dbox_file_unlink(struct dbox_file *file) argument
[all...]
H A Ddbox-attachment.c1 /* Copyright (c) 2010-2018 Dovecot authors, see the included COPYING file */
6 #include "dbox-file.h"
25 dbox_attachment_file_get_stream_from(struct dbox_file *file, argument
33 if (file->storage->attachment_dir == NULL) {
34 mail_storage_set_critical(&file->storage->storage,
36 "but mail_attachment_dir is unset", file->cur_path);
40 msg_size = dbox_file_get_plaintext_size(file);
41 path_suffix = file->storage->v.get_attachment_path_suffix(file);
42 if (index_attachment_stream_get(file
50 dbox_attachment_file_get_stream(struct dbox_file *file, struct istream **stream) argument
[all...]
H A Ddbox-file.h4 /* The file begins with a header followed by zero or more messages:
23 same file from multiple mail_storages within same process. that's why we
43 dbox-file-fix.c:dbox_file_match_post_magic() to recognize them */
128 struct dbox_file *file; member in struct:dbox_file_append_context
134 #define dbox_file_is_open(file) ((file)->fd != -1)
135 #define dbox_file_is_in_alt(file) ((file)->cur_path == (file)->alt_path)
137 void dbox_file_init(struct dbox_file *file);
[all...]
/dovecot/src/lib-index/
H A Dmail-transaction-log-file.c1 /* Copyright (c) 2003-2018 Dovecot authors, see the included COPYING file */
6 #include "file-dotlock.h"
16 #define MEMORY_LOG_NAME "(in-memory transaction log file)"
20 mail_transaction_log_file_sync(struct mail_transaction_log_file *file,
24 log_file_set_syscall_error(struct mail_transaction_log_file *file, argument
27 mail_index_file_set_syscall_error(file->log->index,
28 file->filepath, function);
32 mail_transaction_log_mark_corrupted(struct mail_transaction_log_file *file) argument
38 if (MAIL_TRANSACTION_LOG_FILE_IN_MEMORY(file) ||
39 file
64 mail_transaction_log_file_set_corrupted(struct mail_transaction_log_file *file, const char *fmt, ...) argument
88 struct mail_transaction_log_file *file; local
99 struct mail_transaction_log_file *file = *_file; local
136 mail_transaction_log_file_skip_to_head(struct mail_transaction_log_file *file) argument
189 mail_transaction_log_file_add_to_list(struct mail_transaction_log_file *file) argument
223 struct mail_transaction_log_file *file; local
289 struct mail_transaction_log_file *file; local
305 mail_transaction_log_file_dotlock(struct mail_transaction_log_file *file) argument
337 mail_transaction_log_file_undotlock(struct mail_transaction_log_file *file) argument
359 mail_transaction_log_file_lock(struct mail_transaction_log_file *file) argument
407 mail_transaction_log_file_unlock(struct mail_transaction_log_file *file, const char *lock_reason) argument
436 mail_transaction_log_file_read_header(struct mail_transaction_log_file *file) argument
479 mail_transaction_log_file_fail_dupe(struct mail_transaction_log_file *file) argument
505 mail_transaction_log_file_read_hdr(struct mail_transaction_log_file *file, bool ignore_estale) argument
607 mail_transaction_log_file_stat(struct mail_transaction_log_file *file, bool ignore_estale) argument
626 mail_transaction_log_file_is_dupe(struct mail_transaction_log_file *file) argument
680 mail_transaction_log_file_create2(struct mail_transaction_log_file *file, int new_fd, bool reset, struct dotlock **dotlock) argument
841 mail_transaction_log_file_create(struct mail_transaction_log_file *file, bool reset) argument
892 mail_transaction_log_file_open(struct mail_transaction_log_file *file, const char **reason_r) argument
967 log_file_track_mailbox_sync_offset_hdr(struct mail_transaction_log_file *file, const void *data, unsigned int trans_size, const char **error_r) argument
1098 modseq_cache_hit(struct mail_transaction_log_file *file, unsigned int idx) argument
1113 modseq_cache_get_offset(struct mail_transaction_log_file *file, uoff_t offset) argument
1140 modseq_cache_get_modseq(struct mail_transaction_log_file *file, uint64_t modseq) argument
1167 log_get_synced_record(struct mail_transaction_log_file *file, uoff_t *offset, const struct mail_transaction_header **hdr_r, const char **error_r) argument
1194 mail_transaction_log_file_get_highest_modseq_at( struct mail_transaction_log_file *file, uoff_t offset, uint64_t *highest_modseq_r, const char **error_r) argument
1258 get_modseq_next_offset_at(struct mail_transaction_log_file *file, uint64_t modseq, bool use_highest, uoff_t *cur_offset, uint64_t *cur_modseq, uoff_t *next_offset_r) argument
1300 mail_transaction_log_file_get_modseq_next_offset( struct mail_transaction_log_file *file, uint64_t modseq, uoff_t *next_offset_r) argument
1371 log_file_track_sync(struct mail_transaction_log_file *file, const struct mail_transaction_header *hdr, unsigned int trans_size, const char **error_r) argument
1431 mail_transaction_log_file_sync(struct mail_transaction_log_file *file, bool *retry_r, const char **reason_r) argument
1536 mail_transaction_log_file_insert_read(struct mail_transaction_log_file *file, uoff_t offset, const char **reason_r) argument
1574 mail_transaction_log_file_read_more(struct mail_transaction_log_file *file, const char **reason_r) argument
1609 mail_transaction_log_file_need_nfs_flush(struct mail_transaction_log_file *file) argument
1630 mail_transaction_log_file_read(struct mail_transaction_log_file *file, uoff_t start_offset, bool nfs_flush, const char **reason_r) argument
1680 log_file_map_check_offsets(struct mail_transaction_log_file *file, uoff_t start_offset, uoff_t end_offset, const char **reason_r) argument
1730 mail_transaction_log_file_mmap(struct mail_transaction_log_file *file, const char **reason_r) argument
1766 mail_transaction_log_file_munmap(struct mail_transaction_log_file *file) argument
1780 mail_transaction_log_file_map_mmap(struct mail_transaction_log_file *file, uoff_t start_offset, const char **reason_r) argument
1834 mail_transaction_log_file_map(struct mail_transaction_log_file *file, uoff_t start_offset, uoff_t end_offset, const char **reason_r) argument
1913 mail_transaction_log_file_move_to_memory(struct mail_transaction_log_file *file) argument
[all...]
H A Dmail-transaction-log-append.c1 /* Copyright (c) 2003-2018 Dovecot authors, see the included COPYING file */
42 struct mail_transaction_log_file *file = ctx->log->head; local
46 if (ftruncate(file->fd, file->sync_offset) < 0) {
48 file->filepath,
54 i_assert(MAIL_TRANSACTION_LOG_FILE_IN_MEMORY(file));
56 i_assert(file->buffer_offset + file->buffer->used == file->sync_offset);
57 buffer_append_buf(file
64 struct mail_transaction_log_file *file = ctx->log->head; local
119 struct mail_transaction_log_file *file = ctx->log->head; local
178 struct mail_transaction_log_file *file = ctx->log->head; local
[all...]
/dovecot/src/plugins/acl/
H A Dacl-global-file.h9 void acl_global_file_deinit(struct acl_global_file **file);
12 int acl_global_file_refresh(struct acl_global_file *file);
14 void acl_global_file_last_stat(struct acl_global_file *file, struct stat *st_r);
16 /* Return global ACL rights matching the mailbox name. The file must already
18 void acl_global_file_get(struct acl_global_file *file, const char *vname,
21 bool acl_global_file_have_any(struct acl_global_file *file, const char *vname);
H A Dacl-global-file.c1 /* Copyright (c) 2014-2018 Dovecot authors, see the included COPYING file */
10 #include "acl-global-file.h"
40 struct acl_global_file *file; local
42 file = i_new(struct acl_global_file, 1);
43 file->path = i_strdup(path);
44 file->refresh_interval_secs = refresh_interval_secs;
45 file->debug = debug;
46 i_array_init(&file->rights, 32);
47 file->rights_pool = pool_alloconly_create("acl global file right
53 struct acl_global_file *file = *_file; local
70 struct acl_global_file *file; member in struct:acl_global_file_parse_ctx
115 acl_global_file_read(struct acl_global_file *file) argument
183 acl_global_file_refresh(struct acl_global_file *file) argument
208 acl_global_file_last_stat(struct acl_global_file *file, struct stat *st_r) argument
213 acl_global_file_get(struct acl_global_file *file, const char *vname, pool_t pool, ARRAY_TYPE(acl_rights) *rights_r) argument
234 acl_global_file_have_any(struct acl_global_file *file, const char *vname) argument
[all...]
/dovecot/src/lib-fs/
H A Dfs-sis.c1 /* Copyright (c) 2010-2018 Dovecot authors, see the included COPYING file */
18 struct fs_file file; member in struct:sis_fs_file
82 struct sis_fs_file *file = i_new(struct sis_fs_file, 1); local
83 return &file->file;
90 struct sis_fs_file *file = (struct sis_fs_file *)_file; local
94 file->file.path = i_strdup(path);
95 file->fs = fs;
96 file
127 struct sis_fs_file *file = (struct sis_fs_file *)_file; local
139 struct sis_fs_file *file = (struct sis_fs_file *)_file; local
146 fs_sis_try_link(struct sis_fs_file *file) argument
183 fs_sis_replace_hash_file(struct sis_fs_file *file) argument
250 struct sis_fs_file *file = (struct sis_fs_file *)_file; local
273 struct sis_fs_file *file = (struct sis_fs_file *)_file; local
296 struct sis_fs_file *file = (struct sis_fs_file *)_file; local
[all...]
H A Dfs-metawrap.c1 /* Copyright (c) 2013-2018 Dovecot authors, see the included COPYING file */
22 struct fs_file file; member in struct:metawrap_fs_file
90 /* we don't have a quick stat() to see the file's size,
101 struct metawrap_fs_file *file = i_new(struct metawrap_fs_file, 1); local
102 return &file->file;
109 struct metawrap_fs_file *file = (struct metawrap_fs_file *)_file; local
112 file->file.path = i_strdup(path);
113 file
134 struct metawrap_fs_file *file = (struct metawrap_fs_file *)_file; local
146 struct metawrap_fs_file *file = (struct metawrap_fs_file *)_file; local
159 struct metawrap_fs_file *file = (struct metawrap_fs_file *)_file; local
173 struct metawrap_fs_file *file = (struct metawrap_fs_file *)_file; local
208 struct metawrap_fs_file *file = (struct metawrap_fs_file *)_file; local
218 struct metawrap_fs_file *file = (struct metawrap_fs_file *)_file; local
228 struct metawrap_fs_file *file = context; local
245 struct metawrap_fs_file *file = (struct metawrap_fs_file *)_file; local
266 struct metawrap_fs_file *file = (struct metawrap_fs_file *)_file; local
274 fs_metawrap_append_metadata(struct metawrap_fs_file *file, string_t *str) argument
292 fs_metawrap_write_metadata_to(struct metawrap_fs_file *file, struct ostream *output) argument
311 struct metawrap_fs_file *file = context; local
318 struct metawrap_fs_file *file = (struct metawrap_fs_file *)_file; local
336 fs_metawrap_create_updated_istream(struct metawrap_fs_file *file, struct istream *input) argument
362 struct metawrap_fs_file *file = (struct metawrap_fs_file *)_file; local
428 struct metawrap_fs_file *file = (struct metawrap_fs_file *)_file; local
[all...]
H A Dfs-wrapper.h5 void fs_wrapper_file_close(struct fs_file *file);
6 const char *fs_wrapper_file_get_path(struct fs_file *file);
7 void fs_wrapper_set_async_callback(struct fs_file *file,
11 void fs_wrapper_set_metadata(struct fs_file *file, const char *key,
13 int fs_wrapper_get_metadata(struct fs_file *file,
15 bool fs_wrapper_prefetch(struct fs_file *file, uoff_t length);
16 ssize_t fs_wrapper_read(struct fs_file *file, void *buf, size_t size);
18 fs_wrapper_read_stream(struct fs_file *file, size_t max_buffer_size);
19 int fs_wrapper_write(struct fs_file *file, const void *data, size_t size);
20 void fs_wrapper_write_stream(struct fs_file *file);
[all...]
H A Dfs-wrapper.c1 /* Copyright (c) 2016-2018 Dovecot authors, see the included COPYING file */
17 void fs_wrapper_file_close(struct fs_file *file) argument
19 fs_file_close(file->parent);
22 const char *fs_wrapper_file_get_path(struct fs_file *file) argument
24 return fs_file_path(file->parent);
27 void fs_wrapper_set_async_callback(struct fs_file *file, argument
31 fs_file_set_async_callback(file->parent, callback, context);
39 void fs_wrapper_set_metadata(struct fs_file *file, const char *key, argument
42 fs_set_metadata(file->parent, key, value);
45 int fs_wrapper_get_metadata(struct fs_file *file, argument
51 fs_wrapper_prefetch(struct fs_file *file, uoff_t length) argument
56 fs_wrapper_read(struct fs_file *file, void *buf, size_t size) argument
62 fs_wrapper_read_stream(struct fs_file *file, size_t max_buffer_size) argument
67 fs_wrapper_write(struct fs_file *file, const void *data, size_t size) argument
72 fs_wrapper_write_stream(struct fs_file *file) argument
79 fs_wrapper_write_stream_finish(struct fs_file *file, bool success) argument
91 fs_wrapper_lock(struct fs_file *file, unsigned int secs, struct fs_lock **lock_r) argument
102 fs_wrapper_exists(struct fs_file *file) argument
107 fs_wrapper_stat(struct fs_file *file, struct stat *st_r) argument
112 fs_wrapper_get_nlinks(struct fs_file *file, nlink_t *nlinks_r) argument
130 fs_wrapper_delete(struct fs_file *file) argument
[all...]
H A Dfs-dict.c1 /* Copyright (c) 2015-2018 Dovecot authors, see the included COPYING file */
28 struct fs_file file; member in struct:dict_fs_file
98 struct dict_fs_file *file; local
101 pool = pool_alloconly_create("fs dict file", 128);
102 file = p_new(pool, struct dict_fs_file, 1);
103 file->pool = pool;
104 return &file->file;
111 struct dict_fs_file *file = (struct dict_fs_file *)_file; local
119 file
132 struct dict_fs_file *file = (struct dict_fs_file *)_file; local
146 fs_dict_lookup(struct dict_fs_file *file) argument
172 struct dict_fs_file *file = (struct dict_fs_file *)_file; local
185 struct dict_fs_file *file = (struct dict_fs_file *)_file; local
194 fs_dict_write_rename_if_needed(struct dict_fs_file *file) argument
210 struct dict_fs_file *file = (struct dict_fs_file *)_file; local
251 struct dict_fs_file *file = (struct dict_fs_file *)_file; local
263 struct dict_fs_file *file = (struct dict_fs_file *)_file; local
[all...]
H A Dfs-api.c1 /* Copyright (c) 2010-2018 Dovecot authors, see the included COPYING file */
257 struct fs_file *file; local
264 file = fs->v.file_alloc();
265 file->fs = fs;
266 file->flags = mode_flags & ~FS_OPEN_MODE_MASK;
267 file->event = fs_create_event(fs, event);
268 fs->v.file_init(file, path, mode_flags & FS_OPEN_MODE_MASK,
273 DLLIST_PREPEND(&fs->files, file);
275 fs_set_metadata(file, FS_METADATA_ORIG_PATH, path);
276 return file;
281 struct fs_file *file = *_file; local
302 fs_file_close(struct fs_file *file) argument
333 fs_metadata_init(struct fs_file *file) argument
342 fs_metadata_init_or_clear(struct fs_file *file) argument
374 fs_default_set_metadata(struct fs_file *file, const char *key, const char *value) argument
400 fs_set_metadata(struct fs_file *file, const char *key, const char *value) argument
416 fs_file_timing_start(struct fs_file *file, enum fs_op op) argument
443 fs_file_timing_end(struct fs_file *file, enum fs_op op) argument
453 fs_get_metadata(struct fs_file *file, const ARRAY_TYPE(fs_metadata) **metadata_r) argument
476 fs_lookup_metadata(struct fs_file *file, const char *key, const char **value_r) argument
487 fs_file_path(struct fs_file *file) argument
493 fs_file_fs(struct fs_file *file) argument
498 fs_file_event(struct fs_file *file) argument
526 fs_file_last_error(struct fs_file *file) argument
531 fs_prefetch(struct fs_file *file, uoff_t length) argument
547 fs_read_via_stream(struct fs_file *file, void *buf, size_t size) argument
575 fs_read(struct fs_file *file, void *buf, size_t size) argument
599 fs_file_istream_destroyed(struct fs_file *file) argument
606 fs_read_stream(struct fs_file *file, size_t max_buffer_size) argument
673 fs_write_via_stream(struct fs_file *file, const void *data, size_t size) argument
703 fs_write(struct fs_file *file, const void *data, size_t size) argument
725 fs_write_stream(struct fs_file *file) argument
740 fs_write_stream_finish_int(struct fs_file *file, bool success) argument
765 fs_write_stream_finish(struct fs_file *file, struct ostream **output) argument
788 fs_write_stream_finish_async(struct fs_file *file) argument
793 fs_write_stream_abort(struct fs_file *file, struct ostream **output) argument
808 fs_write_stream_abort_error(struct fs_file *file, struct ostream **output, const char *error_fmt, ...) argument
817 fs_write_stream_abort_parent(struct fs_file *file, struct ostream **output) argument
824 fs_write_set_hash(struct fs_file *file, const struct hash_method *method, const void *digest) argument
834 fs_file_set_async_callback(struct fs_file *file, fs_file_async_callback_t *callback, void *context) argument
871 fs_lock(struct fs_file *file, unsigned int secs, struct fs_lock **lock_r) argument
891 fs_exists(struct fs_file *file) argument
914 fs_stat(struct fs_file *file, struct stat *st_r) argument
937 fs_get_nlinks(struct fs_file *file, nlink_t *nlinks_r) argument
1073 fs_delete(struct fs_file *file) argument
[all...]
H A Distream-fs-file.h6 /* Open the given file only when something is actually tried to be read from
7 the stream. The file is automatically deinitialized when the stream is
11 i_stream_create_fs_file(struct fs_file **file, size_t max_buffer_size);
H A Distream-fs-stats.h7 i_stream_create_fs_stats(struct istream *input, struct fs_file *file);
H A Dfs-posix.c1 /* Copyright (c) 2010-2018 Dovecot authors, see the included COPYING file */
12 #include "file-lock.h"
13 #include "file-dotlock.h"
43 struct fs_file file; member in struct:posix_fs_file
240 static int fs_posix_create(struct posix_fs_file *file) argument
242 struct posix_fs *fs = (struct posix_fs *)file->file.fs;
249 i_assert(file->temp_path == NULL);
251 if ((slash = strrchr(file->full_path, '/')) != NULL) {
252 str_append_n(str, file
278 fs_posix_open(struct posix_fs_file *file) argument
311 struct posix_fs_file *file = i_new(struct posix_fs_file, 1); local
319 struct posix_fs_file *file = (struct posix_fs_file *)_file; local
339 struct posix_fs_file *file = (struct posix_fs_file *)_file; local
352 struct posix_fs_file *file = (struct posix_fs_file *)_file; local
379 fs_posix_open_for_read(struct posix_fs_file *file) argument
393 struct posix_fs_file *file = (struct posix_fs_file *)_file; local
410 struct posix_fs_file *file = (struct posix_fs_file *)_file; local
435 struct posix_fs_file *file = (struct posix_fs_file *)_file; local
448 fs_posix_write_rename_if_needed(struct posix_fs_file *file) argument
470 fs_posix_write_finish(struct posix_fs_file *file) argument
523 struct posix_fs_file *file = (struct posix_fs_file *)_file; local
559 struct posix_fs_file *file = (struct posix_fs_file *)_file; local
579 struct posix_fs_file *file = (struct posix_fs_file *)_file; local
607 struct posix_fs_file *file = (struct posix_fs_file *)_file; local
676 struct posix_fs_file *file = (struct posix_fs_file *)_file; local
692 struct posix_fs_file *file = (struct posix_fs_file *)_file; local
766 struct posix_fs_file *file = (struct posix_fs_file *)_file; local
[all...]
/dovecot/src/lib-storage/index/dbox-multi/
H A Dmdbox-file.c1 /* Copyright (c) 2007-2018 Dovecot authors, see the included COPYING file */
11 #include "file-lock.h"
12 #include "file-set-size.h"
20 #include "mdbox-file.h"
48 dbox_file_free(&files[i]->file);
59 if (files[i]->file.input != NULL)
60 i_stream_sync(files[i]->file.input);
72 if (files[i]->file.refcount == 0) {
73 dbox_file_free(&files[i]->file);
87 mdbox_file_init_paths(struct mdbox_file *file, cons argument
102 mdbox_file_create(struct mdbox_file *file) argument
140 struct mdbox_file *file; local
187 mdbox_file_assign_file_id(struct mdbox_file *file, uint32_t file_id) argument
268 mdbox_file_unrefed(struct dbox_file *file) argument
300 mdbox_file_create_fd(struct dbox_file *file, const char *path, bool parents) argument
[all...]
H A Dmdbox-file.h4 #include "dbox-file.h"
7 struct dbox_file file; member in struct:mdbox_file
19 /* Assign file ID for a newly created file. */
20 int mdbox_file_assign_file_id(struct mdbox_file *file, uint32_t file_id);
22 void mdbox_file_unrefed(struct dbox_file *file);
23 int mdbox_file_create_fd(struct dbox_file *file, const char *path,
/dovecot/src/plugins/fs-compress/
H A Dfs-compress.c1 /* Copyright (c) 2015-2018 Dovecot authors, see the included COPYING file */
21 struct fs_file file; member in struct:compress_fs_file
111 struct compress_fs_file *file = i_new(struct compress_fs_file, 1); local
112 return &file->file;
120 struct compress_fs_file *file = (struct compress_fs_file *)_file; local
122 file->file.path = i_strdup(path);
123 file->fs = fs;
124 file
143 struct compress_fs_file *file = (struct compress_fs_file *)_file; local
154 struct compress_fs_file *file = (struct compress_fs_file *)_file; local
164 fs_compress_try_create_stream(struct compress_fs_file *file, struct istream *plain_input) argument
189 struct compress_fs_file *file = (struct compress_fs_file *)_file; local
208 struct compress_fs_file *file = (struct compress_fs_file *)_file; local
227 struct compress_fs_file *file = (struct compress_fs_file *)_file; local
[all...]
/dovecot/src/lib-storage/index/dbox-single/
H A Dsdbox-file.c1 /* Copyright (c) 2007-2018 Dovecot authors, see the included COPYING file */
13 #include "sdbox-file.h"
18 static void sdbox_file_init_paths(struct sdbox_file *file, const char *fname) argument
20 struct mailbox *box = &file->mbox->box;
23 i_free(file->file.primary_path);
24 i_free(file->file.alt_path);
25 file->file
36 struct sdbox_file *file; local
57 struct dbox_file *file; local
65 sdbox_file_free(struct dbox_file *file) argument
73 sdbox_file_get_attachments(struct dbox_file *file, const char **extrefs_r) argument
106 sdbox_file_attachment_relpath(struct sdbox_file *file, const char *srcpath) argument
123 sdbox_file_rename_attachments(struct sdbox_file *file) argument
149 sdbox_file_assign_uid(struct sdbox_file *file, uint32_t uid, bool ignore_if_exists) argument
188 sdbox_file_unlink_aborted_save_attachments(struct sdbox_file *file) argument
226 sdbox_file_unlink_aborted_save(struct sdbox_file *file) argument
242 sdbox_file_create_fd(struct dbox_file *file, const char *path, bool parents) argument
290 sdbox_file_move(struct dbox_file *file, bool alt_path) argument
[all...]
H A Dsdbox-file.h4 #include "dbox-file.h"
7 struct dbox_file file; member in struct:sdbox_file
10 /* 0 while file is being created */
21 void sdbox_file_free(struct dbox_file *file);
23 /* Get file's extrefs metadata. */
24 int sdbox_file_get_attachments(struct dbox_file *file, const char **extrefs_r);
25 /* Returns attachment path for this file, given the source path. The result is
29 sdbox_file_attachment_relpath(struct sdbox_file *file, const char *srcpath);
31 /* Assign UID for a newly created file (by renaming it) */
32 int sdbox_file_assign_uid(struct sdbox_file *file, uint32_
[all...]
/dovecot/src/plugins/mail-crypt/
H A Dfs-crypt-common.c1 /* Copyright (c) 2015-2018 Dovecot authors, see the included COPYING file */
30 struct fs_file file; member in struct:crypt_fs_file
40 /* defined outside this file */
137 struct crypt_fs_file *file = i_new(struct crypt_fs_file, 1); local
138 return &file->file;
146 struct crypt_fs_file *file = (struct crypt_fs_file *)_file; local
148 file->file.path = i_strdup(path);
149 file
169 struct crypt_fs_file *file = (struct crypt_fs_file *)_file; local
180 struct crypt_fs_file *file = (struct crypt_fs_file *)_file; local
252 struct crypt_fs_file *file = context; local
264 struct crypt_fs_file *file = (struct crypt_fs_file *)_file; local
284 struct crypt_fs_file *file = (struct crypt_fs_file *)_file; local
324 struct crypt_fs_file *file = (struct crypt_fs_file *)_file; local
[all...]
/dovecot/src/lib/
H A Dexecv-const.h7 void execvp_const(const char *file, const char *const argv[]) ATTR_NORETURN;
/dovecot/src/lib-storage/
H A Dmail-duplicate.c1 /* Copyright (c) 2005-2018 Dovecot authors, see the included COPYING file */
8 #include "file-dotlock.h"
52 struct mail_duplicate_file *file; member in struct:mail_duplicate_db
88 mail_duplicate_read_records(struct mail_duplicate_file *file, argument
120 i_error("broken mail_duplicate file %s", file->path);
126 i_error("unexpected end of file in %s", file->path);
135 new_id = p_malloc(file->pool, hdr.id_size);
138 d = p_new(file
157 mail_duplicate_read(struct mail_duplicate_file *file) argument
200 struct mail_duplicate_file *file; local
228 struct mail_duplicate_file *file = *_file; local
288 struct mail_duplicate_file *file = db->file; local
[all...]
H A Dmailbox-watch.c1 /* Copyright (c) 2002-2018 Dovecot authors, see the included COPYING file */
30 struct mailbox_notify_file *file; local
34 for (file = box->notify_files; file != NULL; file = file->next) {
35 if (stat(file->path, &st) == 0 &&
36 ST_CHANGED(file->last_st, st)) {
37 file->last_st = st;
60 struct mailbox_notify_file *file; local
89 struct mailbox_notify_file *file; local
112 struct mailbox_notify_file *file; local
[all...]

Completed in 3219 milliseconds

1234