• Home
  • History
  • Annotate
  • Raw
  • Download
  • only in /macosx-10.9.5/postfix-252/postfix/src/global/

Lines Matching defs:maps

3 /*	maps 3
7 /* #include <maps.h>
14 /* const char *maps_find(maps, key, flags)
15 /* MAPS *maps;
19 /* MAPS *maps_free(maps)
20 /* MAPS *maps;
56 /* .IP maps
67 /* lookup failed due to error. The maps->error value indicates
113 #include "maps.h"
123 MAPS *maps;
131 maps = (MAPS *) mymalloc(sizeof(*maps));
132 maps->title = mystrdup(title);
133 maps->argv = argv_alloc(2);
134 maps->error = 0;
156 argv_add(maps->argv, vstring_str(map_type_name_flags), ARGV_END);
161 return (maps);
166 const char *maps_find(MAPS *maps, const char *name, int flags)
174 * In case of return without map lookup (empty name or no maps).
176 maps->error = 0;
185 for (map_name = maps->argv->argv; *map_name; map_name++) {
193 maps->title, name);
195 maps->title);
196 maps->error = DICT_ERR_RETRY;
200 msg_info("%s: %s: %s: %s = %s", myname, maps->title,
204 strncmp(maps->title, "local_recipient_maps", 20) == 0 ) {
232 } else if (strncmp(maps->title, "virtual_alias_maps", 18) == 0 ) {
265 msg_info("%s: %s: %s: %s = %s", myname, maps->title,
273 msg_info("%s: %s: %s: %s = %s", myname, maps->title,
279 } else if ((maps->error = dict->error) != 0) {
286 msg_info("%s: %s: %s: %s", myname, maps->title, name, maps->error ?
293 MAPS *maps_free(MAPS *maps)
297 for (map_name = maps->argv->argv; *map_name; map_name++) {
302 myfree(maps->title);
303 argv_free(maps->argv);
304 myfree((char *) maps);
317 MAPS *maps;
321 msg_fatal("usage: %s maps", argv[0]);
323 maps = maps_create("whatever", argv[1], DICT_FLAG_LOCK);
326 maps->error = 99;
328 if ((result = maps_find(maps, vstring_str(buf), 0)) != 0) {
330 } else if (maps->error != 0) {
337 maps_free(maps);