1 /* DO NOT EDIT: automatically built by dist/s_include. */
2 #ifndef	_common_ext_h_
3 #define	_common_ext_h_
4 
5 #if defined(__cplusplus)
6 extern "C" {
7 #endif
8 
9 void __clock_set_expires __P((ENV *, db_timespec *, db_timeout_t));
10 int __clock_expired __P((ENV *, db_timespec *, db_timespec *));
11 time_t __clock_get_start __P((void));
12 int __crypto_region_init __P((ENV *));
13 int __db_isbigendian __P((void));
14 int __db_byteorder __P((ENV *, int));
15 int __db_needswap __P((u_int32_t));
16 u_int32_t __db_compress_count_int __P((u_int64_t));
17 int __db_compress_int __P((u_int8_t *, u_int64_t));
18 u_int32_t __db_decompress_count_int __P((const u_int8_t *));
19 int __db_decompress_int __P((const u_int8_t *, u_int64_t *));
20 int __db_decompress_int32 __P((const u_int8_t *, u_int32_t *));
21 int __db_fchk __P((ENV *, const char *, u_int32_t, u_int32_t));
22 int __db_fcchk __P((ENV *, const char *, u_int32_t, u_int32_t, u_int32_t));
23 int __db_ferr __P((const ENV *, const char *, int));
24 int __db_fnl __P((const ENV *, const char *));
25 int __db_pgerr __P((DB *, db_pgno_t, int));
26 int __db_pgfmt __P((ENV *, db_pgno_t));
27 #ifdef DIAGNOSTIC
28 void __db_assert __P((ENV *, const char *, const char *, int));
29 #endif
30 void __env_panic_event __P((ENV *, int));
31 int __env_panic_msg __P((ENV *));
32 int __env_panic __P((ENV *, int));
33 char *__db_unknown_error __P((int));
34 void __db_syserr __P((const ENV *, int, const char *, ...)) __attribute__ ((__format__ (__printf__, 3, 4)));
35 void __db_err __P((const ENV *, int, const char *, ...)) __attribute__ ((__format__ (__printf__, 3, 4)));
36 void __db_errx __P((const ENV *, const char *, ...)) __attribute__ ((__format__ (__printf__, 2, 3)));
37 void __db_errcall __P((const DB_ENV *, int, db_error_set_t, const char *, va_list));
38 void __db_errfile __P((const DB_ENV *, int, db_error_set_t, const char *, va_list));
39 void __db_msgadd __P((const ENV *, DB_MSGBUF *, const char *, ...)) __attribute__ ((__format__ (__printf__, 3, 4)));
40 void __db_msgadd_ap __P((const ENV *, DB_MSGBUF *, const char *, va_list));
41 void __db_msg __P((const ENV *, const char *, ...)) __attribute__ ((__format__ (__printf__, 2, 3)));
42 void __db_debug_msg __P((const ENV *, const char *, ...));
43 void __db_repmsg __P((const ENV *, const char *, ...)) __attribute__ ((__format__ (__printf__, 2, 3)));
44 void __db_msgcall __P((const DB_ENV *, const char *, va_list));
45 void __db_msgfile __P((const DB_ENV *, const char *, va_list));
46 int __db_unknown_flag __P((ENV *, char *, u_int32_t));
47 int __db_unknown_type __P((ENV *, char *, DBTYPE));
48 int __db_unknown_path __P((ENV *, char *));
49 int __db_check_txn __P((DB *, DB_TXN *, DB_LOCKER *, int));
50 int __db_txn_deadlock_err __P((ENV *, DB_TXN *));
51 int __db_not_txn_env __P((ENV *));
52 int __db_not_log_env __P((ENV *));
53 int __db_rec_toobig __P((ENV *, u_int32_t, u_int32_t));
54 int __db_rec_repl __P((ENV *, u_int32_t, u_int32_t));
55 int __dbc_logging __P((DBC *));
56 int __db_check_lsn __P((ENV *, DB_LSN *, DB_LSN *));
57 int __db_rdonly __P((const ENV *, const char *));
58 int __db_space_err __P((const DB *));
59 int __db_failed __P((const ENV *, const char *, pid_t, db_threadid_t));
60 int __env_failure_remember __P((const ENV *, const char *));
61 #ifdef HAVE_ERROR_HISTORY
62 void __db_thread_init __P((void));
63 #endif
64 #ifdef HAVE_ERROR_HISTORY
65 int __db_diags __P((const ENV *, int));
66 #endif
67 #ifdef HAVE_ERROR_HISTORY
68 DB_MSGBUF *__db_deferred_get __P((void));
69 #endif
70 #ifdef HAVE_ERROR_HISTORY
71 void __db_deferred_discard __P((void));
72 #endif
73 #ifdef HAVE_ERROR_HISTORY
74 int __db_remember_context __P((const ENV *, DB_MSGBUF *, int));
75 #endif
76 char * __db_ctimespec __P((const db_timespec *, char *));
77 char *__db_fmt_quote __P((char *, size_t, const char *));
78 int __db_getlong __P((DB_ENV *, const char *, char *, long, long, long *));
79 int __db_getulong __P((DB_ENV *, const char *, char *, u_long, u_long, u_long *));
80 void __db_idspace __P((u_int32_t *, int, u_int32_t *, u_int32_t *));
81 u_int32_t __db_log2 __P((u_int32_t));
82 u_int32_t __db_tablesize __P((u_int32_t));
83 void __db_hashinit __P((void *, u_int32_t));
84 int __dbt_usercopy __P((ENV *, DBT *));
85 void __dbt_userfree __P((ENV *, DBT *, DBT *, DBT *));
86 int __dbt_defcmp __P((DB *, const DBT *, const DBT *, size_t *));
87 int __db_mkpath __P((ENV *, const char *));
88 u_int32_t __db_openflags __P((int));
89 int __db_util_arg __P((char *, char *, int *, char ***));
90 const char *__db_util_arg_progname __P((const char *));
91 int __db_util_arg_password __P((const char *, char *, char **));
92 int __db_util_cache __P((DB *, u_int32_t *, int *));
93 int __db_util_env_create __P((DB_ENV **, const char *, const char *, const char *));
94 int __db_util_env_open __P((DB_ENV *, const char *, int, int, int, u_int32_t, int *));
95 int __db_util_logset __P((const char *, char *));
96 void __db_util_siginit __P((void));
97 int __db_util_interrupted __P((void));
98 void __db_util_sigresend __P((void));
99 int __db_util_version_check __P((const char *));
100 int __db_zero_fill __P((ENV *, DB_FH *));
101 int __db_zero_extend __P((ENV *, DB_FH *, db_pgno_t, db_pgno_t, u_int32_t));
102 
103 #if defined(__cplusplus)
104 }
105 #endif
106 #endif /* !_common_ext_h_ */
107