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