dict-file.c revision 661998e2ccd772ad92a9d4a75cb712692a8c94b3
17d37aecdf397fcb7a1d0c75adebdb25d7be112ePavel Březina/* Copyright (c) 2008-2016 Dovecot authors, see the included COPYING file */
17d37aecdf397fcb7a1d0c75adebdb25d7be112ePavel Březina unsigned int len;
const char *error;
const char *p, *path;
if (p == NULL) {
return TRUE;
return FALSE;
return TRUE;
return TRUE;
return FALSE;
int open_type;
static struct dict_iterate_context *
unsigned int i, path_count;
const char *error;
for (i = 0; i < path_count; i++) {
static const struct file_dict_iterate_path *
const char *key)
return NULL;
return TRUE;
return FALSE;
const char **error_r)
return ret;
static struct dict_transaction_context *
bool *atomic_inc_not_found_r)
const char *tmp;
unsigned int new_len;
long long diff;
case DICT_CHANGE_TYPE_INC:
i_unreached();
case DICT_CHANGE_TYPE_SET:
case DICT_CHANGE_TYPE_UNSET:
const char *dest_path)
const char *src_dir, *p;
if (p == NULL)
if (p == NULL)
const char **error_r)
int ret;
lock_r) <= 0) {
case FILE_LOCK_METHOD_FCNTL:
case FILE_LOCK_METHOD_FLOCK:
case FILE_LOCK_METHOD_DOTLOCK:
&dotlock);
void *context)
bool atomic_inc_not_found;
else if (atomic_inc_not_found)
NULL,