Postfix3.3.1
mbox_open.h
[詳解]
1 #ifndef _MBOX_OPEN_H_INCLUDED_
2 #define _MBOX_OPEN_H_INCLUDED_
3 
4 /*++
5 /* NAME
6 /* mbox_open 3h
7 /* SUMMARY
8 /* mailbox access
9 /* SYNOPSIS
10 /* #include <mbox_open.h>
11 /* DESCRIPTION
12 /* .nf
13 
14  /*
15  * Utility library.
16  */
17 #include <vstream.h>
18 #include <vstring.h>
19 #include <safe_open.h>
20 
21  /*
22  * Global library.
23  */
24 #include <dsn_buf.h>
25 
26  /*
27  * External interface.
28  */
29 typedef struct {
30  char *path; /* saved path, for dot_unlock */
31  VSTREAM *fp; /* open stream or null */
32  int locked; /* what locks were set */
33 } MBOX;
34 extern MBOX *mbox_open(const char *, int, mode_t, struct stat *, uid_t, gid_t,
35  int, const char *, DSN_BUF *);
36 extern void mbox_release(MBOX *);
37 extern const char *mbox_dsn(int, const char *);
38 
39 /* LICENSE
40 /* .ad
41 /* .fi
42 /* The Secure Mailer license must be distributed with this software.
43 /* AUTHOR(S)
44 /* Wietse Venema
45 /* IBM T.J. Watson Research
46 /* P.O. Box 704
47 /* Yorktown Heights, NY 10598, USA
48 /*--*/
49 
50 #endif
#define stat(p, s)
Definition: warn_stat.h:18
VSTREAM * fp
Definition: mbox_open.h:31
const char * mbox_dsn(int, const char *)
Definition: mbox_open.c:243
Definition: mbox_open.h:29
void mbox_release(MBOX *)
Definition: mbox_open.c:224
int locked
Definition: mbox_open.h:32
MBOX * mbox_open(const char *, int, mode_t, struct stat *, uid_t, gid_t, int, const char *, DSN_BUF *)
Definition: mbox_open.c:105
char * path
Definition: mbox_open.h:30