Expand PMF_FN_* macros.
[netbsd-mini2440.git] / external / ibm-public / postfix / dist / src / global / mbox_open.h
blob1c94973317aa5352fbc07152fabc678cf5d2c56b
1 /* $NetBSD$ */
3 #ifndef _MBOX_OPEN_H_INCLUDED_
4 #define _MBOX_OPEN_H_INCLUDED_
6 /*++
7 /* NAME
8 /* mbox_open 3h
9 /* SUMMARY
10 /* mailbox access
11 /* SYNOPSIS
12 /* #include <mbox_open.h>
13 /* DESCRIPTION
14 /* .nf
17 * Utility library.
19 #include <vstream.h>
20 #include <vstring.h>
21 #include <safe_open.h>
24 * Global library.
26 #include <dsn_buf.h>
29 * External interface.
31 typedef struct {
32 char *path; /* saved path, for dot_unlock */
33 VSTREAM *fp; /* open stream or null */
34 int locked; /* what locks were set */
35 } MBOX;
36 extern MBOX *mbox_open(const char *, int, mode_t, struct stat *, uid_t, gid_t,
37 int, const char *, DSN_BUF *);
38 extern void mbox_release(MBOX *);
39 extern const char *mbox_dsn(int, const char *);
41 /* LICENSE
42 /* .ad
43 /* .fi
44 /* The Secure Mailer license must be distributed with this software.
45 /* AUTHOR(S)
46 /* Wietse Venema
47 /* IBM T.J. Watson Research
48 /* P.O. Box 704
49 /* Yorktown Heights, NY 10598, USA
50 /*--*/
52 #endif