mirror of
https://github.com/MariaDB/server.git
synced 2025-01-18 21:12:26 +01:00
c917330a02
BitKeeper/deleted/.del-README~281c91deea8d9cf7: Delete: bdb/examples_c/README BitKeeper/deleted/.del-bench_001.c~2fa9b35498dae603: Delete: bdb/examples_c/bench_001.c BitKeeper/deleted/.del-ex_access.c~75506e56e42fa9d4: Delete: bdb/examples_c/ex_access.c BitKeeper/deleted/.del-ex_btrec.c~1dd4f24b6baa62a5: Delete: bdb/examples_c/ex_btrec.c BitKeeper/deleted/.del-ex_dbclient.c~9560845efc4dcf01: Delete: bdb/examples_c/ex_dbclient.c BitKeeper/deleted/.del-ex_env.c~b2fbf8debefbb955: Delete: bdb/examples_c/ex_env.c BitKeeper/deleted/.del-ex_lock.c~6b6f72e8b19da0b1: Delete: bdb/examples_c/ex_lock.c BitKeeper/deleted/.del-ex_mpool.c~b51c929ad09f2cb8: Delete: bdb/examples_c/ex_mpool.c BitKeeper/deleted/.del-auto_rebuild~79f363fad0302f23: Delete: bdb/examples_c/ex_apprec/auto_rebuild BitKeeper/deleted/.del-ex_apprec.c~d76cd5b13fd7f9e: Delete: bdb/examples_c/ex_apprec/ex_apprec.c BitKeeper/deleted/.del-ex_apprec.h~fbc4e37c9936bed8: Delete: bdb/examples_c/ex_apprec/ex_apprec.h BitKeeper/deleted/.del-ex_apprec.src~3cb70069cd818a9c: Delete: bdb/examples_c/ex_apprec/ex_apprec.src BitKeeper/deleted/.del-ex_apprec_rec.c~5cc676001646b782: Delete: bdb/examples_c/ex_apprec/ex_apprec_rec.c BitKeeper/deleted/.del-ex_repquote.h~4d3695fe78cc55bf: Delete: bdb/examples_c/ex_repquote/ex_repquote.h BitKeeper/deleted/.del-ex_rq_client.c~d7044f23b55b359: Delete: bdb/examples_c/ex_repquote/ex_rq_client.c BitKeeper/deleted/.del-ex_rq_main.c~da00595d16b60cf0: Delete: bdb/examples_c/ex_repquote/ex_rq_main.c BitKeeper/deleted/.del-ex_rq_master.c~85dbde9ad8245ecb: Delete: bdb/examples_c/ex_repquote/ex_rq_master.c BitKeeper/deleted/.del-ex_rq_net.c~a54052285595ec00: Delete: bdb/examples_c/ex_repquote/ex_rq_net.c BitKeeper/deleted/.del-ex_rq_util.c~fa9d3ac1141a075c: Delete: bdb/examples_c/ex_repquote/ex_rq_util.c BitKeeper/deleted/.del-ex_thread.c~cff8e0283bd52c4c: Delete: bdb/examples_c/ex_thread.c BitKeeper/deleted/.del-ex_tpcb.c~438b76c1166f4c05: Delete: bdb/examples_c/ex_tpcb.c BitKeeper/deleted/.del-ex_tpcb.h~1f578e0fb4fb78d3: Delete: bdb/examples_c/ex_tpcb.h BitKeeper/deleted/.del-AccessExample.cpp~1016122e96eac900: Delete: bdb/examples_cxx/AccessExample.cpp BitKeeper/deleted/.del-BtRecExample.cpp~f79114b5ee4d7c99: Delete: bdb/examples_cxx/BtRecExample.cpp BitKeeper/deleted/.del-EnvExample.cpp~ef23df0013fbadfb: Delete: bdb/examples_cxx/EnvExample.cpp BitKeeper/deleted/.del-LockExample.cpp~7ef6698c1a6364c6: Delete: bdb/examples_cxx/LockExample.cpp BitKeeper/deleted/.del-MpoolExample.cpp~45a8c0095f7149a3: Delete: bdb/examples_cxx/MpoolExample.cpp BitKeeper/deleted/.del-TpcbExample.cpp~a3fab717eccade1a: Delete: bdb/examples_cxx/TpcbExample.cpp BitKeeper/deleted/.del-Db.java.in~e887e6168818e1fe: Delete: bdb/java/src/com/sleepycat/db/Db.java.in BitKeeper/deleted/.del-DbAppDispatch.java~b6c6964ddeceb451: Delete: bdb/java/src/com/sleepycat/db/DbAppDispatch.java BitKeeper/deleted/.del-DbAppendRecno.java~20e7d8affe21bda4: Delete: bdb/java/src/com/sleepycat/db/DbAppendRecno.java BitKeeper/deleted/.del-DbBtreeCompare.java~2def264d9d57c5d4: Delete: bdb/java/src/com/sleepycat/db/DbBtreeCompare.java BitKeeper/deleted/.del-DbBtreePrefix.java~781bcc5275fd02a7: Delete: bdb/java/src/com/sleepycat/db/DbBtreePrefix.java BitKeeper/deleted/.del-DbClient.java~526df4e74349d6d6: Delete: bdb/java/src/com/sleepycat/db/DbClient.java BitKeeper/deleted/.del-DbDeadlockException.java~568c96bffced5abf: Delete: bdb/java/src/com/sleepycat/db/DbDeadlockException.java BitKeeper/deleted/.del-DbDupCompare.java~905735b85e180ae2: Delete: bdb/java/src/com/sleepycat/db/DbDupCompare.java BitKeeper/deleted/.del-DbEnv.java~79f045af656bde5c: Delete: bdb/java/src/com/sleepycat/db/DbEnv.java BitKeeper/deleted/.del-DbEnvFeedback.java~5d68defe7f5b72ac: Delete: bdb/java/src/com/sleepycat/db/DbEnvFeedback.java BitKeeper/deleted/.del-DbErrcall.java~ae4f822b75a145a9: Delete: bdb/java/src/com/sleepycat/db/DbErrcall.java BitKeeper/deleted/.del-DbException.java~c1ea24cdb4bd795f: Delete: bdb/java/src/com/sleepycat/db/DbException.java BitKeeper/deleted/.del-DbFeedback.java~7e7c1fc71f4ceee5: Delete: bdb/java/src/com/sleepycat/db/DbFeedback.java BitKeeper/deleted/.del-DbHash.java~658cdd90ec5197b2: Delete: bdb/java/src/com/sleepycat/db/DbHash.java BitKeeper/deleted/.del-DbKeyRange.java~28b6b373a22ec489: Delete: bdb/java/src/com/sleepycat/db/DbKeyRange.java BitKeeper/deleted/.del-DbLock.java~23eaf3e4a1ccadc1: Delete: bdb/java/src/com/sleepycat/db/DbLock.java BitKeeper/deleted/.del-DbLockNotGrantedException.java~4981a6c1878659ec: Delete: bdb/java/src/com/sleepycat/db/DbLockNotGrantedException.java BitKeeper/deleted/.del-DbLockRequest.java~b6751a2bbac273de: Delete: bdb/java/src/com/sleepycat/db/DbLockRequest.java BitKeeper/deleted/.del-DbLogc.java~cf88740f650599c3: Delete: bdb/java/src/com/sleepycat/db/DbLogc.java BitKeeper/deleted/.del-DbLsn.java~813ddabdb6098c13: Delete: bdb/java/src/com/sleepycat/db/DbLsn.java BitKeeper/deleted/.del-DbMemoryException.java~459fea825d4835a: Delete: bdb/java/src/com/sleepycat/db/DbMemoryException.java BitKeeper/deleted/.del-DbMpoolStat.java~d868c0c27966efd8: Delete: bdb/java/src/com/sleepycat/db/DbMpoolStat.java BitKeeper/deleted/.del-DbMultipleDataIterator.java~38348934676e4a64: Delete: bdb/java/src/com/sleepycat/db/DbMultipleDataIterator.java BitKeeper/deleted/.del-DbMultipleIterator.java~587d1f79b3783ec0: Delete: bdb/java/src/com/sleepycat/db/DbMultipleIterator.java BitKeeper/deleted/.del-DbMultipleKeyDataIterator.java~e8d9948c3bb3b408: Delete: bdb/java/src/com/sleepycat/db/DbMultipleKeyDataIterator.java BitKeeper/deleted/.del-DbMultipleRecnoDataIterator.java~7243ef5ba89fbaa0: Delete: bdb/java/src/com/sleepycat/db/DbMultipleRecnoDataIterator.java BitKeeper/deleted/.del-DbOutputStreamErrcall.java~7b2c1e221fcaf5a: Delete: bdb/java/src/com/sleepycat/db/DbOutputStreamErrcall.java BitKeeper/deleted/.del-DbPreplist.java~520488d9ab8efca8: Delete: bdb/java/src/com/sleepycat/db/DbPreplist.java BitKeeper/deleted/.del-DbRepTransport.java~ce17e09c2a29ef96: Delete: bdb/java/src/com/sleepycat/db/DbRepTransport.java BitKeeper/deleted/.del-DbRunRecoveryException.java~6c02e5ffd95ec7d: Delete: bdb/java/src/com/sleepycat/db/DbRunRecoveryException.java BitKeeper/deleted/.del-DbSecondaryKeyCreate.java~a154ad043120c3: Delete: bdb/java/src/com/sleepycat/db/DbSecondaryKeyCreate.java BitKeeper/deleted/.del-DbTxn.java~da61406e8af5d725: Delete: bdb/java/src/com/sleepycat/db/DbTxn.java BitKeeper/deleted/.del-DbUtil.java~7c40dfa8a06a1a50: Delete: bdb/java/src/com/sleepycat/db/DbUtil.java BitKeeper/deleted/.del-Dbc.java~1cb27c86611ea9b0: Delete: bdb/java/src/com/sleepycat/db/Dbc.java BitKeeper/deleted/.del-AccessExample.java~219ec1dab0b67a6c: Delete: bdb/java/src/com/sleepycat/examples/AccessExample.java BitKeeper/deleted/.del-BtRecExample.java~642b5d36f9df6088: Delete: bdb/java/src/com/sleepycat/examples/BtRecExample.java BitKeeper/deleted/.del-BulkAccessExample.java~293cb1f4c373e0cb: Delete: bdb/java/src/com/sleepycat/examples/BulkAccessExample.java BitKeeper/deleted/.del-DbXAResource.java~874c6f2697b602db: Delete: bdb/java/src/com/sleepycat/db/xa/DbXAResource.java BitKeeper/deleted/.del-DbXid.java~77ee0f96aa4eb4e: Delete: bdb/java/src/com/sleepycat/db/xa/DbXid.java BitKeeper/deleted/.del-Dbt.java~ea175c8ddc0efd2c: Delete: bdb/java/src/com/sleepycat/db/Dbt.java BitKeeper/deleted/.del-EnvExample.java~a44d38fba5efa4ef: Delete: bdb/java/src/com/sleepycat/examples/EnvExample.java BitKeeper/deleted/.del-LockExample.java~adc9265cb3d68019: Delete: bdb/java/src/com/sleepycat/examples/LockExample.java BitKeeper/deleted/.del-TpcbExample.java~5d4818c4e5e7320a: Delete: bdb/java/src/com/sleepycat/examples/TpcbExample.java bdb/dist/s_include: removed 'crypto' bdb/dist/s_recover: bdb/ cleanup bdb/dist/s_symlink: bdb/ cleanup
160 lines
4.1 KiB
Bash
Executable file
160 lines
4.1 KiB
Bash
Executable file
#!/bin/sh -
|
|
# $Id: s_include,v 1.19 2002/03/27 04:31:50 bostic Exp $
|
|
#
|
|
# Build the automatically generated function prototype files.
|
|
|
|
msgc="/* DO NOT EDIT: automatically built by dist/s_include. */"
|
|
|
|
. ./RELEASE
|
|
|
|
head()
|
|
{
|
|
defonly=0
|
|
while :
|
|
do case "$1" in
|
|
space)
|
|
echo ""; shift;;
|
|
defonly)
|
|
defonly=1; shift;;
|
|
*)
|
|
name="$1"; break;;
|
|
esac
|
|
done
|
|
|
|
echo "$msgc"
|
|
echo "#ifndef $name"
|
|
echo "#define $name"
|
|
echo ""
|
|
if [ $defonly -eq 0 ]; then
|
|
echo "#if defined(__cplusplus)"
|
|
echo "extern \"C\" {"
|
|
echo "#endif"
|
|
echo ""
|
|
fi
|
|
}
|
|
|
|
tail()
|
|
{
|
|
defonly=0
|
|
while :
|
|
do case "$1" in
|
|
defonly)
|
|
defonly=1; shift;;
|
|
*)
|
|
name="$1"; break;;
|
|
esac
|
|
done
|
|
|
|
echo ""
|
|
if [ $defonly -eq 0 ]; then
|
|
echo "#if defined(__cplusplus)"
|
|
echo "}"
|
|
echo "#endif"
|
|
fi
|
|
echo "#endif /* !$name */"
|
|
}
|
|
|
|
# We are building several files:
|
|
# 1 external #define file
|
|
# 1 external prototype file
|
|
# 1 internal #define file
|
|
# N internal prototype files
|
|
e_dfile=/tmp/__db_c.$$
|
|
e_pfile=/tmp/__db_a.$$
|
|
i_dfile=/tmp/__db_d.$$
|
|
i_pfile=/tmp/__db_b.$$
|
|
trap 'rm -f $e_dfile $e_pfile $i_dfile $i_pfile; exit 0' 0 1 2 3 13 15
|
|
|
|
head defonly space _DB_EXT_DEF_IN_ > $e_dfile
|
|
head space _DB_EXT_PROT_IN_ > $e_pfile
|
|
head defonly _DB_INT_DEF_IN_ > $i_dfile
|
|
|
|
# Process the standard directories, creating per-directory prototype
|
|
# files and adding to the external prototype and #define files.
|
|
for i in db btree clib common dbreg env fileops hash hmac \
|
|
lock log mp mutex os qam rep rpc_client rpc_server tcl txn xa; do
|
|
head "_${i}_ext_h_" > $i_pfile
|
|
|
|
f="../$i/*.c"
|
|
[ $i = os ] && f="$f ../os_win32/*.c"
|
|
[ $i = rpc_server ] && f="../$i/c/*.c"
|
|
[ $i = crypto ] && f="../$i/*.c ../$i/*/*.c"
|
|
awk -f gen_inc.awk \
|
|
-v db_version_unique_name=$DB_VERSION_UNIQUE_NAME \
|
|
-v e_dfile=$e_dfile \
|
|
-v e_pfile=$e_pfile \
|
|
-v i_dfile=$i_dfile \
|
|
-v i_pfile=$i_pfile $f
|
|
|
|
tail "_${i}_ext_h_" >> $i_pfile
|
|
|
|
f=../dbinc_auto/${i}_ext.h
|
|
cmp $i_pfile $f > /dev/null 2>&1 ||
|
|
(echo "Building $f" && rm -f $f && cp $i_pfile $f && chmod 444 $f)
|
|
done
|
|
|
|
# Process directories which only add to the external prototype and #define
|
|
# files.
|
|
for i in dbm hsearch; do
|
|
f="../$i/*.c"
|
|
awk -f gen_inc.awk \
|
|
-v db_version_unique_name=$DB_VERSION_UNIQUE_NAME \
|
|
-v e_dfile=$e_dfile \
|
|
-v e_pfile=$e_pfile \
|
|
-v i_dfile="" \
|
|
-v i_pfile="" $f
|
|
done
|
|
|
|
# RPC uses rpcgen to generate a header file; post-process it to add more
|
|
# interfaces to the internal #define file.
|
|
sed -e '/extern bool_t xdr___/{' \
|
|
-e 's/.* //' \
|
|
-e 's/();//' \
|
|
-e 's/.*/#define & &@DB_VERSION_UNIQUE_NAME@/' \
|
|
-e 'p' \
|
|
-e '}' \
|
|
-e d < ../dbinc_auto/db_server.h >> $i_dfile
|
|
|
|
# There are a few globals in DB -- add them to the external/internal
|
|
# #define files.
|
|
(echo "#define __db_global_values __db_global_values@DB_VERSION_UNIQUE_NAME@";
|
|
echo "#define __db_jump __db_jump@DB_VERSION_UNIQUE_NAME@") >> $i_dfile
|
|
(echo "#define db_xa_switch db_xa_switch@DB_VERSION_UNIQUE_NAME@") >> $e_dfile
|
|
|
|
# Wrap up the external #defines/prototypes, and internal #defines.
|
|
tail defonly _DB_EXT_DEF_IN_ >> $e_dfile
|
|
f=../dbinc_auto/ext_def.in
|
|
cmp $e_dfile $f > /dev/null 2>&1 ||
|
|
(echo "Building $f" && rm -f $f && cp $e_dfile $f && chmod 444 $f)
|
|
|
|
tail _DB_EXT_PROT_IN_ >> $e_pfile
|
|
f=../dbinc_auto/ext_prot.in
|
|
cmp $e_pfile $f > /dev/null 2>&1 ||
|
|
(echo "Building $f" && rm -f $f && cp $e_pfile $f && chmod 444 $f)
|
|
|
|
tail defonly _DB_INT_DEF_IN_ >> $i_dfile
|
|
f=../dbinc_auto/int_def.in
|
|
cmp $i_dfile $f > /dev/null 2>&1 ||
|
|
(echo "Building $f" && rm -f $f && cp $i_dfile $f && chmod 444 $f)
|
|
|
|
# DB185 compatibility support.
|
|
head space defonly _DB_EXT_185_DEF_IN_ > $e_dfile
|
|
head space _DB_EXT_185_PROT_IN_ > $e_pfile
|
|
|
|
f="../db185/*.c"
|
|
awk -f gen_inc.awk \
|
|
-v db_version_unique_name=$DB_VERSION_UNIQUE_NAME \
|
|
-v e_dfile=$e_dfile \
|
|
-v e_pfile=$e_pfile \
|
|
-v i_dfile="" \
|
|
-v i_pfile="" $f
|
|
|
|
tail defonly _DB_EXT_185_DEF_IN_ >> $e_dfile
|
|
f=../dbinc_auto/ext_185_def.in
|
|
cmp $e_dfile $f > /dev/null 2>&1 ||
|
|
(echo "Building $f" && rm -f $f && cp $e_dfile $f && chmod 444 $f)
|
|
|
|
tail _DB_EXT_185_PROT_IN_ >> $e_pfile
|
|
f=../dbinc_auto/ext_185_prot.in
|
|
cmp $e_pfile $f > /dev/null 2>&1 ||
|
|
(echo "Building $f" && rm -f $f && cp $e_pfile $f && chmod 444 $f)
|