|
#define | DICT_JMP_BUF sigjmp_buf |
|
#define | DICT_OWNER_UNKNOWN (-1) /* ex: unauthenticated tcp, proxy */ |
|
#define | DICT_OWNER_TRUSTED (!1) /* ex: root-owned config file */ |
|
#define | DICT_OWNER_UNTRUSTED (!0) /* ex: non-root config file */ |
|
#define | DICT_OWNER_AGGREGATE_INIT(dst) |
|
#define | DICT_OWNER_AGGREGATE_UPDATE(dst, src) |
|
#define | DICT_DEBUG(d) ((d)->flags & DICT_FLAG_DEBUG ? dict_debug(d) : (d)) |
|
#define | DICT_FLAG_NONE (0) |
|
#define | DICT_FLAG_DUP_WARN (1<<0) /* warn about dups if not supported */ |
|
#define | DICT_FLAG_DUP_IGNORE (1<<1) /* ignore dups if not supported */ |
|
#define | DICT_FLAG_TRY0NULL (1<<2) /* do not append 0 to key/value */ |
|
#define | DICT_FLAG_TRY1NULL (1<<3) /* append 0 to key/value */ |
|
#define | DICT_FLAG_FIXED (1<<4) /* fixed key map */ |
|
#define | DICT_FLAG_PATTERN (1<<5) /* keys are patterns */ |
|
#define | DICT_FLAG_LOCK (1<<6) /* use temp lock before access */ |
|
#define | DICT_FLAG_DUP_REPLACE (1<<7) /* replace dups if supported */ |
|
#define | DICT_FLAG_SYNC_UPDATE (1<<8) /* sync updates if supported */ |
|
#define | DICT_FLAG_DEBUG (1<<9) /* log access */ |
|
#define | DICT_FLAG_NO_REGSUB (1<<11) /* disallow regexp substitution */ |
|
#define | DICT_FLAG_NO_PROXY (1<<12) /* disallow proxy mapping */ |
|
#define | DICT_FLAG_NO_UNAUTH (1<<13) /* disallow unauthenticated data */ |
|
#define | DICT_FLAG_FOLD_FIX (1<<14) /* case-fold key with fixed-case map */ |
|
#define | DICT_FLAG_FOLD_MUL (1<<15) /* case-fold key with multi-case map */ |
|
#define | DICT_FLAG_FOLD_ANY (DICT_FLAG_FOLD_FIX | DICT_FLAG_FOLD_MUL) |
|
#define | DICT_FLAG_OPEN_LOCK (1<<16) /* perm lock if not multi-writer safe */ |
|
#define | DICT_FLAG_BULK_UPDATE (1<<17) /* optimize for bulk updates */ |
|
#define | DICT_FLAG_MULTI_WRITER (1<<18) /* multi-writer safe map */ |
|
#define | DICT_FLAG_UTF8_REQUEST (1<<19) /* activate UTF-8 if possible */ |
|
#define | DICT_FLAG_UTF8_ACTIVE (1<<20) /* UTF-8 proxy layer is present */ |
|
#define | DICT_FLAG_UTF8_MASK (DICT_FLAG_UTF8_REQUEST) |
|
#define | DICT_FLAG_PARANOID (DICT_FLAG_NO_REGSUB | DICT_FLAG_NO_PROXY | DICT_FLAG_NO_UNAUTH) |
|
#define | DICT_FLAG_IMPL_MASK |
|
#define | DICT_FLAG_RQST_MASK |
|
#define | DICT_FLAG_INST_MASK ~(DICT_FLAG_IMPL_MASK | DICT_FLAG_RQST_MASK) |
|
#define | DICT_NEED_UTF8_ACTIVATION(enable, flags) ((enable) && ((flags) & DICT_FLAG_UTF8_MASK)) |
|
#define | DICT_ERR_NONE 0 /* no error */ |
|
#define | DICT_ERR_RETRY (-1) /* soft error */ |
|
#define | DICT_ERR_CONFIG (-2) /* configuration error */ |
|
#define | DICT_STAT_FAIL 1 /* any value > 0: notfound, conflict */ |
|
#define | DICT_STAT_SUCCESS 0 /* request satisfied */ |
|
#define | DICT_STAT_ERROR (-1) /* any value < 0: database error */ |
|
#define | DICT_ERR_VAL_RETURN(dict, err, val) |
|
#define | DICT_SEQ_FUN_FIRST 0 /* set cursor to first record */ |
|
#define | DICT_SEQ_FUN_NEXT 1 /* set cursor to next record */ |
|
#define | dict_get(dp, key) ((const char *) (dp)->lookup((dp), (key))) |
|
#define | dict_put(dp, key, val) (dp)->update((dp), (key), (val)) |
|
#define | dict_del(dp, key) (dp)->delete((dp), (key)) |
|
#define | dict_seq(dp, f, key, val) (dp)->sequence((dp), (f), (key), (val)) |
|
#define | dict_close(dp) (dp)->close(dp) |
|
#define | DICT_TYPE_NOFILE "non-existent" |
|
#define | DICT_TYPE_NOUTF8 "non-UTF-8" |
|
#define | dict_setjmp(dict) sigsetjmp((dict)->jbuf[0], 1) |
|
#define | dict_longjmp(dict, val) siglongjmp((dict)->jbuf[0], (val)) |
|
#define | dict_isjmp(dict) ((dict)->jbuf != 0) |
|
|
DICT * | dict_alloc (const char *, const char *, ssize_t) |
|
void | dict_free (DICT *) |
|
DICT * | dict_debug (DICT *) |
|
ARGV * | dict_mapnames (void) |
|
DICT_MAPNAMES_EXTEND_FN | dict_mapnames_extend (DICT_MAPNAMES_EXTEND_FN) |
|
void | dict_register (const char *, DICT *) |
|
DICT * | dict_handle (const char *) |
|
void | dict_unregister (const char *) |
|
int | dict_update (const char *, const char *, const char *) |
|
const char * | dict_lookup (const char *, const char *) |
|
int | dict_delete (const char *, const char *) |
|
int | dict_sequence (const char *, const int, const char **, const char **) |
|
int | dict_load_file_xt (const char *, const char *) |
|
void | dict_load_fp (const char *, VSTREAM *) |
|
const char * | dict_eval (const char *, const char *, int) |
|
int | dict_error (const char *) |
|
DICT * | dict_open (const char *, int, int) |
|
DICT * | dict_open3 (const char *, const char *, int, int) |
|
void | dict_open_register (const char *, DICT_OPEN_FN) |
|
DICT_OPEN_EXTEND_FN | dict_open_extend (DICT_OPEN_EXTEND_FN) |
|
void | dict_walk (DICT_WALK_ACTION, void *) |
|
int | dict_changed (void) |
|
const char * | dict_changed_name (void) |
|
const char * | dict_flags_str (int) |
|
int | dict_flags_mask (const char *) |
|
void | dict_type_override (DICT *, const char *) |
|
DICT * | dict_utf8_activate (DICT *) |
|
void | dict_test (int, char **) |
|
DICT * | PRINTFLIKE (5, 6) dict_surrogate(const char * |
|
void | dict_jmp_alloc (DICT *) |
|