1/*++
2/* NAME
3/*	mkmap_fail 3
4/* SUMMARY
5/*	create or open database, fail: style
6/* SYNOPSIS
7/*	#include <mkmap.h>
8/*
9/*	MKMAP	*mkmap_fail_open(path)
10/*	const char *path;
11/*
12/* DESCRIPTION
13/*	This module implements support for error testing postmap
14/*	and postalias with the fail: table type.
15/* SEE ALSO
16/*	dict_fail(3), fail dictionary interface.
17/* LICENSE
18/* .ad
19/* .fi
20/*	The Secure Mailer license must be distributed with this software.
21/* AUTHOR(S)
22/*	Wietse Venema
23/*	IBM T.J. Watson Research
24/*	P.O. Box 704
25/*	Yorktown Heights, NY 10598, USA
26/*--*/
27
28/* System library. */
29
30#include <sys_defs.h>
31
32/* Utility library. */
33
34#include <mymalloc.h>
35#include <dict.h>
36
37/* Application-specific. */
38
39#include <mkmap.h>
40#include <dict_fail.h>
41
42 /*
43  * Dummy module: the dict_fail module has all the functionality built-in.
44  */
45MKMAP  *mkmap_fail_open(const char *unused_path)
46{
47    MKMAP  *mkmap = (MKMAP *) mymalloc(sizeof(*mkmap));
48
49    mkmap->open = dict_fail_open;
50    mkmap->after_open = 0;
51    mkmap->after_close = 0;
52    return (mkmap);
53}
54