003 File Manager
Current Path:
/usr/src/contrib/subversion/subversion/libsvn_fs_base/bdb
usr
/
src
/
contrib
/
subversion
/
subversion
/
libsvn_fs_base
/
bdb
/
📁
..
📄
bdb-err.c
(2.9 KB)
📄
bdb-err.h
(4.24 KB)
📄
bdb_compat.c
(1.26 KB)
📄
bdb_compat.h
(4.57 KB)
📄
changes-table.c
(16.44 KB)
📄
changes-table.h
(3.68 KB)
📄
checksum-reps-table.c
(8.05 KB)
📄
checksum-reps-table.h
(3.77 KB)
📄
copies-table.c
(6.63 KB)
📄
copies-table.h
(3.75 KB)
📄
dbt.c
(3.83 KB)
📄
dbt.h
(4.14 KB)
📄
env.c
(22.57 KB)
📄
env.h
(5.34 KB)
📄
lock-tokens-table.c
(5.05 KB)
📄
lock-tokens-table.h
(3.33 KB)
📄
locks-table.c
(10.03 KB)
📄
locks-table.h
(4 KB)
📄
miscellaneous-table.c
(4.44 KB)
📄
miscellaneous-table.h
(2.5 KB)
📄
node-origins-table.c
(5.46 KB)
📄
node-origins-table.h
(3.19 KB)
📄
nodes-table.c
(8.27 KB)
📄
nodes-table.h
(4.93 KB)
📄
reps-table.c
(6.41 KB)
📄
reps-table.h
(3.45 KB)
📄
rev-table.c
(7.39 KB)
📄
rev-table.h
(3.03 KB)
📄
strings-table.c
(16.36 KB)
📄
strings-table.h
(5.29 KB)
📄
txn-table.c
(10.49 KB)
📄
txn-table.h
(3.86 KB)
📄
uuids-table.c
(4.33 KB)
📄
uuids-table.h
(2.35 KB)
Editing: bdb_compat.h
/* svn_bdb_compat.h --- Compatibility wrapper for different BDB versions. * * ==================================================================== * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the Apache License, Version 2.0 (the * "License"); you may not use this file except in compliance * with the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, * software distributed under the License is distributed on an * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY * KIND, either express or implied. See the License for the * specific language governing permissions and limitations * under the License. * ==================================================================== */ #ifndef SVN_LIBSVN_FS_BDB_COMPAT_H #define SVN_LIBSVN_FS_BDB_COMPAT_H #define SVN_WANT_BDB #include "svn_private_config.h" #ifdef __cplusplus extern "C" { #endif /* __cplusplus */ /* Symbols and constants */ /* BDB 4.1 introduced the DB_AUTO_COMMIT flag. Older versions can just use 0 instead. */ #ifdef DB_AUTO_COMMIT #define SVN_BDB_AUTO_COMMIT (DB_AUTO_COMMIT) #else #define SVN_BDB_AUTO_COMMIT (0) #endif /* DB_INCOMPLETE is obsolete in BDB 4.1. */ #ifdef DB_INCOMPLETE #define SVN_BDB_HAS_DB_INCOMPLETE 1 #else #define SVN_BDB_HAS_DB_INCOMPLETE 0 #endif /* In BDB 4.3, "buffer too small" errors come back with DB_BUFFER_SMALL (instead of ENOMEM, which is now fatal). */ #ifdef DB_BUFFER_SMALL #define SVN_BDB_DB_BUFFER_SMALL DB_BUFFER_SMALL #else #define SVN_BDB_DB_BUFFER_SMALL ENOMEM #endif /* BDB 4.4 introdiced the DB_REGISTER flag for DBEnv::open that allows for automatic recovery of the databases after a program crash. */ #ifdef DB_REGISTER #define SVN_BDB_AUTO_RECOVER (DB_REGISTER | DB_RECOVER) #else #define SVN_BDB_AUTO_RECOVER (0) #endif /* Explicit BDB version check. */ #define SVN_BDB_VERSION_AT_LEAST(major,minor) \ (DB_VERSION_MAJOR > (major) \ || (DB_VERSION_MAJOR == (major) && DB_VERSION_MINOR >= (minor))) /* Parameter lists */ /* In BDB 4.1, DB->open takes a transaction parameter. We'll ignore it when building with 4.0. */ #if SVN_BDB_VERSION_AT_LEAST(4,1) #define SVN_BDB_OPEN_PARAMS(env,txn) (env), (txn) #else #define SVN_BDB_OPEN_PARAMS(env,txn) (env) #endif /* In BDB 4.3, the error gatherer function grew a new DBENV parameter, and the MSG parameter's type changed. */ #if SVN_BDB_VERSION_AT_LEAST(4,3) /* Prevents most compilers from whining about unused parameters. */ #define SVN_BDB_ERROR_GATHERER_IGNORE(varname) ((void)(varname)) #else #define bdb_error_gatherer(param1, param2, param3) \ bdb_error_gatherer(param2, char *msg) #define SVN_BDB_ERROR_GATHERER_IGNORE(varname) ((void)0) #endif /* In BDB 4.3 and later, the file names in DB_ENV->open and DB->open are assumed to be encoded in UTF-8 on Windows. */ #if defined(WIN32) && SVN_BDB_VERSION_AT_LEAST(4,3) #define SVN_BDB_PATH_UTF8 (1) #else #define SVN_BDB_PATH_UTF8 (0) #endif /* In BDB 4.6, the cursor routines were renamed, and the old names deprecated. */ #if SVN_BDB_VERSION_AT_LEAST(4,6) #define svn_bdb_dbc_close(c) ((c)->close(c)) #define svn_bdb_dbc_count(c,r,f) ((c)->count(c,r,f)) #define svn_bdb_dbc_del(c,f) ((c)->del(c,f)) #define svn_bdb_dbc_dup(c,p,f) ((c)->dup(c,p,f)) #define svn_bdb_dbc_get(c,k,d,f) ((c)->get(c,k,d,f)) #define svn_bdb_dbc_pget(c,k,p,d,f) ((c)->pget(c,k,p,d,f)) #define svn_bdb_dbc_put(c,k,d,f) ((c)->put(c,k,d,f)) #else #define svn_bdb_dbc_close(c) ((c)->c_close(c)) #define svn_bdb_dbc_count(c,r,f) ((c)->c_count(c,r,f)) #define svn_bdb_dbc_del(c,f) ((c)->c_del(c,f)) #define svn_bdb_dbc_dup(c,p,f) ((c)->c_dup(c,p,f)) #define svn_bdb_dbc_get(c,k,d,f) ((c)->c_get(c,k,d,f)) #define svn_bdb_dbc_pget(c,k,p,d,f) ((c)->c_pget(c,k,p,d,f)) #define svn_bdb_dbc_put(c,k,d,f) ((c)->c_put(c,k,d,f)) #endif /* Before calling db_create, we must check that the version of the BDB libraries we're linking with is the same as the one we compiled against, because the DB->open call is not binary compatible between BDB 4.0 and 4.1. This function returns DB_OLD_VERSION if the compile-time and run-time versions of BDB don't match. */ int svn_fs_bdb__check_version(void); #ifdef __cplusplus } #endif /* __cplusplus */ #endif /* SVN_LIBSVN_FS_BDB_COMPAT_H */
Upload File
Create Folder