xref: /freebsd/contrib/sendmail/src/bf.h (revision 4313cc83440a39bdf976f955b1d4d3f3c4d1552f)
106f25ae9SGregory Neil Shapiro /*
25dd76dd0SGregory Neil Shapiro  * Copyright (c) 1999-2002 Proofpoint, Inc. and its suppliers.
306f25ae9SGregory Neil Shapiro  *	All rights reserved.
406f25ae9SGregory Neil Shapiro  *
506f25ae9SGregory Neil Shapiro  * By using this file, you agree to the terms and conditions set
606f25ae9SGregory Neil Shapiro  * forth in the LICENSE file which can be found at the top level of
706f25ae9SGregory Neil Shapiro  * the sendmail distribution.
806f25ae9SGregory Neil Shapiro  *
9*4313cc83SGregory Neil Shapiro  *	$Id: bf.h,v 8.17 2013-11-22 20:51:55 ca Exp $
1006f25ae9SGregory Neil Shapiro  *
1106f25ae9SGregory Neil Shapiro  * Contributed by Exactis.com, Inc.
1206f25ae9SGregory Neil Shapiro  *
1306f25ae9SGregory Neil Shapiro  */
1406f25ae9SGregory Neil Shapiro 
1506f25ae9SGregory Neil Shapiro #ifndef BF_H
1606f25ae9SGregory Neil Shapiro # define BF_H 1
1706f25ae9SGregory Neil Shapiro 
1840266059SGregory Neil Shapiro extern SM_FILE_T	*bfopen __P((char *, MODE_T, size_t, long));
1940266059SGregory Neil Shapiro extern int		bfcommit __P((SM_FILE_T *));
2040266059SGregory Neil Shapiro extern int		bfrewind __P((SM_FILE_T *));
2140266059SGregory Neil Shapiro extern int		bftruncate __P((SM_FILE_T *));
2240266059SGregory Neil Shapiro extern int		bfclose __P((SM_FILE_T *));
2340266059SGregory Neil Shapiro extern bool		bftest __P((SM_FILE_T *));
2406f25ae9SGregory Neil Shapiro 
2540266059SGregory Neil Shapiro /* "what" flags for sm_io_setinfo() for the SM_FILE_TYPE file type */
2640266059SGregory Neil Shapiro # define SM_BF_SETBUFSIZE	1000 /* set buffer size */
2740266059SGregory Neil Shapiro # define SM_BF_COMMIT		1001 /* commit file to disk */
2840266059SGregory Neil Shapiro # define SM_BF_TRUNCATE		1002 /* truncate the file */
2940266059SGregory Neil Shapiro # define SM_BF_TEST		1003 /* historical support; temp */
3040266059SGregory Neil Shapiro 
3140266059SGregory Neil Shapiro # define BF_FILE_TYPE	"SendmailBufferedFile"
3240266059SGregory Neil Shapiro #endif /* ! BF_H */
33