bf.h revision 261363
1275970Scy/*
2275970Scy * Copyright (c) 1999-2002 Proofpoint, Inc. and its suppliers.
3275970Scy *	All rights reserved.
4275970Scy *
5275970Scy * By using this file, you agree to the terms and conditions set
6275970Scy * forth in the LICENSE file which can be found at the top level of
7275970Scy * the sendmail distribution.
8275970Scy *
9275970Scy *	$Id: bf.h,v 8.17 2013/11/22 20:51:55 ca Exp $
10275970Scy *
11275970Scy * Contributed by Exactis.com, Inc.
12275970Scy *
13275970Scy */
14275970Scy
15275970Scy#ifndef BF_H
16275970Scy# define BF_H 1
17275970Scy
18275970Scyextern SM_FILE_T	*bfopen __P((char *, MODE_T, size_t, long));
19275970Scyextern int		bfcommit __P((SM_FILE_T *));
20275970Scyextern int		bfrewind __P((SM_FILE_T *));
21275970Scyextern int		bftruncate __P((SM_FILE_T *));
22275970Scyextern int		bfclose __P((SM_FILE_T *));
23275970Scyextern bool		bftest __P((SM_FILE_T *));
24275970Scy
25275970Scy/* "what" flags for sm_io_setinfo() for the SM_FILE_TYPE file type */
26275970Scy# define SM_BF_SETBUFSIZE	1000 /* set buffer size */
27275970Scy# define SM_BF_COMMIT		1001 /* commit file to disk */
28275970Scy# define SM_BF_TRUNCATE		1002 /* truncate the file */
29275970Scy# define SM_BF_TEST		1003 /* historical support; temp */
30275970Scy
31275970Scy# define BF_FILE_TYPE	"SendmailBufferedFile"
32275970Scy#endif /* ! BF_H */
33275970Scy