/dovecot/src/lib/ |
H A D | unlink-old-files.h | 4 /* Unlink all files from directory beginning with given prefix and having 7 int unlink_old_files(const char *dir, const char *prefix, time_t min_time);
|
H A D | safe-mkstemp.c | 16 safe_mkstemp_full(string_t *prefix, mode_t mode, uid_t uid, gid_t gid, argument 25 prefix_len = str_len(prefix); 29 str_truncate(prefix, prefix_len); 30 str_append(prefix, 32 } while (lstat(str_c(prefix), &st) == 0); 35 i_error("stat(%s) failed: %m", str_c(prefix)); 36 str_truncate(prefix, prefix_len); 41 fd = open(str_c(prefix), O_RDWR | O_EXCL | O_CREAT, 0666); 48 i_error("open(%s) failed: %m", str_c(prefix)); 49 str_truncate(prefix, prefix_le 74 safe_mkstemp(string_t *prefix, mode_t mode, uid_t uid, gid_t gid) argument 79 safe_mkstemp_group(string_t *prefix, mode_t mode, gid_t gid, const char *gid_origin) argument 85 safe_mkstemp_hostpid(string_t *prefix, mode_t mode, uid_t uid, gid_t gid) argument 96 safe_mkstemp_hostpid_group(string_t *prefix, mode_t mode, gid_t gid, const char *gid_origin) argument [all...] |
H A D | safe-mkstemp.h | 4 /* Create a new file with a given prefix. The string is updated to contain the 7 int safe_mkstemp(string_t *prefix, mode_t mode, uid_t uid, gid_t gid); 8 int safe_mkstemp_group(string_t *prefix, mode_t mode, 10 /* Append host and PID to the prefix. */ 11 int safe_mkstemp_hostpid(string_t *prefix, mode_t mode, uid_t uid, gid_t gid); 12 int safe_mkstemp_hostpid_group(string_t *prefix, mode_t mode,
|
H A D | unlink-old-files.c | 15 unlink_old_files_real(const char *dir, const char *prefix, time_t min_time) argument 39 prefix_len = strlen(prefix); 47 if (strncmp(d->d_name, prefix, prefix_len) != 0) 65 int unlink_old_files(const char *dir, const char *prefix, time_t min_time) argument 70 ret = unlink_old_files_real(dir, prefix, min_time);
|
H A D | iostream-rawlog.h | 14 /* Create rawlog prefix.in and prefix.out files. */ 16 iostream_rawlog_create_prefix(const char *prefix, struct istream **input,
|
H A D | lib-signals.h | 53 unsafe. errno number will be appended to the prefix. */ 54 void lib_signals_syscall_error(const char *prefix);
|
/dovecot/src/lib-index/ |
H A D | mail-index-alloc-cache.h | 7 const char *index_dir, const char *prefix);
|
/dovecot/src/old-stats/ |
H A D | mail-stats.c | 26 const char *prefix = t_strdup_printf("dovecot.%s.global", local 28 str_printfa(str, "%s.logins %u %"PRIdTIME_T"\r\n", prefix, 30 str_printfa(str, "%s.cmds %u %"PRIdTIME_T"\r\n", prefix, 33 prefix, mail_global_stats.num_connected_sessions, 36 prefix, mail_global_stats.reset_timestamp, ts); 39 str_printfa(str, "%s.%s ", prefix,
|
/dovecot/src/log/ |
H A D | log-error-buffer.h | 9 const char *prefix; member in struct:log_error
|
H A D | log-connection.c | 30 char *prefix; member in struct:log_client 103 i_free(client->prefix); 115 else if (strncmp(failure->text, "prefix=", 7) == 0) { 116 i_free(client->prefix); 117 client->prefix = i_strdup(failure->text + 7); 125 const char *prefix, const char *text) 141 err.prefix = prefix; 148 i_set_failure_prefix("%s", prefix); 159 const char *prefix local 122 client_log_ctx(struct log_connection *log, const struct failure_context *ctx, const struct timeval *log_time, const char *prefix, const char *text) argument 242 const char *prefix; local [all...] |
H A D | log-error-buffer.c | 54 size_t prefix_size = strlen(error->prefix)+1; 66 memcpy(data->prefix_text, error->prefix, prefix_size); 109 iter->error.prefix = (const void *)data->prefix_text; 111 strlen(iter->error.prefix) + 1);
|
/dovecot/src/auth/ |
H A D | crypt-blowfish.h | 25 extern char *crypt_gensalt_blowfish_rn(const char *prefix,
|
/dovecot/src/lib-storage/index/shared/ |
H A D | shared-storage.c | 58 wildcardp = strchr(ns->prefix, '%'); 60 *error_r = "Shared namespace prefix doesn't contain %"; 77 *error_r = "Shared namespace prefix contains unknown variables"; 81 *error_r = "Shared namespace prefix doesn't contain %u or %n"; 87 *error_r = "Shared namespace prefix doesn't end with hierarchy separator"; 91 /* truncate prefix after the above checks are done, so they can log 92 the full prefix in error conditions */ 94 ns->prefix_len = strlen(ns->prefix); 145 string_t *prefix, *location; local 185 /* trying to open <prefix>/<use [all...] |
/dovecot/src/lib-dict/ |
H A D | test-dict-client.c | 33 const char *prefix, *uri; local 46 i_fatal("Usage: <prefix> <uri>"); 47 prefix = argv[1]; 58 i_snprintf(key, sizeof(key), "%s/%02x", prefix, 88 iter = dict_iterate_init(dict, prefix, DICT_ITERATE_FLAG_EXACT_KEY);
|
/dovecot/src/lib-storage/ |
H A D | mail-namespace.c | 18 .prefix = "0", 49 ns->prefix_len = strlen(ns->prefix); 66 i_free(ns->prefix); 97 ns->prefix = i_strdup(ns_set->prefix); 159 i_debug("Namespace %s: type=%s, prefix=%s, sep=%s, " 162 ns_set->name, ns_set->type, ns_set->prefix, 176 /* autocreated prefix="" namespace */ 184 (strchr(ns->prefix, '%') != NULL || 197 ns->prefix, erro 826 mail_namespace_find_prefix(struct mail_namespace *namespaces, const char *prefix) argument 841 mail_namespace_find_prefix_nosep(struct mail_namespace *namespaces, const char *prefix) argument [all...] |
H A D | mail-namespace.h | 25 /* Namespace is visible only by explicitly using its full prefix */ 27 /* Namespace prefix is visible with LIST */ 29 /* Namespace prefix isn't visible with LIST, but child mailboxes are */ 48 /* Namespaces are sorted by their prefix length, "" comes first */ 55 char *prefix; member in struct:mail_namespace 147 /* Returns namespace based on the mailbox name's prefix. Note that there is 148 always a prefix="" namespace, so for this function NULL is never returned. */ 175 /* Find a namespace with given prefix. */ 178 const char *prefix); 182 const char *prefix); [all...] |
H A D | mail-autoexpunge.c | 163 iter_name = t_strconcat(ns->prefix, set->name, NULL); 201 ns->prefix[ns->prefix_len-1] == mail_namespace_get_sep(ns)) 202 vname = t_strndup(ns->prefix, ns->prefix_len - 1); 204 vname = t_strconcat(ns->prefix, (*box_set)->name, NULL);
|
/dovecot/src/lib-storage/index/ |
H A D | index-attribute.c | 11 char *prefix; member in struct:index_storage_attribute_iter 253 const char *prefix) 265 iter->prefix = i_strdup(key_get_prefixed(type, mailbox_prefix, 266 prefix)); 267 iter->prefix_len = strlen(iter->prefix); 268 iter->diter = dict_iterate_init(dict, iter->prefix, 285 i_assert(strncmp(key, iter->prefix, iter->prefix_len) == 0); 303 iter->prefix, error); 306 i_free(iter->prefix); 251 index_storage_attribute_iter_init(struct mailbox *box, enum mail_attribute_type type, const char *prefix) argument
|
/dovecot/src/lib-fs/ |
H A D | fs-test.h | 34 char *prefix, *prev_dir; member in struct:test_fs_iter
|
/dovecot/src/submission/ |
H A D | submission-client.h | 55 void client_destroy(struct client *client, const char *prefix, 57 void client_disconnect(struct client *client, const char *prefix,
|
/dovecot/src/plugins/acl/ |
H A D | acl-lookup-dict.c | 155 const char *prefix, *key, *value, *const *old_ids, *const *new_ids, *p; local 169 prefix = DICT_PATH_SHARED DICT_SHARED_BOXES_PATH; 170 prefix_len = strlen(prefix); 171 iter = dict_iterate_init(dict->dict, prefix, DICT_ITERATE_FLAG_RECURSE); 173 /* prefix/$type/$dest/$source */ 191 str_append(path, prefix); 266 const char *const *idp, *prefix, *key, *value, *error; local 273 prefix = t_strconcat(DICT_PATH_SHARED DICT_SHARED_BOXES_PATH, 275 prefix_len = strlen(prefix); 282 dict_iter = dict_iterate_init(iter->dict->dict, prefix, [all...] |
H A D | acl-storage.h | 42 const char *prefix);
|
/dovecot/src/doveadm/dsync/ |
H A D | dsync-brain-mailbox-tree.c | 29 "('%c' for prefix=\"%s\", '%c' for prefix=\"%s\")", 30 brain->hierarchy_sep, first_ns->prefix, 31 sep, ns->prefix); 61 ns->prefix, ns->set->location); 126 const char *part, *prefix = ns->prefix; local 134 for (; *name_parts != NULL && *prefix != '\0'; name_parts++) { 138 if (strncmp(prefix, part, part_len) != 0) 140 if (prefix[part_le [all...] |
/dovecot/src/lib-storage/list/ |
H A D | mailbox-list-iter.c | 45 const char *prefix); 67 ns->prefix); 93 /* namespace prefix itself */ 94 out_set->name = p_strndup(pool, ns->prefix, ns->prefix_len-1); 97 p_strconcat(pool, ns->prefix, in_set->name, NULL); 203 /* allow matching prefix only when it's done without 210 with longer prefix that matches this pattern 211 (namespaces are sorted by prefix length) */ 250 if (len > 0 && ns->prefix[len-1] == mail_namespace_get_sep(ns)) 255 /* non-listable namespace matches only with exact prefix */ 363 ns_prefix_has_visible_child_namespace(struct ns_list_iterate_context *ctx, const char *prefix) argument 398 mailbox_list_match_anything(struct ns_list_iterate_context *ctx, struct mail_namespace *ns, const char *prefix) argument 521 const char *prefix; local [all...] |
/dovecot/src/lib-smtp/ |
H A D | smtp-reply.c | 47 const char *prefix, *enh_code; local 53 prefix = t_strdup_printf("%03u", reply->status); 57 str_append(out, prefix); 68 str_append(out, prefix);
|