summaryrefslogtreecommitdiffstats
path: root/contrib/sendmail/src/bf.h
diff options
context:
space:
mode:
Diffstat (limited to 'contrib/sendmail/src/bf.h')
-rw-r--r--contrib/sendmail/src/bf.h30
1 files changed, 18 insertions, 12 deletions
diff --git a/contrib/sendmail/src/bf.h b/contrib/sendmail/src/bf.h
index 8fc86ae..030a6f8 100644
--- a/contrib/sendmail/src/bf.h
+++ b/contrib/sendmail/src/bf.h
@@ -1,27 +1,33 @@
/*
- * Copyright (c) 1999, 2001 Sendmail, Inc. and its suppliers.
+ * 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.5.16.2 2001/02/14 04:07:27 gshapiro Exp $
+ * $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
+# define BF_H 1
-extern FILE *bfopen __P((char *, int, size_t, long));
-extern FILE *bfdup __P((FILE *));
-extern int bfcommit __P((FILE *));
-extern int bfrewind __P((FILE *));
-extern int bftruncate __P((FILE *));
-extern int bffsync __P((FILE *));
-extern int bfclose __P((FILE *));
-extern bool bftest __P((FILE *));
+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 *));
-#endif /* BF_H */
+/* "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