summaryrefslogtreecommitdiffstats
path: root/contrib/sendmail/src/bf.h
blob: 030a6f8e5053b2ab4b3976a80970a2ef2e9e7739 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
/*
 * Copyright (c) 1999-2001 Sendmail, Inc. and its suppliers.
 *	All rights reserved.
 *
 * By using this file, you agree to the terms and conditions set
 * forth in the LICENSE file which can be found at the top level of
 * the sendmail distribution.
 *
 *	$Id: bf.h,v 8.15 2001/05/31 21:02:53 ca Exp $
 *
 * Contributed by Exactis.com, Inc.
 *
 */

#ifndef BF_H
# define BF_H 1

extern SM_FILE_T	*bfopen __P((char *, MODE_T, size_t, long));
extern SM_FILE_T	*bfdup __P((SM_FILE_T *));
extern int		bfcommit __P((SM_FILE_T *));
extern int		bfrewind __P((SM_FILE_T *));
extern int		bftruncate __P((SM_FILE_T *));
extern int		bfclose __P((SM_FILE_T *));
extern bool		bftest __P((SM_FILE_T *));

/* "what" flags for sm_io_setinfo() for the SM_FILE_TYPE file type */
# define SM_BF_SETBUFSIZE	1000 /* set buffer size */
# define SM_BF_COMMIT		1001 /* commit file to disk */
# define SM_BF_TRUNCATE		1002 /* truncate the file */
# define SM_BF_TEST		1003 /* historical support; temp */

# define BF_FILE_TYPE	"SendmailBufferedFile"
#endif /* ! BF_H */
OpenPOWER on IntegriCloud