1/*	$NetBSD$	*/
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  */
31extern 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