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