xref: /netbsd-src/external/ibm-public/postfix/dist/src/util/logwriter.h (revision 33881f779a77dce6440bdc44610d94de75bebefe)
1 /*	$NetBSD: logwriter.h,v 1.2 2020/03/18 19:05:21 christos Exp $	*/
2 
3 #ifndef _LOGWRITER_H_INCLUDED_
4 #define _LOGWRITER_H_INCLUDED_
5 
6 /*++
7 /* NAME
8 /*	logwriter 3h
9 /* SUMMARY
10 /*	logfile writer
11 /* SYNOPSIS
12 /*	#include <logwriter.h>
13 /* DESCRIPTION
14 /* .nf
15 
16  /*
17   * Utility library.
18   */
19 #include <vstream.h>
20 
21  /*
22   * External interface.
23   */
24 extern VSTREAM *logwriter_open_or_die(const char *);
25 extern int logwriter_write(VSTREAM *, const char *, ssize_t);
26 extern int logwriter_close(VSTREAM *);
27 extern int logwriter_one_shot(const char *, const char *, ssize_t);
28 
29 /* LICENSE
30 /* .ad
31 /* .fi
32 /*	The Secure Mailer license must be distributed with this software.
33 /* AUTHOR(S)
34 /*	Wietse Venema
35 /*	Google, Inc.
36 /*	111 8th Avenue
37 /*	New York, NY 10011, USA
38 /*--*/
39 
40 #endif
41