xref: /illumos-gate/usr/src/cmd/sendmail/src/bf.h (revision 2a8bcb4e)
1*7c478bd9Sstevel@tonic-gate /*
2*7c478bd9Sstevel@tonic-gate  * Copyright (c) 1999-2002 Sendmail, Inc. and its suppliers.
3*7c478bd9Sstevel@tonic-gate  *	All rights reserved.
4*7c478bd9Sstevel@tonic-gate  *
5*7c478bd9Sstevel@tonic-gate  * By using this file, you agree to the terms and conditions set
6*7c478bd9Sstevel@tonic-gate  * forth in the LICENSE file which can be found at the top level of
7*7c478bd9Sstevel@tonic-gate  * the sendmail distribution.
8*7c478bd9Sstevel@tonic-gate  *
9*7c478bd9Sstevel@tonic-gate  *	$Id: bf.h,v 8.16 2002/04/15 02:37:09 ca Exp $
10*7c478bd9Sstevel@tonic-gate  *
11*7c478bd9Sstevel@tonic-gate  * Contributed by Exactis.com, Inc.
12*7c478bd9Sstevel@tonic-gate  *
13*7c478bd9Sstevel@tonic-gate  */
14*7c478bd9Sstevel@tonic-gate 
15*7c478bd9Sstevel@tonic-gate #ifndef BF_H
16*7c478bd9Sstevel@tonic-gate # define BF_H 1
17*7c478bd9Sstevel@tonic-gate 
18*7c478bd9Sstevel@tonic-gate extern SM_FILE_T	*bfopen __P((char *, MODE_T, size_t, long));
19*7c478bd9Sstevel@tonic-gate extern int		bfcommit __P((SM_FILE_T *));
20*7c478bd9Sstevel@tonic-gate extern int		bfrewind __P((SM_FILE_T *));
21*7c478bd9Sstevel@tonic-gate extern int		bftruncate __P((SM_FILE_T *));
22*7c478bd9Sstevel@tonic-gate extern int		bfclose __P((SM_FILE_T *));
23*7c478bd9Sstevel@tonic-gate extern bool		bftest __P((SM_FILE_T *));
24*7c478bd9Sstevel@tonic-gate 
25*7c478bd9Sstevel@tonic-gate /* "what" flags for sm_io_setinfo() for the SM_FILE_TYPE file type */
26*7c478bd9Sstevel@tonic-gate # define SM_BF_SETBUFSIZE	1000 /* set buffer size */
27*7c478bd9Sstevel@tonic-gate # define SM_BF_COMMIT		1001 /* commit file to disk */
28*7c478bd9Sstevel@tonic-gate # define SM_BF_TRUNCATE		1002 /* truncate the file */
29*7c478bd9Sstevel@tonic-gate # define SM_BF_TEST		1003 /* historical support; temp */
30*7c478bd9Sstevel@tonic-gate 
31*7c478bd9Sstevel@tonic-gate # define BF_FILE_TYPE	"SendmailBufferedFile"
32*7c478bd9Sstevel@tonic-gate #endif /* ! BF_H */
33