xref: /netbsd-src/external/ibm-public/postfix/dist/src/util/safe_open.h (revision 41fbaed053f8fbfdf9d2a4ee0a7386a3c83f8505)
1 /*	$NetBSD: safe_open.h,v 1.1.1.1 2009/06/23 10:09:00 tron Exp $	*/
2 
3 #ifndef _SAFE_OPEN_H_INCLUDED_
4 #define _SAFE_OPEN_H_INCLUDED_
5 
6 /*++
7 /* NAME
8 /*	safe_open 3h
9 /* SUMMARY
10 /*	safely open or create regular file
11 /* SYNOPSIS
12 /*	#include <safe_open.h>
13 /* DESCRIPTION
14 /* .nf
15 
16  /*
17   * System library.
18   */
19 #include <sys/stat.h>
20 #include <fcntl.h>
21 
22  /*
23   * Utility library.
24   */
25 #include <vstream.h>
26 #include <vstring.h>
27 
28  /*
29   * External interface.
30   */
31 extern VSTREAM *safe_open(const char *, int, mode_t, struct stat *, uid_t, gid_t, VSTRING *);
32 
33 /* LICENSE
34 /* .ad
35 /* .fi
36 /*	The Secure Mailer license must be distributed with this software.
37 /* AUTHOR(S)
38 /*	Wietse Venema
39 /*	IBM T.J. Watson Research
40 /*	P.O. Box 704
41 /*	Yorktown Heights, NY 10598, USA
42 /*--*/
43 
44 #endif
45