| /netbsd-src/external/ibm-public/postfix/dist/src/postmap/ |
| H A D | postmap.c | 386 int dict_flags; /* query flags */ member 394 int open_flags, int dict_flags) in postmap() argument 418 dict_flags |= DICT_FLAG_BULK_UPDATE; in postmap() 463 mkmap = mkmap_open(map_type, path_name, open_flags, dict_flags); in postmap() 553 if (dict_flags & DICT_FLAG_SRC_RHS_IS_FILE) { in postmap() 603 int dict_flags = state->dict_flags; in postmap_body() local 611 dict_open3(maps[n], map_name, O_RDONLY, dict_flags) : in postmap_body() 612 dict_open3(var_db_type, maps[n], O_RDONLY, dict_flags)); in postmap_body() 660 const int dict_flags) in postmap_queries() argument 691 dict_open3(maps[n], map_name, O_RDONLY, dict_flags) : in postmap_queries() [all …]
|
| /netbsd-src/external/ibm-public/postfix/dist/src/postalias/ |
| H A D | postalias.c | 295 int open_flags, int dict_flags) in postalias() argument 325 dict_flags |= DICT_FLAG_BULK_UPDATE; in postalias() 369 mkmap = mkmap_open(map_type, path_name, open_flags, dict_flags); in postalias() 519 const int dict_flags) in postalias_queries() argument 549 dict_open3(maps[n], map_name, O_RDONLY, dict_flags) : in postalias_queries() 550 dict_open3(var_db_type, maps[n], O_RDONLY, dict_flags)); in postalias_queries() 585 const char *key, int dict_flags) in postalias_query() argument 590 dict = dict_open3(map_type, map_name, O_RDONLY, dict_flags); in postalias_query() 610 int dict_flags) in postalias_deletes() argument 636 dict_open3(maps[n], map_name, open_flags, dict_flags) : in postalias_deletes() [all …]
|
| /netbsd-src/external/ibm-public/postfix/dist/src/util/ |
| H A D | dict_cdb.c | 180 static DICT *dict_cdbq_open(const char *path, int dict_flags) in dict_cdbq_open() argument 200 O_RDONLY, dict_flags, in dict_cdbq_open() 234 if ((dict_flags & (DICT_FLAG_TRY1NULL | DICT_FLAG_TRY0NULL)) == 0) in dict_cdbq_open() 235 dict_flags |= DICT_FLAG_TRY0NULL | DICT_FLAG_TRY1NULL; in dict_cdbq_open() 236 dict_cdbq->dict.flags = dict_flags | DICT_FLAG_FIXED; in dict_cdbq_open() 237 if (dict_flags & DICT_FLAG_FOLD_FIX) in dict_cdbq_open() 336 static DICT *dict_cdbm_open(const char *path, int dict_flags) in dict_cdbm_open() argument 369 O_RDWR, dict_flags, in dict_cdbm_open() 420 if ((dict_flags & (DICT_FLAG_TRY1NULL | DICT_FLAG_TRY0NULL)) == 0) in dict_cdbm_open() 421 dict_flags |= DICT_FLAG_TRY0NULL; in dict_cdbm_open() [all …]
|
| H A D | dict_inline.c | 56 DICT *dict_inline_open(const char *name, int open_flags, int dict_flags) in dict_inline_open() argument 83 open_flags, dict_flags, in dict_inline_open() 90 if (DICT_NEED_UTF8_ACTIVATION(util_utf8_enable, dict_flags) in dict_inline_open() 94 open_flags, dict_flags, in dict_inline_open() 106 open_flags, dict_flags, in dict_inline_open() 115 dict = dict_open3(DICT_TYPE_HT, name, open_flags, dict_flags); in dict_inline_open() 139 open_flags, dict_flags, in dict_inline_open() 145 (dict_flags & DICT_FLAG_SRC_RHS_IS_FILE) ? in dict_inline_open()
|
| H A D | dict_thash.c | 67 DICT *dict_thash_open(const char *path, int open_flags, int dict_flags) in dict_thash_open() argument 97 open_flags, dict_flags, in dict_thash_open() 108 open_flags, dict_flags, in dict_thash_open() 115 dict = dict_open3(DICT_TYPE_HT, path, open_flags, dict_flags); in dict_thash_open() 189 if (dict_flags & DICT_FLAG_SRC_RHS_IS_FILE) { in dict_thash_open() 213 if (dict_flags & DICT_FLAG_DUP_IGNORE) { in dict_thash_open() 215 } else if (dict_flags & DICT_FLAG_DUP_REPLACE) { in dict_thash_open() 217 } else if (dict_flags & DICT_FLAG_DUP_WARN) { in dict_thash_open() 223 open_flags, dict_flags, in dict_thash_open()
|
| H A D | dict_test.c | 50 int dict_flags = 0; in dict_test() local 80 dict_flags |= dict_flags_mask(argv[optind + 2]); in dict_test() 81 if ((dict_flags & DICT_FLAG_OPEN_LOCK) == 0) in dict_test() 82 dict_flags |= DICT_FLAG_LOCK; in dict_test() 83 if ((dict_flags & (DICT_FLAG_DUP_WARN | DICT_FLAG_DUP_IGNORE)) == 0) in dict_test() 84 dict_flags |= DICT_FLAG_DUP_REPLACE; in dict_test() 85 dict_flags |= DICT_FLAG_UTF8_REQUEST; in dict_test() 90 dict = dict_open(dict_name, open_flags, dict_flags); in dict_test()
|
| H A D | dict_open.c | 462 DICT *dict_open(const char *dict_spec, int open_flags, int dict_flags) in dict_open() argument 472 dict = dict_open3(saved_dict_spec, dict_name, open_flags, dict_flags); in dict_open() 480 int open_flags, int dict_flags) in dict_open3() argument 492 return (dict_surrogate(dict_type, dict_name, open_flags, dict_flags, in dict_open3() 494 if ((dict = dp->dict_fn(dict_name, open_flags, dict_flags)) == 0) in dict_open3() 495 return (dict_surrogate(dict_type, dict_name, open_flags, dict_flags, in dict_open3() 516 && DICT_NEED_UTF8_ACTIVATION(util_utf8_enable, dict_flags)) in dict_open3()
|
| H A D | dict_pipe.c | 108 DICT *dict_pipe_open(const char *name, int open_flags, int dict_flags) in dict_pipe_open() argument 137 open_flags, dict_flags, in dict_pipe_open() 149 open_flags, dict_flags, in dict_pipe_open() 165 open_flags, dict_flags, in dict_pipe_open() 171 dict = dict_open(dict_type_name, open_flags, dict_flags); in dict_pipe_open() 185 dict_pipe->dict.flags = dict_flags | match_flags; in dict_pipe_open()
|
| H A D | dict_union.c | 121 DICT *dict_union_open(const char *name, int open_flags, int dict_flags) in dict_union_open() argument 150 open_flags, dict_flags, in dict_union_open() 162 open_flags, dict_flags, in dict_union_open() 178 open_flags, dict_flags, in dict_union_open() 184 dict = dict_open(dict_type_name, open_flags, dict_flags); in dict_union_open() 198 dict_union->dict.flags = dict_flags | match_flags; in dict_union_open()
|
| H A D | dict_static.c | 85 DICT *dict_static_open(const char *name, int open_flags, int dict_flags) in dict_static_open() argument 112 open_flags, dict_flags, in dict_static_open() 128 dict_static->dict.flags = dict_flags | DICT_FLAG_FIXED; in dict_static_open() 135 if (dict_flags & DICT_FLAG_SRC_RHS_IS_FILE) { in dict_static_open() 140 open_flags, dict_flags, in dict_static_open()
|
| H A D | dict_db.c | 619 int type, void *tweak, int dict_flags) in dict_db_open() argument 649 return (dict_surrogate(class, path, open_flags, dict_flags, in dict_db_open() 697 if (dict_flags & DICT_FLAG_LOCK) { in dict_db_open() 700 FREE_RETURN(dict_surrogate(class, path, open_flags, dict_flags, in dict_db_open() 716 FREE_RETURN(dict_surrogate(class, path, open_flags, dict_flags, in dict_db_open() 733 FREE_RETURN(dict_surrogate(class, path, open_flags, dict_flags, in dict_db_open() 763 FREE_RETURN(dict_surrogate(class, path, open_flags, dict_flags, in dict_db_open() 768 FREE_RETURN(dict_surrogate(class, path, open_flags, dict_flags, in dict_db_open() 777 if ((dict_flags & DICT_FLAG_LOCK) && lock_fd >= 0) { in dict_db_open() 802 if ((dict_flags & DICT_FLAG_LOCK) != 0 in dict_db_open() [all …]
|
| H A D | dict_tcp.c | 287 DICT *dict_tcp_open(const char *map, int open_flags, int dict_flags) in dict_tcp_open() argument 294 if (dict_flags & DICT_FLAG_NO_UNAUTH) in dict_tcp_open() 295 return (dict_surrogate(DICT_TYPE_TCP, map, open_flags, dict_flags, in dict_tcp_open() 299 return (dict_surrogate(DICT_TYPE_TCP, map, open_flags, dict_flags, in dict_tcp_open() 312 dict_tcp->dict.flags = dict_flags | DICT_FLAG_PATTERN; in dict_tcp_open() 313 if (dict_flags & DICT_FLAG_FOLD_MUL) in dict_tcp_open()
|
| H A D | dict_random.c | 118 DICT *dict_random_open(const char *name, int open_flags, int dict_flags) in dict_random_open() argument 142 open_flags, dict_flags, in dict_random_open() 153 dict_random->dict.flags = dict_flags | DICT_FLAG_PATTERN; in dict_random_open() 170 open_flags, dict_flags, in dict_random_open() 176 open_flags, dict_flags, in dict_random_open()
|
| H A D | dict_nis.c | 226 DICT *dict_nis_open(const char *map, int open_flags, int dict_flags) in dict_nis_open() argument 231 return (dict_surrogate(DICT_TYPE_NIS, map, open_flags, dict_flags, in dict_nis_open() 238 dict_nis->dict.flags = dict_flags | DICT_FLAG_FIXED; in dict_nis_open() 239 if ((dict_flags & (DICT_FLAG_TRY1NULL | DICT_FLAG_TRY0NULL)) == 0) in dict_nis_open() 241 if (dict_flags & DICT_FLAG_FOLD_FIX) in dict_nis_open()
|
| H A D | dict_unix.c | 164 DICT *dict_unix_open(const char *map, int open_flags, int dict_flags) in dict_unix_open() argument 182 return (dict_surrogate(DICT_TYPE_UNIX, map, open_flags, dict_flags, in dict_unix_open() 191 return (dict_surrogate(DICT_TYPE_UNIX, map, open_flags, dict_flags, in dict_unix_open() 200 dict_unix->dict.flags = dict_flags | DICT_FLAG_FIXED; in dict_unix_open() 201 if (dict_flags & DICT_FLAG_FOLD_FIX) in dict_unix_open()
|
| H A D | dict_dbm.c | 414 DICT *dict_dbm_open(const char *path, int open_flags, int dict_flags) in dict_dbm_open() argument 439 if (dict_flags & DICT_FLAG_LOCK) { in dict_dbm_open() 443 open_flags, dict_flags, in dict_dbm_open() 455 open_flags, dict_flags, in dict_dbm_open() 459 if (dict_flags & DICT_FLAG_LOCK) { in dict_dbm_open() 485 if ((dict_flags & DICT_FLAG_LOCK) != 0 in dict_dbm_open() 493 dict_dbm->dict.flags = dict_flags | DICT_FLAG_FIXED; in dict_dbm_open() 494 if ((dict_flags & (DICT_FLAG_TRY0NULL | DICT_FLAG_TRY1NULL)) == 0) in dict_dbm_open() 496 if (dict_flags & DICT_FLAG_FOLD_FIX) in dict_dbm_open()
|
| H A D | dict_sockmap.c | 311 DICT *dict_sockmap_open(const char *mapname, int open_flags, int dict_flags) in dict_sockmap_open() argument 334 open_flags, dict_flags, in dict_sockmap_open() 337 if (dict_flags & DICT_FLAG_NO_UNAUTH) in dict_sockmap_open() 339 open_flags, dict_flags, in dict_sockmap_open() 349 open_flags, dict_flags, in dict_sockmap_open() 383 dp->dict.flags = dict_flags | DICT_FLAG_PATTERN; in dict_sockmap_open()
|
| H A D | dict_lmdb.c | 547 DICT *dict_lmdb_open(const char *path, int open_flags, int dict_flags) in dict_lmdb_open() argument 576 if (dict_flags & DICT_FLAG_BULK_UPDATE) in dict_lmdb_open() 609 if (dict_flags & DICT_FLAG_BULK_UPDATE) /* XXX Good enough */ in dict_lmdb_open() 621 dict = dict_surrogate(DICT_TYPE_LMDB, path, open_flags, dict_flags, in dict_lmdb_open() 636 if (dict_flags & DICT_FLAG_BULK_UPDATE) { in dict_lmdb_open() 669 if ((dict_flags & DICT_FLAG_LOCK) != 0 in dict_lmdb_open() 677 dict_lmdb->dict.flags = dict_flags | DICT_LMDB_IMPL_FLAGS; in dict_lmdb_open() 678 if ((dict_flags & (DICT_FLAG_TRY0NULL | DICT_FLAG_TRY1NULL)) == 0) in dict_lmdb_open() 680 if (dict_flags & DICT_FLAG_FOLD_FIX) in dict_lmdb_open() 683 if (dict_flags & DICT_FLAG_BULK_UPDATE) in dict_lmdb_open()
|
| H A D | dict_sdbm.c | 409 DICT *dict_sdbm_open(const char *path, int open_flags, int dict_flags) in dict_sdbm_open() argument 424 if (dict_flags & DICT_FLAG_LOCK) { in dict_sdbm_open() 438 if (dict_flags & DICT_FLAG_LOCK) { in dict_sdbm_open() 462 if ((dict_flags & DICT_FLAG_LOCK) != 0 in dict_sdbm_open() 470 dict_sdbm->dict.flags = dict_flags | DICT_FLAG_FIXED; in dict_sdbm_open() 471 if ((dict_flags & (DICT_FLAG_TRY0NULL | DICT_FLAG_TRY1NULL)) == 0) in dict_sdbm_open() 473 if (dict_flags & DICT_FLAG_FOLD_FIX) in dict_sdbm_open() 479 if ((dict_flags & DICT_FLAG_LOCK)) in dict_sdbm_open()
|
| H A D | mkmap_open.c | 120 int open_flags, int dict_flags) in mkmap_open() argument 157 mkmap->dict = mkmap->open(path, open_flags, dict_flags); in mkmap_open() 177 && DICT_NEED_UTF8_ACTIVATION(util_utf8_enable, dict_flags)) in mkmap_open()
|
| H A D | dict_env.c | 101 DICT *dict_env_open(const char *name, int unused_flags, int dict_flags) in dict_env_open() argument 109 dict->flags = dict_flags | DICT_FLAG_FIXED; in dict_env_open() 110 if (dict_flags & DICT_FLAG_FOLD_FIX) in dict_env_open()
|
| H A D | dict_cidr.c | 253 DICT *dict_cidr_open(const char *mapname, int open_flags, int dict_flags) in dict_cidr_open() argument 288 open_flags, dict_flags, in dict_cidr_open() 296 dict_flags, &st, &why)) == 0) in dict_cidr_open() 298 open_flags, dict_flags, in dict_cidr_open() 311 dict_cidr->dict.flags = dict_flags | DICT_FLAG_PATTERN; in dict_cidr_open()
|
| H A D | dict_nisplus.c | 252 DICT *dict_nisplus_open(const char *map, int open_flags, int dict_flags) in dict_nisplus_open() argument 262 return (dict_surrogate(DICT_TYPE_NISPLUS, map, open_flags, dict_flags, in dict_nisplus_open() 274 dict_nisplus->dict.flags = dict_flags | DICT_FLAG_FIXED; in dict_nisplus_open() 275 if (dict_flags & DICT_FLAG_FOLD_FIX) in dict_nisplus_open()
|
| /netbsd-src/external/ibm-public/postfix/dist/src/global/ |
| H A D | maps.c | 128 MAPS *maps_create(const char *title, const char *map_names, int dict_flags) in maps_create() argument 161 dict_flags_str(dict_flags)); in maps_create() 163 dict = dict_open(map_type_name, OPEN_FLAGS, dict_flags); in maps_create() 164 if ((dict->flags & dict_flags) != dict_flags) in maps_create() 166 myname, map_type_name, dict->flags, dict_flags); in maps_create()
|
| H A D | dict_memcache.c | 501 DICT *dict_memcache_open(const char *name, int open_flags, int dict_flags) in dict_memcache_open() argument 510 if (dict_flags & DICT_FLAG_NO_UNAUTH) in dict_memcache_open() 511 return (dict_surrogate(DICT_TYPE_MEMCACHE, name, open_flags, dict_flags, in dict_memcache_open() 516 return (dict_surrogate(DICT_TYPE_MEMCACHE, name, open_flags, dict_flags, in dict_memcache_open() 524 return (dict_surrogate(DICT_TYPE_MEMCACHE, name, open_flags, dict_flags, in dict_memcache_open() 539 dict_mc->dict.flags = dict_flags; in dict_memcache_open() 578 dict_mc->backup = dict_open(backup, open_flags, dict_flags); in dict_memcache_open()
|