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