164562Sgshapiro/*
2261194Sgshapiro * Copyright (c) 1999-2002 Proofpoint, Inc. and its suppliers.
364562Sgshapiro *	All rights reserved.
464562Sgshapiro *
564562Sgshapiro * By using this file, you agree to the terms and conditions set
664562Sgshapiro * forth in the LICENSE file which can be found at the top level of
764562Sgshapiro * the sendmail distribution.
864562Sgshapiro *
9266527Sgshapiro *	$Id: bf.h,v 8.17 2013-11-22 20:51:55 ca Exp $
1064562Sgshapiro *
1164562Sgshapiro * Contributed by Exactis.com, Inc.
1264562Sgshapiro *
1364562Sgshapiro */
1464562Sgshapiro
1564562Sgshapiro#ifndef BF_H
1690792Sgshapiro# define BF_H 1
1764562Sgshapiro
1890792Sgshapiroextern SM_FILE_T	*bfopen __P((char *, MODE_T, size_t, long));
1990792Sgshapiroextern int		bfcommit __P((SM_FILE_T *));
2090792Sgshapiroextern int		bfrewind __P((SM_FILE_T *));
2190792Sgshapiroextern int		bftruncate __P((SM_FILE_T *));
2290792Sgshapiroextern int		bfclose __P((SM_FILE_T *));
2390792Sgshapiroextern bool		bftest __P((SM_FILE_T *));
2464562Sgshapiro
2590792Sgshapiro/* "what" flags for sm_io_setinfo() for the SM_FILE_TYPE file type */
2690792Sgshapiro# define SM_BF_SETBUFSIZE	1000 /* set buffer size */
2790792Sgshapiro# define SM_BF_COMMIT		1001 /* commit file to disk */
2890792Sgshapiro# define SM_BF_TRUNCATE		1002 /* truncate the file */
2990792Sgshapiro# define SM_BF_TEST		1003 /* historical support; temp */
3090792Sgshapiro
3190792Sgshapiro# define BF_FILE_TYPE	"SendmailBufferedFile"
3290792Sgshapiro#endif /* ! BF_H */
33