Postfix3.3.1
edit_file.h
[詳解]
1 #ifndef _EDIT_FILE_H_INCLUDED_
2 #define _EDIT_FILE_H_INCLUDED_
3 
4 /*++
5 /* NAME
6 /* edit_file 3h
7 /* SUMMARY
8 /* simple cooperative file updating protocol
9 /* SYNOPSIS
10 /* #include <edit_file.h>
11 /* DESCRIPTION
12 /* .nf
13 
14  /*
15  * Utility library.
16  */
17 #include <vstream.h>
18 
19  /*
20  * External interface.
21  */
22 typedef struct {
23  /* Private. */
24  char *final_path;
25  mode_t final_mode;
26  /* Public. */
27  char *tmp_path;
29 } EDIT_FILE;
30 
31 #define EDIT_FILE_SUFFIX ".tmp"
32 
33 extern EDIT_FILE *edit_file_open(const char *, int, mode_t);
35 extern void edit_file_cleanup(EDIT_FILE *);
36 
37 /* LICENSE
38 /* .ad
39 /* .fi
40 /* The Secure Mailer license must be distributed with this software.
41 /* AUTHOR(S)
42 /* Wietse Venema
43 /* IBM T.J. Watson Research
44 /* P.O. Box 704
45 /* Yorktown Heights, NY 10598, USA
46 /*
47 /* Wietse Venema
48 /* Google, Inc.
49 /* 111 8th Avenue
50 /* New York, NY 10011, USA
51 /*--*/
52 
53 #endif
int WARN_UNUSED_RESULT edit_file_close(EDIT_FILE *)
Definition: edit_file.c:320
#define WARN_UNUSED_RESULT
Definition: sys_defs.h:1662
char * final_path
Definition: edit_file.h:24
mode_t final_mode
Definition: edit_file.h:25
void edit_file_cleanup(EDIT_FILE *)
Definition: edit_file.c:306
char * tmp_path
Definition: edit_file.h:27
EDIT_FILE * edit_file_open(const char *, int, mode_t)
Definition: edit_file.c:190
VSTREAM * tmp_fp
Definition: edit_file.h:28