Postfix3.3.1
総合概要
データ構造
ファイル
ファイル一覧
大域各種
postfix-3.3.1
src
global
mkmap_fail.c
[詳解]
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
*/
45
MKMAP
*
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
}
MKMAP::after_open
void(* after_open)(struct MKMAP *)
Definition:
mkmap.h:28
MKMAP::after_close
void(* after_close)(struct MKMAP *)
Definition:
mkmap.h:29
dict.h
dict_fail_open
DICT * dict_fail_open(const char *name, int open_flags, int dict_flags)
Definition:
dict_fail.c:94
mkmap.h
dict_fail.h
mkmap_fail_open
MKMAP * mkmap_fail_open(const char *unused_path)
Definition:
mkmap_fail.c:45
sys_defs.h
MKMAP
Definition:
mkmap.h:25
MKMAP::open
DICT_OPEN_FN open
Definition:
mkmap.h:26
mymalloc.h
mymalloc
void * mymalloc(ssize_t len)
Definition:
mymalloc.c:150
2018年11月10日(土) 18時59分38秒作成 - Postfix3.3.1 / 構成:
1.8.9.1