bf.h revision 90792
164562Sgshapiro/*
290792Sgshapiro * Copyright (c) 1999-2001 Sendmail, 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 *
990792Sgshapiro *	$Id: bf.h,v 8.15 2001/05/31 21:02:53 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 SM_FILE_T	*bfdup __P((SM_FILE_T *));
2090792Sgshapiroextern int		bfcommit __P((SM_FILE_T *));
2190792Sgshapiroextern int		bfrewind __P((SM_FILE_T *));
2290792Sgshapiroextern int		bftruncate __P((SM_FILE_T *));
2390792Sgshapiroextern int		bfclose __P((SM_FILE_T *));
2490792Sgshapiroextern bool		bftest __P((SM_FILE_T *));
2564562Sgshapiro
2690792Sgshapiro/* "what" flags for sm_io_setinfo() for the SM_FILE_TYPE file type */
2790792Sgshapiro# define SM_BF_SETBUFSIZE	1000 /* set buffer size */
2890792Sgshapiro# define SM_BF_COMMIT		1001 /* commit file to disk */
2990792Sgshapiro# define SM_BF_TRUNCATE		1002 /* truncate the file */
3090792Sgshapiro# define SM_BF_TEST		1003 /* historical support; temp */
3190792Sgshapiro
3290792Sgshapiro# define BF_FILE_TYPE	"SendmailBufferedFile"
3390792Sgshapiro#endif /* ! BF_H */
34