mirror of
https://github.com/MariaDB/server.git
synced 2025-07-29 05:21:33 +03:00
Merge....
BitKeeper/etc/logging_ok: auto-union client/mysqladmin.c: Auto merged include/mysql.h: Auto merged libmysql/libmysql.c: Auto merged sql/item_strfunc.cc: Auto merged sql/item_strfunc.h: Auto merged sql/lex.h: Auto merged sql/mini_client.cc: Auto merged sql/mysql_priv.h: Auto merged libmysql/password.c: Auto merged sql/sql_acl.cc: Auto merged sql/sql_acl.h: Auto merged sql/sql_class.h: Auto merged sql/sql_parse.cc: Auto merged sql/sql_yacc.yy: Auto merged sql/mysqld.cc: Manual merge
This commit is contained in:
41
.bzrignore
41
.bzrignore
@ -76,6 +76,9 @@ PENDING/*
|
||||
TAGS
|
||||
aclocal.m4
|
||||
autom4te.cache/*
|
||||
autom4te.cache/output.0
|
||||
autom4te.cache/requests
|
||||
autom4te.cache/traces.0
|
||||
bdb/README
|
||||
bdb/btree/btree_auto.c
|
||||
bdb/build_unix/*
|
||||
@ -84,17 +87,21 @@ bdb/build_vxworks/db_int.h
|
||||
bdb/build_win32/db.h
|
||||
bdb/build_win32/db_archive.dsp
|
||||
bdb/build_win32/db_checkpoint.dsp
|
||||
bdb/build_win32/db_config.h
|
||||
bdb/build_win32/db_cxx.h
|
||||
bdb/build_win32/db_deadlock.dsp
|
||||
bdb/build_win32/db_dll.dsp
|
||||
bdb/build_win32/db_dump.dsp
|
||||
bdb/build_win32/db_int.h
|
||||
bdb/build_win32/db_java.dsp
|
||||
bdb/build_win32/db_load.dsp
|
||||
bdb/build_win32/db_perf.dsp
|
||||
bdb/build_win32/db_printlog.dsp
|
||||
bdb/build_win32/db_recover.dsp
|
||||
bdb/build_win32/db_stat.dsp
|
||||
bdb/build_win32/db_static.dsp
|
||||
bdb/build_win32/db_tcl.dsp
|
||||
bdb/build_win32/db_test.dsp
|
||||
bdb/build_win32/db_upgrade.dsp
|
||||
bdb/build_win32/db_verify.dsp
|
||||
bdb/build_win32/ex_access.dsp
|
||||
@ -110,9 +117,16 @@ bdb/build_win32/excxx_lock.dsp
|
||||
bdb/build_win32/excxx_mpool.dsp
|
||||
bdb/build_win32/excxx_tpcb.dsp
|
||||
bdb/build_win32/include.tcl
|
||||
bdb/build_win32/libdb.def
|
||||
bdb/build_win32/libdb.rc
|
||||
bdb/db/crdel_auto.c
|
||||
bdb/db/db_auto.c
|
||||
bdb/dbinc_auto/*.*
|
||||
bdb/dbreg/dbreg_auto.c
|
||||
bdb/dist/autom4te.cache/*
|
||||
bdb/dist/autom4te.cache/output.0
|
||||
bdb/dist/autom4te.cache/requests
|
||||
bdb/dist/autom4te.cache/traces.0
|
||||
bdb/dist/config.hin
|
||||
bdb/dist/configure
|
||||
bdb/dist/tags
|
||||
@ -121,11 +135,17 @@ bdb/dist/template/gen_client_ret
|
||||
bdb/dist/template/rec_btree
|
||||
bdb/dist/template/rec_crdel
|
||||
bdb/dist/template/rec_db
|
||||
bdb/dist/template/rec_dbreg
|
||||
bdb/dist/template/rec_fileops
|
||||
bdb/dist/template/rec_hash
|
||||
bdb/dist/template/rec_log
|
||||
bdb/dist/template/rec_qam
|
||||
bdb/dist/template/rec_txn
|
||||
bdb/examples_c/ex_apprec/ex_apprec_auto.c
|
||||
bdb/examples_c/ex_apprec/ex_apprec_auto.h
|
||||
bdb/examples_c/ex_apprec/ex_apprec_template
|
||||
bdb/examples_java
|
||||
bdb/fileops/fileops_auto.c
|
||||
bdb/hash/hash_auto.c
|
||||
bdb/include/btree_auto.h
|
||||
bdb/include/btree_ext.h
|
||||
@ -154,16 +174,33 @@ bdb/include/tcl_ext.h
|
||||
bdb/include/txn_auto.h
|
||||
bdb/include/txn_ext.h
|
||||
bdb/include/xa_ext.h
|
||||
bdb/java/src/com/sleepycat/db/Db.java
|
||||
bdb/java/src/com/sleepycat/db/DbBtreeStat.java
|
||||
bdb/java/src/com/sleepycat/db/DbConstants.java
|
||||
bdb/java/src/com/sleepycat/db/DbHashStat.java
|
||||
bdb/java/src/com/sleepycat/db/DbLockStat.java
|
||||
bdb/java/src/com/sleepycat/db/DbLogStat.java
|
||||
bdb/java/src/com/sleepycat/db/DbMpoolFStat.java
|
||||
bdb/java/src/com/sleepycat/db/DbQueueStat.java
|
||||
bdb/java/src/com/sleepycat/db/DbRepStat.java
|
||||
bdb/java/src/com/sleepycat/db/DbTxnStat.java
|
||||
bdb/libdb_java/java_stat_auto.c
|
||||
bdb/libdb_java/java_stat_auto.h
|
||||
bdb/log/log_auto.c
|
||||
bdb/qam/qam_auto.c
|
||||
bdb/rpc_client/db_server_clnt.c
|
||||
bdb/rpc_client/gen_client.c
|
||||
bdb/rpc_server/c/db_server_proc.c
|
||||
bdb/rpc_server/c/db_server_proc.sed
|
||||
bdb/rpc_server/c/db_server_svc.c
|
||||
bdb/rpc_server/c/db_server_xdr.c
|
||||
bdb/rpc_server/c/gen_db_server.c
|
||||
bdb/rpc_server/db_server.x
|
||||
bdb/rpc_server/db_server_proc.sed
|
||||
bdb/rpc_server/db_server_svc.c
|
||||
bdb/rpc_server/db_server_xdr.c
|
||||
bdb/rpc_server/gen_db_server.c
|
||||
bdb/test/TESTS
|
||||
bdb/test/include.tcl
|
||||
bdb/test/logtrack.list
|
||||
bdb/txn/txn_auto.c
|
||||
@ -197,6 +234,7 @@ configure.lineno
|
||||
core
|
||||
db-*.*.*
|
||||
dbug/user.t
|
||||
depcomp
|
||||
extra/comp_err
|
||||
extra/my_print_defaults
|
||||
extra/mysql_install
|
||||
@ -212,6 +250,9 @@ include/my_global.h
|
||||
include/mysql_version.h
|
||||
include/widec.h
|
||||
innobase/autom4te.cache/*
|
||||
innobase/autom4te.cache/output.0
|
||||
innobase/autom4te.cache/requests
|
||||
innobase/autom4te.cache/traces.0
|
||||
innobase/configure.lineno
|
||||
innobase/conftest.s1
|
||||
innobase/conftest.subs
|
||||
|
@ -37,7 +37,7 @@ EXTRA_DIST = FINISH.sh \
|
||||
compile-pentium-pgcc \
|
||||
compile-solaris-sparc \
|
||||
compile-solaris-sparc-debug \
|
||||
compile-solaris-sparc-fortre \
|
||||
compile-solaris-sparc-forte \
|
||||
compile-solaris-sparc-purify
|
||||
|
||||
# Don't update the files from bitkeeper
|
||||
|
13
BUILD/compile-pentium-valgrind-max
Executable file
13
BUILD/compile-pentium-valgrind-max
Executable file
@ -0,0 +1,13 @@
|
||||
#! /bin/sh
|
||||
|
||||
path=`dirname $0`
|
||||
. "$path/SETUP.sh"
|
||||
|
||||
extra_flags="$pentium_cflags $debug_cflags -DHAVE_purify"
|
||||
c_warnings="$c_warnings $debug_extra_warnings"
|
||||
cxx_warnings="$cxx_warnings $debug_extra_warnings"
|
||||
extra_configs="$pentium_configs $debug_configs"
|
||||
|
||||
extra_configs="$extra_configs --with-berkeley-db --with-innodb --with-embedded-server --with-openssl"
|
||||
|
||||
. "$path/FINISH.sh"
|
39
BUILD/compile-solaris-sparc-forte
Executable file
39
BUILD/compile-solaris-sparc-forte
Executable file
@ -0,0 +1,39 @@
|
||||
#! /bin/sh
|
||||
|
||||
gmake -k clean || true
|
||||
/bin/rm -f */.deps/*.P config.cache
|
||||
|
||||
aclocal && autoheader && aclocal && automake && autoconf
|
||||
(cd bdb/dist && sh s_all)
|
||||
(cd innobase && aclocal && autoheader && aclocal && automake && autoconf)
|
||||
if [ -d gemini ]
|
||||
then
|
||||
(cd gemini && aclocal && autoheader && aclocal && automake && autoconf)
|
||||
fi
|
||||
|
||||
|
||||
# Assume Forte is installed in /opt/SUNWSpro
|
||||
|
||||
PATH=/opt/SUNWspro/bin/:$PATH
|
||||
|
||||
# For "optimal" code for this computer add -fast to EXTRA
|
||||
# To compile 64 bit, add -xarch=v9 to EXTRA_64_BIT
|
||||
|
||||
EXTRA_64_BIT="-xarch=v9" # Remove comment to get 64 bit binaries
|
||||
EXTRA="-fast" # Remove comment to target current machine
|
||||
|
||||
#
|
||||
# The following should not need to be touched
|
||||
#
|
||||
|
||||
STD="-mt -D_FORTEC_ $EXTRA $EXTRA_64_BIT"
|
||||
ASFLAGS="$EXTRA_64_BIT" \
|
||||
CC=cc-5.0 CFLAGS="-Xa -xstrconst $STD" \
|
||||
CXX=CC CXXFLAGS="-noex $STD" \
|
||||
./configure --prefix=/usr/local/mysql --enable-assembler --with-extra-charsets=complex --enable-thread-safe-client
|
||||
|
||||
gmake -j 4
|
||||
if [ $? = 0 ]
|
||||
then
|
||||
make test
|
||||
fi
|
@ -1,19 +0,0 @@
|
||||
#! /bin/sh
|
||||
|
||||
gmake -k clean || true
|
||||
/bin/rm -f */.deps/*.P config.cache
|
||||
|
||||
aclocal && autoheader && aclocal && automake && autoconf
|
||||
(cd bdb/dist && sh s_all)
|
||||
(cd innobase && aclocal && autoheader && aclocal && automake && autoconf)
|
||||
if [ -d gemini ]
|
||||
then
|
||||
(cd gemini && aclocal && autoheader && aclocal && automake && autoconf)
|
||||
fi
|
||||
|
||||
PATH=/opt/SUNWspro/bin/:$PATH
|
||||
CC=cc CFLAGS="-Xa -fast -xO4 -native -xstrconst -mt -D_FORTREC_" \
|
||||
CXX=CC CXXFLAGS="-noex -xO4 -mt" \
|
||||
./configure --prefix=/usr/local/mysql --enable-assembler --with-extra-charsets=complex --enable-thread-safe-client
|
||||
|
||||
gmake -j 4
|
@ -42,7 +42,7 @@ single_host:
|
||||
# discovers a problem which requires local intervention. Please make the
|
||||
# contact information accurate so we can support you.
|
||||
#
|
||||
contact: Sasha Pachev <sasha@mysql.com>
|
||||
contact: sys@mysql.com
|
||||
#
|
||||
# It is very important that this email address is filled out and accurate.
|
||||
# If someone converts your repository to open logging (which you may not
|
||||
@ -51,7 +51,7 @@ contact: Sasha Pachev <sasha@mysql.com>
|
||||
# response from anyone else at your location after 90 days, then open logging
|
||||
# will be implicitly approved.
|
||||
#
|
||||
email: sasha@mysql.com
|
||||
email: sys@mysql.com
|
||||
#
|
||||
# Add your street address if you like, it is optional.
|
||||
#
|
||||
|
@ -16,6 +16,7 @@ bar@gw.udmsearch.izhnet.ru
|
||||
bell@sanja.is.com.ua
|
||||
bk@admin.bk
|
||||
davida@isil.mysql.com
|
||||
gluh@gluh.(none)
|
||||
heikki@donna.mysql.fi
|
||||
heikki@hundin.mysql.fi
|
||||
heikki@rescue.
|
||||
@ -41,6 +42,7 @@ miguel@hegel.local
|
||||
miguel@light.
|
||||
miguel@light.local
|
||||
monty@bitch.mysql.fi
|
||||
monty@butch.
|
||||
monty@donna.mysql.fi
|
||||
monty@hundin.mysql.fi
|
||||
monty@mashka.mysql.fi
|
||||
@ -90,6 +92,7 @@ venu@myvenu.com
|
||||
venu@work.mysql.com
|
||||
vva@genie.(none)
|
||||
walrus@mysql.com
|
||||
wax@mysql.com
|
||||
worm@altair.is.lan
|
||||
zak@balfor.local
|
||||
zak@linux.local
|
||||
|
@ -8,13 +8,13 @@ use Getopt::Long;
|
||||
$opt_distribution=$opt_user=$opt_config_env="";
|
||||
$opt_dbd_options=$opt_perl_options=$opt_config_options=$opt_make_options=$opt_suffix="";
|
||||
$opt_tmp=$opt_version_suffix="";
|
||||
$opt_help=$opt_delete=$opt_debug=$opt_stage=$opt_no_test=$opt_no_perl=$opt_with_low_memory=$opt_fast_benchmark=$opt_static_client=$opt_static_server=$opt_static_perl=$opt_sur=$opt_with_small_disk=$opt_local_perl=$opt_tcpip=$opt_build_thread=$opt_use_old_distribution=$opt_enable_shared=$opt_no_crash_me=$opt_no_strip=0;
|
||||
$opt_help=$opt_delete=$opt_debug=$opt_stage=$opt_no_test=$opt_no_perl=$opt_with_low_memory=$opt_fast_benchmark=$opt_static_client=$opt_static_server=$opt_static_perl=$opt_sur=$opt_with_small_disk=$opt_local_perl=$opt_tcpip=$opt_build_thread=$opt_use_old_distribution=$opt_enable_shared=$opt_no_crash_me=$opt_no_strip=$opt_with_debug=0;
|
||||
$opt_innodb=$opt_bdb=$opt_raid=$opt_libwrap=0;
|
||||
|
||||
GetOptions(
|
||||
"bdb",
|
||||
"build-thread=i",
|
||||
"config-env=s",
|
||||
"config-env=s" => \@config_env,
|
||||
"config-options=s" => \@config_options,
|
||||
"dbd-options=s",
|
||||
"debug",
|
||||
@ -45,6 +45,7 @@ GetOptions(
|
||||
"use-old-distribution",
|
||||
"user=s",
|
||||
"version-suffix=s",
|
||||
"with-debug",
|
||||
"with-low-memory",
|
||||
"with-other-libc=s",
|
||||
"with-small-disk",
|
||||
@ -53,11 +54,6 @@ GetOptions(
|
||||
usage() if ($opt_help);
|
||||
usage() if (!$opt_distribution);
|
||||
|
||||
if ($opt_bdb && $opt_version_suffix eq "")
|
||||
{
|
||||
$opt_version_suffix="-max";
|
||||
}
|
||||
|
||||
if (@make_options > 0)
|
||||
{
|
||||
chomp(@make_options);
|
||||
@ -70,6 +66,12 @@ if (@config_options > 0)
|
||||
$opt_config_options= join(" ", @config_options);
|
||||
}
|
||||
|
||||
if (@config_env > 0)
|
||||
{
|
||||
chomp(@config_env);
|
||||
$opt_config_env= join(" ", @config_env);
|
||||
}
|
||||
|
||||
chomp($host=`hostname`);
|
||||
$full_host_name=$host;
|
||||
$connect_option= ($opt_tcpip ? "--host=$host" : "");
|
||||
@ -208,6 +210,7 @@ if ($opt_stage <= 1)
|
||||
$opt_config_options.= " --disable-shared" if (!$opt_enable_shared); # Default for binary versions
|
||||
$opt_config_options.= " --with-berkeley-db" if ($opt_bdb);
|
||||
$opt_config_options.= " --with-client-ldflags=-all-static" if ($opt_static_client);
|
||||
$opt_config_options.= " --with-debug" if ($opt_with_debug);
|
||||
$opt_config_options.= " --with-libwrap" if ($opt_libwrap);
|
||||
$opt_config_options.= " --with-low-memory" if ($opt_with_low_memory);
|
||||
$opt_config_options.= " --with-mysqld-ldflags=-all-static" if ($opt_static_server);
|
||||
@ -258,7 +261,7 @@ if ($opt_stage <= 3)
|
||||
log_system("rm -fr mysql-3* mysql-4* $pwd/$host/*.tar.gz");
|
||||
log_system("nm -n sql/mysqld | gzip -9 -v 2>&1 > sql/mysqld.sym.gz | cat");
|
||||
|
||||
$flags.= "--no-strip" if ($opt_no_strip);
|
||||
$flags.= "--no-strip" if ($opt_no_strip || $opt_with_debug);
|
||||
check_system("scripts/make_binary_distribution --tmp=$opt_tmp --suffix=$opt_suffix $flags",".tar.gz created");
|
||||
safe_system("mv mysql*.tar.gz $pwd/$host");
|
||||
if (-f "client/.libs/mysqladmin")
|
||||
@ -381,13 +384,15 @@ if ($opt_stage <= 9 && !$opt_no_test)
|
||||
log_system("rm -f output/*");
|
||||
$tmp= $opt_fast_benchmark ? "--fast --user root --small-test" : "";
|
||||
check_system("perl ./run-all-tests --log --die-on-errors $connect_option $tmp","RUN-mysql");
|
||||
# Run additional fast test with dynamic-row tables
|
||||
check_system("perl ./run-all-tests --log --suffix=\"_dynamic_rows\" --die-on-errors $connect_option --fast --user=root --small-test --create-options=\"row_format=dynamic\"","RUN-mysql");
|
||||
if ($opt_innodb)
|
||||
{
|
||||
check_system("perl ./run-all-tests --log --suffix=\"_innodb\" --die-on-errors $connect_option $tmp --create-option=\"type=innodb\"","RUN-mysql");
|
||||
check_system("perl ./run-all-tests --log --suffix=\"_innodb\" --die-on-errors $connect_option $tmp --create-options=\"type=innodb\"","RUN-mysql");
|
||||
}
|
||||
if ($opt_bdb)
|
||||
{
|
||||
check_system("perl ./run-all-tests --log --suffix=\"_bdb\" --die-on-errors $connect_option $tmp --create-option=\"type=bdb\"","RUN-mysql");
|
||||
check_system("perl ./run-all-tests --log --suffix=\"_bdb\" --die-on-errors $connect_option $tmp --create-options=\"type=bdb\"","RUN-mysql");
|
||||
}
|
||||
}
|
||||
|
||||
@ -498,6 +503,9 @@ If user is empty then no mail is sent.
|
||||
--version-suffix suffix
|
||||
Set name suffix (e.g. 'com' or '-max') for a distribution
|
||||
|
||||
--with-debug
|
||||
Build binaries with debug information (implies "--no-strip")
|
||||
|
||||
--with-low-memory
|
||||
Use less memory when compiling.
|
||||
|
||||
@ -528,7 +536,7 @@ sub abort
|
||||
print TMP "To: $email\n";
|
||||
print TMP "Subject: $ver$opt_version_suffix compilation failed\n\n";
|
||||
close TMP;
|
||||
system("tail -40 $log > $log.mail");
|
||||
system("tail -n 40 $log > $log.mail");
|
||||
system("cat $mail_header_file $log.mail | $sendmail -t -f $email");
|
||||
unlink($mail_header_file);
|
||||
unlink("$log.mail");
|
||||
@ -604,7 +612,7 @@ sub which
|
||||
my(@progs)=@_;
|
||||
foreach $prog (@progs)
|
||||
{
|
||||
chomp($found=`which $prog | head -1`);
|
||||
chomp($found=`which $prog | head -n 1`);
|
||||
if ($? == 0 && $found ne "" && index($found," ") == -1)
|
||||
{
|
||||
$found =~ s|/+|/|g; # Make nicer output
|
||||
|
1069
Docs/internals.texi
1069
Docs/internals.texi
File diff suppressed because it is too large
Load Diff
140
Docs/manual.texi
140
Docs/manual.texi
@ -8202,6 +8202,10 @@ The following startup variables/options have been renamed:
|
||||
The startup options @code{record_buffer}, @code{sort_buffer} and
|
||||
@code{warnings} will still work in MySQL 4.0 but are deprecated.
|
||||
@item
|
||||
The mysqld option @code{--safe_show_database} doesn't work anymore. One
|
||||
should instead give the @code{SHOW DATABASES} privileges to everyone that
|
||||
need to see all databases.
|
||||
@item
|
||||
The following SQL variables have changed name.
|
||||
@c arjen note: New table, not yet measured for O'Reilly/DocBook.
|
||||
@multitable @columnfractions .50 .50
|
||||
@ -19879,7 +19883,6 @@ differ somewhat:
|
||||
| query_cache_limit | 1048576 |
|
||||
| query_cache_size | 0 |
|
||||
| query_cache_type | ON |
|
||||
| safe_show_database | OFF |
|
||||
| server_id | 0 |
|
||||
| slave_net_timeout | 3600 |
|
||||
| skip_external_locking | ON |
|
||||
@ -20314,7 +20317,8 @@ This may be set (only numeric) to
|
||||
Don't show databases for which the user doesn't have any database or
|
||||
table privileges. This can improve security if you're concerned about
|
||||
people being able to see what databases other users have. See also
|
||||
@code{skip_show_database}.
|
||||
@code{skip_show_database}. This option is deprecated as one should instead
|
||||
use the @code{SHOW DATABASES} privilege instead.
|
||||
|
||||
@item @code{server_id}
|
||||
The value of the @code{--server-id} option.
|
||||
@ -20327,7 +20331,7 @@ Is ON if we only allow local (socket) connections.
|
||||
|
||||
@item @code{skip_show_database}
|
||||
This prevents people from doing @code{SHOW DATABASES} if they don't have
|
||||
the @code{PROCESS} privilege. This can improve security if you're
|
||||
the @code{SHOW DATABASE} privilege. This can improve security if you're
|
||||
concerned about people being able to see what databases other users
|
||||
have. See also @code{safe_show_database}.
|
||||
|
||||
@ -23506,17 +23510,21 @@ will be logged in the execution order.
|
||||
Updates to non-transactional tables are stored in the binary log
|
||||
immediately after execution. For transactional tables such as @code{BDB}
|
||||
or @code{InnoDB} tables, all updates (@code{UPDATE}, @code{DELETE}
|
||||
or @code{INSERT}) that change tables are cached until a @code{COMMIT}.
|
||||
or @code{INSERT}) that change tables are cached until a @code{COMMIT} command
|
||||
is sent to the server. At this point mysqld writes the whole transaction to
|
||||
the binary log before the @code{COMMIT} is executed.
|
||||
Every thread will, on start, allocate a buffer of @code{binlog_cache_size}
|
||||
to buffer queries. If a query is bigger than this, the thread will open
|
||||
a temporary file to handle the bigger cache. The temporary file will
|
||||
a temporary file to store the transcation. The temporary file will
|
||||
be deleted when the thread ends.
|
||||
|
||||
The @code{max_binlog_cache_size} can be used to restrict the total size used
|
||||
to cache a multi-query transaction.
|
||||
The @code{max_binlog_cache_size} (default 4G) can be used to restrict
|
||||
the total size used to cache a multi-query transaction. If a transaction is
|
||||
bigger than this it will fail and roll back.
|
||||
|
||||
If you are using the update or binary log, concurrent inserts will
|
||||
not work together with @code{CREATE ... SELECT} and @code{INSERT ... SELECT}.
|
||||
be converted to normal inserts when using @code{CREATE ... SELECT} and
|
||||
@code{INSERT ... SELECT}.
|
||||
This is to ensure that you can recreate an exact copy of your tables by
|
||||
applying the log on a backup.
|
||||
|
||||
@ -23683,7 +23691,7 @@ started}, your slaves may fail.
|
||||
|
||||
Please see the following table for an indication of master-slave
|
||||
compatibility between different versions. With regard to version 4.0,
|
||||
we recommend using same version on both sides.
|
||||
we recommend using at least 4.0.4 on both sides.
|
||||
|
||||
@c FIX arjen 2002-07-17 new table, not yet measured for XML/DocBook.
|
||||
@multitable @columnfractions .10 .15 .15 .10 .10 .10
|
||||
@ -24350,7 +24358,7 @@ may be used with @code{IO_THREAD} and @code{SQL_THREAD} options. (Slave)
|
||||
@tab Re-enables update logging if the user has the @code{SUPER} privilege.
|
||||
Ignored otherwise. (Master)
|
||||
|
||||
@item @code{GLOBAL SET SQL_SLAVE_SKIP_COUNTER=n}
|
||||
@item @code{SET GLOBAL SQL_SLAVE_SKIP_COUNTER=n}
|
||||
@tab Skip the next @code{n} events from the master. Only valid when
|
||||
the slave thread is not running, otherwise, gives an error. Useful for
|
||||
recovering from replication glitches.
|
||||
@ -25510,7 +25518,7 @@ temporary table to hold the result. This typically happens if you do an
|
||||
@code{ORDER BY} on a different column set than you did a @code{GROUP
|
||||
BY} on.
|
||||
|
||||
@item Where used
|
||||
@item Using where (was @code{where used})
|
||||
A @code{WHERE} clause will be used to restrict which rows will be
|
||||
matched against the next table or sent to the client. If you don't have
|
||||
this information and the table is of type @code{ALL} or @code{index},
|
||||
@ -25670,7 +25678,7 @@ Executing the @code{EXPLAIN} statement again produces this result:
|
||||
|
||||
@example
|
||||
table type possible_keys key key_len ref rows Extra
|
||||
tt ALL AssignedPC,ClientID,ActualPC NULL NULL NULL 3872 where used
|
||||
tt ALL AssignedPC,ClientID,ActualPC NULL NULL NULL 3872 Using where
|
||||
do ALL PRIMARY NULL NULL NULL 2135
|
||||
range checked for each record (key map: 1)
|
||||
et_1 ALL PRIMARY NULL NULL NULL 74
|
||||
@ -25696,7 +25704,7 @@ Now @code{EXPLAIN} produces the output shown here:
|
||||
@example
|
||||
table type possible_keys key key_len ref rows Extra
|
||||
et ALL PRIMARY NULL NULL NULL 74
|
||||
tt ref AssignedPC, ActualPC 15 et.EMPLOYID 52 where used
|
||||
tt ref AssignedPC, ActualPC 15 et.EMPLOYID 52 Using where
|
||||
ClientID,
|
||||
ActualPC
|
||||
et_1 eq_ref PRIMARY PRIMARY 15 tt.AssignedPC 1
|
||||
@ -25719,7 +25727,7 @@ Now the join is perfect, and @code{EXPLAIN} produces this result:
|
||||
|
||||
@example
|
||||
table type possible_keys key key_len ref rows Extra
|
||||
tt ALL AssignedPC NULL NULL NULL 3872 where used
|
||||
tt ALL AssignedPC NULL NULL NULL 3872 Using where
|
||||
ClientID,
|
||||
ActualPC
|
||||
et eq_ref PRIMARY PRIMARY 15 tt.ActualPC 1
|
||||
@ -28868,7 +28876,6 @@ and if you can use @code{GLOBAL} or @code{SESSION} with them.
|
||||
@item read_buffer_size @tab num @tab GLOBAL | SESSION
|
||||
@item read_rnd_buffer_size @tab num @tab GLOBAL | SESSION
|
||||
@item rpl_recovery_rank @tab num @tab GLOBAL
|
||||
@item safe_show_database @tab bool @tab GLOBAL
|
||||
@item server_id @tab num @tab GLOBAL
|
||||
@item slave_compressed_protocol @tab bool @tab GLOBAL
|
||||
@item slave_net_timeout @tab num @tab GLOBAL
|
||||
@ -38698,8 +38705,8 @@ SUM_OVER_ALL_KEYS(max_length_of_key + sizeof(char*) * 2)
|
||||
* Table and index:: Table and Index Structures
|
||||
* File space management:: File Space Management and Disk I/O
|
||||
* Error handling:: Error Handling
|
||||
* InnoDB change history:: InnoDB Change History
|
||||
* InnoDB restrictions:: Restrictions on InnoDB Tables
|
||||
* InnoDB change history:: InnoDB Change History
|
||||
* InnoDB contact information:: InnoDB Contact Information.
|
||||
@end menu
|
||||
|
||||
@ -50735,6 +50742,7 @@ this means that the version has not yet been released!
|
||||
@c Please don't add a new version here without also updating ../configure.in!
|
||||
|
||||
@menu
|
||||
* News-4.1.x::
|
||||
* News-4.0.x:: Changes in release 4.0.x (Beta)
|
||||
* News-3.23.x:: Changes in release 3.23.x (Stable)
|
||||
* News-3.22.x:: Changes in release 3.22.x (Older; Still supported)
|
||||
@ -50744,7 +50752,77 @@ this means that the version has not yet been released!
|
||||
@end menu
|
||||
|
||||
|
||||
@node News-4.0.x, News-3.23.x, News, News
|
||||
@node News-4.1.x, News-4.0.x, News, News
|
||||
@appendixsec Changes in release 4.1.x (Alpha)
|
||||
|
||||
@cindex changes, version 4.1
|
||||
|
||||
Version 4.1 of the MySQL server includes many enhancements and new features:
|
||||
|
||||
@itemize @bullet
|
||||
@item
|
||||
Sub selects: @code{SELECT * from t1 where t1.a=(SELECT t2.b FROM t2)}.
|
||||
@item
|
||||
Character sets to be defined per column, table and database.
|
||||
@item
|
||||
Unicode (UTF8) support.
|
||||
@item
|
||||
Derived tables: @code{SELECT a from t1, (select * from t2) WHERE t1.a=t2.a}
|
||||
@item
|
||||
@code{BTREE} index on @code{HEAP} tables.
|
||||
@item
|
||||
Support for GIS (Geometrical data).
|
||||
@item
|
||||
@code{SHOW WARNINGS}; Shows warnings for the last command.
|
||||
@end itemize
|
||||
|
||||
For a full list of changes, please refer to the changelog sections for
|
||||
each individual 4.1.x release.
|
||||
|
||||
@menu
|
||||
* News-4.1.0::
|
||||
@end menu
|
||||
|
||||
@node News-4.1.0, , News-4.1.x, News-4.1.x
|
||||
@appendixsubsec Changes in release 4.1.0
|
||||
@itemize
|
||||
@item
|
||||
One can specify many temporary directories to be used in a round-robin
|
||||
fasion with: @code{--tmpdir=dirname1:dirname2:dirname3}.
|
||||
@item
|
||||
Sub selects: @code{SELECT * from t1 where t1.a=(SELECT t2.b FROM t2)}.
|
||||
@item
|
||||
Character sets to be defined per column, table and database.
|
||||
@item
|
||||
Unicode (UTF8) support.
|
||||
@item
|
||||
Derived tables: @code{SELECT a from t1, (select * from t2) WHERE t1.a=t2.a}
|
||||
@item
|
||||
@code{BTREE} index on @code{HEAP} tables.
|
||||
@item
|
||||
Faster embedded server.
|
||||
@item
|
||||
One can add a comment per column in @code{CREATE TABLE}.
|
||||
@item
|
||||
@code{SHOW FULL COLUMNS FROM table_name} shows column comments.
|
||||
@item
|
||||
@code{ALTER DATABASE}.
|
||||
@item
|
||||
Support for GIS (Geometrical data).
|
||||
@item
|
||||
@code{SHOW WARNINGS}; Shows warnings from the last command.
|
||||
@item
|
||||
One can specify a column type for a colum in @code{CREATE TABLE
|
||||
... SELECT} by defining the column in the @code{CREATE} part
|
||||
|
||||
@example
|
||||
CREATE TABLE foo (a tinyint not null) SELECT b+1 AS 'a' FROM bar;
|
||||
@end example
|
||||
|
||||
@end itemize
|
||||
|
||||
|
||||
@node News-4.0.x, News-3.23.x, News-4.1.x, News
|
||||
@appendixsec Changes in release 4.0.x (Beta)
|
||||
|
||||
@cindex changes, version 4.0
|
||||
@ -50815,6 +50893,19 @@ each individual 4.0.x release.
|
||||
@appendixsubsec Changes in release 4.0.5
|
||||
@itemize
|
||||
@item
|
||||
When one uses the @code{--open-files-limit=#} option to @code{mysqld_safe}
|
||||
it's now passed on to @code{mysqld}
|
||||
@item
|
||||
Fixed that @code{GROUP BY} on columns that may have a @code{NULL} value
|
||||
doesn't always use disk based temporary tables.
|
||||
@item
|
||||
Changed output from @code{EXPLAIN} from @code{'where used'} to
|
||||
@code{'Using where'} to make it more in line with other output.
|
||||
@item
|
||||
Removed variable @code{safe_show_database} as it was not used anymore.
|
||||
@item
|
||||
Read @code{--des-key-file} relative to database directory.
|
||||
@item
|
||||
Small code improvement in multi-table updates
|
||||
@item
|
||||
Fixed a newly introduced bug that caused @code{ORDER BY ... LIMIT #}
|
||||
@ -51680,6 +51771,11 @@ not yet 100% confident in this code.
|
||||
@appendixsubsec Changes in release 3.23.54
|
||||
@itemize
|
||||
@item
|
||||
Allow one to start multiple MySQL servers on windows (code backported
|
||||
from 4.0.2).
|
||||
@item
|
||||
Fixed that @code{--core-file} works on Linux (at least on kernel 2.4.18).
|
||||
@item
|
||||
Fixed a problem with BDB and @code{ALTER TABLE}.
|
||||
@item
|
||||
Fixed reference to freed memory when doing complicated @code{GROUP BY
|
||||
@ -51765,6 +51861,11 @@ Changed initialisation of @code{RND()} to make it less predicatable.
|
||||
Fixed problem with @code{GROUP BY} on result with expression that created a
|
||||
@code{BLOB} field.
|
||||
@item
|
||||
Fixed problem with @code{GROUP BY} on columns that have NULL values. To
|
||||
solve this we now create an MyISAM temporary table when doing a group by
|
||||
on a possible NULL item. In MySQL 4.0.5 we can again use in memory HEAP
|
||||
tables for this case.
|
||||
@item
|
||||
Fixed problem with privilege tables when downgrading from 4.0.2 to 3.23.
|
||||
@item
|
||||
Fixed thread bug in @code{SLAVE START}, @code{SLAVE STOP} and automatic repair
|
||||
@ -52506,8 +52607,9 @@ long as @code{server-id} is set and valid @file{master.info} is present.
|
||||
Partial updates (terminated with kill) are now logged with a special error
|
||||
code to the binary log. Slave will refuse to execute them if the error code
|
||||
indicates the update was terminated abnormally, and will have to be recovered
|
||||
with @code{SET SQL_SLAVE_SKIP_COUNTER=1; SLAVE START} after a manual sanity
|
||||
check/correction of data integrity.
|
||||
with @code{SET SQL_SLAVE_SKIP_COUNTER=1; SLAVE START} after a manual
|
||||
sanity check/correction of data integrity. Update: In 4.0.3 and above
|
||||
you have to use @code{SET GLOBAL}.
|
||||
@item
|
||||
Fixed bug that erroneously logged a drop of internal temporary table
|
||||
on thread termination to the binary log -- this bug affected replication.
|
||||
|
@ -274,7 +274,7 @@
|
||||
#undef SPRINTF_RETURNS_INT
|
||||
#undef SPRINTF_RETURNS_GARBAGE
|
||||
|
||||
/* Needed to get large file supportat HPUX 10.20 */
|
||||
/* Needed to get large file support on HPUX 10.20 */
|
||||
#undef __STDC_EXT__
|
||||
|
||||
#undef STACK_DIRECTION
|
||||
|
137
acinclude.m4
137
acinclude.m4
@ -1190,5 +1190,142 @@ dnl ---------------------------------------------------------------------------
|
||||
dnl END OF MYSQL_CHECK_INNODB SECTION
|
||||
dnl ---------------------------------------------------------------------------
|
||||
|
||||
dnl By default, many hosts won't let programs access large files;
|
||||
dnl one must use special compiler options to get large-file access to work.
|
||||
dnl For more details about this brain damage please see:
|
||||
dnl http://www.sas.com/standards/large.file/x_open.20Mar96.html
|
||||
|
||||
dnl Written by Paul Eggert <eggert@twinsun.com>.
|
||||
|
||||
dnl Internal subroutine of AC_SYS_LARGEFILE.
|
||||
dnl AC_SYS_LARGEFILE_FLAGS(FLAGSNAME)
|
||||
AC_DEFUN(AC_SYS_LARGEFILE_FLAGS,
|
||||
[AC_CACHE_CHECK([for $1 value to request large file support],
|
||||
ac_cv_sys_largefile_$1,
|
||||
[if ($GETCONF LFS_$1) >conftest.1 2>conftest.2 && test ! -s conftest.2
|
||||
then
|
||||
ac_cv_sys_largefile_$1=`cat conftest.1`
|
||||
else
|
||||
ac_cv_sys_largefile_$1=no
|
||||
ifelse($1, CFLAGS,
|
||||
[case "$host_os" in
|
||||
# HP-UX 10.20 requires -D__STDC_EXT__ with gcc 2.95.1.
|
||||
changequote(, )dnl
|
||||
hpux10.[2-9][0-9]* | hpux1[1-9]* | hpux[2-9][0-9]*)
|
||||
changequote([, ])dnl
|
||||
if test "$GCC" = yes; then
|
||||
ac_cv_sys_largefile_CFLAGS=-D__STDC_EXT__
|
||||
fi
|
||||
;;
|
||||
# IRIX 6.2 and later require cc -n32.
|
||||
changequote(, )dnl
|
||||
irix6.[2-9]* | irix6.1[0-9]* | irix[7-9].* | irix[1-9][0-9]*)
|
||||
changequote([, ])dnl
|
||||
if test "$GCC" != yes; then
|
||||
ac_cv_sys_largefile_CFLAGS=-n32
|
||||
fi
|
||||
esac
|
||||
if test "$ac_cv_sys_largefile_CFLAGS" != no; then
|
||||
ac_save_CC="$CC"
|
||||
CC="$CC $ac_cv_sys_largefile_CFLAGS"
|
||||
AC_TRY_LINK(, , , ac_cv_sys_largefile_CFLAGS=no)
|
||||
CC="$ac_save_CC"
|
||||
fi])
|
||||
fi
|
||||
rm -f conftest*])])
|
||||
|
||||
dnl Internal subroutine of AC_SYS_LARGEFILE.
|
||||
dnl AC_SYS_LARGEFILE_SPACE_APPEND(VAR, VAL)
|
||||
AC_DEFUN(AC_SYS_LARGEFILE_SPACE_APPEND,
|
||||
[case $2 in
|
||||
no) ;;
|
||||
?*)
|
||||
case "[$]$1" in
|
||||
'') $1=$2 ;;
|
||||
*) $1=[$]$1' '$2 ;;
|
||||
esac ;;
|
||||
esac])
|
||||
|
||||
dnl Internal subroutine of AC_SYS_LARGEFILE.
|
||||
dnl AC_SYS_LARGEFILE_MACRO_VALUE(C-MACRO, CACHE-VAR, COMMENT, CODE-TO-SET-DEFAULT)
|
||||
AC_DEFUN(AC_SYS_LARGEFILE_MACRO_VALUE,
|
||||
[AC_CACHE_CHECK([for $1], $2,
|
||||
[$2=no
|
||||
changequote(, )dnl
|
||||
for ac_flag in $ac_cv_sys_largefile_CFLAGS no; do
|
||||
case "$ac_flag" in
|
||||
-D$1)
|
||||
$2=1 ;;
|
||||
-D$1=*)
|
||||
$2=`expr " $ac_flag" : '[^=]*=\(.*\)'` ;;
|
||||
esac
|
||||
done
|
||||
$4
|
||||
changequote([, ])dnl
|
||||
])
|
||||
if test "[$]$2" != no; then
|
||||
AC_DEFINE_UNQUOTED([$1], [$]$2, [$3])
|
||||
fi])
|
||||
|
||||
AC_DEFUN(MYSQL_SYS_LARGEFILE,
|
||||
[AC_REQUIRE([AC_CANONICAL_HOST])
|
||||
AC_ARG_ENABLE(largefile,
|
||||
[ --disable-largefile Omit support for large files])
|
||||
if test "$enable_largefile" != no; then
|
||||
AC_CHECK_TOOL(GETCONF, getconf)
|
||||
AC_SYS_LARGEFILE_FLAGS(CFLAGS)
|
||||
AC_SYS_LARGEFILE_FLAGS(LDFLAGS)
|
||||
AC_SYS_LARGEFILE_FLAGS(LIBS)
|
||||
|
||||
for ac_flag in $ac_cv_sys_largefile_CFLAGS no; do
|
||||
case "$ac_flag" in
|
||||
no) ;;
|
||||
-D_FILE_OFFSET_BITS=*) ;;
|
||||
-D_LARGEFILE_SOURCE | -D_LARGEFILE_SOURCE=*) ;;
|
||||
-D_LARGE_FILES | -D_LARGE_FILES=*) ;;
|
||||
-D?* | -I?*)
|
||||
AC_SYS_LARGEFILE_SPACE_APPEND(CPPFLAGS, "$ac_flag") ;;
|
||||
*)
|
||||
AC_SYS_LARGEFILE_SPACE_APPEND(CFLAGS, "$ac_flag") ;;
|
||||
esac
|
||||
done
|
||||
AC_SYS_LARGEFILE_SPACE_APPEND(LDFLAGS, "$ac_cv_sys_largefile_LDFLAGS")
|
||||
AC_SYS_LARGEFILE_SPACE_APPEND(LIBS, "$ac_cv_sys_largefile_LIBS")
|
||||
|
||||
AC_SYS_LARGEFILE_MACRO_VALUE(_FILE_OFFSET_BITS,
|
||||
ac_cv_sys_file_offset_bits,
|
||||
[Number of bits in a file offset, on hosts where this is settable.],
|
||||
[case "$host_os" in
|
||||
# HP-UX 10.20 and later
|
||||
hpux10.[2-9][0-9]* | hpux1[1-9]* | hpux[2-9][0-9]*)
|
||||
ac_cv_sys_file_offset_bits=64 ;;
|
||||
# We can't declare _FILE_OFFSET_BITS here as this will cause
|
||||
# compile errors as AC_PROG_CC adds include files in confdefs.h
|
||||
# We solve this (until autoconf is fixed) by instead declaring it
|
||||
# as define instead
|
||||
solaris2.[8,9])
|
||||
CFLAGS="$CFLAGS -D_FILE_OFFSET_BITS=64"
|
||||
CXXFLAGS="$CXXFLAGS -D_FILE_OFFSET_BITS=64"
|
||||
ac_cv_sys_file_offset_bits=no ;;
|
||||
esac])
|
||||
AC_SYS_LARGEFILE_MACRO_VALUE(_LARGEFILE_SOURCE,
|
||||
ac_cv_sys_largefile_source,
|
||||
[Define to make fseeko etc. visible, on some hosts.],
|
||||
[case "$host_os" in
|
||||
# HP-UX 10.20 and later
|
||||
hpux10.[2-9][0-9]* | hpux1[1-9]* | hpux[2-9][0-9]*)
|
||||
ac_cv_sys_largefile_source=1 ;;
|
||||
esac])
|
||||
AC_SYS_LARGEFILE_MACRO_VALUE(_LARGE_FILES,
|
||||
ac_cv_sys_large_files,
|
||||
[Define for large files, on AIX-style hosts.],
|
||||
[case "$host_os" in
|
||||
# AIX 4.2 and later
|
||||
aix4.[2-9]* | aix4.1[0-9]* | aix[5-9].* | aix[1-9][0-9]*)
|
||||
ac_cv_sys_large_files=1 ;;
|
||||
esac])
|
||||
fi
|
||||
])
|
||||
|
||||
dnl ---------------------------------------------------------------------------
|
||||
|
||||
|
File diff suppressed because it is too large
Load Diff
@ -1,51 +0,0 @@
|
||||
#
|
||||
# Custom Makefile shell
|
||||
#
|
||||
# This file may be edited freely, since it will not be regenerated
|
||||
# by the project manager.
|
||||
#
|
||||
# Use this makefile to define rules to make external binaries
|
||||
# and deposit them in the $(EXTERNAL_BINARIES_DIR) directory.
|
||||
#
|
||||
# If you have specified external modules during your component
|
||||
# creation, you will find make rules already in place below.
|
||||
# You will likely have to edit these to suit your individual
|
||||
# build setup.
|
||||
#
|
||||
# You may wish to use the CPU, BUILD_SPEC or TOOL make variables in
|
||||
# your Makefile to support builds for different architectures. Use
|
||||
# the FORCE_EXTERNAL_MAKE phony target to ensure that your external
|
||||
# make always runs.
|
||||
#
|
||||
# The example below assumes that your custom makefile is in the
|
||||
# mySourceTree directory, and that the binary file it produces
|
||||
# is placed into the $(BUILD_SPEC) sub-directory.
|
||||
#
|
||||
# EXTERNAL_SOURCE_BASE = /folk/me/mySourceTree
|
||||
# EXTERNAL_MODULE = myLibrary.o
|
||||
# EXTERNAL_MAKE = make
|
||||
#
|
||||
# $(EXTERNAL_BINARIES_DIR)/$(EXTERNAL_MODULE) : FORCE_EXTERNAL_MAKE
|
||||
# $(EXTERNAL_MAKE) -C $(EXTERNAL_SOURCE_BASE) \
|
||||
# -f $(EXTERNAL_SOURCE_BASE)/Makefile \
|
||||
# CPU=$(CPU) BUILD_SPEC=$(BUILD_SPEC) $(@F)
|
||||
# $(CP) $(subst /,$(DIRCHAR),$(EXTERNAL_SOURCE_BASE)/$(BUILD_SPEC)/$(@F) $@)
|
||||
#
|
||||
# If you are not adding your external modules from the component wizard,
|
||||
# you will have to include them in your component yourself:
|
||||
#
|
||||
# From the GUI, you can do this with the Component's 'Add external module'
|
||||
# dialog.
|
||||
#
|
||||
# If you are using the command line, add the module(s) by editing the
|
||||
# MODULES line in component.cdf file, e.g.
|
||||
#
|
||||
# Component INCLUDE_MYCOMPONENT {
|
||||
#
|
||||
# MODULES foo.o goo.o \
|
||||
# myLibrary.o
|
||||
#
|
||||
|
||||
|
||||
# rules to build custom libraries
|
||||
|
File diff suppressed because it is too large
Load Diff
File diff suppressed because it is too large
Load Diff
@ -1,195 +0,0 @@
|
||||
/*-
|
||||
* See the file LICENSE for redistribution information.
|
||||
*
|
||||
* Copyright (c) 1996-2002
|
||||
* Sleepycat Software. All rights reserved.
|
||||
*/
|
||||
|
||||
#include "db_config.h"
|
||||
|
||||
#ifndef lint
|
||||
static const char copyright[] =
|
||||
"Copyright (c) 1996-2002\nSleepycat Software Inc. All rights reserved.\n";
|
||||
static const char revid[] =
|
||||
"$Id: db_archive.c,v 11.36 2002/03/28 20:13:34 bostic Exp $";
|
||||
#endif
|
||||
|
||||
#ifndef NO_SYSTEM_INCLUDES
|
||||
#include <sys/types.h>
|
||||
|
||||
#include <stdio.h>
|
||||
#include <stdlib.h>
|
||||
#include <string.h>
|
||||
#include <unistd.h>
|
||||
#endif
|
||||
|
||||
#include "db_int.h"
|
||||
|
||||
int db_archive_main __P((int, char *[]));
|
||||
int db_archive_usage __P((void));
|
||||
int db_archive_version_check __P((const char *));
|
||||
|
||||
int
|
||||
db_archive(args)
|
||||
char *args;
|
||||
{
|
||||
int argc;
|
||||
char **argv;
|
||||
|
||||
__db_util_arg("db_archive", args, &argc, &argv);
|
||||
return (db_archive_main(argc, argv) ? EXIT_FAILURE : EXIT_SUCCESS);
|
||||
}
|
||||
|
||||
#include <stdio.h>
|
||||
#define ERROR_RETURN ERROR
|
||||
|
||||
int
|
||||
db_archive_main(argc, argv)
|
||||
int argc;
|
||||
char *argv[];
|
||||
{
|
||||
extern char *optarg;
|
||||
extern int optind, __db_getopt_reset;
|
||||
const char *progname = "db_archive";
|
||||
DB_ENV *dbenv;
|
||||
u_int32_t flags;
|
||||
int ch, e_close, exitval, ret, verbose;
|
||||
char **file, *home, **list, *passwd;
|
||||
|
||||
if ((ret = db_archive_version_check(progname)) != 0)
|
||||
return (ret);
|
||||
|
||||
flags = 0;
|
||||
e_close = exitval = verbose = 0;
|
||||
home = passwd = NULL;
|
||||
__db_getopt_reset = 1;
|
||||
while ((ch = getopt(argc, argv, "ah:lP:sVv")) != EOF)
|
||||
switch (ch) {
|
||||
case 'a':
|
||||
LF_SET(DB_ARCH_ABS);
|
||||
break;
|
||||
case 'h':
|
||||
home = optarg;
|
||||
break;
|
||||
case 'l':
|
||||
LF_SET(DB_ARCH_LOG);
|
||||
break;
|
||||
case 'P':
|
||||
passwd = strdup(optarg);
|
||||
memset(optarg, 0, strlen(optarg));
|
||||
if (passwd == NULL) {
|
||||
fprintf(stderr, "%s: strdup: %s\n",
|
||||
progname, strerror(errno));
|
||||
return (EXIT_FAILURE);
|
||||
}
|
||||
break;
|
||||
case 's':
|
||||
LF_SET(DB_ARCH_DATA);
|
||||
break;
|
||||
case 'V':
|
||||
printf("%s\n", db_version(NULL, NULL, NULL));
|
||||
return (EXIT_SUCCESS);
|
||||
case 'v':
|
||||
verbose = 1;
|
||||
break;
|
||||
case '?':
|
||||
default:
|
||||
return (db_archive_usage());
|
||||
}
|
||||
argc -= optind;
|
||||
argv += optind;
|
||||
|
||||
if (argc != 0)
|
||||
return (db_archive_usage());
|
||||
|
||||
/* Handle possible interruptions. */
|
||||
__db_util_siginit();
|
||||
|
||||
/*
|
||||
* Create an environment object and initialize it for error
|
||||
* reporting.
|
||||
*/
|
||||
if ((ret = db_env_create(&dbenv, 0)) != 0) {
|
||||
fprintf(stderr,
|
||||
"%s: db_env_create: %s\n", progname, db_strerror(ret));
|
||||
goto shutdown;
|
||||
}
|
||||
e_close = 1;
|
||||
|
||||
dbenv->set_errfile(dbenv, stderr);
|
||||
dbenv->set_errpfx(dbenv, progname);
|
||||
|
||||
if (verbose)
|
||||
(void)dbenv->set_verbose(dbenv, DB_VERB_CHKPOINT, 1);
|
||||
|
||||
if (passwd != NULL && (ret = dbenv->set_encrypt(dbenv,
|
||||
passwd, DB_ENCRYPT_AES)) != 0) {
|
||||
dbenv->err(dbenv, ret, "set_passwd");
|
||||
goto shutdown;
|
||||
}
|
||||
/*
|
||||
* If attaching to a pre-existing environment fails, create a
|
||||
* private one and try again.
|
||||
*/
|
||||
if ((ret = dbenv->open(dbenv,
|
||||
home, DB_JOINENV | DB_USE_ENVIRON, 0)) != 0 &&
|
||||
(ret = dbenv->open(dbenv, home, DB_CREATE |
|
||||
DB_INIT_LOG | DB_INIT_TXN | DB_PRIVATE | DB_USE_ENVIRON, 0)) != 0) {
|
||||
dbenv->err(dbenv, ret, "open");
|
||||
goto shutdown;
|
||||
}
|
||||
|
||||
/* Get the list of names. */
|
||||
if ((ret = dbenv->log_archive(dbenv, &list, flags)) != 0) {
|
||||
dbenv->err(dbenv, ret, "DB_ENV->log_archive");
|
||||
goto shutdown;
|
||||
}
|
||||
|
||||
/* Print the list of names. */
|
||||
if (list != NULL) {
|
||||
for (file = list; *file != NULL; ++file)
|
||||
printf("%s\n", *file);
|
||||
free(list);
|
||||
}
|
||||
|
||||
if (0) {
|
||||
shutdown: exitval = 1;
|
||||
}
|
||||
if (e_close && (ret = dbenv->close(dbenv, 0)) != 0) {
|
||||
exitval = 1;
|
||||
fprintf(stderr,
|
||||
"%s: dbenv->close: %s\n", progname, db_strerror(ret));
|
||||
}
|
||||
|
||||
/* Resend any caught signal. */
|
||||
__db_util_sigresend();
|
||||
|
||||
return (exitval == 0 ? EXIT_SUCCESS : EXIT_FAILURE);
|
||||
}
|
||||
|
||||
int
|
||||
db_archive_usage()
|
||||
{
|
||||
(void)fprintf(stderr,
|
||||
"usage: db_archive [-alsVv] [-h home] [-P password]\n");
|
||||
return (EXIT_FAILURE);
|
||||
}
|
||||
|
||||
int
|
||||
db_archive_version_check(progname)
|
||||
const char *progname;
|
||||
{
|
||||
int v_major, v_minor, v_patch;
|
||||
|
||||
/* Make sure we're loaded with the right version of the DB library. */
|
||||
(void)db_version(&v_major, &v_minor, &v_patch);
|
||||
if (v_major != DB_VERSION_MAJOR ||
|
||||
v_minor != DB_VERSION_MINOR || v_patch != DB_VERSION_PATCH) {
|
||||
fprintf(stderr,
|
||||
"%s: version %d.%d.%d doesn't match library version %d.%d.%d\n",
|
||||
progname, DB_VERSION_MAJOR, DB_VERSION_MINOR,
|
||||
DB_VERSION_PATCH, v_major, v_minor, v_patch);
|
||||
return (EXIT_FAILURE);
|
||||
}
|
||||
return (0);
|
||||
}
|
@ -1,160 +0,0 @@
|
||||
Document file - DO NOT EDIT
|
||||
|
||||
<BEGIN> BUILD_PENTIUMgnu_BUILDRULE
|
||||
db_archive.out
|
||||
<END>
|
||||
|
||||
<BEGIN> BUILD_PENTIUMgnu_MACRO_AR
|
||||
ar386
|
||||
<END>
|
||||
|
||||
<BEGIN> BUILD_PENTIUMgnu_MACRO_ARCHIVE
|
||||
$(PRJ_DIR)/PENTIUMgnu/db_archive.a
|
||||
<END>
|
||||
|
||||
<BEGIN> BUILD_PENTIUMgnu_MACRO_AS
|
||||
cc386
|
||||
<END>
|
||||
|
||||
<BEGIN> BUILD_PENTIUMgnu_MACRO_CC
|
||||
cc386
|
||||
<END>
|
||||
|
||||
<BEGIN> BUILD_PENTIUMgnu_MACRO_CFLAGS
|
||||
-g \
|
||||
-mpentium \
|
||||
-ansi \
|
||||
-nostdinc \
|
||||
-DRW_MULTI_THREAD \
|
||||
-D_REENTRANT \
|
||||
-fvolatile \
|
||||
-nostdlib \
|
||||
-fno-builtin \
|
||||
-fno-defer-pop \
|
||||
-I$(PRJ_DIR)/.. \
|
||||
-I$(PRJ_DIR)/../.. \
|
||||
-I$(WIND_BASE)/target/h \
|
||||
-DCPU=PENTIUM
|
||||
<END>
|
||||
|
||||
<BEGIN> BUILD_PENTIUMgnu_MACRO_CFLAGS_AS
|
||||
-g \
|
||||
-mpentium \
|
||||
-ansi \
|
||||
-nostdinc \
|
||||
-fvolatile \
|
||||
-nostdlib \
|
||||
-fno-builtin \
|
||||
-fno-defer-pop \
|
||||
-P \
|
||||
-x \
|
||||
assembler-with-cpp \
|
||||
-I$(WIND_BASE)/target/h \
|
||||
-DCPU=PENTIUM
|
||||
<END>
|
||||
|
||||
<BEGIN> BUILD_PENTIUMgnu_MACRO_CPP
|
||||
cc386 -E -P -xc
|
||||
<END>
|
||||
|
||||
<BEGIN> BUILD_PENTIUMgnu_MACRO_LD
|
||||
ld386
|
||||
<END>
|
||||
|
||||
<BEGIN> BUILD_PENTIUMgnu_MACRO_LDDEPS
|
||||
|
||||
<END>
|
||||
|
||||
<BEGIN> BUILD_PENTIUMgnu_MACRO_LDFLAGS
|
||||
-X -N
|
||||
<END>
|
||||
|
||||
<BEGIN> BUILD_PENTIUMgnu_MACRO_LD_PARTIAL_FLAGS
|
||||
-X -r
|
||||
<END>
|
||||
|
||||
<BEGIN> BUILD_PENTIUMgnu_MACRO_NM
|
||||
nm386 -g
|
||||
<END>
|
||||
|
||||
<BEGIN> BUILD_PENTIUMgnu_MACRO_OPTION_DEFINE_MACRO
|
||||
-D
|
||||
<END>
|
||||
|
||||
<BEGIN> BUILD_PENTIUMgnu_MACRO_OPTION_INCLUDE_DIR
|
||||
-I
|
||||
<END>
|
||||
|
||||
<BEGIN> BUILD_PENTIUMgnu_MACRO_POST_BUILD_RULE
|
||||
|
||||
<END>
|
||||
|
||||
<BEGIN> BUILD_PENTIUMgnu_MACRO_PRJ_LIBS
|
||||
|
||||
<END>
|
||||
|
||||
<BEGIN> BUILD_PENTIUMgnu_MACRO_SIZE
|
||||
size386
|
||||
<END>
|
||||
|
||||
<BEGIN> BUILD_PENTIUMgnu_RO_DEPEND_PATH
|
||||
{$(WIND_BASE)/target/h/} \
|
||||
{$(WIND_BASE)/target/src/} \
|
||||
{$(WIND_BASE)/target/config/}
|
||||
<END>
|
||||
|
||||
<BEGIN> BUILD_PENTIUMgnu_TC
|
||||
::tc_PENTIUMgnu
|
||||
<END>
|
||||
|
||||
<BEGIN> BUILD_RULE_archive
|
||||
|
||||
<END>
|
||||
|
||||
<BEGIN> BUILD_RULE_db_archive.out
|
||||
|
||||
<END>
|
||||
|
||||
<BEGIN> BUILD_RULE_objects
|
||||
|
||||
<END>
|
||||
|
||||
<BEGIN> BUILD__CURRENT
|
||||
PENTIUMgnu
|
||||
<END>
|
||||
|
||||
<BEGIN> BUILD__LIST
|
||||
PENTIUMgnu
|
||||
<END>
|
||||
|
||||
<BEGIN> CORE_INFO_TYPE
|
||||
::prj_vxApp
|
||||
<END>
|
||||
|
||||
<BEGIN> CORE_INFO_VERSION
|
||||
2.0
|
||||
<END>
|
||||
|
||||
<BEGIN> FILE_db_archive.c_dependDone
|
||||
FALSE
|
||||
<END>
|
||||
|
||||
<BEGIN> FILE_db_archive.c_dependencies
|
||||
|
||||
<END>
|
||||
|
||||
<BEGIN> FILE_db_archive.c_objects
|
||||
db_archive.o
|
||||
<END>
|
||||
|
||||
<BEGIN> FILE_db_archive.c_tool
|
||||
C/C++ compiler
|
||||
<END>
|
||||
|
||||
<BEGIN> PROJECT_FILES
|
||||
$(PRJ_DIR)/db_archive.c
|
||||
<END>
|
||||
|
||||
<BEGIN> userComments
|
||||
db_archive
|
||||
<END>
|
@ -1,51 +0,0 @@
|
||||
#
|
||||
# Custom Makefile shell
|
||||
#
|
||||
# This file may be edited freely, since it will not be regenerated
|
||||
# by the project manager.
|
||||
#
|
||||
# Use this makefile to define rules to make external binaries
|
||||
# and deposit them in the $(EXTERNAL_BINARIES_DIR) directory.
|
||||
#
|
||||
# If you have specified external modules during your component
|
||||
# creation, you will find make rules already in place below.
|
||||
# You will likely have to edit these to suit your individual
|
||||
# build setup.
|
||||
#
|
||||
# You may wish to use the CPU, BUILD_SPEC or TOOL make variables in
|
||||
# your Makefile to support builds for different architectures. Use
|
||||
# the FORCE_EXTERNAL_MAKE phony target to ensure that your external
|
||||
# make always runs.
|
||||
#
|
||||
# The example below assumes that your custom makefile is in the
|
||||
# mySourceTree directory, and that the binary file it produces
|
||||
# is placed into the $(BUILD_SPEC) sub-directory.
|
||||
#
|
||||
# EXTERNAL_SOURCE_BASE = /folk/me/mySourceTree
|
||||
# EXTERNAL_MODULE = myLibrary.o
|
||||
# EXTERNAL_MAKE = make
|
||||
#
|
||||
# $(EXTERNAL_BINARIES_DIR)/$(EXTERNAL_MODULE) : FORCE_EXTERNAL_MAKE
|
||||
# $(EXTERNAL_MAKE) -C $(EXTERNAL_SOURCE_BASE) \
|
||||
# -f $(EXTERNAL_SOURCE_BASE)/Makefile \
|
||||
# CPU=$(CPU) BUILD_SPEC=$(BUILD_SPEC) $(@F)
|
||||
# $(CP) $(subst /,$(DIRCHAR),$(EXTERNAL_SOURCE_BASE)/$(BUILD_SPEC)/$(@F) $@)
|
||||
#
|
||||
# If you are not adding your external modules from the component wizard,
|
||||
# you will have to include them in your component yourself:
|
||||
#
|
||||
# From the GUI, you can do this with the Component's 'Add external module'
|
||||
# dialog.
|
||||
#
|
||||
# If you are using the command line, add the module(s) by editing the
|
||||
# MODULES line in component.cdf file, e.g.
|
||||
#
|
||||
# Component INCLUDE_MYCOMPONENT {
|
||||
#
|
||||
# MODULES foo.o goo.o \
|
||||
# myLibrary.o
|
||||
#
|
||||
|
||||
|
||||
# rules to build custom libraries
|
||||
|
@ -1,30 +0,0 @@
|
||||
/* component.cdf - dynamically updated configuration */
|
||||
|
||||
/*
|
||||
* NOTE: you may edit this file to alter the configuration
|
||||
* But all non-configuration information, including comments,
|
||||
* will be lost upon rebuilding this project.
|
||||
*/
|
||||
|
||||
/* Component information */
|
||||
|
||||
Component INCLUDE_DB_ARCHIVE {
|
||||
ENTRY_POINTS ALL_GLOBAL_SYMBOLS
|
||||
MODULES db_archive.o
|
||||
NAME db_archive
|
||||
PREF_DOMAIN ANY
|
||||
_INIT_ORDER usrComponentsInit
|
||||
}
|
||||
|
||||
/* EntryPoint information */
|
||||
|
||||
/* Module information */
|
||||
|
||||
Module db_archive.o {
|
||||
|
||||
NAME db_archive.o
|
||||
SRC_PATH_NAME $PRJ_DIR/../db_archive.c
|
||||
}
|
||||
|
||||
/* Parameter information */
|
||||
|
@ -1,475 +0,0 @@
|
||||
Document file - DO NOT EDIT
|
||||
|
||||
<BEGIN> CORE_INFO_TYPE
|
||||
::prj_component
|
||||
<END>
|
||||
|
||||
<BEGIN> CORE_INFO_VERSION
|
||||
AE1.1
|
||||
<END>
|
||||
|
||||
<BEGIN> BUILD__CURRENT
|
||||
PENTIUM2gnu.debug
|
||||
<END>
|
||||
|
||||
<BEGIN> BUILD_PENTIUM2gnu.debug_CURRENT_TARGET
|
||||
default
|
||||
<END>
|
||||
|
||||
<BEGIN> BUILD_PENTIUM2gnu.debug_DEFAULTFORCPU
|
||||
1
|
||||
<END>
|
||||
|
||||
<BEGIN> BUILD_PENTIUM2gnu.debug_FILE_$(PRJ_DIR)/../db_archive.c_infoTags
|
||||
toolMacro objects
|
||||
<END>
|
||||
|
||||
<BEGIN> BUILD_PENTIUM2gnu.debug_FILE_$(PRJ_DIR)/../db_archive.c_objects
|
||||
db_archive.o
|
||||
<END>
|
||||
|
||||
<BEGIN> BUILD_PENTIUM2gnu.debug_FILE_$(PRJ_DIR)/../db_archive.c_toolMacro
|
||||
CC
|
||||
<END>
|
||||
|
||||
<BEGIN> BUILD_PENTIUM2gnu.debug_FILE_$(PRJ_DIR)/../db_archive.c_objects
|
||||
db_archive.o
|
||||
<END>
|
||||
|
||||
<BEGIN> BUILD_PENTIUM2gnu.debug_FILE_$(PRJ_DIR)/../db_archive.c_toolMacro
|
||||
CC
|
||||
<END>
|
||||
|
||||
<BEGIN> BUILD_PENTIUM2gnu.debug_FILE_$(PRJ_DIR)/compConfig.c_infoTags
|
||||
toolMacro objects
|
||||
<END>
|
||||
|
||||
<BEGIN> BUILD_PENTIUM2gnu.debug_FILE_$(PRJ_DIR)/compConfig.c_objects
|
||||
compConfig.o
|
||||
<END>
|
||||
|
||||
<BEGIN> BUILD_PENTIUM2gnu.debug_FILE_$(PRJ_DIR)/compConfig.c_toolMacro
|
||||
CC
|
||||
<END>
|
||||
|
||||
<BEGIN> BUILD_PENTIUM2gnu.debug_MACRO_AR
|
||||
arpentium
|
||||
<END>
|
||||
|
||||
<BEGIN> BUILD_PENTIUM2gnu.debug_MACRO_AS
|
||||
ccpentium
|
||||
<END>
|
||||
|
||||
<BEGIN> BUILD_PENTIUM2gnu.debug_MACRO_CC
|
||||
ccpentium
|
||||
<END>
|
||||
|
||||
<BEGIN> BUILD_PENTIUM2gnu.debug_MACRO_CFLAGS
|
||||
-mcpu=pentiumpro \
|
||||
-march=pentiumpro \
|
||||
-ansi \
|
||||
-DRW_MULTI_THREAD \
|
||||
-D_REENTRANT \
|
||||
-g \
|
||||
-nostdlib \
|
||||
-fno-builtin \
|
||||
-fno-defer-pop \
|
||||
-MD \
|
||||
-Wall \
|
||||
-I. \
|
||||
-I$(WIND_BASE)/target/h \
|
||||
-I$(PRJ_DIR)/../.. \
|
||||
-I$(PRJ_DIR)/../../.. \
|
||||
-DCPU=PENTIUM2
|
||||
<END>
|
||||
|
||||
<BEGIN> BUILD_PENTIUM2gnu.debug_MACRO_CFLAGS_AS
|
||||
-mcpu=pentiumpro \
|
||||
-march=pentiumpro \
|
||||
-ansi \
|
||||
-g \
|
||||
-nostdlib \
|
||||
-fno-builtin \
|
||||
-fno-defer-pop \
|
||||
-P \
|
||||
-x \
|
||||
assembler-with-cpp \
|
||||
-Wall \
|
||||
-I. \
|
||||
-I$(WIND_BASE)/target/h \
|
||||
-DCPU=PENTIUM2
|
||||
<END>
|
||||
|
||||
<BEGIN> BUILD_PENTIUM2gnu.debug_MACRO_CPP
|
||||
ccpentium -E -P
|
||||
<END>
|
||||
|
||||
<BEGIN> BUILD_PENTIUM2gnu.debug_MACRO_CPPFILT
|
||||
c++filtpentium --strip-underscores
|
||||
<END>
|
||||
|
||||
<BEGIN> BUILD_PENTIUM2gnu.debug_MACRO_LD
|
||||
ldpentium
|
||||
<END>
|
||||
|
||||
<BEGIN> BUILD_PENTIUM2gnu.debug_MACRO_LDFLAGS
|
||||
-X
|
||||
<END>
|
||||
|
||||
<BEGIN> BUILD_PENTIUM2gnu.debug_MACRO_LDPARTIAL
|
||||
ccpentium \
|
||||
-B$(WIND_BASE)/host/$(WIND_HOST_TYPE)/lib/gcc-lib/ \
|
||||
-nostdlib \
|
||||
-r \
|
||||
-Wl,-X
|
||||
<END>
|
||||
|
||||
<BEGIN> BUILD_PENTIUM2gnu.debug_MACRO_LD_PARTIAL_FLAGS
|
||||
-X -r
|
||||
<END>
|
||||
|
||||
<BEGIN> BUILD_PENTIUM2gnu.debug_MACRO_NM
|
||||
nmpentium -g
|
||||
<END>
|
||||
|
||||
<BEGIN> BUILD_PENTIUM2gnu.debug_MACRO_OPTION_DEFINE_MACRO
|
||||
-D
|
||||
<END>
|
||||
|
||||
<BEGIN> BUILD_PENTIUM2gnu.debug_MACRO_OPTION_GENERATE_DEPENDENCY_FILE
|
||||
-MD
|
||||
<END>
|
||||
|
||||
<BEGIN> BUILD_PENTIUM2gnu.debug_MACRO_OPTION_INCLUDE_DIR
|
||||
-I
|
||||
<END>
|
||||
|
||||
<BEGIN> BUILD_PENTIUM2gnu.debug_MACRO_RELEASE
|
||||
0
|
||||
<END>
|
||||
|
||||
<BEGIN> BUILD_PENTIUM2gnu.debug_MACRO_SIZE
|
||||
sizepentium
|
||||
<END>
|
||||
|
||||
<BEGIN> BUILD_PENTIUM2gnu.debug_RELEASE
|
||||
0
|
||||
<END>
|
||||
|
||||
<BEGIN> BUILD_PENTIUM2gnu.debug_RO_DEPEND_PATH
|
||||
$(WIND_BASE)/target/h/
|
||||
<END>
|
||||
|
||||
<BEGIN> BUILD_PENTIUM2gnu.debug_TC
|
||||
::tc_PENTIUM2gnu.debug
|
||||
<END>
|
||||
|
||||
<BEGIN> BUILD_PENTIUM2gnu.release_DEFAULTFORCPU
|
||||
0
|
||||
<END>
|
||||
|
||||
<BEGIN> BUILD_PENTIUM2gnu.release_FILE_$(PRJ_DIR)/../db_archive.c_infoTags
|
||||
toolMacro objects
|
||||
<END>
|
||||
|
||||
<BEGIN> BUILD_PENTIUM2gnu.release_FILE_$(PRJ_DIR)/../db_archive.c_objects
|
||||
db_archive.o
|
||||
<END>
|
||||
|
||||
<BEGIN> BUILD_PENTIUM2gnu.release_FILE_$(PRJ_DIR)/../db_archive.c_toolMacro
|
||||
CC
|
||||
<END>
|
||||
|
||||
<BEGIN> BUILD_PENTIUM2gnu.release_FILE_$(PRJ_DIR)/compConfig.c_infoTags
|
||||
toolMacro objects
|
||||
<END>
|
||||
|
||||
<BEGIN> BUILD_PENTIUM2gnu.release_FILE_$(PRJ_DIR)/compConfig.c_objects
|
||||
compConfig.o
|
||||
<END>
|
||||
|
||||
<BEGIN> BUILD_PENTIUM2gnu.release_FILE_$(PRJ_DIR)/compConfig.c_toolMacro
|
||||
CC
|
||||
<END>
|
||||
|
||||
<BEGIN> BUILD_PENTIUM2gnu.release_MACRO_AR
|
||||
arpentium
|
||||
<END>
|
||||
|
||||
<BEGIN> BUILD_PENTIUM2gnu.release_MACRO_AS
|
||||
ccpentium
|
||||
<END>
|
||||
|
||||
<BEGIN> BUILD_PENTIUM2gnu.release_MACRO_CC
|
||||
ccpentium
|
||||
<END>
|
||||
|
||||
<BEGIN> BUILD_PENTIUM2gnu.release_MACRO_CFLAGS
|
||||
-mcpu=pentiumpro \
|
||||
-march=pentiumpro \
|
||||
-ansi \
|
||||
-DRW_MULTI_THREAD \
|
||||
-D_REENTRANT \
|
||||
-O2 \
|
||||
-nostdlib \
|
||||
-fno-builtin \
|
||||
-fno-defer-pop \
|
||||
-MD \
|
||||
-Wall \
|
||||
-I. \
|
||||
-I$(WIND_BASE)/target/h \
|
||||
-I$(PRJ_DIR)/../.. \
|
||||
-I$(PRJ_DIR)/../../.. \
|
||||
-DCPU=PENTIUM2
|
||||
<END>
|
||||
|
||||
<BEGIN> BUILD_PENTIUM2gnu.release_MACRO_CFLAGS_AS
|
||||
-mcpu=pentiumpro \
|
||||
-march=pentiumpro \
|
||||
-ansi \
|
||||
-O2 \
|
||||
-nostdlib \
|
||||
-fno-builtin \
|
||||
-fno-defer-pop \
|
||||
-P \
|
||||
-x \
|
||||
assembler-with-cpp \
|
||||
-Wall \
|
||||
-I. \
|
||||
-I$(WIND_BASE)/target/h \
|
||||
-DCPU=PENTIUM2
|
||||
<END>
|
||||
|
||||
<BEGIN> BUILD_PENTIUM2gnu.release_MACRO_CPP
|
||||
ccpentium -E -P
|
||||
<END>
|
||||
|
||||
<BEGIN> BUILD_PENTIUM2gnu.release_MACRO_CPPFILT
|
||||
c++filtpentium --strip-underscores
|
||||
<END>
|
||||
|
||||
<BEGIN> BUILD_PENTIUM2gnu.release_MACRO_LD
|
||||
ldpentium
|
||||
<END>
|
||||
|
||||
<BEGIN> BUILD_PENTIUM2gnu.release_MACRO_LDFLAGS
|
||||
-X
|
||||
<END>
|
||||
|
||||
<BEGIN> BUILD_PENTIUM2gnu.release_MACRO_LDPARTIAL
|
||||
ccpentium \
|
||||
-B$(WIND_BASE)/host/$(WIND_HOST_TYPE)/lib/gcc-lib/ \
|
||||
-nostdlib \
|
||||
-r \
|
||||
-Wl,-X
|
||||
<END>
|
||||
|
||||
<BEGIN> BUILD_PENTIUM2gnu.release_MACRO_LD_PARTIAL_FLAGS
|
||||
-X -r
|
||||
<END>
|
||||
|
||||
<BEGIN> BUILD_PENTIUM2gnu.release_MACRO_NM
|
||||
nmpentium -g
|
||||
<END>
|
||||
|
||||
<BEGIN> BUILD_PENTIUM2gnu.release_MACRO_OPTION_DEFINE_MACRO
|
||||
-D
|
||||
<END>
|
||||
|
||||
<BEGIN> BUILD_PENTIUM2gnu.release_MACRO_OPTION_GENERATE_DEPENDENCY_FILE
|
||||
-MD
|
||||
<END>
|
||||
|
||||
<BEGIN> BUILD_PENTIUM2gnu.release_MACRO_OPTION_INCLUDE_DIR
|
||||
-I
|
||||
<END>
|
||||
|
||||
<BEGIN> BUILD_PENTIUM2gnu.release_MACRO_RELEASE
|
||||
1
|
||||
<END>
|
||||
|
||||
<BEGIN> BUILD_PENTIUM2gnu.release_MACRO_SIZE
|
||||
sizepentium
|
||||
<END>
|
||||
|
||||
<BEGIN> BUILD_PENTIUM2gnu.release_RELEASE
|
||||
1
|
||||
<END>
|
||||
|
||||
<BEGIN> BUILD_PENTIUM2gnu.release_RO_DEPEND_PATH
|
||||
$(WIND_BASE)/target/h/
|
||||
<END>
|
||||
|
||||
<BEGIN> BUILD_PENTIUM2gnu.release_TC
|
||||
::tc_PENTIUM2gnu.release
|
||||
<END>
|
||||
|
||||
<BEGIN> BUILD_PENTIUMgnu.debug_DEFAULTFORCPU
|
||||
1
|
||||
<END>
|
||||
|
||||
<BEGIN> BUILD_PENTIUMgnu.debug_FILE_$(PRJ_DIR)/../db_archive.c_infoTags
|
||||
toolMacro objects
|
||||
<END>
|
||||
|
||||
<BEGIN> BUILD_PENTIUMgnu.debug_FILE_$(PRJ_DIR)/../db_archive.c_objects
|
||||
db_archive.o
|
||||
<END>
|
||||
|
||||
<BEGIN> BUILD_PENTIUMgnu.debug_FILE_$(PRJ_DIR)/../db_archive.c_toolMacro
|
||||
CC
|
||||
<END>
|
||||
|
||||
<BEGIN> BUILD_PENTIUMgnu.debug_FILE_$(PRJ_DIR)/compConfig.c_infoTags
|
||||
toolMacro objects
|
||||
<END>
|
||||
|
||||
<BEGIN> BUILD_PENTIUMgnu.debug_FILE_$(PRJ_DIR)/compConfig.c_objects
|
||||
compConfig.o
|
||||
<END>
|
||||
|
||||
<BEGIN> BUILD_PENTIUMgnu.debug_FILE_$(PRJ_DIR)/compConfig.c_toolMacro
|
||||
CC
|
||||
<END>
|
||||
|
||||
<BEGIN> BUILD_PENTIUMgnu.debug_MACRO_AR
|
||||
arpentium
|
||||
<END>
|
||||
|
||||
<BEGIN> BUILD_PENTIUMgnu.debug_MACRO_AS
|
||||
ccpentium
|
||||
<END>
|
||||
|
||||
<BEGIN> BUILD_PENTIUMgnu.debug_MACRO_CC
|
||||
ccpentium
|
||||
<END>
|
||||
|
||||
<BEGIN> BUILD_PENTIUMgnu.debug_MACRO_CFLAGS
|
||||
-mcpu=pentium \
|
||||
-march=pentium \
|
||||
-ansi \
|
||||
-DRW_MULTI_THREAD \
|
||||
-D_REENTRANT \
|
||||
-g \
|
||||
-nostdlib \
|
||||
-fno-builtin \
|
||||
-fno-defer-pop \
|
||||
-MD \
|
||||
-Wall \
|
||||
-I. \
|
||||
-I$(WIND_BASE)/target/h \
|
||||
-I$(PRJ_DIR)/../.. \
|
||||
-I$(PRJ_DIR)/../../.. \
|
||||
-DCPU=PENTIUM
|
||||
<END>
|
||||
|
||||
<BEGIN> BUILD_PENTIUMgnu.debug_MACRO_CFLAGS_AS
|
||||
-mcpu=pentium \
|
||||
-march=pentium \
|
||||
-ansi \
|
||||
-g \
|
||||
-nostdlib \
|
||||
-fno-builtin \
|
||||
-fno-defer-pop \
|
||||
-P \
|
||||
-x \
|
||||
assembler-with-cpp \
|
||||
-Wall \
|
||||
-I. \
|
||||
-I$(WIND_BASE)/target/h \
|
||||
-DCPU=PENTIUM
|
||||
<END>
|
||||
|
||||
<BEGIN> BUILD_PENTIUMgnu.debug_MACRO_CPP
|
||||
ccpentium -E -P
|
||||
<END>
|
||||
|
||||
<BEGIN> BUILD_PENTIUMgnu.debug_MACRO_CPPFILT
|
||||
c++filtpentium --strip-underscores
|
||||
<END>
|
||||
|
||||
<BEGIN> BUILD_PENTIUMgnu.debug_MACRO_LD
|
||||
ldpentium
|
||||
<END>
|
||||
|
||||
<BEGIN> BUILD_PENTIUMgnu.debug_MACRO_LDFLAGS
|
||||
-X
|
||||
<END>
|
||||
|
||||
<BEGIN> BUILD_PENTIUMgnu.debug_MACRO_LDPARTIAL
|
||||
ccpentium \
|
||||
-B$(WIND_BASE)/host/$(WIND_HOST_TYPE)/lib/gcc-lib/ \
|
||||
-nostdlib \
|
||||
-r \
|
||||
-Wl,-X
|
||||
<END>
|
||||
|
||||
<BEGIN> BUILD_PENTIUMgnu.debug_MACRO_LD_PARTIAL_FLAGS
|
||||
-X -r
|
||||
<END>
|
||||
|
||||
<BEGIN> BUILD_PENTIUMgnu.debug_MACRO_NM
|
||||
nmpentium -g
|
||||
<END>
|
||||
|
||||
<BEGIN> BUILD_PENTIUMgnu.debug_MACRO_OPTION_DEFINE_MACRO
|
||||
-D
|
||||
<END>
|
||||
|
||||
<BEGIN> BUILD_PENTIUMgnu.debug_MACRO_OPTION_GENERATE_DEPENDENCY_FILE
|
||||
-MD
|
||||
<END>
|
||||
|
||||
<BEGIN> BUILD_PENTIUMgnu.debug_MACRO_OPTION_INCLUDE_DIR
|
||||
-I
|
||||
<END>
|
||||
|
||||
<BEGIN> BUILD_PENTIUMgnu.debug_MACRO_RELEASE
|
||||
0
|
||||
<END>
|
||||
|
||||
<BEGIN> BUILD_PENTIUMgnu.debug_MACRO_SIZE
|
||||
sizepentium
|
||||
<END>
|
||||
|
||||
<BEGIN> BUILD_PENTIUMgnu.debug_RELEASE
|
||||
0
|
||||
<END>
|
||||
|
||||
<BEGIN> BUILD_PENTIUMgnu.debug_RO_DEPEND_PATH
|
||||
$(WIND_BASE)/target/h/
|
||||
<END>
|
||||
|
||||
<BEGIN> BUILD_PENTIUMgnu.debug_TC
|
||||
::tc_PENTIUMgnu.debug
|
||||
<END>
|
||||
|
||||
<BEGIN> BUILD__LIST
|
||||
PENTIUM2gnu.debug PENTIUM2gnu.release PENTIUMgnu.debug
|
||||
<END>
|
||||
|
||||
<BEGIN> PROJECT_FILES
|
||||
$(PRJ_DIR)/../db_archive.c \
|
||||
$(PRJ_DIR)/compConfig.c
|
||||
<END>
|
||||
|
||||
<BEGIN> WCC__CDF_PATH
|
||||
$(PRJ_DIR)
|
||||
<END>
|
||||
|
||||
<BEGIN> WCC__CURRENT
|
||||
PENTIUM2gnu.debug
|
||||
<END>
|
||||
|
||||
<BEGIN> WCC__LIST
|
||||
PENTIUM2gnu.debug
|
||||
<END>
|
||||
|
||||
<BEGIN> WCC__MXR_LIBS
|
||||
lib$(CPU)$(TOOL)vx.a
|
||||
<END>
|
||||
|
||||
<BEGIN> WCC__OBJS_PATH
|
||||
$(WIND_BASE)/target/lib/obj$CPU$TOOLvx
|
||||
<END>
|
||||
|
@ -1,258 +0,0 @@
|
||||
/*-
|
||||
* See the file LICENSE for redistribution information.
|
||||
*
|
||||
* Copyright (c) 1996-2002
|
||||
* Sleepycat Software. All rights reserved.
|
||||
*/
|
||||
|
||||
#include "db_config.h"
|
||||
|
||||
#ifndef lint
|
||||
static const char copyright[] =
|
||||
"Copyright (c) 1996-2002\nSleepycat Software Inc. All rights reserved.\n";
|
||||
static const char revid[] =
|
||||
"$Id: db_checkpoint.c,v 11.46 2002/08/08 03:50:31 bostic Exp $";
|
||||
#endif
|
||||
|
||||
#ifndef NO_SYSTEM_INCLUDES
|
||||
#include <sys/types.h>
|
||||
|
||||
#if TIME_WITH_SYS_TIME
|
||||
#include <sys/time.h>
|
||||
#include <time.h>
|
||||
#else
|
||||
#if HAVE_SYS_TIME_H
|
||||
#include <sys/time.h>
|
||||
#else
|
||||
#include <time.h>
|
||||
#endif
|
||||
#endif
|
||||
|
||||
#include <limits.h>
|
||||
#include <stdio.h>
|
||||
#include <stdlib.h>
|
||||
#include <string.h>
|
||||
#include <unistd.h>
|
||||
#endif
|
||||
|
||||
#include "db_int.h"
|
||||
#include "dbinc/db_page.h"
|
||||
#include "dbinc/db_am.h"
|
||||
|
||||
int db_checkpoint_main __P((int, char *[]));
|
||||
int db_checkpoint_usage __P((void));
|
||||
int db_checkpoint_version_check __P((const char *));
|
||||
|
||||
int
|
||||
db_checkpoint(args)
|
||||
char *args;
|
||||
{
|
||||
int argc;
|
||||
char **argv;
|
||||
|
||||
__db_util_arg("db_checkpoint", args, &argc, &argv);
|
||||
return (db_checkpoint_main(argc, argv) ? EXIT_FAILURE : EXIT_SUCCESS);
|
||||
}
|
||||
|
||||
#include <stdio.h>
|
||||
#define ERROR_RETURN ERROR
|
||||
|
||||
int
|
||||
db_checkpoint_main(argc, argv)
|
||||
int argc;
|
||||
char *argv[];
|
||||
{
|
||||
extern char *optarg;
|
||||
extern int optind, __db_getopt_reset;
|
||||
DB_ENV *dbenv;
|
||||
const char *progname = "db_checkpoint";
|
||||
time_t now;
|
||||
long argval;
|
||||
u_int32_t flags, kbytes, minutes, seconds;
|
||||
int ch, e_close, exitval, once, ret, verbose;
|
||||
char *home, *logfile, *passwd;
|
||||
|
||||
if ((ret = db_checkpoint_version_check(progname)) != 0)
|
||||
return (ret);
|
||||
|
||||
/*
|
||||
* !!!
|
||||
* Don't allow a fully unsigned 32-bit number, some compilers get
|
||||
* upset and require it to be specified in hexadecimal and so on.
|
||||
*/
|
||||
#define MAX_UINT32_T 2147483647
|
||||
|
||||
kbytes = minutes = 0;
|
||||
e_close = exitval = once = verbose = 0;
|
||||
flags = 0;
|
||||
home = logfile = passwd = NULL;
|
||||
__db_getopt_reset = 1;
|
||||
while ((ch = getopt(argc, argv, "1h:k:L:P:p:Vv")) != EOF)
|
||||
switch (ch) {
|
||||
case '1':
|
||||
once = 1;
|
||||
flags = DB_FORCE;
|
||||
break;
|
||||
case 'h':
|
||||
home = optarg;
|
||||
break;
|
||||
case 'k':
|
||||
if (__db_getlong(NULL, progname,
|
||||
optarg, 1, (long)MAX_UINT32_T, &argval))
|
||||
return (EXIT_FAILURE);
|
||||
kbytes = argval;
|
||||
break;
|
||||
case 'L':
|
||||
logfile = optarg;
|
||||
break;
|
||||
case 'P':
|
||||
passwd = strdup(optarg);
|
||||
memset(optarg, 0, strlen(optarg));
|
||||
if (passwd == NULL) {
|
||||
fprintf(stderr, "%s: strdup: %s\n",
|
||||
progname, strerror(errno));
|
||||
return (EXIT_FAILURE);
|
||||
}
|
||||
break;
|
||||
case 'p':
|
||||
if (__db_getlong(NULL, progname,
|
||||
optarg, 1, (long)MAX_UINT32_T, &argval))
|
||||
return (EXIT_FAILURE);
|
||||
minutes = argval;
|
||||
break;
|
||||
case 'V':
|
||||
printf("%s\n", db_version(NULL, NULL, NULL));
|
||||
return (EXIT_SUCCESS);
|
||||
case 'v':
|
||||
verbose = 1;
|
||||
break;
|
||||
case '?':
|
||||
default:
|
||||
return (db_checkpoint_usage());
|
||||
}
|
||||
argc -= optind;
|
||||
argv += optind;
|
||||
|
||||
if (argc != 0)
|
||||
return (db_checkpoint_usage());
|
||||
|
||||
if (once == 0 && kbytes == 0 && minutes == 0) {
|
||||
(void)fprintf(stderr,
|
||||
"%s: at least one of -1, -k and -p must be specified\n",
|
||||
progname);
|
||||
return (EXIT_FAILURE);
|
||||
}
|
||||
|
||||
/* Handle possible interruptions. */
|
||||
__db_util_siginit();
|
||||
|
||||
/* Log our process ID. */
|
||||
if (logfile != NULL && __db_util_logset(progname, logfile))
|
||||
goto shutdown;
|
||||
|
||||
/*
|
||||
* Create an environment object and initialize it for error
|
||||
* reporting.
|
||||
*/
|
||||
if ((ret = db_env_create(&dbenv, 0)) != 0) {
|
||||
fprintf(stderr,
|
||||
"%s: db_env_create: %s\n", progname, db_strerror(ret));
|
||||
goto shutdown;
|
||||
}
|
||||
e_close = 1;
|
||||
|
||||
dbenv->set_errfile(dbenv, stderr);
|
||||
dbenv->set_errpfx(dbenv, progname);
|
||||
|
||||
if (passwd != NULL && (ret = dbenv->set_encrypt(dbenv,
|
||||
passwd, DB_ENCRYPT_AES)) != 0) {
|
||||
dbenv->err(dbenv, ret, "set_passwd");
|
||||
goto shutdown;
|
||||
}
|
||||
/* Initialize the environment. */
|
||||
if ((ret = dbenv->open(dbenv,
|
||||
home, DB_JOINENV | DB_USE_ENVIRON, 0)) != 0) {
|
||||
dbenv->err(dbenv, ret, "open");
|
||||
goto shutdown;
|
||||
}
|
||||
|
||||
/* Register the standard pgin/pgout functions, in case we do I/O. */
|
||||
if ((ret = dbenv->memp_register(
|
||||
dbenv, DB_FTYPE_SET, __db_pgin, __db_pgout)) != 0) {
|
||||
dbenv->err(dbenv, ret,
|
||||
"DB_ENV->memp_register: failed to register access method functions");
|
||||
goto shutdown;
|
||||
}
|
||||
|
||||
/*
|
||||
* If we have only a time delay, then we'll sleep the right amount
|
||||
* to wake up when a checkpoint is necessary. If we have a "kbytes"
|
||||
* field set, then we'll check every 30 seconds.
|
||||
*/
|
||||
seconds = kbytes != 0 ? 30 : minutes * 60;
|
||||
while (!__db_util_interrupted()) {
|
||||
if (verbose) {
|
||||
(void)time(&now);
|
||||
dbenv->errx(dbenv, "checkpoint: %s", ctime(&now));
|
||||
}
|
||||
|
||||
if ((ret = dbenv->txn_checkpoint(dbenv,
|
||||
kbytes, minutes, flags)) != 0) {
|
||||
dbenv->err(dbenv, ret, "txn_checkpoint");
|
||||
goto shutdown;
|
||||
}
|
||||
|
||||
if (once)
|
||||
break;
|
||||
|
||||
(void)__os_sleep(dbenv, seconds, 0);
|
||||
}
|
||||
|
||||
if (0) {
|
||||
shutdown: exitval = 1;
|
||||
}
|
||||
|
||||
/* Clean up the logfile. */
|
||||
if (logfile != NULL)
|
||||
remove(logfile);
|
||||
|
||||
/* Clean up the environment. */
|
||||
if (e_close && (ret = dbenv->close(dbenv, 0)) != 0) {
|
||||
exitval = 1;
|
||||
fprintf(stderr,
|
||||
"%s: dbenv->close: %s\n", progname, db_strerror(ret));
|
||||
}
|
||||
|
||||
/* Resend any caught signal. */
|
||||
__db_util_sigresend();
|
||||
|
||||
return (exitval == 0 ? EXIT_SUCCESS : EXIT_FAILURE);
|
||||
}
|
||||
|
||||
int
|
||||
db_checkpoint_usage()
|
||||
{
|
||||
(void)fprintf(stderr, "%s\n\t%s\n",
|
||||
"usage: db_checkpoint [-1Vv]",
|
||||
"[-h home] [-k kbytes] [-L file] [-P password] [-p min]");
|
||||
return (EXIT_FAILURE);
|
||||
}
|
||||
|
||||
int
|
||||
db_checkpoint_version_check(progname)
|
||||
const char *progname;
|
||||
{
|
||||
int v_major, v_minor, v_patch;
|
||||
|
||||
/* Make sure we're loaded with the right version of the DB library. */
|
||||
(void)db_version(&v_major, &v_minor, &v_patch);
|
||||
if (v_major != DB_VERSION_MAJOR ||
|
||||
v_minor != DB_VERSION_MINOR || v_patch != DB_VERSION_PATCH) {
|
||||
fprintf(stderr,
|
||||
"%s: version %d.%d.%d doesn't match library version %d.%d.%d\n",
|
||||
progname, DB_VERSION_MAJOR, DB_VERSION_MINOR,
|
||||
DB_VERSION_PATCH, v_major, v_minor, v_patch);
|
||||
return (EXIT_FAILURE);
|
||||
}
|
||||
return (0);
|
||||
}
|
@ -1,160 +0,0 @@
|
||||
Document file - DO NOT EDIT
|
||||
|
||||
<BEGIN> BUILD_PENTIUMgnu_BUILDRULE
|
||||
db_checkpoint.out
|
||||
<END>
|
||||
|
||||
<BEGIN> BUILD_PENTIUMgnu_MACRO_AR
|
||||
ar386
|
||||
<END>
|
||||
|
||||
<BEGIN> BUILD_PENTIUMgnu_MACRO_ARCHIVE
|
||||
$(PRJ_DIR)/PENTIUMgnu/db_checkpoint.a
|
||||
<END>
|
||||
|
||||
<BEGIN> BUILD_PENTIUMgnu_MACRO_AS
|
||||
cc386
|
||||
<END>
|
||||
|
||||
<BEGIN> BUILD_PENTIUMgnu_MACRO_CC
|
||||
cc386
|
||||
<END>
|
||||
|
||||
<BEGIN> BUILD_PENTIUMgnu_MACRO_CFLAGS
|
||||
-g \
|
||||
-mpentium \
|
||||
-ansi \
|
||||
-nostdinc \
|
||||
-DRW_MULTI_THREAD \
|
||||
-D_REENTRANT \
|
||||
-fvolatile \
|
||||
-nostdlib \
|
||||
-fno-builtin \
|
||||
-fno-defer-pop \
|
||||
-I$(PRJ_DIR)/.. \
|
||||
-I$(PRJ_DIR)/../.. \
|
||||
-I$(WIND_BASE)/target/h \
|
||||
-DCPU=PENTIUM
|
||||
<END>
|
||||
|
||||
<BEGIN> BUILD_PENTIUMgnu_MACRO_CFLAGS_AS
|
||||
-g \
|
||||
-mpentium \
|
||||
-ansi \
|
||||
-nostdinc \
|
||||
-fvolatile \
|
||||
-nostdlib \
|
||||
-fno-builtin \
|
||||
-fno-defer-pop \
|
||||
-P \
|
||||
-x \
|
||||
assembler-with-cpp \
|
||||
-I$(WIND_BASE)/target/h \
|
||||
-DCPU=PENTIUM
|
||||
<END>
|
||||
|
||||
<BEGIN> BUILD_PENTIUMgnu_MACRO_CPP
|
||||
cc386 -E -P -xc
|
||||
<END>
|
||||
|
||||
<BEGIN> BUILD_PENTIUMgnu_MACRO_LD
|
||||
ld386
|
||||
<END>
|
||||
|
||||
<BEGIN> BUILD_PENTIUMgnu_MACRO_LDDEPS
|
||||
|
||||
<END>
|
||||
|
||||
<BEGIN> BUILD_PENTIUMgnu_MACRO_LDFLAGS
|
||||
-X -N
|
||||
<END>
|
||||
|
||||
<BEGIN> BUILD_PENTIUMgnu_MACRO_LD_PARTIAL_FLAGS
|
||||
-X -r
|
||||
<END>
|
||||
|
||||
<BEGIN> BUILD_PENTIUMgnu_MACRO_NM
|
||||
nm386 -g
|
||||
<END>
|
||||
|
||||
<BEGIN> BUILD_PENTIUMgnu_MACRO_OPTION_DEFINE_MACRO
|
||||
-D
|
||||
<END>
|
||||
|
||||
<BEGIN> BUILD_PENTIUMgnu_MACRO_OPTION_INCLUDE_DIR
|
||||
-I
|
||||
<END>
|
||||
|
||||
<BEGIN> BUILD_PENTIUMgnu_MACRO_POST_BUILD_RULE
|
||||
|
||||
<END>
|
||||
|
||||
<BEGIN> BUILD_PENTIUMgnu_MACRO_PRJ_LIBS
|
||||
|
||||
<END>
|
||||
|
||||
<BEGIN> BUILD_PENTIUMgnu_MACRO_SIZE
|
||||
size386
|
||||
<END>
|
||||
|
||||
<BEGIN> BUILD_PENTIUMgnu_RO_DEPEND_PATH
|
||||
{$(WIND_BASE)/target/h/} \
|
||||
{$(WIND_BASE)/target/src/} \
|
||||
{$(WIND_BASE)/target/config/}
|
||||
<END>
|
||||
|
||||
<BEGIN> BUILD_PENTIUMgnu_TC
|
||||
::tc_PENTIUMgnu
|
||||
<END>
|
||||
|
||||
<BEGIN> BUILD_RULE_archive
|
||||
|
||||
<END>
|
||||
|
||||
<BEGIN> BUILD_RULE_db_checkpoint.out
|
||||
|
||||
<END>
|
||||
|
||||
<BEGIN> BUILD_RULE_objects
|
||||
|
||||
<END>
|
||||
|
||||
<BEGIN> BUILD__CURRENT
|
||||
PENTIUMgnu
|
||||
<END>
|
||||
|
||||
<BEGIN> BUILD__LIST
|
||||
PENTIUMgnu
|
||||
<END>
|
||||
|
||||
<BEGIN> CORE_INFO_TYPE
|
||||
::prj_vxApp
|
||||
<END>
|
||||
|
||||
<BEGIN> CORE_INFO_VERSION
|
||||
2.0
|
||||
<END>
|
||||
|
||||
<BEGIN> FILE_db_checkpoint.c_dependDone
|
||||
FALSE
|
||||
<END>
|
||||
|
||||
<BEGIN> FILE_db_checkpoint.c_dependencies
|
||||
|
||||
<END>
|
||||
|
||||
<BEGIN> FILE_db_checkpoint.c_objects
|
||||
db_checkpoint.o
|
||||
<END>
|
||||
|
||||
<BEGIN> FILE_db_checkpoint.c_tool
|
||||
C/C++ compiler
|
||||
<END>
|
||||
|
||||
<BEGIN> PROJECT_FILES
|
||||
$(PRJ_DIR)/db_checkpoint.c
|
||||
<END>
|
||||
|
||||
<BEGIN> userComments
|
||||
db_checkpoint
|
||||
<END>
|
@ -1,51 +0,0 @@
|
||||
#
|
||||
# Custom Makefile shell
|
||||
#
|
||||
# This file may be edited freely, since it will not be regenerated
|
||||
# by the project manager.
|
||||
#
|
||||
# Use this makefile to define rules to make external binaries
|
||||
# and deposit them in the $(EXTERNAL_BINARIES_DIR) directory.
|
||||
#
|
||||
# If you have specified external modules during your component
|
||||
# creation, you will find make rules already in place below.
|
||||
# You will likely have to edit these to suit your individual
|
||||
# build setup.
|
||||
#
|
||||
# You may wish to use the CPU, BUILD_SPEC or TOOL make variables in
|
||||
# your Makefile to support builds for different architectures. Use
|
||||
# the FORCE_EXTERNAL_MAKE phony target to ensure that your external
|
||||
# make always runs.
|
||||
#
|
||||
# The example below assumes that your custom makefile is in the
|
||||
# mySourceTree directory, and that the binary file it produces
|
||||
# is placed into the $(BUILD_SPEC) sub-directory.
|
||||
#
|
||||
# EXTERNAL_SOURCE_BASE = /folk/me/mySourceTree
|
||||
# EXTERNAL_MODULE = myLibrary.o
|
||||
# EXTERNAL_MAKE = make
|
||||
#
|
||||
# $(EXTERNAL_BINARIES_DIR)/$(EXTERNAL_MODULE) : FORCE_EXTERNAL_MAKE
|
||||
# $(EXTERNAL_MAKE) -C $(EXTERNAL_SOURCE_BASE) \
|
||||
# -f $(EXTERNAL_SOURCE_BASE)/Makefile \
|
||||
# CPU=$(CPU) BUILD_SPEC=$(BUILD_SPEC) $(@F)
|
||||
# $(CP) $(subst /,$(DIRCHAR),$(EXTERNAL_SOURCE_BASE)/$(BUILD_SPEC)/$(@F) $@)
|
||||
#
|
||||
# If you are not adding your external modules from the component wizard,
|
||||
# you will have to include them in your component yourself:
|
||||
#
|
||||
# From the GUI, you can do this with the Component's 'Add external module'
|
||||
# dialog.
|
||||
#
|
||||
# If you are using the command line, add the module(s) by editing the
|
||||
# MODULES line in component.cdf file, e.g.
|
||||
#
|
||||
# Component INCLUDE_MYCOMPONENT {
|
||||
#
|
||||
# MODULES foo.o goo.o \
|
||||
# myLibrary.o
|
||||
#
|
||||
|
||||
|
||||
# rules to build custom libraries
|
||||
|
@ -1,30 +0,0 @@
|
||||
/* component.cdf - dynamically updated configuration */
|
||||
|
||||
/*
|
||||
* NOTE: you may edit this file to alter the configuration
|
||||
* But all non-configuration information, including comments,
|
||||
* will be lost upon rebuilding this project.
|
||||
*/
|
||||
|
||||
/* Component information */
|
||||
|
||||
Component INCLUDE_DB_CHECKPOINT {
|
||||
ENTRY_POINTS ALL_GLOBAL_SYMBOLS
|
||||
MODULES db_checkpoint.o
|
||||
NAME db_checkpoint
|
||||
PREF_DOMAIN ANY
|
||||
_INIT_ORDER usrComponentsInit
|
||||
}
|
||||
|
||||
/* EntryPoint information */
|
||||
|
||||
/* Module information */
|
||||
|
||||
Module db_checkpoint.o {
|
||||
|
||||
NAME db_checkpoint.o
|
||||
SRC_PATH_NAME $PRJ_DIR/../db_checkpoint.c
|
||||
}
|
||||
|
||||
/* Parameter information */
|
||||
|
@ -1,475 +0,0 @@
|
||||
Document file - DO NOT EDIT
|
||||
|
||||
<BEGIN> CORE_INFO_TYPE
|
||||
::prj_component
|
||||
<END>
|
||||
|
||||
<BEGIN> CORE_INFO_VERSION
|
||||
AE1.1
|
||||
<END>
|
||||
|
||||
<BEGIN> BUILD__CURRENT
|
||||
PENTIUM2gnu.debug
|
||||
<END>
|
||||
|
||||
<BEGIN> BUILD_PENTIUM2gnu.debug_CURRENT_TARGET
|
||||
default
|
||||
<END>
|
||||
|
||||
<BEGIN> BUILD_PENTIUM2gnu.debug_DEFAULTFORCPU
|
||||
1
|
||||
<END>
|
||||
|
||||
<BEGIN> BUILD_PENTIUM2gnu.debug_FILE_$(PRJ_DIR)/../db_checkpoint.c_infoTags
|
||||
toolMacro objects
|
||||
<END>
|
||||
|
||||
<BEGIN> BUILD_PENTIUM2gnu.debug_FILE_$(PRJ_DIR)/../db_checkpoint.c_objects
|
||||
db_checkpoint.o
|
||||
<END>
|
||||
|
||||
<BEGIN> BUILD_PENTIUM2gnu.debug_FILE_$(PRJ_DIR)/../db_checkpoint.c_toolMacro
|
||||
CC
|
||||
<END>
|
||||
|
||||
<BEGIN> BUILD_PENTIUM2gnu.debug_FILE_$(PRJ_DIR)/../db_checkpoint.c_objects
|
||||
db_checkpoint.o
|
||||
<END>
|
||||
|
||||
<BEGIN> BUILD_PENTIUM2gnu.debug_FILE_$(PRJ_DIR)/../db_checkpoint.c_toolMacro
|
||||
CC
|
||||
<END>
|
||||
|
||||
<BEGIN> BUILD_PENTIUM2gnu.debug_FILE_$(PRJ_DIR)/compConfig.c_infoTags
|
||||
toolMacro objects
|
||||
<END>
|
||||
|
||||
<BEGIN> BUILD_PENTIUM2gnu.debug_FILE_$(PRJ_DIR)/compConfig.c_objects
|
||||
compConfig.o
|
||||
<END>
|
||||
|
||||
<BEGIN> BUILD_PENTIUM2gnu.debug_FILE_$(PRJ_DIR)/compConfig.c_toolMacro
|
||||
CC
|
||||
<END>
|
||||
|
||||
<BEGIN> BUILD_PENTIUM2gnu.debug_MACRO_AR
|
||||
arpentium
|
||||
<END>
|
||||
|
||||
<BEGIN> BUILD_PENTIUM2gnu.debug_MACRO_AS
|
||||
ccpentium
|
||||
<END>
|
||||
|
||||
<BEGIN> BUILD_PENTIUM2gnu.debug_MACRO_CC
|
||||
ccpentium
|
||||
<END>
|
||||
|
||||
<BEGIN> BUILD_PENTIUM2gnu.debug_MACRO_CFLAGS
|
||||
-mcpu=pentiumpro \
|
||||
-march=pentiumpro \
|
||||
-ansi \
|
||||
-DRW_MULTI_THREAD \
|
||||
-D_REENTRANT \
|
||||
-g \
|
||||
-nostdlib \
|
||||
-fno-builtin \
|
||||
-fno-defer-pop \
|
||||
-MD \
|
||||
-Wall \
|
||||
-I. \
|
||||
-I$(WIND_BASE)/target/h \
|
||||
-I$(PRJ_DIR)/../.. \
|
||||
-I$(PRJ_DIR)/../../.. \
|
||||
-DCPU=PENTIUM2
|
||||
<END>
|
||||
|
||||
<BEGIN> BUILD_PENTIUM2gnu.debug_MACRO_CFLAGS_AS
|
||||
-mcpu=pentiumpro \
|
||||
-march=pentiumpro \
|
||||
-ansi \
|
||||
-g \
|
||||
-nostdlib \
|
||||
-fno-builtin \
|
||||
-fno-defer-pop \
|
||||
-P \
|
||||
-x \
|
||||
assembler-with-cpp \
|
||||
-Wall \
|
||||
-I. \
|
||||
-I$(WIND_BASE)/target/h \
|
||||
-DCPU=PENTIUM2
|
||||
<END>
|
||||
|
||||
<BEGIN> BUILD_PENTIUM2gnu.debug_MACRO_CPP
|
||||
ccpentium -E -P
|
||||
<END>
|
||||
|
||||
<BEGIN> BUILD_PENTIUM2gnu.debug_MACRO_CPPFILT
|
||||
c++filtpentium --strip-underscores
|
||||
<END>
|
||||
|
||||
<BEGIN> BUILD_PENTIUM2gnu.debug_MACRO_LD
|
||||
ldpentium
|
||||
<END>
|
||||
|
||||
<BEGIN> BUILD_PENTIUM2gnu.debug_MACRO_LDFLAGS
|
||||
-X
|
||||
<END>
|
||||
|
||||
<BEGIN> BUILD_PENTIUM2gnu.debug_MACRO_LDPARTIAL
|
||||
ccpentium \
|
||||
-B$(WIND_BASE)/host/$(WIND_HOST_TYPE)/lib/gcc-lib/ \
|
||||
-nostdlib \
|
||||
-r \
|
||||
-Wl,-X
|
||||
<END>
|
||||
|
||||
<BEGIN> BUILD_PENTIUM2gnu.debug_MACRO_LD_PARTIAL_FLAGS
|
||||
-X -r
|
||||
<END>
|
||||
|
||||
<BEGIN> BUILD_PENTIUM2gnu.debug_MACRO_NM
|
||||
nmpentium -g
|
||||
<END>
|
||||
|
||||
<BEGIN> BUILD_PENTIUM2gnu.debug_MACRO_OPTION_DEFINE_MACRO
|
||||
-D
|
||||
<END>
|
||||
|
||||
<BEGIN> BUILD_PENTIUM2gnu.debug_MACRO_OPTION_GENERATE_DEPENDENCY_FILE
|
||||
-MD
|
||||
<END>
|
||||
|
||||
<BEGIN> BUILD_PENTIUM2gnu.debug_MACRO_OPTION_INCLUDE_DIR
|
||||
-I
|
||||
<END>
|
||||
|
||||
<BEGIN> BUILD_PENTIUM2gnu.debug_MACRO_RELEASE
|
||||
0
|
||||
<END>
|
||||
|
||||
<BEGIN> BUILD_PENTIUM2gnu.debug_MACRO_SIZE
|
||||
sizepentium
|
||||
<END>
|
||||
|
||||
<BEGIN> BUILD_PENTIUM2gnu.debug_RELEASE
|
||||
0
|
||||
<END>
|
||||
|
||||
<BEGIN> BUILD_PENTIUM2gnu.debug_RO_DEPEND_PATH
|
||||
$(WIND_BASE)/target/h/
|
||||
<END>
|
||||
|
||||
<BEGIN> BUILD_PENTIUM2gnu.debug_TC
|
||||
::tc_PENTIUM2gnu.debug
|
||||
<END>
|
||||
|
||||
<BEGIN> BUILD_PENTIUM2gnu.release_DEFAULTFORCPU
|
||||
0
|
||||
<END>
|
||||
|
||||
<BEGIN> BUILD_PENTIUM2gnu.release_FILE_$(PRJ_DIR)/../db_checkpoint.c_infoTags
|
||||
toolMacro objects
|
||||
<END>
|
||||
|
||||
<BEGIN> BUILD_PENTIUM2gnu.release_FILE_$(PRJ_DIR)/../db_checkpoint.c_objects
|
||||
db_checkpoint.o
|
||||
<END>
|
||||
|
||||
<BEGIN> BUILD_PENTIUM2gnu.release_FILE_$(PRJ_DIR)/../db_checkpoint.c_toolMacro
|
||||
CC
|
||||
<END>
|
||||
|
||||
<BEGIN> BUILD_PENTIUM2gnu.release_FILE_$(PRJ_DIR)/compConfig.c_infoTags
|
||||
toolMacro objects
|
||||
<END>
|
||||
|
||||
<BEGIN> BUILD_PENTIUM2gnu.release_FILE_$(PRJ_DIR)/compConfig.c_objects
|
||||
compConfig.o
|
||||
<END>
|
||||
|
||||
<BEGIN> BUILD_PENTIUM2gnu.release_FILE_$(PRJ_DIR)/compConfig.c_toolMacro
|
||||
CC
|
||||
<END>
|
||||
|
||||
<BEGIN> BUILD_PENTIUM2gnu.release_MACRO_AR
|
||||
arpentium
|
||||
<END>
|
||||
|
||||
<BEGIN> BUILD_PENTIUM2gnu.release_MACRO_AS
|
||||
ccpentium
|
||||
<END>
|
||||
|
||||
<BEGIN> BUILD_PENTIUM2gnu.release_MACRO_CC
|
||||
ccpentium
|
||||
<END>
|
||||
|
||||
<BEGIN> BUILD_PENTIUM2gnu.release_MACRO_CFLAGS
|
||||
-mcpu=pentiumpro \
|
||||
-march=pentiumpro \
|
||||
-ansi \
|
||||
-DRW_MULTI_THREAD \
|
||||
-D_REENTRANT \
|
||||
-O2 \
|
||||
-nostdlib \
|
||||
-fno-builtin \
|
||||
-fno-defer-pop \
|
||||
-MD \
|
||||
-Wall \
|
||||
-I. \
|
||||
-I$(WIND_BASE)/target/h \
|
||||
-I$(PRJ_DIR)/../.. \
|
||||
-I$(PRJ_DIR)/../../.. \
|
||||
-DCPU=PENTIUM2
|
||||
<END>
|
||||
|
||||
<BEGIN> BUILD_PENTIUM2gnu.release_MACRO_CFLAGS_AS
|
||||
-mcpu=pentiumpro \
|
||||
-march=pentiumpro \
|
||||
-ansi \
|
||||
-O2 \
|
||||
-nostdlib \
|
||||
-fno-builtin \
|
||||
-fno-defer-pop \
|
||||
-P \
|
||||
-x \
|
||||
assembler-with-cpp \
|
||||
-Wall \
|
||||
-I. \
|
||||
-I$(WIND_BASE)/target/h \
|
||||
-DCPU=PENTIUM2
|
||||
<END>
|
||||
|
||||
<BEGIN> BUILD_PENTIUM2gnu.release_MACRO_CPP
|
||||
ccpentium -E -P
|
||||
<END>
|
||||
|
||||
<BEGIN> BUILD_PENTIUM2gnu.release_MACRO_CPPFILT
|
||||
c++filtpentium --strip-underscores
|
||||
<END>
|
||||
|
||||
<BEGIN> BUILD_PENTIUM2gnu.release_MACRO_LD
|
||||
ldpentium
|
||||
<END>
|
||||
|
||||
<BEGIN> BUILD_PENTIUM2gnu.release_MACRO_LDFLAGS
|
||||
-X
|
||||
<END>
|
||||
|
||||
<BEGIN> BUILD_PENTIUM2gnu.release_MACRO_LDPARTIAL
|
||||
ccpentium \
|
||||
-B$(WIND_BASE)/host/$(WIND_HOST_TYPE)/lib/gcc-lib/ \
|
||||
-nostdlib \
|
||||
-r \
|
||||
-Wl,-X
|
||||
<END>
|
||||
|
||||
<BEGIN> BUILD_PENTIUM2gnu.release_MACRO_LD_PARTIAL_FLAGS
|
||||
-X -r
|
||||
<END>
|
||||
|
||||
<BEGIN> BUILD_PENTIUM2gnu.release_MACRO_NM
|
||||
nmpentium -g
|
||||
<END>
|
||||
|
||||
<BEGIN> BUILD_PENTIUM2gnu.release_MACRO_OPTION_DEFINE_MACRO
|
||||
-D
|
||||
<END>
|
||||
|
||||
<BEGIN> BUILD_PENTIUM2gnu.release_MACRO_OPTION_GENERATE_DEPENDENCY_FILE
|
||||
-MD
|
||||
<END>
|
||||
|
||||
<BEGIN> BUILD_PENTIUM2gnu.release_MACRO_OPTION_INCLUDE_DIR
|
||||
-I
|
||||
<END>
|
||||
|
||||
<BEGIN> BUILD_PENTIUM2gnu.release_MACRO_RELEASE
|
||||
1
|
||||
<END>
|
||||
|
||||
<BEGIN> BUILD_PENTIUM2gnu.release_MACRO_SIZE
|
||||
sizepentium
|
||||
<END>
|
||||
|
||||
<BEGIN> BUILD_PENTIUM2gnu.release_RELEASE
|
||||
1
|
||||
<END>
|
||||
|
||||
<BEGIN> BUILD_PENTIUM2gnu.release_RO_DEPEND_PATH
|
||||
$(WIND_BASE)/target/h/
|
||||
<END>
|
||||
|
||||
<BEGIN> BUILD_PENTIUM2gnu.release_TC
|
||||
::tc_PENTIUM2gnu.release
|
||||
<END>
|
||||
|
||||
<BEGIN> BUILD_PENTIUMgnu.debug_DEFAULTFORCPU
|
||||
1
|
||||
<END>
|
||||
|
||||
<BEGIN> BUILD_PENTIUMgnu.debug_FILE_$(PRJ_DIR)/../db_checkpoint.c_infoTags
|
||||
toolMacro objects
|
||||
<END>
|
||||
|
||||
<BEGIN> BUILD_PENTIUMgnu.debug_FILE_$(PRJ_DIR)/../db_checkpoint.c_objects
|
||||
db_checkpoint.o
|
||||
<END>
|
||||
|
||||
<BEGIN> BUILD_PENTIUMgnu.debug_FILE_$(PRJ_DIR)/../db_checkpoint.c_toolMacro
|
||||
CC
|
||||
<END>
|
||||
|
||||
<BEGIN> BUILD_PENTIUMgnu.debug_FILE_$(PRJ_DIR)/compConfig.c_infoTags
|
||||
toolMacro objects
|
||||
<END>
|
||||
|
||||
<BEGIN> BUILD_PENTIUMgnu.debug_FILE_$(PRJ_DIR)/compConfig.c_objects
|
||||
compConfig.o
|
||||
<END>
|
||||
|
||||
<BEGIN> BUILD_PENTIUMgnu.debug_FILE_$(PRJ_DIR)/compConfig.c_toolMacro
|
||||
CC
|
||||
<END>
|
||||
|
||||
<BEGIN> BUILD_PENTIUMgnu.debug_MACRO_AR
|
||||
arpentium
|
||||
<END>
|
||||
|
||||
<BEGIN> BUILD_PENTIUMgnu.debug_MACRO_AS
|
||||
ccpentium
|
||||
<END>
|
||||
|
||||
<BEGIN> BUILD_PENTIUMgnu.debug_MACRO_CC
|
||||
ccpentium
|
||||
<END>
|
||||
|
||||
<BEGIN> BUILD_PENTIUMgnu.debug_MACRO_CFLAGS
|
||||
-mcpu=pentium \
|
||||
-march=pentium \
|
||||
-ansi \
|
||||
-DRW_MULTI_THREAD \
|
||||
-D_REENTRANT \
|
||||
-g \
|
||||
-nostdlib \
|
||||
-fno-builtin \
|
||||
-fno-defer-pop \
|
||||
-MD \
|
||||
-Wall \
|
||||
-I. \
|
||||
-I$(WIND_BASE)/target/h \
|
||||
-I$(PRJ_DIR)/../.. \
|
||||
-I$(PRJ_DIR)/../../.. \
|
||||
-DCPU=PENTIUM
|
||||
<END>
|
||||
|
||||
<BEGIN> BUILD_PENTIUMgnu.debug_MACRO_CFLAGS_AS
|
||||
-mcpu=pentium \
|
||||
-march=pentium \
|
||||
-ansi \
|
||||
-g \
|
||||
-nostdlib \
|
||||
-fno-builtin \
|
||||
-fno-defer-pop \
|
||||
-P \
|
||||
-x \
|
||||
assembler-with-cpp \
|
||||
-Wall \
|
||||
-I. \
|
||||
-I$(WIND_BASE)/target/h \
|
||||
-DCPU=PENTIUM
|
||||
<END>
|
||||
|
||||
<BEGIN> BUILD_PENTIUMgnu.debug_MACRO_CPP
|
||||
ccpentium -E -P
|
||||
<END>
|
||||
|
||||
<BEGIN> BUILD_PENTIUMgnu.debug_MACRO_CPPFILT
|
||||
c++filtpentium --strip-underscores
|
||||
<END>
|
||||
|
||||
<BEGIN> BUILD_PENTIUMgnu.debug_MACRO_LD
|
||||
ldpentium
|
||||
<END>
|
||||
|
||||
<BEGIN> BUILD_PENTIUMgnu.debug_MACRO_LDFLAGS
|
||||
-X
|
||||
<END>
|
||||
|
||||
<BEGIN> BUILD_PENTIUMgnu.debug_MACRO_LDPARTIAL
|
||||
ccpentium \
|
||||
-B$(WIND_BASE)/host/$(WIND_HOST_TYPE)/lib/gcc-lib/ \
|
||||
-nostdlib \
|
||||
-r \
|
||||
-Wl,-X
|
||||
<END>
|
||||
|
||||
<BEGIN> BUILD_PENTIUMgnu.debug_MACRO_LD_PARTIAL_FLAGS
|
||||
-X -r
|
||||
<END>
|
||||
|
||||
<BEGIN> BUILD_PENTIUMgnu.debug_MACRO_NM
|
||||
nmpentium -g
|
||||
<END>
|
||||
|
||||
<BEGIN> BUILD_PENTIUMgnu.debug_MACRO_OPTION_DEFINE_MACRO
|
||||
-D
|
||||
<END>
|
||||
|
||||
<BEGIN> BUILD_PENTIUMgnu.debug_MACRO_OPTION_GENERATE_DEPENDENCY_FILE
|
||||
-MD
|
||||
<END>
|
||||
|
||||
<BEGIN> BUILD_PENTIUMgnu.debug_MACRO_OPTION_INCLUDE_DIR
|
||||
-I
|
||||
<END>
|
||||
|
||||
<BEGIN> BUILD_PENTIUMgnu.debug_MACRO_RELEASE
|
||||
0
|
||||
<END>
|
||||
|
||||
<BEGIN> BUILD_PENTIUMgnu.debug_MACRO_SIZE
|
||||
sizepentium
|
||||
<END>
|
||||
|
||||
<BEGIN> BUILD_PENTIUMgnu.debug_RELEASE
|
||||
0
|
||||
<END>
|
||||
|
||||
<BEGIN> BUILD_PENTIUMgnu.debug_RO_DEPEND_PATH
|
||||
$(WIND_BASE)/target/h/
|
||||
<END>
|
||||
|
||||
<BEGIN> BUILD_PENTIUMgnu.debug_TC
|
||||
::tc_PENTIUMgnu.debug
|
||||
<END>
|
||||
|
||||
<BEGIN> BUILD__LIST
|
||||
PENTIUM2gnu.debug PENTIUM2gnu.release PENTIUMgnu.debug
|
||||
<END>
|
||||
|
||||
<BEGIN> PROJECT_FILES
|
||||
$(PRJ_DIR)/../db_checkpoint.c \
|
||||
$(PRJ_DIR)/compConfig.c
|
||||
<END>
|
||||
|
||||
<BEGIN> WCC__CDF_PATH
|
||||
$(PRJ_DIR)
|
||||
<END>
|
||||
|
||||
<BEGIN> WCC__CURRENT
|
||||
PENTIUM2gnu.debug
|
||||
<END>
|
||||
|
||||
<BEGIN> WCC__LIST
|
||||
PENTIUM2gnu.debug
|
||||
<END>
|
||||
|
||||
<BEGIN> WCC__MXR_LIBS
|
||||
lib$(CPU)$(TOOL)vx.a
|
||||
<END>
|
||||
|
||||
<BEGIN> WCC__OBJS_PATH
|
||||
$(WIND_BASE)/target/lib/obj$CPU$TOOLvx
|
||||
<END>
|
||||
|
@ -1,382 +0,0 @@
|
||||
/* DO NOT EDIT: automatically built by dist/s_vxworks. */
|
||||
/* !!!
|
||||
* The CONFIG_TEST option may be added using the Tornado project build.
|
||||
* DO NOT modify it here.
|
||||
*/
|
||||
/* Define to 1 if you want to build a version for running the test suite. */
|
||||
/* #undef CONFIG_TEST */
|
||||
|
||||
/* !!!
|
||||
* The DEBUG option may be added using the Tornado project build.
|
||||
* DO NOT modify it here.
|
||||
*/
|
||||
/* Define to 1 if you want a debugging version. */
|
||||
/* #undef DEBUG */
|
||||
|
||||
/* Define to 1 if you want a version that logs read operations. */
|
||||
/* #undef DEBUG_ROP */
|
||||
|
||||
/* Define to 1 if you want a version that logs write operations. */
|
||||
/* #undef DEBUG_WOP */
|
||||
|
||||
/* !!!
|
||||
* The DIAGNOSTIC option may be added using the Tornado project build.
|
||||
* DO NOT modify it here.
|
||||
*/
|
||||
/* Define to 1 if you want a version with run-time diagnostic checking. */
|
||||
/* #undef DIAGNOSTIC */
|
||||
|
||||
/* Define to 1 if you have the `clock_gettime' function. */
|
||||
#define HAVE_CLOCK_GETTIME 1
|
||||
|
||||
/* Define to 1 if Berkeley DB release includes strong cryptography. */
|
||||
/* #undef HAVE_CRYPTO */
|
||||
|
||||
/* Define to 1 if you have the `directio' function. */
|
||||
/* #undef HAVE_DIRECTIO */
|
||||
|
||||
/* Define to 1 if you have the <dirent.h> header file, and it defines `DIR'.
|
||||
*/
|
||||
#define HAVE_DIRENT_H 1
|
||||
|
||||
/* Define to 1 if you have the <dlfcn.h> header file. */
|
||||
/* #undef HAVE_DLFCN_H */
|
||||
|
||||
/* Define to 1 if you have EXIT_SUCCESS/EXIT_FAILURE #defines. */
|
||||
#define HAVE_EXIT_SUCCESS 1
|
||||
|
||||
/* Define to 1 if fcntl/F_SETFD denies child access to file descriptors. */
|
||||
/* #undef HAVE_FCNTL_F_SETFD */
|
||||
|
||||
/* Define to 1 if allocated filesystem blocks are not zeroed. */
|
||||
#define HAVE_FILESYSTEM_NOTZERO 1
|
||||
|
||||
/* Define to 1 if you have the `getcwd' function. */
|
||||
#define HAVE_GETCWD 1
|
||||
|
||||
/* Define to 1 if you have the `getopt' function. */
|
||||
/* #undef HAVE_GETOPT */
|
||||
|
||||
/* Define to 1 if you have the `gettimeofday' function. */
|
||||
/* #undef HAVE_GETTIMEOFDAY */
|
||||
|
||||
/* Define to 1 if you have the `getuid' function. */
|
||||
/* #undef HAVE_GETUID */
|
||||
|
||||
/* Define to 1 if you have the <inttypes.h> header file. */
|
||||
/* #undef HAVE_INTTYPES_H */
|
||||
|
||||
/* Define to 1 if you have the `nsl' library (-lnsl). */
|
||||
/* #undef HAVE_LIBNSL */
|
||||
|
||||
/* Define to 1 if you have the `memcmp' function. */
|
||||
#define HAVE_MEMCMP 1
|
||||
|
||||
/* Define to 1 if you have the `memcpy' function. */
|
||||
#define HAVE_MEMCPY 1
|
||||
|
||||
/* Define to 1 if you have the `memmove' function. */
|
||||
#define HAVE_MEMMOVE 1
|
||||
|
||||
/* Define to 1 if you have the <memory.h> header file. */
|
||||
#define HAVE_MEMORY_H 1
|
||||
|
||||
/* Define to 1 if you have the `mlock' function. */
|
||||
/* #undef HAVE_MLOCK */
|
||||
|
||||
/* Define to 1 if you have the `mmap' function. */
|
||||
/* #undef HAVE_MMAP */
|
||||
|
||||
/* Define to 1 if you have the `munlock' function. */
|
||||
/* #undef HAVE_MUNLOCK */
|
||||
|
||||
/* Define to 1 if you have the `munmap' function. */
|
||||
/* #undef HAVE_MUNMAP */
|
||||
|
||||
/* Define to 1 to use the GCC compiler and 68K assembly language mutexes. */
|
||||
/* #undef HAVE_MUTEX_68K_GCC_ASSEMBLY */
|
||||
|
||||
/* Define to 1 to use the AIX _check_lock mutexes. */
|
||||
/* #undef HAVE_MUTEX_AIX_CHECK_LOCK */
|
||||
|
||||
/* Define to 1 to use the GCC compiler and Alpha assembly language mutexes. */
|
||||
/* #undef HAVE_MUTEX_ALPHA_GCC_ASSEMBLY */
|
||||
|
||||
/* Define to 1 to use the GCC compiler and ARM assembly language mutexes. */
|
||||
/* #undef HAVE_MUTEX_ARM_GCC_ASSEMBLY */
|
||||
|
||||
/* Define to 1 to use the UNIX fcntl system call mutexes. */
|
||||
/* #undef HAVE_MUTEX_FCNTL */
|
||||
|
||||
/* Define to 1 to use the GCC compiler and PaRisc assembly language mutexes.
|
||||
*/
|
||||
/* #undef HAVE_MUTEX_HPPA_GCC_ASSEMBLY */
|
||||
|
||||
/* Define to 1 to use the msem_XXX mutexes on HP-UX. */
|
||||
/* #undef HAVE_MUTEX_HPPA_MSEM_INIT */
|
||||
|
||||
/* Define to 1 to use the GCC compiler and IA64 assembly language mutexes. */
|
||||
/* #undef HAVE_MUTEX_IA64_GCC_ASSEMBLY */
|
||||
|
||||
/* Define to 1 to use the msem_XXX mutexes on systems other than HP-UX. */
|
||||
/* #undef HAVE_MUTEX_MSEM_INIT */
|
||||
|
||||
/* Define to 1 to use the GCC compiler and Apple PowerPC assembly language. */
|
||||
/* #undef HAVE_MUTEX_PPC_APPLE_GCC_ASSEMBLY */
|
||||
|
||||
/* Define to 1 to use the GCC compiler and generic PowerPC assembly language.
|
||||
*/
|
||||
/* #undef HAVE_MUTEX_PPC_GENERIC_GCC_ASSEMBLY */
|
||||
|
||||
/* Define to 1 to use POSIX 1003.1 pthread_XXX mutexes. */
|
||||
/* #undef HAVE_MUTEX_PTHREADS */
|
||||
|
||||
/* Define to 1 to use Reliant UNIX initspin mutexes. */
|
||||
/* #undef HAVE_MUTEX_RELIANTUNIX_INITSPIN */
|
||||
|
||||
/* Define to 1 to use the GCC compiler and S/390 assembly language mutexes. */
|
||||
/* #undef HAVE_MUTEX_S390_GCC_ASSEMBLY */
|
||||
|
||||
/* Define to 1 to use the SCO compiler and x86 assembly language mutexes. */
|
||||
/* #undef HAVE_MUTEX_SCO_X86_CC_ASSEMBLY */
|
||||
|
||||
/* Define to 1 to use the obsolete POSIX 1003.1 sema_XXX mutexes. */
|
||||
/* #undef HAVE_MUTEX_SEMA_INIT */
|
||||
|
||||
/* Define to 1 to use the SGI XXX_lock mutexes. */
|
||||
/* #undef HAVE_MUTEX_SGI_INIT_LOCK */
|
||||
|
||||
/* Define to 1 to use the Solaris _lock_XXX mutexes. */
|
||||
/* #undef HAVE_MUTEX_SOLARIS_LOCK_TRY */
|
||||
|
||||
/* Define to 1 to use the Solaris lwp threads mutexes. */
|
||||
/* #undef HAVE_MUTEX_SOLARIS_LWP */
|
||||
|
||||
/* Define to 1 to use the GCC compiler and Sparc assembly language mutexes. */
|
||||
/* #undef HAVE_MUTEX_SPARC_GCC_ASSEMBLY */
|
||||
|
||||
/* Define to 1 if mutexes hold system resources. */
|
||||
#define HAVE_MUTEX_SYSTEM_RESOURCES 1
|
||||
|
||||
/* Define to 1 if fast mutexes are available. */
|
||||
#define HAVE_MUTEX_THREADS 1
|
||||
|
||||
/* Define to 1 to configure mutexes intra-process only. */
|
||||
/* #undef HAVE_MUTEX_THREAD_ONLY */
|
||||
|
||||
/* Define to 1 to use the UNIX International mutexes. */
|
||||
/* #undef HAVE_MUTEX_UI_THREADS */
|
||||
|
||||
/* Define to 1 to use the UTS compiler and assembly language mutexes. */
|
||||
/* #undef HAVE_MUTEX_UTS_CC_ASSEMBLY */
|
||||
|
||||
/* Define to 1 to use VMS mutexes. */
|
||||
/* #undef HAVE_MUTEX_VMS */
|
||||
|
||||
/* Define to 1 to use VxWorks mutexes. */
|
||||
#define HAVE_MUTEX_VXWORKS 1
|
||||
|
||||
/* Define to 1 to use Windows mutexes. */
|
||||
/* #undef HAVE_MUTEX_WIN32 */
|
||||
|
||||
/* Define to 1 to use the GCC compiler and x86 assembly language mutexes. */
|
||||
/* #undef HAVE_MUTEX_X86_GCC_ASSEMBLY */
|
||||
|
||||
/* Define to 1 if you have the <ndir.h> header file, and it defines `DIR'. */
|
||||
/* #undef HAVE_NDIR_H */
|
||||
|
||||
/* Define to 1 if you have the O_DIRECT flag. */
|
||||
/* #undef HAVE_O_DIRECT */
|
||||
|
||||
/* Define to 1 if you have the `pread' function. */
|
||||
/* #undef HAVE_PREAD */
|
||||
|
||||
/* Define to 1 if you have the `pstat_getdynamic' function. */
|
||||
/* #undef HAVE_PSTAT_GETDYNAMIC */
|
||||
|
||||
/* Define to 1 if you have the `pwrite' function. */
|
||||
/* #undef HAVE_PWRITE */
|
||||
|
||||
/* Define to 1 if building on QNX. */
|
||||
/* #undef HAVE_QNX */
|
||||
|
||||
/* Define to 1 if you have the `qsort' function. */
|
||||
#define HAVE_QSORT 1
|
||||
|
||||
/* Define to 1 if you have the `raise' function. */
|
||||
#define HAVE_RAISE 1
|
||||
|
||||
/* Define to 1 if building RPC client/server. */
|
||||
/* #undef HAVE_RPC */
|
||||
|
||||
/* Define to 1 if you have the `sched_yield' function. */
|
||||
#define HAVE_SCHED_YIELD 1
|
||||
|
||||
/* Define to 1 if you have the `select' function. */
|
||||
#define HAVE_SELECT 1
|
||||
|
||||
/* Define to 1 if you have the `shmget' function. */
|
||||
/* #undef HAVE_SHMGET */
|
||||
|
||||
/* Define to 1 if you have the `snprintf' function. */
|
||||
/* #undef HAVE_SNPRINTF */
|
||||
|
||||
/* Define to 1 if you have the <stdint.h> header file. */
|
||||
/* #undef HAVE_STDINT_H */
|
||||
|
||||
/* Define to 1 if you have the <stdlib.h> header file. */
|
||||
#define HAVE_STDLIB_H 1
|
||||
|
||||
/* Define to 1 if you have the `strcasecmp' function. */
|
||||
/* #undef HAVE_STRCASECMP */
|
||||
|
||||
/* Define to 1 if you have the `strdup' function. */
|
||||
/* #undef HAVE_STRDUP */
|
||||
|
||||
/* Define to 1 if you have the `strerror' function. */
|
||||
#define HAVE_STRERROR 1
|
||||
|
||||
/* Define to 1 if you have the <strings.h> header file. */
|
||||
#define HAVE_STRINGS_H 1
|
||||
|
||||
/* Define to 1 if you have the <string.h> header file. */
|
||||
#define HAVE_STRING_H 1
|
||||
|
||||
/* Define to 1 if you have the `strtoul' function. */
|
||||
#define HAVE_STRTOUL 1
|
||||
|
||||
/* Define to 1 if `st_blksize' is member of `struct stat'. */
|
||||
#define HAVE_STRUCT_STAT_ST_BLKSIZE 1
|
||||
|
||||
/* Define to 1 if you have the `sysconf' function. */
|
||||
/* #undef HAVE_SYSCONF */
|
||||
|
||||
/* Define to 1 if you have the <sys/dir.h> header file, and it defines `DIR'.
|
||||
*/
|
||||
/* #undef HAVE_SYS_DIR_H */
|
||||
|
||||
/* Define to 1 if you have the <sys/ndir.h> header file, and it defines `DIR'.
|
||||
*/
|
||||
/* #undef HAVE_SYS_NDIR_H */
|
||||
|
||||
/* Define to 1 if you have the <sys/select.h> header file. */
|
||||
/* #undef HAVE_SYS_SELECT_H */
|
||||
|
||||
/* Define to 1 if you have the <sys/stat.h> header file. */
|
||||
/* #undef HAVE_SYS_STAT_H */
|
||||
|
||||
/* Define to 1 if you have the <sys/time.h> header file. */
|
||||
/* #undef HAVE_SYS_TIME_H */
|
||||
|
||||
/* Define to 1 if you have the <sys/types.h> header file. */
|
||||
/* #undef HAVE_SYS_TYPES_H */
|
||||
|
||||
/* Define to 1 if you have the <unistd.h> header file. */
|
||||
#define HAVE_UNISTD_H 1
|
||||
|
||||
/* Define to 1 if unlink of file with open file descriptors will fail. */
|
||||
#define HAVE_UNLINK_WITH_OPEN_FAILURE 1
|
||||
|
||||
/* Define to 1 if you have the `vsnprintf' function. */
|
||||
/* #undef HAVE_VSNPRINTF */
|
||||
|
||||
/* Define to 1 if building VxWorks. */
|
||||
#define HAVE_VXWORKS 1
|
||||
|
||||
/* Define to 1 if you have the `yield' function. */
|
||||
/* #undef HAVE_YIELD */
|
||||
|
||||
/* Define to 1 if you have the `_fstati64' function. */
|
||||
/* #undef HAVE__FSTATI64 */
|
||||
|
||||
/* Define to the address where bug reports for this package should be sent. */
|
||||
#define PACKAGE_BUGREPORT "support@sleepycat.com"
|
||||
|
||||
/* Define to the full name of this package. */
|
||||
#define PACKAGE_NAME "Berkeley DB"
|
||||
|
||||
/* Define to the full name and version of this package. */
|
||||
#define PACKAGE_STRING "Berkeley DB 4.1.24"
|
||||
|
||||
/* Define to the one symbol short name of this package. */
|
||||
#define PACKAGE_TARNAME "db-4.1.24"
|
||||
|
||||
/* Define to the version of this package. */
|
||||
#define PACKAGE_VERSION "4.1.24"
|
||||
|
||||
/* Define to 1 if the `S_IS*' macros in <sys/stat.h> do not work properly. */
|
||||
/* #undef STAT_MACROS_BROKEN */
|
||||
|
||||
/* Define to 1 if you have the ANSI C header files. */
|
||||
#define STDC_HEADERS 1
|
||||
|
||||
/* Define to 1 if you can safely include both <sys/time.h> and <time.h>. */
|
||||
/* #undef TIME_WITH_SYS_TIME */
|
||||
|
||||
/* Define to 1 to mask harmless unitialized memory read/writes. */
|
||||
/* #undef UMRW */
|
||||
|
||||
/* Number of bits in a file offset, on hosts where this is settable. */
|
||||
/* #undef _FILE_OFFSET_BITS */
|
||||
|
||||
/* Define for large files, on AIX-style hosts. */
|
||||
/* #undef _LARGE_FILES */
|
||||
|
||||
/* Define to empty if `const' does not conform to ANSI C. */
|
||||
/* #undef const */
|
||||
|
||||
/*
|
||||
* Exit success/failure macros.
|
||||
*/
|
||||
#ifndef HAVE_EXIT_SUCCESS
|
||||
#define EXIT_FAILURE 1
|
||||
#define EXIT_SUCCESS 0
|
||||
#endif
|
||||
|
||||
/*
|
||||
* Don't step on the namespace. Other libraries may have their own
|
||||
* implementations of these functions, we don't want to use their
|
||||
* implementations or force them to use ours based on the load order.
|
||||
*/
|
||||
#ifndef HAVE_GETCWD
|
||||
#define getcwd __db_Cgetcwd
|
||||
#endif
|
||||
#ifndef HAVE_GETOPT
|
||||
#define getopt __db_Cgetopt
|
||||
#define optarg __db_Coptarg
|
||||
#define opterr __db_Copterr
|
||||
#define optind __db_Coptind
|
||||
#define optopt __db_Coptopt
|
||||
#endif
|
||||
#ifndef HAVE_MEMCMP
|
||||
#define memcmp __db_Cmemcmp
|
||||
#endif
|
||||
#ifndef HAVE_MEMCPY
|
||||
#define memcpy __db_Cmemcpy
|
||||
#endif
|
||||
#ifndef HAVE_MEMMOVE
|
||||
#define memmove __db_Cmemmove
|
||||
#endif
|
||||
#ifndef HAVE_RAISE
|
||||
#define raise __db_Craise
|
||||
#endif
|
||||
#ifndef HAVE_SNPRINTF
|
||||
#define snprintf __db_Csnprintf
|
||||
#endif
|
||||
#ifndef HAVE_STRCASECMP
|
||||
#define strcasecmp __db_Cstrcasecmp
|
||||
#define strncasecmp __db_Cstrncasecmp
|
||||
#endif
|
||||
#ifndef HAVE_STRERROR
|
||||
#define strerror __db_Cstrerror
|
||||
#endif
|
||||
#ifndef HAVE_VSNPRINTF
|
||||
#define vsnprintf __db_Cvsnprintf
|
||||
#endif
|
||||
|
||||
/*
|
||||
* !!!
|
||||
* The following is not part of the automatic configuration setup, but
|
||||
* provides the information necessary to build Berkeley DB on VxWorks.
|
||||
*/
|
||||
#include "vxWorks.h"
|
@ -1,249 +0,0 @@
|
||||
/*-
|
||||
* See the file LICENSE for redistribution information.
|
||||
*
|
||||
* Copyright (c) 1996-2002
|
||||
* Sleepycat Software. All rights reserved.
|
||||
*/
|
||||
|
||||
#include "db_config.h"
|
||||
|
||||
#ifndef lint
|
||||
static const char copyright[] =
|
||||
"Copyright (c) 1996-2002\nSleepycat Software Inc. All rights reserved.\n";
|
||||
static const char revid[] =
|
||||
"$Id: db_deadlock.c,v 11.38 2002/08/08 03:50:32 bostic Exp $";
|
||||
#endif
|
||||
|
||||
#ifndef NO_SYSTEM_INCLUDES
|
||||
#include <sys/types.h>
|
||||
|
||||
#if TIME_WITH_SYS_TIME
|
||||
#include <sys/time.h>
|
||||
#include <time.h>
|
||||
#else
|
||||
#if HAVE_SYS_TIME_H
|
||||
#include <sys/time.h>
|
||||
#else
|
||||
#include <time.h>
|
||||
#endif
|
||||
#endif
|
||||
|
||||
#include <limits.h>
|
||||
#include <stdio.h>
|
||||
#include <stdlib.h>
|
||||
#include <string.h>
|
||||
#include <unistd.h>
|
||||
#endif
|
||||
|
||||
#include "db_int.h"
|
||||
|
||||
int db_deadlock_main __P((int, char *[]));
|
||||
int db_deadlock_usage __P((void));
|
||||
int db_deadlock_version_check __P((const char *));
|
||||
|
||||
int
|
||||
db_deadlock(args)
|
||||
char *args;
|
||||
{
|
||||
int argc;
|
||||
char **argv;
|
||||
|
||||
__db_util_arg("db_deadlock", args, &argc, &argv);
|
||||
return (db_deadlock_main(argc, argv) ? EXIT_FAILURE : EXIT_SUCCESS);
|
||||
}
|
||||
|
||||
#include <stdio.h>
|
||||
#define ERROR_RETURN ERROR
|
||||
|
||||
int
|
||||
db_deadlock_main(argc, argv)
|
||||
int argc;
|
||||
char *argv[];
|
||||
{
|
||||
extern char *optarg;
|
||||
extern int optind, __db_getopt_reset;
|
||||
const char *progname = "db_deadlock";
|
||||
DB_ENV *dbenv;
|
||||
u_int32_t atype;
|
||||
time_t now;
|
||||
long secs, usecs;
|
||||
int ch, e_close, exitval, ret, verbose;
|
||||
char *home, *logfile, *str;
|
||||
|
||||
if ((ret = db_deadlock_version_check(progname)) != 0)
|
||||
return (ret);
|
||||
|
||||
atype = DB_LOCK_DEFAULT;
|
||||
home = logfile = NULL;
|
||||
secs = usecs = 0;
|
||||
e_close = exitval = verbose = 0;
|
||||
__db_getopt_reset = 1;
|
||||
while ((ch = getopt(argc, argv, "a:h:L:t:Vvw")) != EOF)
|
||||
switch (ch) {
|
||||
case 'a':
|
||||
switch (optarg[0]) {
|
||||
case 'e':
|
||||
atype = DB_LOCK_EXPIRE;
|
||||
break;
|
||||
case 'm':
|
||||
atype = DB_LOCK_MAXLOCKS;
|
||||
break;
|
||||
case 'n':
|
||||
atype = DB_LOCK_MINLOCKS;
|
||||
break;
|
||||
case 'o':
|
||||
atype = DB_LOCK_OLDEST;
|
||||
break;
|
||||
case 'w':
|
||||
atype = DB_LOCK_MINWRITE;
|
||||
break;
|
||||
case 'y':
|
||||
atype = DB_LOCK_YOUNGEST;
|
||||
break;
|
||||
default:
|
||||
return (db_deadlock_usage());
|
||||
/* NOTREACHED */
|
||||
}
|
||||
if (optarg[1] != '\0')
|
||||
return (db_deadlock_usage());
|
||||
break;
|
||||
case 'h':
|
||||
home = optarg;
|
||||
break;
|
||||
case 'L':
|
||||
logfile = optarg;
|
||||
break;
|
||||
case 't':
|
||||
if ((str = strchr(optarg, '.')) != NULL) {
|
||||
*str++ = '\0';
|
||||
if (*str != '\0' && __db_getlong(
|
||||
NULL, progname, str, 0, LONG_MAX, &usecs))
|
||||
return (EXIT_FAILURE);
|
||||
}
|
||||
if (*optarg != '\0' && __db_getlong(
|
||||
NULL, progname, optarg, 0, LONG_MAX, &secs))
|
||||
return (EXIT_FAILURE);
|
||||
if (secs == 0 && usecs == 0)
|
||||
return (db_deadlock_usage());
|
||||
|
||||
break;
|
||||
|
||||
case 'V':
|
||||
printf("%s\n", db_version(NULL, NULL, NULL));
|
||||
return (EXIT_SUCCESS);
|
||||
case 'v':
|
||||
verbose = 1;
|
||||
break;
|
||||
case 'w': /* Undocumented. */
|
||||
/* Detect every 100ms (100000 us) when polling. */
|
||||
secs = 0;
|
||||
usecs = 100000;
|
||||
break;
|
||||
case '?':
|
||||
default:
|
||||
return (db_deadlock_usage());
|
||||
}
|
||||
argc -= optind;
|
||||
argv += optind;
|
||||
|
||||
if (argc != 0)
|
||||
return (db_deadlock_usage());
|
||||
|
||||
/* Handle possible interruptions. */
|
||||
__db_util_siginit();
|
||||
|
||||
/* Log our process ID. */
|
||||
if (logfile != NULL && __db_util_logset(progname, logfile))
|
||||
goto shutdown;
|
||||
|
||||
/*
|
||||
* Create an environment object and initialize it for error
|
||||
* reporting.
|
||||
*/
|
||||
if ((ret = db_env_create(&dbenv, 0)) != 0) {
|
||||
fprintf(stderr,
|
||||
"%s: db_env_create: %s\n", progname, db_strerror(ret));
|
||||
goto shutdown;
|
||||
}
|
||||
e_close = 1;
|
||||
|
||||
dbenv->set_errfile(dbenv, stderr);
|
||||
dbenv->set_errpfx(dbenv, progname);
|
||||
|
||||
if (verbose) {
|
||||
(void)dbenv->set_verbose(dbenv, DB_VERB_DEADLOCK, 1);
|
||||
(void)dbenv->set_verbose(dbenv, DB_VERB_WAITSFOR, 1);
|
||||
}
|
||||
|
||||
/* An environment is required. */
|
||||
if ((ret = dbenv->open(dbenv, home,
|
||||
DB_JOINENV | DB_USE_ENVIRON, 0)) != 0) {
|
||||
dbenv->err(dbenv, ret, "open");
|
||||
goto shutdown;
|
||||
}
|
||||
|
||||
while (!__db_util_interrupted()) {
|
||||
if (verbose) {
|
||||
(void)time(&now);
|
||||
dbenv->errx(dbenv, "running at %.24s", ctime(&now));
|
||||
}
|
||||
|
||||
if ((ret = dbenv->lock_detect(dbenv, 0, atype, NULL)) != 0) {
|
||||
dbenv->err(dbenv, ret, "DB_ENV->lock_detect");
|
||||
goto shutdown;
|
||||
}
|
||||
|
||||
/* Make a pass every "secs" secs and "usecs" usecs. */
|
||||
if (secs == 0 && usecs == 0)
|
||||
break;
|
||||
(void)__os_sleep(dbenv, secs, usecs);
|
||||
}
|
||||
|
||||
if (0) {
|
||||
shutdown: exitval = 1;
|
||||
}
|
||||
|
||||
/* Clean up the logfile. */
|
||||
if (logfile != NULL)
|
||||
remove(logfile);
|
||||
|
||||
/* Clean up the environment. */
|
||||
if (e_close && (ret = dbenv->close(dbenv, 0)) != 0) {
|
||||
exitval = 1;
|
||||
fprintf(stderr,
|
||||
"%s: dbenv->close: %s\n", progname, db_strerror(ret));
|
||||
}
|
||||
|
||||
/* Resend any caught signal. */
|
||||
__db_util_sigresend();
|
||||
|
||||
return (exitval == 0 ? EXIT_SUCCESS : EXIT_FAILURE);
|
||||
}
|
||||
|
||||
int
|
||||
db_deadlock_usage()
|
||||
{
|
||||
(void)fprintf(stderr, "%s\n\t%s\n",
|
||||
"usage: db_deadlock [-Vv]",
|
||||
"[-a e | m | n | o | w | y] [-h home] [-L file] [-t sec.usec]");
|
||||
return (EXIT_FAILURE);
|
||||
}
|
||||
|
||||
int
|
||||
db_deadlock_version_check(progname)
|
||||
const char *progname;
|
||||
{
|
||||
int v_major, v_minor, v_patch;
|
||||
|
||||
/* Make sure we're loaded with the right version of the DB library. */
|
||||
(void)db_version(&v_major, &v_minor, &v_patch);
|
||||
if (v_major != DB_VERSION_MAJOR ||
|
||||
v_minor != DB_VERSION_MINOR || v_patch != DB_VERSION_PATCH) {
|
||||
fprintf(stderr,
|
||||
"%s: version %d.%d.%d doesn't match library version %d.%d.%d\n",
|
||||
progname, DB_VERSION_MAJOR, DB_VERSION_MINOR,
|
||||
DB_VERSION_PATCH, v_major, v_minor, v_patch);
|
||||
return (EXIT_FAILURE);
|
||||
}
|
||||
return (0);
|
||||
}
|
@ -1,160 +0,0 @@
|
||||
Document file - DO NOT EDIT
|
||||
|
||||
<BEGIN> BUILD_PENTIUMgnu_BUILDRULE
|
||||
db_deadlock.out
|
||||
<END>
|
||||
|
||||
<BEGIN> BUILD_PENTIUMgnu_MACRO_AR
|
||||
ar386
|
||||
<END>
|
||||
|
||||
<BEGIN> BUILD_PENTIUMgnu_MACRO_ARCHIVE
|
||||
$(PRJ_DIR)/PENTIUMgnu/db_deadlock.a
|
||||
<END>
|
||||
|
||||
<BEGIN> BUILD_PENTIUMgnu_MACRO_AS
|
||||
cc386
|
||||
<END>
|
||||
|
||||
<BEGIN> BUILD_PENTIUMgnu_MACRO_CC
|
||||
cc386
|
||||
<END>
|
||||
|
||||
<BEGIN> BUILD_PENTIUMgnu_MACRO_CFLAGS
|
||||
-g \
|
||||
-mpentium \
|
||||
-ansi \
|
||||
-nostdinc \
|
||||
-DRW_MULTI_THREAD \
|
||||
-D_REENTRANT \
|
||||
-fvolatile \
|
||||
-nostdlib \
|
||||
-fno-builtin \
|
||||
-fno-defer-pop \
|
||||
-I$(PRJ_DIR)/.. \
|
||||
-I$(PRJ_DIR)/../.. \
|
||||
-I$(WIND_BASE)/target/h \
|
||||
-DCPU=PENTIUM
|
||||
<END>
|
||||
|
||||
<BEGIN> BUILD_PENTIUMgnu_MACRO_CFLAGS_AS
|
||||
-g \
|
||||
-mpentium \
|
||||
-ansi \
|
||||
-nostdinc \
|
||||
-fvolatile \
|
||||
-nostdlib \
|
||||
-fno-builtin \
|
||||
-fno-defer-pop \
|
||||
-P \
|
||||
-x \
|
||||
assembler-with-cpp \
|
||||
-I$(WIND_BASE)/target/h \
|
||||
-DCPU=PENTIUM
|
||||
<END>
|
||||
|
||||
<BEGIN> BUILD_PENTIUMgnu_MACRO_CPP
|
||||
cc386 -E -P -xc
|
||||
<END>
|
||||
|
||||
<BEGIN> BUILD_PENTIUMgnu_MACRO_LD
|
||||
ld386
|
||||
<END>
|
||||
|
||||
<BEGIN> BUILD_PENTIUMgnu_MACRO_LDDEPS
|
||||
|
||||
<END>
|
||||
|
||||
<BEGIN> BUILD_PENTIUMgnu_MACRO_LDFLAGS
|
||||
-X -N
|
||||
<END>
|
||||
|
||||
<BEGIN> BUILD_PENTIUMgnu_MACRO_LD_PARTIAL_FLAGS
|
||||
-X -r
|
||||
<END>
|
||||
|
||||
<BEGIN> BUILD_PENTIUMgnu_MACRO_NM
|
||||
nm386 -g
|
||||
<END>
|
||||
|
||||
<BEGIN> BUILD_PENTIUMgnu_MACRO_OPTION_DEFINE_MACRO
|
||||
-D
|
||||
<END>
|
||||
|
||||
<BEGIN> BUILD_PENTIUMgnu_MACRO_OPTION_INCLUDE_DIR
|
||||
-I
|
||||
<END>
|
||||
|
||||
<BEGIN> BUILD_PENTIUMgnu_MACRO_POST_BUILD_RULE
|
||||
|
||||
<END>
|
||||
|
||||
<BEGIN> BUILD_PENTIUMgnu_MACRO_PRJ_LIBS
|
||||
|
||||
<END>
|
||||
|
||||
<BEGIN> BUILD_PENTIUMgnu_MACRO_SIZE
|
||||
size386
|
||||
<END>
|
||||
|
||||
<BEGIN> BUILD_PENTIUMgnu_RO_DEPEND_PATH
|
||||
{$(WIND_BASE)/target/h/} \
|
||||
{$(WIND_BASE)/target/src/} \
|
||||
{$(WIND_BASE)/target/config/}
|
||||
<END>
|
||||
|
||||
<BEGIN> BUILD_PENTIUMgnu_TC
|
||||
::tc_PENTIUMgnu
|
||||
<END>
|
||||
|
||||
<BEGIN> BUILD_RULE_archive
|
||||
|
||||
<END>
|
||||
|
||||
<BEGIN> BUILD_RULE_db_deadlock.out
|
||||
|
||||
<END>
|
||||
|
||||
<BEGIN> BUILD_RULE_objects
|
||||
|
||||
<END>
|
||||
|
||||
<BEGIN> BUILD__CURRENT
|
||||
PENTIUMgnu
|
||||
<END>
|
||||
|
||||
<BEGIN> BUILD__LIST
|
||||
PENTIUMgnu
|
||||
<END>
|
||||
|
||||
<BEGIN> CORE_INFO_TYPE
|
||||
::prj_vxApp
|
||||
<END>
|
||||
|
||||
<BEGIN> CORE_INFO_VERSION
|
||||
2.0
|
||||
<END>
|
||||
|
||||
<BEGIN> FILE_db_deadlock.c_dependDone
|
||||
FALSE
|
||||
<END>
|
||||
|
||||
<BEGIN> FILE_db_deadlock.c_dependencies
|
||||
|
||||
<END>
|
||||
|
||||
<BEGIN> FILE_db_deadlock.c_objects
|
||||
db_deadlock.o
|
||||
<END>
|
||||
|
||||
<BEGIN> FILE_db_deadlock.c_tool
|
||||
C/C++ compiler
|
||||
<END>
|
||||
|
||||
<BEGIN> PROJECT_FILES
|
||||
$(PRJ_DIR)/db_deadlock.c
|
||||
<END>
|
||||
|
||||
<BEGIN> userComments
|
||||
db_deadlock
|
||||
<END>
|
@ -1,51 +0,0 @@
|
||||
#
|
||||
# Custom Makefile shell
|
||||
#
|
||||
# This file may be edited freely, since it will not be regenerated
|
||||
# by the project manager.
|
||||
#
|
||||
# Use this makefile to define rules to make external binaries
|
||||
# and deposit them in the $(EXTERNAL_BINARIES_DIR) directory.
|
||||
#
|
||||
# If you have specified external modules during your component
|
||||
# creation, you will find make rules already in place below.
|
||||
# You will likely have to edit these to suit your individual
|
||||
# build setup.
|
||||
#
|
||||
# You may wish to use the CPU, BUILD_SPEC or TOOL make variables in
|
||||
# your Makefile to support builds for different architectures. Use
|
||||
# the FORCE_EXTERNAL_MAKE phony target to ensure that your external
|
||||
# make always runs.
|
||||
#
|
||||
# The example below assumes that your custom makefile is in the
|
||||
# mySourceTree directory, and that the binary file it produces
|
||||
# is placed into the $(BUILD_SPEC) sub-directory.
|
||||
#
|
||||
# EXTERNAL_SOURCE_BASE = /folk/me/mySourceTree
|
||||
# EXTERNAL_MODULE = myLibrary.o
|
||||
# EXTERNAL_MAKE = make
|
||||
#
|
||||
# $(EXTERNAL_BINARIES_DIR)/$(EXTERNAL_MODULE) : FORCE_EXTERNAL_MAKE
|
||||
# $(EXTERNAL_MAKE) -C $(EXTERNAL_SOURCE_BASE) \
|
||||
# -f $(EXTERNAL_SOURCE_BASE)/Makefile \
|
||||
# CPU=$(CPU) BUILD_SPEC=$(BUILD_SPEC) $(@F)
|
||||
# $(CP) $(subst /,$(DIRCHAR),$(EXTERNAL_SOURCE_BASE)/$(BUILD_SPEC)/$(@F) $@)
|
||||
#
|
||||
# If you are not adding your external modules from the component wizard,
|
||||
# you will have to include them in your component yourself:
|
||||
#
|
||||
# From the GUI, you can do this with the Component's 'Add external module'
|
||||
# dialog.
|
||||
#
|
||||
# If you are using the command line, add the module(s) by editing the
|
||||
# MODULES line in component.cdf file, e.g.
|
||||
#
|
||||
# Component INCLUDE_MYCOMPONENT {
|
||||
#
|
||||
# MODULES foo.o goo.o \
|
||||
# myLibrary.o
|
||||
#
|
||||
|
||||
|
||||
# rules to build custom libraries
|
||||
|
@ -1,30 +0,0 @@
|
||||
/* component.cdf - dynamically updated configuration */
|
||||
|
||||
/*
|
||||
* NOTE: you may edit this file to alter the configuration
|
||||
* But all non-configuration information, including comments,
|
||||
* will be lost upon rebuilding this project.
|
||||
*/
|
||||
|
||||
/* Component information */
|
||||
|
||||
Component INCLUDE_DB_DEADLOCK {
|
||||
ENTRY_POINTS ALL_GLOBAL_SYMBOLS
|
||||
MODULES db_deadlock.o
|
||||
NAME db_deadlock
|
||||
PREF_DOMAIN ANY
|
||||
_INIT_ORDER usrComponentsInit
|
||||
}
|
||||
|
||||
/* EntryPoint information */
|
||||
|
||||
/* Module information */
|
||||
|
||||
Module db_deadlock.o {
|
||||
|
||||
NAME db_deadlock.o
|
||||
SRC_PATH_NAME $PRJ_DIR/../db_deadlock.c
|
||||
}
|
||||
|
||||
/* Parameter information */
|
||||
|
@ -1,475 +0,0 @@
|
||||
Document file - DO NOT EDIT
|
||||
|
||||
<BEGIN> CORE_INFO_TYPE
|
||||
::prj_component
|
||||
<END>
|
||||
|
||||
<BEGIN> CORE_INFO_VERSION
|
||||
AE1.1
|
||||
<END>
|
||||
|
||||
<BEGIN> BUILD__CURRENT
|
||||
PENTIUM2gnu.debug
|
||||
<END>
|
||||
|
||||
<BEGIN> BUILD_PENTIUM2gnu.debug_CURRENT_TARGET
|
||||
default
|
||||
<END>
|
||||
|
||||
<BEGIN> BUILD_PENTIUM2gnu.debug_DEFAULTFORCPU
|
||||
1
|
||||
<END>
|
||||
|
||||
<BEGIN> BUILD_PENTIUM2gnu.debug_FILE_$(PRJ_DIR)/../db_deadlock.c_infoTags
|
||||
toolMacro objects
|
||||
<END>
|
||||
|
||||
<BEGIN> BUILD_PENTIUM2gnu.debug_FILE_$(PRJ_DIR)/../db_deadlock.c_objects
|
||||
db_deadlock.o
|
||||
<END>
|
||||
|
||||
<BEGIN> BUILD_PENTIUM2gnu.debug_FILE_$(PRJ_DIR)/../db_deadlock.c_toolMacro
|
||||
CC
|
||||
<END>
|
||||
|
||||
<BEGIN> BUILD_PENTIUM2gnu.debug_FILE_$(PRJ_DIR)/../db_deadlock.c_objects
|
||||
db_deadlock.o
|
||||
<END>
|
||||
|
||||
<BEGIN> BUILD_PENTIUM2gnu.debug_FILE_$(PRJ_DIR)/../db_deadlock.c_toolMacro
|
||||
CC
|
||||
<END>
|
||||
|
||||
<BEGIN> BUILD_PENTIUM2gnu.debug_FILE_$(PRJ_DIR)/compConfig.c_infoTags
|
||||
toolMacro objects
|
||||
<END>
|
||||
|
||||
<BEGIN> BUILD_PENTIUM2gnu.debug_FILE_$(PRJ_DIR)/compConfig.c_objects
|
||||
compConfig.o
|
||||
<END>
|
||||
|
||||
<BEGIN> BUILD_PENTIUM2gnu.debug_FILE_$(PRJ_DIR)/compConfig.c_toolMacro
|
||||
CC
|
||||
<END>
|
||||
|
||||
<BEGIN> BUILD_PENTIUM2gnu.debug_MACRO_AR
|
||||
arpentium
|
||||
<END>
|
||||
|
||||
<BEGIN> BUILD_PENTIUM2gnu.debug_MACRO_AS
|
||||
ccpentium
|
||||
<END>
|
||||
|
||||
<BEGIN> BUILD_PENTIUM2gnu.debug_MACRO_CC
|
||||
ccpentium
|
||||
<END>
|
||||
|
||||
<BEGIN> BUILD_PENTIUM2gnu.debug_MACRO_CFLAGS
|
||||
-mcpu=pentiumpro \
|
||||
-march=pentiumpro \
|
||||
-ansi \
|
||||
-DRW_MULTI_THREAD \
|
||||
-D_REENTRANT \
|
||||
-g \
|
||||
-nostdlib \
|
||||
-fno-builtin \
|
||||
-fno-defer-pop \
|
||||
-MD \
|
||||
-Wall \
|
||||
-I. \
|
||||
-I$(WIND_BASE)/target/h \
|
||||
-I$(PRJ_DIR)/../.. \
|
||||
-I$(PRJ_DIR)/../../.. \
|
||||
-DCPU=PENTIUM2
|
||||
<END>
|
||||
|
||||
<BEGIN> BUILD_PENTIUM2gnu.debug_MACRO_CFLAGS_AS
|
||||
-mcpu=pentiumpro \
|
||||
-march=pentiumpro \
|
||||
-ansi \
|
||||
-g \
|
||||
-nostdlib \
|
||||
-fno-builtin \
|
||||
-fno-defer-pop \
|
||||
-P \
|
||||
-x \
|
||||
assembler-with-cpp \
|
||||
-Wall \
|
||||
-I. \
|
||||
-I$(WIND_BASE)/target/h \
|
||||
-DCPU=PENTIUM2
|
||||
<END>
|
||||
|
||||
<BEGIN> BUILD_PENTIUM2gnu.debug_MACRO_CPP
|
||||
ccpentium -E -P
|
||||
<END>
|
||||
|
||||
<BEGIN> BUILD_PENTIUM2gnu.debug_MACRO_CPPFILT
|
||||
c++filtpentium --strip-underscores
|
||||
<END>
|
||||
|
||||
<BEGIN> BUILD_PENTIUM2gnu.debug_MACRO_LD
|
||||
ldpentium
|
||||
<END>
|
||||
|
||||
<BEGIN> BUILD_PENTIUM2gnu.debug_MACRO_LDFLAGS
|
||||
-X
|
||||
<END>
|
||||
|
||||
<BEGIN> BUILD_PENTIUM2gnu.debug_MACRO_LDPARTIAL
|
||||
ccpentium \
|
||||
-B$(WIND_BASE)/host/$(WIND_HOST_TYPE)/lib/gcc-lib/ \
|
||||
-nostdlib \
|
||||
-r \
|
||||
-Wl,-X
|
||||
<END>
|
||||
|
||||
<BEGIN> BUILD_PENTIUM2gnu.debug_MACRO_LD_PARTIAL_FLAGS
|
||||
-X -r
|
||||
<END>
|
||||
|
||||
<BEGIN> BUILD_PENTIUM2gnu.debug_MACRO_NM
|
||||
nmpentium -g
|
||||
<END>
|
||||
|
||||
<BEGIN> BUILD_PENTIUM2gnu.debug_MACRO_OPTION_DEFINE_MACRO
|
||||
-D
|
||||
<END>
|
||||
|
||||
<BEGIN> BUILD_PENTIUM2gnu.debug_MACRO_OPTION_GENERATE_DEPENDENCY_FILE
|
||||
-MD
|
||||
<END>
|
||||
|
||||
<BEGIN> BUILD_PENTIUM2gnu.debug_MACRO_OPTION_INCLUDE_DIR
|
||||
-I
|
||||
<END>
|
||||
|
||||
<BEGIN> BUILD_PENTIUM2gnu.debug_MACRO_RELEASE
|
||||
0
|
||||
<END>
|
||||
|
||||
<BEGIN> BUILD_PENTIUM2gnu.debug_MACRO_SIZE
|
||||
sizepentium
|
||||
<END>
|
||||
|
||||
<BEGIN> BUILD_PENTIUM2gnu.debug_RELEASE
|
||||
0
|
||||
<END>
|
||||
|
||||
<BEGIN> BUILD_PENTIUM2gnu.debug_RO_DEPEND_PATH
|
||||
$(WIND_BASE)/target/h/
|
||||
<END>
|
||||
|
||||
<BEGIN> BUILD_PENTIUM2gnu.debug_TC
|
||||
::tc_PENTIUM2gnu.debug
|
||||
<END>
|
||||
|
||||
<BEGIN> BUILD_PENTIUM2gnu.release_DEFAULTFORCPU
|
||||
0
|
||||
<END>
|
||||
|
||||
<BEGIN> BUILD_PENTIUM2gnu.release_FILE_$(PRJ_DIR)/../db_deadlock.c_infoTags
|
||||
toolMacro objects
|
||||
<END>
|
||||
|
||||
<BEGIN> BUILD_PENTIUM2gnu.release_FILE_$(PRJ_DIR)/../db_deadlock.c_objects
|
||||
db_deadlock.o
|
||||
<END>
|
||||
|
||||
<BEGIN> BUILD_PENTIUM2gnu.release_FILE_$(PRJ_DIR)/../db_deadlock.c_toolMacro
|
||||
CC
|
||||
<END>
|
||||
|
||||
<BEGIN> BUILD_PENTIUM2gnu.release_FILE_$(PRJ_DIR)/compConfig.c_infoTags
|
||||
toolMacro objects
|
||||
<END>
|
||||
|
||||
<BEGIN> BUILD_PENTIUM2gnu.release_FILE_$(PRJ_DIR)/compConfig.c_objects
|
||||
compConfig.o
|
||||
<END>
|
||||
|
||||
<BEGIN> BUILD_PENTIUM2gnu.release_FILE_$(PRJ_DIR)/compConfig.c_toolMacro
|
||||
CC
|
||||
<END>
|
||||
|
||||
<BEGIN> BUILD_PENTIUM2gnu.release_MACRO_AR
|
||||
arpentium
|
||||
<END>
|
||||
|
||||
<BEGIN> BUILD_PENTIUM2gnu.release_MACRO_AS
|
||||
ccpentium
|
||||
<END>
|
||||
|
||||
<BEGIN> BUILD_PENTIUM2gnu.release_MACRO_CC
|
||||
ccpentium
|
||||
<END>
|
||||
|
||||
<BEGIN> BUILD_PENTIUM2gnu.release_MACRO_CFLAGS
|
||||
-mcpu=pentiumpro \
|
||||
-march=pentiumpro \
|
||||
-ansi \
|
||||
-DRW_MULTI_THREAD \
|
||||
-D_REENTRANT \
|
||||
-O2 \
|
||||
-nostdlib \
|
||||
-fno-builtin \
|
||||
-fno-defer-pop \
|
||||
-MD \
|
||||
-Wall \
|
||||
-I. \
|
||||
-I$(WIND_BASE)/target/h \
|
||||
-I$(PRJ_DIR)/../.. \
|
||||
-I$(PRJ_DIR)/../../.. \
|
||||
-DCPU=PENTIUM2
|
||||
<END>
|
||||
|
||||
<BEGIN> BUILD_PENTIUM2gnu.release_MACRO_CFLAGS_AS
|
||||
-mcpu=pentiumpro \
|
||||
-march=pentiumpro \
|
||||
-ansi \
|
||||
-O2 \
|
||||
-nostdlib \
|
||||
-fno-builtin \
|
||||
-fno-defer-pop \
|
||||
-P \
|
||||
-x \
|
||||
assembler-with-cpp \
|
||||
-Wall \
|
||||
-I. \
|
||||
-I$(WIND_BASE)/target/h \
|
||||
-DCPU=PENTIUM2
|
||||
<END>
|
||||
|
||||
<BEGIN> BUILD_PENTIUM2gnu.release_MACRO_CPP
|
||||
ccpentium -E -P
|
||||
<END>
|
||||
|
||||
<BEGIN> BUILD_PENTIUM2gnu.release_MACRO_CPPFILT
|
||||
c++filtpentium --strip-underscores
|
||||
<END>
|
||||
|
||||
<BEGIN> BUILD_PENTIUM2gnu.release_MACRO_LD
|
||||
ldpentium
|
||||
<END>
|
||||
|
||||
<BEGIN> BUILD_PENTIUM2gnu.release_MACRO_LDFLAGS
|
||||
-X
|
||||
<END>
|
||||
|
||||
<BEGIN> BUILD_PENTIUM2gnu.release_MACRO_LDPARTIAL
|
||||
ccpentium \
|
||||
-B$(WIND_BASE)/host/$(WIND_HOST_TYPE)/lib/gcc-lib/ \
|
||||
-nostdlib \
|
||||
-r \
|
||||
-Wl,-X
|
||||
<END>
|
||||
|
||||
<BEGIN> BUILD_PENTIUM2gnu.release_MACRO_LD_PARTIAL_FLAGS
|
||||
-X -r
|
||||
<END>
|
||||
|
||||
<BEGIN> BUILD_PENTIUM2gnu.release_MACRO_NM
|
||||
nmpentium -g
|
||||
<END>
|
||||
|
||||
<BEGIN> BUILD_PENTIUM2gnu.release_MACRO_OPTION_DEFINE_MACRO
|
||||
-D
|
||||
<END>
|
||||
|
||||
<BEGIN> BUILD_PENTIUM2gnu.release_MACRO_OPTION_GENERATE_DEPENDENCY_FILE
|
||||
-MD
|
||||
<END>
|
||||
|
||||
<BEGIN> BUILD_PENTIUM2gnu.release_MACRO_OPTION_INCLUDE_DIR
|
||||
-I
|
||||
<END>
|
||||
|
||||
<BEGIN> BUILD_PENTIUM2gnu.release_MACRO_RELEASE
|
||||
1
|
||||
<END>
|
||||
|
||||
<BEGIN> BUILD_PENTIUM2gnu.release_MACRO_SIZE
|
||||
sizepentium
|
||||
<END>
|
||||
|
||||
<BEGIN> BUILD_PENTIUM2gnu.release_RELEASE
|
||||
1
|
||||
<END>
|
||||
|
||||
<BEGIN> BUILD_PENTIUM2gnu.release_RO_DEPEND_PATH
|
||||
$(WIND_BASE)/target/h/
|
||||
<END>
|
||||
|
||||
<BEGIN> BUILD_PENTIUM2gnu.release_TC
|
||||
::tc_PENTIUM2gnu.release
|
||||
<END>
|
||||
|
||||
<BEGIN> BUILD_PENTIUMgnu.debug_DEFAULTFORCPU
|
||||
1
|
||||
<END>
|
||||
|
||||
<BEGIN> BUILD_PENTIUMgnu.debug_FILE_$(PRJ_DIR)/../db_deadlock.c_infoTags
|
||||
toolMacro objects
|
||||
<END>
|
||||
|
||||
<BEGIN> BUILD_PENTIUMgnu.debug_FILE_$(PRJ_DIR)/../db_deadlock.c_objects
|
||||
db_deadlock.o
|
||||
<END>
|
||||
|
||||
<BEGIN> BUILD_PENTIUMgnu.debug_FILE_$(PRJ_DIR)/../db_deadlock.c_toolMacro
|
||||
CC
|
||||
<END>
|
||||
|
||||
<BEGIN> BUILD_PENTIUMgnu.debug_FILE_$(PRJ_DIR)/compConfig.c_infoTags
|
||||
toolMacro objects
|
||||
<END>
|
||||
|
||||
<BEGIN> BUILD_PENTIUMgnu.debug_FILE_$(PRJ_DIR)/compConfig.c_objects
|
||||
compConfig.o
|
||||
<END>
|
||||
|
||||
<BEGIN> BUILD_PENTIUMgnu.debug_FILE_$(PRJ_DIR)/compConfig.c_toolMacro
|
||||
CC
|
||||
<END>
|
||||
|
||||
<BEGIN> BUILD_PENTIUMgnu.debug_MACRO_AR
|
||||
arpentium
|
||||
<END>
|
||||
|
||||
<BEGIN> BUILD_PENTIUMgnu.debug_MACRO_AS
|
||||
ccpentium
|
||||
<END>
|
||||
|
||||
<BEGIN> BUILD_PENTIUMgnu.debug_MACRO_CC
|
||||
ccpentium
|
||||
<END>
|
||||
|
||||
<BEGIN> BUILD_PENTIUMgnu.debug_MACRO_CFLAGS
|
||||
-mcpu=pentium \
|
||||
-march=pentium \
|
||||
-ansi \
|
||||
-DRW_MULTI_THREAD \
|
||||
-D_REENTRANT \
|
||||
-g \
|
||||
-nostdlib \
|
||||
-fno-builtin \
|
||||
-fno-defer-pop \
|
||||
-MD \
|
||||
-Wall \
|
||||
-I. \
|
||||
-I$(WIND_BASE)/target/h \
|
||||
-I$(PRJ_DIR)/../.. \
|
||||
-I$(PRJ_DIR)/../../.. \
|
||||
-DCPU=PENTIUM
|
||||
<END>
|
||||
|
||||
<BEGIN> BUILD_PENTIUMgnu.debug_MACRO_CFLAGS_AS
|
||||
-mcpu=pentium \
|
||||
-march=pentium \
|
||||
-ansi \
|
||||
-g \
|
||||
-nostdlib \
|
||||
-fno-builtin \
|
||||
-fno-defer-pop \
|
||||
-P \
|
||||
-x \
|
||||
assembler-with-cpp \
|
||||
-Wall \
|
||||
-I. \
|
||||
-I$(WIND_BASE)/target/h \
|
||||
-DCPU=PENTIUM
|
||||
<END>
|
||||
|
||||
<BEGIN> BUILD_PENTIUMgnu.debug_MACRO_CPP
|
||||
ccpentium -E -P
|
||||
<END>
|
||||
|
||||
<BEGIN> BUILD_PENTIUMgnu.debug_MACRO_CPPFILT
|
||||
c++filtpentium --strip-underscores
|
||||
<END>
|
||||
|
||||
<BEGIN> BUILD_PENTIUMgnu.debug_MACRO_LD
|
||||
ldpentium
|
||||
<END>
|
||||
|
||||
<BEGIN> BUILD_PENTIUMgnu.debug_MACRO_LDFLAGS
|
||||
-X
|
||||
<END>
|
||||
|
||||
<BEGIN> BUILD_PENTIUMgnu.debug_MACRO_LDPARTIAL
|
||||
ccpentium \
|
||||
-B$(WIND_BASE)/host/$(WIND_HOST_TYPE)/lib/gcc-lib/ \
|
||||
-nostdlib \
|
||||
-r \
|
||||
-Wl,-X
|
||||
<END>
|
||||
|
||||
<BEGIN> BUILD_PENTIUMgnu.debug_MACRO_LD_PARTIAL_FLAGS
|
||||
-X -r
|
||||
<END>
|
||||
|
||||
<BEGIN> BUILD_PENTIUMgnu.debug_MACRO_NM
|
||||
nmpentium -g
|
||||
<END>
|
||||
|
||||
<BEGIN> BUILD_PENTIUMgnu.debug_MACRO_OPTION_DEFINE_MACRO
|
||||
-D
|
||||
<END>
|
||||
|
||||
<BEGIN> BUILD_PENTIUMgnu.debug_MACRO_OPTION_GENERATE_DEPENDENCY_FILE
|
||||
-MD
|
||||
<END>
|
||||
|
||||
<BEGIN> BUILD_PENTIUMgnu.debug_MACRO_OPTION_INCLUDE_DIR
|
||||
-I
|
||||
<END>
|
||||
|
||||
<BEGIN> BUILD_PENTIUMgnu.debug_MACRO_RELEASE
|
||||
0
|
||||
<END>
|
||||
|
||||
<BEGIN> BUILD_PENTIUMgnu.debug_MACRO_SIZE
|
||||
sizepentium
|
||||
<END>
|
||||
|
||||
<BEGIN> BUILD_PENTIUMgnu.debug_RELEASE
|
||||
0
|
||||
<END>
|
||||
|
||||
<BEGIN> BUILD_PENTIUMgnu.debug_RO_DEPEND_PATH
|
||||
$(WIND_BASE)/target/h/
|
||||
<END>
|
||||
|
||||
<BEGIN> BUILD_PENTIUMgnu.debug_TC
|
||||
::tc_PENTIUMgnu.debug
|
||||
<END>
|
||||
|
||||
<BEGIN> BUILD__LIST
|
||||
PENTIUM2gnu.debug PENTIUM2gnu.release PENTIUMgnu.debug
|
||||
<END>
|
||||
|
||||
<BEGIN> PROJECT_FILES
|
||||
$(PRJ_DIR)/../db_deadlock.c \
|
||||
$(PRJ_DIR)/compConfig.c
|
||||
<END>
|
||||
|
||||
<BEGIN> WCC__CDF_PATH
|
||||
$(PRJ_DIR)
|
||||
<END>
|
||||
|
||||
<BEGIN> WCC__CURRENT
|
||||
PENTIUM2gnu.debug
|
||||
<END>
|
||||
|
||||
<BEGIN> WCC__LIST
|
||||
PENTIUM2gnu.debug
|
||||
<END>
|
||||
|
||||
<BEGIN> WCC__MXR_LIBS
|
||||
lib$(CPU)$(TOOL)vx.a
|
||||
<END>
|
||||
|
||||
<BEGIN> WCC__OBJS_PATH
|
||||
$(WIND_BASE)/target/lib/obj$CPU$TOOLvx
|
||||
<END>
|
||||
|
@ -1,626 +0,0 @@
|
||||
/*-
|
||||
* See the file LICENSE for redistribution information.
|
||||
*
|
||||
* Copyright (c) 1996-2002
|
||||
* Sleepycat Software. All rights reserved.
|
||||
*/
|
||||
|
||||
#include "db_config.h"
|
||||
|
||||
#ifndef lint
|
||||
static const char copyright[] =
|
||||
"Copyright (c) 1996-2002\nSleepycat Software Inc. All rights reserved.\n";
|
||||
static const char revid[] =
|
||||
"$Id: db_dump.c,v 11.80 2002/08/08 03:50:34 bostic Exp $";
|
||||
#endif
|
||||
|
||||
#ifndef NO_SYSTEM_INCLUDES
|
||||
#include <sys/types.h>
|
||||
|
||||
#include <stdio.h>
|
||||
#include <stdlib.h>
|
||||
#include <string.h>
|
||||
#include <unistd.h>
|
||||
#endif
|
||||
|
||||
#include "db_int.h"
|
||||
#include "dbinc/db_page.h"
|
||||
#include "dbinc/db_am.h"
|
||||
|
||||
int db_dump_db_init __P((DB_ENV *, char *, int, u_int32_t, int *));
|
||||
int db_dump_dump __P((DB *, int, int));
|
||||
int db_dump_dump_sub __P((DB_ENV *, DB *, char *, int, int));
|
||||
int db_dump_is_sub __P((DB *, int *));
|
||||
int db_dump_main __P((int, char *[]));
|
||||
int db_dump_show_subs __P((DB *));
|
||||
int db_dump_usage __P((void));
|
||||
int db_dump_version_check __P((const char *));
|
||||
|
||||
int
|
||||
db_dump(args)
|
||||
char *args;
|
||||
{
|
||||
int argc;
|
||||
char **argv;
|
||||
|
||||
__db_util_arg("db_dump", args, &argc, &argv);
|
||||
return (db_dump_main(argc, argv) ? EXIT_FAILURE : EXIT_SUCCESS);
|
||||
}
|
||||
|
||||
#include <stdio.h>
|
||||
#define ERROR_RETURN ERROR
|
||||
|
||||
int
|
||||
db_dump_main(argc, argv)
|
||||
int argc;
|
||||
char *argv[];
|
||||
{
|
||||
extern char *optarg;
|
||||
extern int optind, __db_getopt_reset;
|
||||
const char *progname = "db_dump";
|
||||
DB_ENV *dbenv;
|
||||
DB *dbp;
|
||||
u_int32_t cache;
|
||||
int ch, d_close;
|
||||
int e_close, exitval, keyflag, lflag, nflag, pflag, private;
|
||||
int ret, Rflag, rflag, resize, subs;
|
||||
char *dopt, *home, *passwd, *subname;
|
||||
|
||||
if ((ret = db_dump_version_check(progname)) != 0)
|
||||
return (ret);
|
||||
|
||||
dbp = NULL;
|
||||
d_close = e_close = exitval = lflag = nflag = pflag = rflag = Rflag = 0;
|
||||
keyflag = 0;
|
||||
cache = MEGABYTE;
|
||||
private = 0;
|
||||
dopt = home = passwd = subname = NULL;
|
||||
__db_getopt_reset = 1;
|
||||
while ((ch = getopt(argc, argv, "d:f:h:klNpP:rRs:V")) != EOF)
|
||||
switch (ch) {
|
||||
case 'd':
|
||||
dopt = optarg;
|
||||
break;
|
||||
case 'f':
|
||||
if (freopen(optarg, "w", stdout) == NULL) {
|
||||
fprintf(stderr, "%s: %s: reopen: %s\n",
|
||||
progname, optarg, strerror(errno));
|
||||
return (EXIT_FAILURE);
|
||||
}
|
||||
break;
|
||||
case 'h':
|
||||
home = optarg;
|
||||
break;
|
||||
case 'k':
|
||||
keyflag = 1;
|
||||
break;
|
||||
case 'l':
|
||||
lflag = 1;
|
||||
break;
|
||||
case 'N':
|
||||
nflag = 1;
|
||||
break;
|
||||
case 'P':
|
||||
passwd = strdup(optarg);
|
||||
memset(optarg, 0, strlen(optarg));
|
||||
if (passwd == NULL) {
|
||||
fprintf(stderr, "%s: strdup: %s\n",
|
||||
progname, strerror(errno));
|
||||
return (EXIT_FAILURE);
|
||||
}
|
||||
break;
|
||||
case 'p':
|
||||
pflag = 1;
|
||||
break;
|
||||
case 's':
|
||||
subname = optarg;
|
||||
break;
|
||||
case 'R':
|
||||
Rflag = 1;
|
||||
/* DB_AGGRESSIVE requires DB_SALVAGE */
|
||||
/* FALLTHROUGH */
|
||||
case 'r':
|
||||
rflag = 1;
|
||||
break;
|
||||
case 'V':
|
||||
printf("%s\n", db_version(NULL, NULL, NULL));
|
||||
return (EXIT_SUCCESS);
|
||||
case '?':
|
||||
default:
|
||||
return (db_dump_usage());
|
||||
}
|
||||
argc -= optind;
|
||||
argv += optind;
|
||||
|
||||
if (argc != 1)
|
||||
return (db_dump_usage());
|
||||
|
||||
if (dopt != NULL && pflag) {
|
||||
fprintf(stderr,
|
||||
"%s: the -d and -p options may not both be specified\n",
|
||||
progname);
|
||||
return (EXIT_FAILURE);
|
||||
}
|
||||
if (lflag && subname != NULL) {
|
||||
fprintf(stderr,
|
||||
"%s: the -l and -s options may not both be specified\n",
|
||||
progname);
|
||||
return (EXIT_FAILURE);
|
||||
}
|
||||
|
||||
if (keyflag && rflag) {
|
||||
fprintf(stderr, "%s: %s",
|
||||
"the -k and -r or -R options may not both be specified\n",
|
||||
progname);
|
||||
return (EXIT_FAILURE);
|
||||
}
|
||||
|
||||
if (subname != NULL && rflag) {
|
||||
fprintf(stderr, "%s: %s",
|
||||
"the -s and -r or R options may not both be specified\n",
|
||||
progname);
|
||||
return (EXIT_FAILURE);
|
||||
}
|
||||
|
||||
/* Handle possible interruptions. */
|
||||
__db_util_siginit();
|
||||
|
||||
/*
|
||||
* Create an environment object and initialize it for error
|
||||
* reporting.
|
||||
*/
|
||||
retry: if ((ret = db_env_create(&dbenv, 0)) != 0) {
|
||||
fprintf(stderr,
|
||||
"%s: db_env_create: %s\n", progname, db_strerror(ret));
|
||||
goto err;
|
||||
}
|
||||
e_close = 1;
|
||||
|
||||
dbenv->set_errfile(dbenv, stderr);
|
||||
dbenv->set_errpfx(dbenv, progname);
|
||||
if (nflag) {
|
||||
if ((ret = dbenv->set_flags(dbenv, DB_NOLOCKING, 1)) != 0) {
|
||||
dbenv->err(dbenv, ret, "set_flags: DB_NOLOCKING");
|
||||
goto err;
|
||||
}
|
||||
if ((ret = dbenv->set_flags(dbenv, DB_NOPANIC, 1)) != 0) {
|
||||
dbenv->err(dbenv, ret, "set_flags: DB_NOPANIC");
|
||||
goto err;
|
||||
}
|
||||
}
|
||||
if (passwd != NULL && (ret = dbenv->set_encrypt(dbenv,
|
||||
passwd, DB_ENCRYPT_AES)) != 0) {
|
||||
dbenv->err(dbenv, ret, "set_passwd");
|
||||
goto err;
|
||||
}
|
||||
|
||||
/* Initialize the environment. */
|
||||
if (db_dump_db_init(dbenv, home, rflag, cache, &private) != 0)
|
||||
goto err;
|
||||
|
||||
/* Create the DB object and open the file. */
|
||||
if ((ret = db_create(&dbp, dbenv, 0)) != 0) {
|
||||
dbenv->err(dbenv, ret, "db_create");
|
||||
goto err;
|
||||
}
|
||||
d_close = 1;
|
||||
|
||||
/*
|
||||
* If we're salvaging, don't do an open; it might not be safe.
|
||||
* Dispatch now into the salvager.
|
||||
*/
|
||||
if (rflag) {
|
||||
if ((ret = dbp->verify(dbp, argv[0], NULL, stdout,
|
||||
DB_SALVAGE |
|
||||
(Rflag ? DB_AGGRESSIVE : 0) |
|
||||
(pflag ? DB_PRINTABLE : 0))) != 0)
|
||||
goto err;
|
||||
exitval = 0;
|
||||
goto done;
|
||||
}
|
||||
|
||||
if ((ret = dbp->open(dbp, NULL,
|
||||
argv[0], subname, DB_UNKNOWN, DB_RDONLY, 0)) != 0) {
|
||||
dbp->err(dbp, ret, "open: %s", argv[0]);
|
||||
goto err;
|
||||
}
|
||||
if (private != 0) {
|
||||
if ((ret = __db_util_cache(dbenv, dbp, &cache, &resize)) != 0)
|
||||
goto err;
|
||||
if (resize) {
|
||||
(void)dbp->close(dbp, 0);
|
||||
d_close = 0;
|
||||
|
||||
(void)dbenv->close(dbenv, 0);
|
||||
e_close = 0;
|
||||
goto retry;
|
||||
}
|
||||
}
|
||||
|
||||
if (dopt != NULL) {
|
||||
if (__db_dump(dbp, dopt, NULL)) {
|
||||
dbp->err(dbp, ret, "__db_dump: %s", argv[0]);
|
||||
goto err;
|
||||
}
|
||||
} else if (lflag) {
|
||||
if (db_dump_is_sub(dbp, &subs))
|
||||
goto err;
|
||||
if (subs == 0) {
|
||||
dbp->errx(dbp,
|
||||
"%s: does not contain multiple databases", argv[0]);
|
||||
goto err;
|
||||
}
|
||||
if (db_dump_show_subs(dbp))
|
||||
goto err;
|
||||
} else {
|
||||
subs = 0;
|
||||
if (subname == NULL && db_dump_is_sub(dbp, &subs))
|
||||
goto err;
|
||||
if (subs) {
|
||||
if (db_dump_dump_sub(dbenv, dbp, argv[0], pflag, keyflag))
|
||||
goto err;
|
||||
} else
|
||||
if (__db_prheader(dbp, NULL, pflag, keyflag, stdout,
|
||||
__db_verify_callback, NULL, 0) ||
|
||||
db_dump_dump(dbp, pflag, keyflag))
|
||||
goto err;
|
||||
}
|
||||
|
||||
if (0) {
|
||||
err: exitval = 1;
|
||||
}
|
||||
done: if (d_close && (ret = dbp->close(dbp, 0)) != 0) {
|
||||
exitval = 1;
|
||||
dbenv->err(dbenv, ret, "close");
|
||||
}
|
||||
if (e_close && (ret = dbenv->close(dbenv, 0)) != 0) {
|
||||
exitval = 1;
|
||||
fprintf(stderr,
|
||||
"%s: dbenv->close: %s\n", progname, db_strerror(ret));
|
||||
}
|
||||
|
||||
/* Resend any caught signal. */
|
||||
__db_util_sigresend();
|
||||
|
||||
return (exitval == 0 ? EXIT_SUCCESS : EXIT_FAILURE);
|
||||
}
|
||||
|
||||
/*
|
||||
* db_init --
|
||||
* Initialize the environment.
|
||||
*/
|
||||
int
|
||||
db_dump_db_init(dbenv, home, is_salvage, cache, is_privatep)
|
||||
DB_ENV *dbenv;
|
||||
char *home;
|
||||
int is_salvage;
|
||||
u_int32_t cache;
|
||||
int *is_privatep;
|
||||
{
|
||||
int ret;
|
||||
|
||||
/*
|
||||
* Try and use the underlying environment when opening a database.
|
||||
* We wish to use the buffer pool so our information is as up-to-date
|
||||
* as possible, even if the mpool cache hasn't been flushed.
|
||||
*
|
||||
* If we are not doing a salvage, we wish to use the DB_JOINENV flag;
|
||||
* if a locking system is present, this will let us use it and be
|
||||
* safe to run concurrently with other threads of control. (We never
|
||||
* need to use transactions explicitly, as we're read-only.) Note
|
||||
* that in CDB, too, this will configure our environment
|
||||
* appropriately, and our cursors will (correctly) do locking as CDB
|
||||
* read cursors.
|
||||
*
|
||||
* If we are doing a salvage, the verification code will protest
|
||||
* if we initialize transactions, logging, or locking; do an
|
||||
* explicit DB_INIT_MPOOL to try to join any existing environment
|
||||
* before we create our own.
|
||||
*/
|
||||
*is_privatep = 0;
|
||||
if (dbenv->open(dbenv, home,
|
||||
DB_USE_ENVIRON | (is_salvage ? DB_INIT_MPOOL : DB_JOINENV), 0) == 0)
|
||||
return (0);
|
||||
|
||||
/*
|
||||
* An environment is required because we may be trying to look at
|
||||
* databases in directories other than the current one. We could
|
||||
* avoid using an environment iff the -h option wasn't specified,
|
||||
* but that seems like more work than it's worth.
|
||||
*
|
||||
* No environment exists (or, at least no environment that includes
|
||||
* an mpool region exists). Create one, but make it private so that
|
||||
* no files are actually created.
|
||||
*/
|
||||
*is_privatep = 1;
|
||||
if ((ret = dbenv->set_cachesize(dbenv, 0, cache, 1)) == 0 &&
|
||||
(ret = dbenv->open(dbenv, home,
|
||||
DB_CREATE | DB_INIT_MPOOL | DB_PRIVATE | DB_USE_ENVIRON, 0)) == 0)
|
||||
return (0);
|
||||
|
||||
/* An environment is required. */
|
||||
dbenv->err(dbenv, ret, "open");
|
||||
return (1);
|
||||
}
|
||||
|
||||
/*
|
||||
* is_sub --
|
||||
* Return if the database contains subdatabases.
|
||||
*/
|
||||
int
|
||||
db_dump_is_sub(dbp, yesno)
|
||||
DB *dbp;
|
||||
int *yesno;
|
||||
{
|
||||
DB_BTREE_STAT *btsp;
|
||||
DB_HASH_STAT *hsp;
|
||||
int ret;
|
||||
|
||||
switch (dbp->type) {
|
||||
case DB_BTREE:
|
||||
case DB_RECNO:
|
||||
if ((ret = dbp->stat(dbp, &btsp, DB_FAST_STAT)) != 0) {
|
||||
dbp->err(dbp, ret, "DB->stat");
|
||||
return (ret);
|
||||
}
|
||||
*yesno = btsp->bt_metaflags & BTM_SUBDB ? 1 : 0;
|
||||
free(btsp);
|
||||
break;
|
||||
case DB_HASH:
|
||||
if ((ret = dbp->stat(dbp, &hsp, DB_FAST_STAT)) != 0) {
|
||||
dbp->err(dbp, ret, "DB->stat");
|
||||
return (ret);
|
||||
}
|
||||
*yesno = hsp->hash_metaflags & DB_HASH_SUBDB ? 1 : 0;
|
||||
free(hsp);
|
||||
break;
|
||||
case DB_QUEUE:
|
||||
break;
|
||||
default:
|
||||
dbp->errx(dbp, "unknown database type");
|
||||
return (1);
|
||||
}
|
||||
return (0);
|
||||
}
|
||||
|
||||
/*
|
||||
* dump_sub --
|
||||
* Dump out the records for a DB containing subdatabases.
|
||||
*/
|
||||
int
|
||||
db_dump_dump_sub(dbenv, parent_dbp, parent_name, pflag, keyflag)
|
||||
DB_ENV *dbenv;
|
||||
DB *parent_dbp;
|
||||
char *parent_name;
|
||||
int pflag, keyflag;
|
||||
{
|
||||
DB *dbp;
|
||||
DBC *dbcp;
|
||||
DBT key, data;
|
||||
int ret;
|
||||
char *subdb;
|
||||
|
||||
/*
|
||||
* Get a cursor and step through the database, dumping out each
|
||||
* subdatabase.
|
||||
*/
|
||||
if ((ret = parent_dbp->cursor(parent_dbp, NULL, &dbcp, 0)) != 0) {
|
||||
dbenv->err(dbenv, ret, "DB->cursor");
|
||||
return (1);
|
||||
}
|
||||
|
||||
memset(&key, 0, sizeof(key));
|
||||
memset(&data, 0, sizeof(data));
|
||||
while ((ret = dbcp->c_get(dbcp, &key, &data, DB_NEXT)) == 0) {
|
||||
/* Nul terminate the subdatabase name. */
|
||||
if ((subdb = malloc(key.size + 1)) == NULL) {
|
||||
dbenv->err(dbenv, ENOMEM, NULL);
|
||||
return (1);
|
||||
}
|
||||
memcpy(subdb, key.data, key.size);
|
||||
subdb[key.size] = '\0';
|
||||
|
||||
/* Create the DB object and open the file. */
|
||||
if ((ret = db_create(&dbp, dbenv, 0)) != 0) {
|
||||
dbenv->err(dbenv, ret, "db_create");
|
||||
free(subdb);
|
||||
return (1);
|
||||
}
|
||||
if ((ret = dbp->open(dbp, NULL,
|
||||
parent_name, subdb, DB_UNKNOWN, DB_RDONLY, 0)) != 0)
|
||||
dbp->err(dbp, ret,
|
||||
"DB->open: %s:%s", parent_name, subdb);
|
||||
if (ret == 0 &&
|
||||
(__db_prheader(dbp, subdb, pflag, keyflag, stdout,
|
||||
__db_verify_callback, NULL, 0) ||
|
||||
db_dump_dump(dbp, pflag, keyflag)))
|
||||
ret = 1;
|
||||
(void)dbp->close(dbp, 0);
|
||||
free(subdb);
|
||||
if (ret != 0)
|
||||
return (1);
|
||||
}
|
||||
if (ret != DB_NOTFOUND) {
|
||||
dbp->err(dbp, ret, "DBcursor->get");
|
||||
return (1);
|
||||
}
|
||||
|
||||
if ((ret = dbcp->c_close(dbcp)) != 0) {
|
||||
dbp->err(dbp, ret, "DBcursor->close");
|
||||
return (1);
|
||||
}
|
||||
|
||||
return (0);
|
||||
}
|
||||
|
||||
/*
|
||||
* show_subs --
|
||||
* Display the subdatabases for a database.
|
||||
*/
|
||||
int
|
||||
db_dump_show_subs(dbp)
|
||||
DB *dbp;
|
||||
{
|
||||
DBC *dbcp;
|
||||
DBT key, data;
|
||||
int ret;
|
||||
|
||||
/*
|
||||
* Get a cursor and step through the database, printing out the key
|
||||
* of each key/data pair.
|
||||
*/
|
||||
if ((ret = dbp->cursor(dbp, NULL, &dbcp, 0)) != 0) {
|
||||
dbp->err(dbp, ret, "DB->cursor");
|
||||
return (1);
|
||||
}
|
||||
|
||||
memset(&key, 0, sizeof(key));
|
||||
memset(&data, 0, sizeof(data));
|
||||
while ((ret = dbcp->c_get(dbcp, &key, &data, DB_NEXT)) == 0) {
|
||||
if ((ret = __db_prdbt(&key, 1, NULL, stdout,
|
||||
__db_verify_callback, 0, NULL)) != 0) {
|
||||
dbp->errx(dbp, NULL);
|
||||
return (1);
|
||||
}
|
||||
}
|
||||
if (ret != DB_NOTFOUND) {
|
||||
dbp->err(dbp, ret, "DBcursor->get");
|
||||
return (1);
|
||||
}
|
||||
|
||||
if ((ret = dbcp->c_close(dbcp)) != 0) {
|
||||
dbp->err(dbp, ret, "DBcursor->close");
|
||||
return (1);
|
||||
}
|
||||
return (0);
|
||||
}
|
||||
|
||||
/*
|
||||
* dump --
|
||||
* Dump out the records for a DB.
|
||||
*/
|
||||
int
|
||||
db_dump_dump(dbp, pflag, keyflag)
|
||||
DB *dbp;
|
||||
int pflag, keyflag;
|
||||
{
|
||||
DBC *dbcp;
|
||||
DBT key, data;
|
||||
DBT keyret, dataret;
|
||||
db_recno_t recno;
|
||||
int is_recno, failed, ret;
|
||||
void *pointer;
|
||||
|
||||
/*
|
||||
* Get a cursor and step through the database, printing out each
|
||||
* key/data pair.
|
||||
*/
|
||||
if ((ret = dbp->cursor(dbp, NULL, &dbcp, 0)) != 0) {
|
||||
dbp->err(dbp, ret, "DB->cursor");
|
||||
return (1);
|
||||
}
|
||||
|
||||
failed = 0;
|
||||
memset(&key, 0, sizeof(key));
|
||||
memset(&data, 0, sizeof(data));
|
||||
data.data = malloc(1024 * 1024);
|
||||
if (data.data == NULL) {
|
||||
dbp->err(dbp, ENOMEM, "bulk get buffer");
|
||||
failed = 1;
|
||||
goto err;
|
||||
}
|
||||
data.ulen = 1024 * 1024;
|
||||
data.flags = DB_DBT_USERMEM;
|
||||
is_recno = (dbp->type == DB_RECNO || dbp->type == DB_QUEUE);
|
||||
keyflag = is_recno ? keyflag : 1;
|
||||
if (is_recno) {
|
||||
keyret.data = &recno;
|
||||
keyret.size = sizeof(recno);
|
||||
}
|
||||
|
||||
retry:
|
||||
while ((ret =
|
||||
dbcp->c_get(dbcp, &key, &data, DB_NEXT | DB_MULTIPLE_KEY)) == 0) {
|
||||
DB_MULTIPLE_INIT(pointer, &data);
|
||||
for (;;) {
|
||||
if (is_recno)
|
||||
DB_MULTIPLE_RECNO_NEXT(pointer, &data,
|
||||
recno, dataret.data, dataret.size);
|
||||
else
|
||||
DB_MULTIPLE_KEY_NEXT(pointer,
|
||||
&data, keyret.data,
|
||||
keyret.size, dataret.data, dataret.size);
|
||||
|
||||
if (dataret.data == NULL)
|
||||
break;
|
||||
|
||||
if ((keyflag && (ret = __db_prdbt(&keyret,
|
||||
pflag, " ", stdout, __db_verify_callback,
|
||||
is_recno, NULL)) != 0) || (ret =
|
||||
__db_prdbt(&dataret, pflag, " ", stdout,
|
||||
__db_verify_callback, 0, NULL)) != 0) {
|
||||
dbp->errx(dbp, NULL);
|
||||
failed = 1;
|
||||
goto err;
|
||||
}
|
||||
}
|
||||
}
|
||||
if (ret == ENOMEM) {
|
||||
data.data = realloc(data.data, data.size);
|
||||
if (data.data == NULL) {
|
||||
dbp->err(dbp, ENOMEM, "bulk get buffer");
|
||||
failed = 1;
|
||||
goto err;
|
||||
}
|
||||
data.ulen = data.size;
|
||||
goto retry;
|
||||
}
|
||||
|
||||
if (ret != DB_NOTFOUND) {
|
||||
dbp->err(dbp, ret, "DBcursor->get");
|
||||
failed = 1;
|
||||
}
|
||||
|
||||
err: if (data.data != NULL)
|
||||
free(data.data);
|
||||
|
||||
if ((ret = dbcp->c_close(dbcp)) != 0) {
|
||||
dbp->err(dbp, ret, "DBcursor->close");
|
||||
failed = 1;
|
||||
}
|
||||
|
||||
(void)__db_prfooter(stdout, __db_verify_callback);
|
||||
return (failed);
|
||||
}
|
||||
|
||||
/*
|
||||
* usage --
|
||||
* Display the usage message.
|
||||
*/
|
||||
int
|
||||
db_dump_usage()
|
||||
{
|
||||
(void)fprintf(stderr, "%s\n\t%s\n",
|
||||
"usage: db_dump [-klNprRV]",
|
||||
"[-d ahr] [-f output] [-h home] [-P password] [-s database] db_file");
|
||||
return (EXIT_FAILURE);
|
||||
}
|
||||
|
||||
int
|
||||
db_dump_version_check(progname)
|
||||
const char *progname;
|
||||
{
|
||||
int v_major, v_minor, v_patch;
|
||||
|
||||
/* Make sure we're loaded with the right version of the DB library. */
|
||||
(void)db_version(&v_major, &v_minor, &v_patch);
|
||||
if (v_major != DB_VERSION_MAJOR ||
|
||||
v_minor != DB_VERSION_MINOR || v_patch != DB_VERSION_PATCH) {
|
||||
fprintf(stderr,
|
||||
"%s: version %d.%d.%d doesn't match library version %d.%d.%d\n",
|
||||
progname, DB_VERSION_MAJOR, DB_VERSION_MINOR,
|
||||
DB_VERSION_PATCH, v_major, v_minor, v_patch);
|
||||
return (EXIT_FAILURE);
|
||||
}
|
||||
return (0);
|
||||
}
|
@ -1,160 +0,0 @@
|
||||
Document file - DO NOT EDIT
|
||||
|
||||
<BEGIN> BUILD_PENTIUMgnu_BUILDRULE
|
||||
db_dump.out
|
||||
<END>
|
||||
|
||||
<BEGIN> BUILD_PENTIUMgnu_MACRO_AR
|
||||
ar386
|
||||
<END>
|
||||
|
||||
<BEGIN> BUILD_PENTIUMgnu_MACRO_ARCHIVE
|
||||
$(PRJ_DIR)/PENTIUMgnu/db_dump.a
|
||||
<END>
|
||||
|
||||
<BEGIN> BUILD_PENTIUMgnu_MACRO_AS
|
||||
cc386
|
||||
<END>
|
||||
|
||||
<BEGIN> BUILD_PENTIUMgnu_MACRO_CC
|
||||
cc386
|
||||
<END>
|
||||
|
||||
<BEGIN> BUILD_PENTIUMgnu_MACRO_CFLAGS
|
||||
-g \
|
||||
-mpentium \
|
||||
-ansi \
|
||||
-nostdinc \
|
||||
-DRW_MULTI_THREAD \
|
||||
-D_REENTRANT \
|
||||
-fvolatile \
|
||||
-nostdlib \
|
||||
-fno-builtin \
|
||||
-fno-defer-pop \
|
||||
-I$(PRJ_DIR)/.. \
|
||||
-I$(PRJ_DIR)/../.. \
|
||||
-I$(WIND_BASE)/target/h \
|
||||
-DCPU=PENTIUM
|
||||
<END>
|
||||
|
||||
<BEGIN> BUILD_PENTIUMgnu_MACRO_CFLAGS_AS
|
||||
-g \
|
||||
-mpentium \
|
||||
-ansi \
|
||||
-nostdinc \
|
||||
-fvolatile \
|
||||
-nostdlib \
|
||||
-fno-builtin \
|
||||
-fno-defer-pop \
|
||||
-P \
|
||||
-x \
|
||||
assembler-with-cpp \
|
||||
-I$(WIND_BASE)/target/h \
|
||||
-DCPU=PENTIUM
|
||||
<END>
|
||||
|
||||
<BEGIN> BUILD_PENTIUMgnu_MACRO_CPP
|
||||
cc386 -E -P -xc
|
||||
<END>
|
||||
|
||||
<BEGIN> BUILD_PENTIUMgnu_MACRO_LD
|
||||
ld386
|
||||
<END>
|
||||
|
||||
<BEGIN> BUILD_PENTIUMgnu_MACRO_LDDEPS
|
||||
|
||||
<END>
|
||||
|
||||
<BEGIN> BUILD_PENTIUMgnu_MACRO_LDFLAGS
|
||||
-X -N
|
||||
<END>
|
||||
|
||||
<BEGIN> BUILD_PENTIUMgnu_MACRO_LD_PARTIAL_FLAGS
|
||||
-X -r
|
||||
<END>
|
||||
|
||||
<BEGIN> BUILD_PENTIUMgnu_MACRO_NM
|
||||
nm386 -g
|
||||
<END>
|
||||
|
||||
<BEGIN> BUILD_PENTIUMgnu_MACRO_OPTION_DEFINE_MACRO
|
||||
-D
|
||||
<END>
|
||||
|
||||
<BEGIN> BUILD_PENTIUMgnu_MACRO_OPTION_INCLUDE_DIR
|
||||
-I
|
||||
<END>
|
||||
|
||||
<BEGIN> BUILD_PENTIUMgnu_MACRO_POST_BUILD_RULE
|
||||
|
||||
<END>
|
||||
|
||||
<BEGIN> BUILD_PENTIUMgnu_MACRO_PRJ_LIBS
|
||||
|
||||
<END>
|
||||
|
||||
<BEGIN> BUILD_PENTIUMgnu_MACRO_SIZE
|
||||
size386
|
||||
<END>
|
||||
|
||||
<BEGIN> BUILD_PENTIUMgnu_RO_DEPEND_PATH
|
||||
{$(WIND_BASE)/target/h/} \
|
||||
{$(WIND_BASE)/target/src/} \
|
||||
{$(WIND_BASE)/target/config/}
|
||||
<END>
|
||||
|
||||
<BEGIN> BUILD_PENTIUMgnu_TC
|
||||
::tc_PENTIUMgnu
|
||||
<END>
|
||||
|
||||
<BEGIN> BUILD_RULE_archive
|
||||
|
||||
<END>
|
||||
|
||||
<BEGIN> BUILD_RULE_db_dump.out
|
||||
|
||||
<END>
|
||||
|
||||
<BEGIN> BUILD_RULE_objects
|
||||
|
||||
<END>
|
||||
|
||||
<BEGIN> BUILD__CURRENT
|
||||
PENTIUMgnu
|
||||
<END>
|
||||
|
||||
<BEGIN> BUILD__LIST
|
||||
PENTIUMgnu
|
||||
<END>
|
||||
|
||||
<BEGIN> CORE_INFO_TYPE
|
||||
::prj_vxApp
|
||||
<END>
|
||||
|
||||
<BEGIN> CORE_INFO_VERSION
|
||||
2.0
|
||||
<END>
|
||||
|
||||
<BEGIN> FILE_db_dump.c_dependDone
|
||||
FALSE
|
||||
<END>
|
||||
|
||||
<BEGIN> FILE_db_dump.c_dependencies
|
||||
|
||||
<END>
|
||||
|
||||
<BEGIN> FILE_db_dump.c_objects
|
||||
db_dump.o
|
||||
<END>
|
||||
|
||||
<BEGIN> FILE_db_dump.c_tool
|
||||
C/C++ compiler
|
||||
<END>
|
||||
|
||||
<BEGIN> PROJECT_FILES
|
||||
$(PRJ_DIR)/db_dump.c
|
||||
<END>
|
||||
|
||||
<BEGIN> userComments
|
||||
db_dump
|
||||
<END>
|
@ -1,51 +0,0 @@
|
||||
#
|
||||
# Custom Makefile shell
|
||||
#
|
||||
# This file may be edited freely, since it will not be regenerated
|
||||
# by the project manager.
|
||||
#
|
||||
# Use this makefile to define rules to make external binaries
|
||||
# and deposit them in the $(EXTERNAL_BINARIES_DIR) directory.
|
||||
#
|
||||
# If you have specified external modules during your component
|
||||
# creation, you will find make rules already in place below.
|
||||
# You will likely have to edit these to suit your individual
|
||||
# build setup.
|
||||
#
|
||||
# You may wish to use the CPU, BUILD_SPEC or TOOL make variables in
|
||||
# your Makefile to support builds for different architectures. Use
|
||||
# the FORCE_EXTERNAL_MAKE phony target to ensure that your external
|
||||
# make always runs.
|
||||
#
|
||||
# The example below assumes that your custom makefile is in the
|
||||
# mySourceTree directory, and that the binary file it produces
|
||||
# is placed into the $(BUILD_SPEC) sub-directory.
|
||||
#
|
||||
# EXTERNAL_SOURCE_BASE = /folk/me/mySourceTree
|
||||
# EXTERNAL_MODULE = myLibrary.o
|
||||
# EXTERNAL_MAKE = make
|
||||
#
|
||||
# $(EXTERNAL_BINARIES_DIR)/$(EXTERNAL_MODULE) : FORCE_EXTERNAL_MAKE
|
||||
# $(EXTERNAL_MAKE) -C $(EXTERNAL_SOURCE_BASE) \
|
||||
# -f $(EXTERNAL_SOURCE_BASE)/Makefile \
|
||||
# CPU=$(CPU) BUILD_SPEC=$(BUILD_SPEC) $(@F)
|
||||
# $(CP) $(subst /,$(DIRCHAR),$(EXTERNAL_SOURCE_BASE)/$(BUILD_SPEC)/$(@F) $@)
|
||||
#
|
||||
# If you are not adding your external modules from the component wizard,
|
||||
# you will have to include them in your component yourself:
|
||||
#
|
||||
# From the GUI, you can do this with the Component's 'Add external module'
|
||||
# dialog.
|
||||
#
|
||||
# If you are using the command line, add the module(s) by editing the
|
||||
# MODULES line in component.cdf file, e.g.
|
||||
#
|
||||
# Component INCLUDE_MYCOMPONENT {
|
||||
#
|
||||
# MODULES foo.o goo.o \
|
||||
# myLibrary.o
|
||||
#
|
||||
|
||||
|
||||
# rules to build custom libraries
|
||||
|
@ -1,30 +0,0 @@
|
||||
/* component.cdf - dynamically updated configuration */
|
||||
|
||||
/*
|
||||
* NOTE: you may edit this file to alter the configuration
|
||||
* But all non-configuration information, including comments,
|
||||
* will be lost upon rebuilding this project.
|
||||
*/
|
||||
|
||||
/* Component information */
|
||||
|
||||
Component INCLUDE_DB_DUMP {
|
||||
ENTRY_POINTS ALL_GLOBAL_SYMBOLS
|
||||
MODULES db_dump.o
|
||||
NAME db_dump
|
||||
PREF_DOMAIN ANY
|
||||
_INIT_ORDER usrComponentsInit
|
||||
}
|
||||
|
||||
/* EntryPoint information */
|
||||
|
||||
/* Module information */
|
||||
|
||||
Module db_dump.o {
|
||||
|
||||
NAME db_dump.o
|
||||
SRC_PATH_NAME $PRJ_DIR/../db_dump.c
|
||||
}
|
||||
|
||||
/* Parameter information */
|
||||
|
@ -1,475 +0,0 @@
|
||||
Document file - DO NOT EDIT
|
||||
|
||||
<BEGIN> CORE_INFO_TYPE
|
||||
::prj_component
|
||||
<END>
|
||||
|
||||
<BEGIN> CORE_INFO_VERSION
|
||||
AE1.1
|
||||
<END>
|
||||
|
||||
<BEGIN> BUILD__CURRENT
|
||||
PENTIUM2gnu.debug
|
||||
<END>
|
||||
|
||||
<BEGIN> BUILD_PENTIUM2gnu.debug_CURRENT_TARGET
|
||||
default
|
||||
<END>
|
||||
|
||||
<BEGIN> BUILD_PENTIUM2gnu.debug_DEFAULTFORCPU
|
||||
1
|
||||
<END>
|
||||
|
||||
<BEGIN> BUILD_PENTIUM2gnu.debug_FILE_$(PRJ_DIR)/../db_dump.c_infoTags
|
||||
toolMacro objects
|
||||
<END>
|
||||
|
||||
<BEGIN> BUILD_PENTIUM2gnu.debug_FILE_$(PRJ_DIR)/../db_dump.c_objects
|
||||
db_dump.o
|
||||
<END>
|
||||
|
||||
<BEGIN> BUILD_PENTIUM2gnu.debug_FILE_$(PRJ_DIR)/../db_dump.c_toolMacro
|
||||
CC
|
||||
<END>
|
||||
|
||||
<BEGIN> BUILD_PENTIUM2gnu.debug_FILE_$(PRJ_DIR)/../db_dump.c_objects
|
||||
db_dump.o
|
||||
<END>
|
||||
|
||||
<BEGIN> BUILD_PENTIUM2gnu.debug_FILE_$(PRJ_DIR)/../db_dump.c_toolMacro
|
||||
CC
|
||||
<END>
|
||||
|
||||
<BEGIN> BUILD_PENTIUM2gnu.debug_FILE_$(PRJ_DIR)/compConfig.c_infoTags
|
||||
toolMacro objects
|
||||
<END>
|
||||
|
||||
<BEGIN> BUILD_PENTIUM2gnu.debug_FILE_$(PRJ_DIR)/compConfig.c_objects
|
||||
compConfig.o
|
||||
<END>
|
||||
|
||||
<BEGIN> BUILD_PENTIUM2gnu.debug_FILE_$(PRJ_DIR)/compConfig.c_toolMacro
|
||||
CC
|
||||
<END>
|
||||
|
||||
<BEGIN> BUILD_PENTIUM2gnu.debug_MACRO_AR
|
||||
arpentium
|
||||
<END>
|
||||
|
||||
<BEGIN> BUILD_PENTIUM2gnu.debug_MACRO_AS
|
||||
ccpentium
|
||||
<END>
|
||||
|
||||
<BEGIN> BUILD_PENTIUM2gnu.debug_MACRO_CC
|
||||
ccpentium
|
||||
<END>
|
||||
|
||||
<BEGIN> BUILD_PENTIUM2gnu.debug_MACRO_CFLAGS
|
||||
-mcpu=pentiumpro \
|
||||
-march=pentiumpro \
|
||||
-ansi \
|
||||
-DRW_MULTI_THREAD \
|
||||
-D_REENTRANT \
|
||||
-g \
|
||||
-nostdlib \
|
||||
-fno-builtin \
|
||||
-fno-defer-pop \
|
||||
-MD \
|
||||
-Wall \
|
||||
-I. \
|
||||
-I$(WIND_BASE)/target/h \
|
||||
-I$(PRJ_DIR)/../.. \
|
||||
-I$(PRJ_DIR)/../../.. \
|
||||
-DCPU=PENTIUM2
|
||||
<END>
|
||||
|
||||
<BEGIN> BUILD_PENTIUM2gnu.debug_MACRO_CFLAGS_AS
|
||||
-mcpu=pentiumpro \
|
||||
-march=pentiumpro \
|
||||
-ansi \
|
||||
-g \
|
||||
-nostdlib \
|
||||
-fno-builtin \
|
||||
-fno-defer-pop \
|
||||
-P \
|
||||
-x \
|
||||
assembler-with-cpp \
|
||||
-Wall \
|
||||
-I. \
|
||||
-I$(WIND_BASE)/target/h \
|
||||
-DCPU=PENTIUM2
|
||||
<END>
|
||||
|
||||
<BEGIN> BUILD_PENTIUM2gnu.debug_MACRO_CPP
|
||||
ccpentium -E -P
|
||||
<END>
|
||||
|
||||
<BEGIN> BUILD_PENTIUM2gnu.debug_MACRO_CPPFILT
|
||||
c++filtpentium --strip-underscores
|
||||
<END>
|
||||
|
||||
<BEGIN> BUILD_PENTIUM2gnu.debug_MACRO_LD
|
||||
ldpentium
|
||||
<END>
|
||||
|
||||
<BEGIN> BUILD_PENTIUM2gnu.debug_MACRO_LDFLAGS
|
||||
-X
|
||||
<END>
|
||||
|
||||
<BEGIN> BUILD_PENTIUM2gnu.debug_MACRO_LDPARTIAL
|
||||
ccpentium \
|
||||
-B$(WIND_BASE)/host/$(WIND_HOST_TYPE)/lib/gcc-lib/ \
|
||||
-nostdlib \
|
||||
-r \
|
||||
-Wl,-X
|
||||
<END>
|
||||
|
||||
<BEGIN> BUILD_PENTIUM2gnu.debug_MACRO_LD_PARTIAL_FLAGS
|
||||
-X -r
|
||||
<END>
|
||||
|
||||
<BEGIN> BUILD_PENTIUM2gnu.debug_MACRO_NM
|
||||
nmpentium -g
|
||||
<END>
|
||||
|
||||
<BEGIN> BUILD_PENTIUM2gnu.debug_MACRO_OPTION_DEFINE_MACRO
|
||||
-D
|
||||
<END>
|
||||
|
||||
<BEGIN> BUILD_PENTIUM2gnu.debug_MACRO_OPTION_GENERATE_DEPENDENCY_FILE
|
||||
-MD
|
||||
<END>
|
||||
|
||||
<BEGIN> BUILD_PENTIUM2gnu.debug_MACRO_OPTION_INCLUDE_DIR
|
||||
-I
|
||||
<END>
|
||||
|
||||
<BEGIN> BUILD_PENTIUM2gnu.debug_MACRO_RELEASE
|
||||
0
|
||||
<END>
|
||||
|
||||
<BEGIN> BUILD_PENTIUM2gnu.debug_MACRO_SIZE
|
||||
sizepentium
|
||||
<END>
|
||||
|
||||
<BEGIN> BUILD_PENTIUM2gnu.debug_RELEASE
|
||||
0
|
||||
<END>
|
||||
|
||||
<BEGIN> BUILD_PENTIUM2gnu.debug_RO_DEPEND_PATH
|
||||
$(WIND_BASE)/target/h/
|
||||
<END>
|
||||
|
||||
<BEGIN> BUILD_PENTIUM2gnu.debug_TC
|
||||
::tc_PENTIUM2gnu.debug
|
||||
<END>
|
||||
|
||||
<BEGIN> BUILD_PENTIUM2gnu.release_DEFAULTFORCPU
|
||||
0
|
||||
<END>
|
||||
|
||||
<BEGIN> BUILD_PENTIUM2gnu.release_FILE_$(PRJ_DIR)/../db_dump.c_infoTags
|
||||
toolMacro objects
|
||||
<END>
|
||||
|
||||
<BEGIN> BUILD_PENTIUM2gnu.release_FILE_$(PRJ_DIR)/../db_dump.c_objects
|
||||
db_dump.o
|
||||
<END>
|
||||
|
||||
<BEGIN> BUILD_PENTIUM2gnu.release_FILE_$(PRJ_DIR)/../db_dump.c_toolMacro
|
||||
CC
|
||||
<END>
|
||||
|
||||
<BEGIN> BUILD_PENTIUM2gnu.release_FILE_$(PRJ_DIR)/compConfig.c_infoTags
|
||||
toolMacro objects
|
||||
<END>
|
||||
|
||||
<BEGIN> BUILD_PENTIUM2gnu.release_FILE_$(PRJ_DIR)/compConfig.c_objects
|
||||
compConfig.o
|
||||
<END>
|
||||
|
||||
<BEGIN> BUILD_PENTIUM2gnu.release_FILE_$(PRJ_DIR)/compConfig.c_toolMacro
|
||||
CC
|
||||
<END>
|
||||
|
||||
<BEGIN> BUILD_PENTIUM2gnu.release_MACRO_AR
|
||||
arpentium
|
||||
<END>
|
||||
|
||||
<BEGIN> BUILD_PENTIUM2gnu.release_MACRO_AS
|
||||
ccpentium
|
||||
<END>
|
||||
|
||||
<BEGIN> BUILD_PENTIUM2gnu.release_MACRO_CC
|
||||
ccpentium
|
||||
<END>
|
||||
|
||||
<BEGIN> BUILD_PENTIUM2gnu.release_MACRO_CFLAGS
|
||||
-mcpu=pentiumpro \
|
||||
-march=pentiumpro \
|
||||
-ansi \
|
||||
-DRW_MULTI_THREAD \
|
||||
-D_REENTRANT \
|
||||
-O2 \
|
||||
-nostdlib \
|
||||
-fno-builtin \
|
||||
-fno-defer-pop \
|
||||
-MD \
|
||||
-Wall \
|
||||
-I. \
|
||||
-I$(WIND_BASE)/target/h \
|
||||
-I$(PRJ_DIR)/../.. \
|
||||
-I$(PRJ_DIR)/../../.. \
|
||||
-DCPU=PENTIUM2
|
||||
<END>
|
||||
|
||||
<BEGIN> BUILD_PENTIUM2gnu.release_MACRO_CFLAGS_AS
|
||||
-mcpu=pentiumpro \
|
||||
-march=pentiumpro \
|
||||
-ansi \
|
||||
-O2 \
|
||||
-nostdlib \
|
||||
-fno-builtin \
|
||||
-fno-defer-pop \
|
||||
-P \
|
||||
-x \
|
||||
assembler-with-cpp \
|
||||
-Wall \
|
||||
-I. \
|
||||
-I$(WIND_BASE)/target/h \
|
||||
-DCPU=PENTIUM2
|
||||
<END>
|
||||
|
||||
<BEGIN> BUILD_PENTIUM2gnu.release_MACRO_CPP
|
||||
ccpentium -E -P
|
||||
<END>
|
||||
|
||||
<BEGIN> BUILD_PENTIUM2gnu.release_MACRO_CPPFILT
|
||||
c++filtpentium --strip-underscores
|
||||
<END>
|
||||
|
||||
<BEGIN> BUILD_PENTIUM2gnu.release_MACRO_LD
|
||||
ldpentium
|
||||
<END>
|
||||
|
||||
<BEGIN> BUILD_PENTIUM2gnu.release_MACRO_LDFLAGS
|
||||
-X
|
||||
<END>
|
||||
|
||||
<BEGIN> BUILD_PENTIUM2gnu.release_MACRO_LDPARTIAL
|
||||
ccpentium \
|
||||
-B$(WIND_BASE)/host/$(WIND_HOST_TYPE)/lib/gcc-lib/ \
|
||||
-nostdlib \
|
||||
-r \
|
||||
-Wl,-X
|
||||
<END>
|
||||
|
||||
<BEGIN> BUILD_PENTIUM2gnu.release_MACRO_LD_PARTIAL_FLAGS
|
||||
-X -r
|
||||
<END>
|
||||
|
||||
<BEGIN> BUILD_PENTIUM2gnu.release_MACRO_NM
|
||||
nmpentium -g
|
||||
<END>
|
||||
|
||||
<BEGIN> BUILD_PENTIUM2gnu.release_MACRO_OPTION_DEFINE_MACRO
|
||||
-D
|
||||
<END>
|
||||
|
||||
<BEGIN> BUILD_PENTIUM2gnu.release_MACRO_OPTION_GENERATE_DEPENDENCY_FILE
|
||||
-MD
|
||||
<END>
|
||||
|
||||
<BEGIN> BUILD_PENTIUM2gnu.release_MACRO_OPTION_INCLUDE_DIR
|
||||
-I
|
||||
<END>
|
||||
|
||||
<BEGIN> BUILD_PENTIUM2gnu.release_MACRO_RELEASE
|
||||
1
|
||||
<END>
|
||||
|
||||
<BEGIN> BUILD_PENTIUM2gnu.release_MACRO_SIZE
|
||||
sizepentium
|
||||
<END>
|
||||
|
||||
<BEGIN> BUILD_PENTIUM2gnu.release_RELEASE
|
||||
1
|
||||
<END>
|
||||
|
||||
<BEGIN> BUILD_PENTIUM2gnu.release_RO_DEPEND_PATH
|
||||
$(WIND_BASE)/target/h/
|
||||
<END>
|
||||
|
||||
<BEGIN> BUILD_PENTIUM2gnu.release_TC
|
||||
::tc_PENTIUM2gnu.release
|
||||
<END>
|
||||
|
||||
<BEGIN> BUILD_PENTIUMgnu.debug_DEFAULTFORCPU
|
||||
1
|
||||
<END>
|
||||
|
||||
<BEGIN> BUILD_PENTIUMgnu.debug_FILE_$(PRJ_DIR)/../db_dump.c_infoTags
|
||||
toolMacro objects
|
||||
<END>
|
||||
|
||||
<BEGIN> BUILD_PENTIUMgnu.debug_FILE_$(PRJ_DIR)/../db_dump.c_objects
|
||||
db_dump.o
|
||||
<END>
|
||||
|
||||
<BEGIN> BUILD_PENTIUMgnu.debug_FILE_$(PRJ_DIR)/../db_dump.c_toolMacro
|
||||
CC
|
||||
<END>
|
||||
|
||||
<BEGIN> BUILD_PENTIUMgnu.debug_FILE_$(PRJ_DIR)/compConfig.c_infoTags
|
||||
toolMacro objects
|
||||
<END>
|
||||
|
||||
<BEGIN> BUILD_PENTIUMgnu.debug_FILE_$(PRJ_DIR)/compConfig.c_objects
|
||||
compConfig.o
|
||||
<END>
|
||||
|
||||
<BEGIN> BUILD_PENTIUMgnu.debug_FILE_$(PRJ_DIR)/compConfig.c_toolMacro
|
||||
CC
|
||||
<END>
|
||||
|
||||
<BEGIN> BUILD_PENTIUMgnu.debug_MACRO_AR
|
||||
arpentium
|
||||
<END>
|
||||
|
||||
<BEGIN> BUILD_PENTIUMgnu.debug_MACRO_AS
|
||||
ccpentium
|
||||
<END>
|
||||
|
||||
<BEGIN> BUILD_PENTIUMgnu.debug_MACRO_CC
|
||||
ccpentium
|
||||
<END>
|
||||
|
||||
<BEGIN> BUILD_PENTIUMgnu.debug_MACRO_CFLAGS
|
||||
-mcpu=pentium \
|
||||
-march=pentium \
|
||||
-ansi \
|
||||
-DRW_MULTI_THREAD \
|
||||
-D_REENTRANT \
|
||||
-g \
|
||||
-nostdlib \
|
||||
-fno-builtin \
|
||||
-fno-defer-pop \
|
||||
-MD \
|
||||
-Wall \
|
||||
-I. \
|
||||
-I$(WIND_BASE)/target/h \
|
||||
-I$(PRJ_DIR)/../.. \
|
||||
-I$(PRJ_DIR)/../../.. \
|
||||
-DCPU=PENTIUM
|
||||
<END>
|
||||
|
||||
<BEGIN> BUILD_PENTIUMgnu.debug_MACRO_CFLAGS_AS
|
||||
-mcpu=pentium \
|
||||
-march=pentium \
|
||||
-ansi \
|
||||
-g \
|
||||
-nostdlib \
|
||||
-fno-builtin \
|
||||
-fno-defer-pop \
|
||||
-P \
|
||||
-x \
|
||||
assembler-with-cpp \
|
||||
-Wall \
|
||||
-I. \
|
||||
-I$(WIND_BASE)/target/h \
|
||||
-DCPU=PENTIUM
|
||||
<END>
|
||||
|
||||
<BEGIN> BUILD_PENTIUMgnu.debug_MACRO_CPP
|
||||
ccpentium -E -P
|
||||
<END>
|
||||
|
||||
<BEGIN> BUILD_PENTIUMgnu.debug_MACRO_CPPFILT
|
||||
c++filtpentium --strip-underscores
|
||||
<END>
|
||||
|
||||
<BEGIN> BUILD_PENTIUMgnu.debug_MACRO_LD
|
||||
ldpentium
|
||||
<END>
|
||||
|
||||
<BEGIN> BUILD_PENTIUMgnu.debug_MACRO_LDFLAGS
|
||||
-X
|
||||
<END>
|
||||
|
||||
<BEGIN> BUILD_PENTIUMgnu.debug_MACRO_LDPARTIAL
|
||||
ccpentium \
|
||||
-B$(WIND_BASE)/host/$(WIND_HOST_TYPE)/lib/gcc-lib/ \
|
||||
-nostdlib \
|
||||
-r \
|
||||
-Wl,-X
|
||||
<END>
|
||||
|
||||
<BEGIN> BUILD_PENTIUMgnu.debug_MACRO_LD_PARTIAL_FLAGS
|
||||
-X -r
|
||||
<END>
|
||||
|
||||
<BEGIN> BUILD_PENTIUMgnu.debug_MACRO_NM
|
||||
nmpentium -g
|
||||
<END>
|
||||
|
||||
<BEGIN> BUILD_PENTIUMgnu.debug_MACRO_OPTION_DEFINE_MACRO
|
||||
-D
|
||||
<END>
|
||||
|
||||
<BEGIN> BUILD_PENTIUMgnu.debug_MACRO_OPTION_GENERATE_DEPENDENCY_FILE
|
||||
-MD
|
||||
<END>
|
||||
|
||||
<BEGIN> BUILD_PENTIUMgnu.debug_MACRO_OPTION_INCLUDE_DIR
|
||||
-I
|
||||
<END>
|
||||
|
||||
<BEGIN> BUILD_PENTIUMgnu.debug_MACRO_RELEASE
|
||||
0
|
||||
<END>
|
||||
|
||||
<BEGIN> BUILD_PENTIUMgnu.debug_MACRO_SIZE
|
||||
sizepentium
|
||||
<END>
|
||||
|
||||
<BEGIN> BUILD_PENTIUMgnu.debug_RELEASE
|
||||
0
|
||||
<END>
|
||||
|
||||
<BEGIN> BUILD_PENTIUMgnu.debug_RO_DEPEND_PATH
|
||||
$(WIND_BASE)/target/h/
|
||||
<END>
|
||||
|
||||
<BEGIN> BUILD_PENTIUMgnu.debug_TC
|
||||
::tc_PENTIUMgnu.debug
|
||||
<END>
|
||||
|
||||
<BEGIN> BUILD__LIST
|
||||
PENTIUM2gnu.debug PENTIUM2gnu.release PENTIUMgnu.debug
|
||||
<END>
|
||||
|
||||
<BEGIN> PROJECT_FILES
|
||||
$(PRJ_DIR)/../db_dump.c \
|
||||
$(PRJ_DIR)/compConfig.c
|
||||
<END>
|
||||
|
||||
<BEGIN> WCC__CDF_PATH
|
||||
$(PRJ_DIR)
|
||||
<END>
|
||||
|
||||
<BEGIN> WCC__CURRENT
|
||||
PENTIUM2gnu.debug
|
||||
<END>
|
||||
|
||||
<BEGIN> WCC__LIST
|
||||
PENTIUM2gnu.debug
|
||||
<END>
|
||||
|
||||
<BEGIN> WCC__MXR_LIBS
|
||||
lib$(CPU)$(TOOL)vx.a
|
||||
<END>
|
||||
|
||||
<BEGIN> WCC__OBJS_PATH
|
||||
$(WIND_BASE)/target/lib/obj$CPU$TOOLvx
|
||||
<END>
|
||||
|
File diff suppressed because it is too large
Load Diff
@ -1,160 +0,0 @@
|
||||
Document file - DO NOT EDIT
|
||||
|
||||
<BEGIN> BUILD_PENTIUMgnu_BUILDRULE
|
||||
db_load.out
|
||||
<END>
|
||||
|
||||
<BEGIN> BUILD_PENTIUMgnu_MACRO_AR
|
||||
ar386
|
||||
<END>
|
||||
|
||||
<BEGIN> BUILD_PENTIUMgnu_MACRO_ARCHIVE
|
||||
$(PRJ_DIR)/PENTIUMgnu/db_load.a
|
||||
<END>
|
||||
|
||||
<BEGIN> BUILD_PENTIUMgnu_MACRO_AS
|
||||
cc386
|
||||
<END>
|
||||
|
||||
<BEGIN> BUILD_PENTIUMgnu_MACRO_CC
|
||||
cc386
|
||||
<END>
|
||||
|
||||
<BEGIN> BUILD_PENTIUMgnu_MACRO_CFLAGS
|
||||
-g \
|
||||
-mpentium \
|
||||
-ansi \
|
||||
-nostdinc \
|
||||
-DRW_MULTI_THREAD \
|
||||
-D_REENTRANT \
|
||||
-fvolatile \
|
||||
-nostdlib \
|
||||
-fno-builtin \
|
||||
-fno-defer-pop \
|
||||
-I$(PRJ_DIR)/.. \
|
||||
-I$(PRJ_DIR)/../.. \
|
||||
-I$(WIND_BASE)/target/h \
|
||||
-DCPU=PENTIUM
|
||||
<END>
|
||||
|
||||
<BEGIN> BUILD_PENTIUMgnu_MACRO_CFLAGS_AS
|
||||
-g \
|
||||
-mpentium \
|
||||
-ansi \
|
||||
-nostdinc \
|
||||
-fvolatile \
|
||||
-nostdlib \
|
||||
-fno-builtin \
|
||||
-fno-defer-pop \
|
||||
-P \
|
||||
-x \
|
||||
assembler-with-cpp \
|
||||
-I$(WIND_BASE)/target/h \
|
||||
-DCPU=PENTIUM
|
||||
<END>
|
||||
|
||||
<BEGIN> BUILD_PENTIUMgnu_MACRO_CPP
|
||||
cc386 -E -P -xc
|
||||
<END>
|
||||
|
||||
<BEGIN> BUILD_PENTIUMgnu_MACRO_LD
|
||||
ld386
|
||||
<END>
|
||||
|
||||
<BEGIN> BUILD_PENTIUMgnu_MACRO_LDDEPS
|
||||
|
||||
<END>
|
||||
|
||||
<BEGIN> BUILD_PENTIUMgnu_MACRO_LDFLAGS
|
||||
-X -N
|
||||
<END>
|
||||
|
||||
<BEGIN> BUILD_PENTIUMgnu_MACRO_LD_PARTIAL_FLAGS
|
||||
-X -r
|
||||
<END>
|
||||
|
||||
<BEGIN> BUILD_PENTIUMgnu_MACRO_NM
|
||||
nm386 -g
|
||||
<END>
|
||||
|
||||
<BEGIN> BUILD_PENTIUMgnu_MACRO_OPTION_DEFINE_MACRO
|
||||
-D
|
||||
<END>
|
||||
|
||||
<BEGIN> BUILD_PENTIUMgnu_MACRO_OPTION_INCLUDE_DIR
|
||||
-I
|
||||
<END>
|
||||
|
||||
<BEGIN> BUILD_PENTIUMgnu_MACRO_POST_BUILD_RULE
|
||||
|
||||
<END>
|
||||
|
||||
<BEGIN> BUILD_PENTIUMgnu_MACRO_PRJ_LIBS
|
||||
|
||||
<END>
|
||||
|
||||
<BEGIN> BUILD_PENTIUMgnu_MACRO_SIZE
|
||||
size386
|
||||
<END>
|
||||
|
||||
<BEGIN> BUILD_PENTIUMgnu_RO_DEPEND_PATH
|
||||
{$(WIND_BASE)/target/h/} \
|
||||
{$(WIND_BASE)/target/src/} \
|
||||
{$(WIND_BASE)/target/config/}
|
||||
<END>
|
||||
|
||||
<BEGIN> BUILD_PENTIUMgnu_TC
|
||||
::tc_PENTIUMgnu
|
||||
<END>
|
||||
|
||||
<BEGIN> BUILD_RULE_archive
|
||||
|
||||
<END>
|
||||
|
||||
<BEGIN> BUILD_RULE_db_load.out
|
||||
|
||||
<END>
|
||||
|
||||
<BEGIN> BUILD_RULE_objects
|
||||
|
||||
<END>
|
||||
|
||||
<BEGIN> BUILD__CURRENT
|
||||
PENTIUMgnu
|
||||
<END>
|
||||
|
||||
<BEGIN> BUILD__LIST
|
||||
PENTIUMgnu
|
||||
<END>
|
||||
|
||||
<BEGIN> CORE_INFO_TYPE
|
||||
::prj_vxApp
|
||||
<END>
|
||||
|
||||
<BEGIN> CORE_INFO_VERSION
|
||||
2.0
|
||||
<END>
|
||||
|
||||
<BEGIN> FILE_db_load.c_dependDone
|
||||
FALSE
|
||||
<END>
|
||||
|
||||
<BEGIN> FILE_db_load.c_dependencies
|
||||
|
||||
<END>
|
||||
|
||||
<BEGIN> FILE_db_load.c_objects
|
||||
db_load.o
|
||||
<END>
|
||||
|
||||
<BEGIN> FILE_db_load.c_tool
|
||||
C/C++ compiler
|
||||
<END>
|
||||
|
||||
<BEGIN> PROJECT_FILES
|
||||
$(PRJ_DIR)/db_load.c
|
||||
<END>
|
||||
|
||||
<BEGIN> userComments
|
||||
db_load
|
||||
<END>
|
@ -1,51 +0,0 @@
|
||||
#
|
||||
# Custom Makefile shell
|
||||
#
|
||||
# This file may be edited freely, since it will not be regenerated
|
||||
# by the project manager.
|
||||
#
|
||||
# Use this makefile to define rules to make external binaries
|
||||
# and deposit them in the $(EXTERNAL_BINARIES_DIR) directory.
|
||||
#
|
||||
# If you have specified external modules during your component
|
||||
# creation, you will find make rules already in place below.
|
||||
# You will likely have to edit these to suit your individual
|
||||
# build setup.
|
||||
#
|
||||
# You may wish to use the CPU, BUILD_SPEC or TOOL make variables in
|
||||
# your Makefile to support builds for different architectures. Use
|
||||
# the FORCE_EXTERNAL_MAKE phony target to ensure that your external
|
||||
# make always runs.
|
||||
#
|
||||
# The example below assumes that your custom makefile is in the
|
||||
# mySourceTree directory, and that the binary file it produces
|
||||
# is placed into the $(BUILD_SPEC) sub-directory.
|
||||
#
|
||||
# EXTERNAL_SOURCE_BASE = /folk/me/mySourceTree
|
||||
# EXTERNAL_MODULE = myLibrary.o
|
||||
# EXTERNAL_MAKE = make
|
||||
#
|
||||
# $(EXTERNAL_BINARIES_DIR)/$(EXTERNAL_MODULE) : FORCE_EXTERNAL_MAKE
|
||||
# $(EXTERNAL_MAKE) -C $(EXTERNAL_SOURCE_BASE) \
|
||||
# -f $(EXTERNAL_SOURCE_BASE)/Makefile \
|
||||
# CPU=$(CPU) BUILD_SPEC=$(BUILD_SPEC) $(@F)
|
||||
# $(CP) $(subst /,$(DIRCHAR),$(EXTERNAL_SOURCE_BASE)/$(BUILD_SPEC)/$(@F) $@)
|
||||
#
|
||||
# If you are not adding your external modules from the component wizard,
|
||||
# you will have to include them in your component yourself:
|
||||
#
|
||||
# From the GUI, you can do this with the Component's 'Add external module'
|
||||
# dialog.
|
||||
#
|
||||
# If you are using the command line, add the module(s) by editing the
|
||||
# MODULES line in component.cdf file, e.g.
|
||||
#
|
||||
# Component INCLUDE_MYCOMPONENT {
|
||||
#
|
||||
# MODULES foo.o goo.o \
|
||||
# myLibrary.o
|
||||
#
|
||||
|
||||
|
||||
# rules to build custom libraries
|
||||
|
@ -1,30 +0,0 @@
|
||||
/* component.cdf - dynamically updated configuration */
|
||||
|
||||
/*
|
||||
* NOTE: you may edit this file to alter the configuration
|
||||
* But all non-configuration information, including comments,
|
||||
* will be lost upon rebuilding this project.
|
||||
*/
|
||||
|
||||
/* Component information */
|
||||
|
||||
Component INCLUDE_DB_LOAD {
|
||||
ENTRY_POINTS ALL_GLOBAL_SYMBOLS
|
||||
MODULES db_load.o
|
||||
NAME db_load
|
||||
PREF_DOMAIN ANY
|
||||
_INIT_ORDER usrComponentsInit
|
||||
}
|
||||
|
||||
/* EntryPoint information */
|
||||
|
||||
/* Module information */
|
||||
|
||||
Module db_load.o {
|
||||
|
||||
NAME db_load.o
|
||||
SRC_PATH_NAME $PRJ_DIR/../db_load.c
|
||||
}
|
||||
|
||||
/* Parameter information */
|
||||
|
@ -1,475 +0,0 @@
|
||||
Document file - DO NOT EDIT
|
||||
|
||||
<BEGIN> CORE_INFO_TYPE
|
||||
::prj_component
|
||||
<END>
|
||||
|
||||
<BEGIN> CORE_INFO_VERSION
|
||||
AE1.1
|
||||
<END>
|
||||
|
||||
<BEGIN> BUILD__CURRENT
|
||||
PENTIUM2gnu.debug
|
||||
<END>
|
||||
|
||||
<BEGIN> BUILD_PENTIUM2gnu.debug_CURRENT_TARGET
|
||||
default
|
||||
<END>
|
||||
|
||||
<BEGIN> BUILD_PENTIUM2gnu.debug_DEFAULTFORCPU
|
||||
1
|
||||
<END>
|
||||
|
||||
<BEGIN> BUILD_PENTIUM2gnu.debug_FILE_$(PRJ_DIR)/../db_load.c_infoTags
|
||||
toolMacro objects
|
||||
<END>
|
||||
|
||||
<BEGIN> BUILD_PENTIUM2gnu.debug_FILE_$(PRJ_DIR)/../db_load.c_objects
|
||||
db_load.o
|
||||
<END>
|
||||
|
||||
<BEGIN> BUILD_PENTIUM2gnu.debug_FILE_$(PRJ_DIR)/../db_load.c_toolMacro
|
||||
CC
|
||||
<END>
|
||||
|
||||
<BEGIN> BUILD_PENTIUM2gnu.debug_FILE_$(PRJ_DIR)/../db_load.c_objects
|
||||
db_load.o
|
||||
<END>
|
||||
|
||||
<BEGIN> BUILD_PENTIUM2gnu.debug_FILE_$(PRJ_DIR)/../db_load.c_toolMacro
|
||||
CC
|
||||
<END>
|
||||
|
||||
<BEGIN> BUILD_PENTIUM2gnu.debug_FILE_$(PRJ_DIR)/compConfig.c_infoTags
|
||||
toolMacro objects
|
||||
<END>
|
||||
|
||||
<BEGIN> BUILD_PENTIUM2gnu.debug_FILE_$(PRJ_DIR)/compConfig.c_objects
|
||||
compConfig.o
|
||||
<END>
|
||||
|
||||
<BEGIN> BUILD_PENTIUM2gnu.debug_FILE_$(PRJ_DIR)/compConfig.c_toolMacro
|
||||
CC
|
||||
<END>
|
||||
|
||||
<BEGIN> BUILD_PENTIUM2gnu.debug_MACRO_AR
|
||||
arpentium
|
||||
<END>
|
||||
|
||||
<BEGIN> BUILD_PENTIUM2gnu.debug_MACRO_AS
|
||||
ccpentium
|
||||
<END>
|
||||
|
||||
<BEGIN> BUILD_PENTIUM2gnu.debug_MACRO_CC
|
||||
ccpentium
|
||||
<END>
|
||||
|
||||
<BEGIN> BUILD_PENTIUM2gnu.debug_MACRO_CFLAGS
|
||||
-mcpu=pentiumpro \
|
||||
-march=pentiumpro \
|
||||
-ansi \
|
||||
-DRW_MULTI_THREAD \
|
||||
-D_REENTRANT \
|
||||
-g \
|
||||
-nostdlib \
|
||||
-fno-builtin \
|
||||
-fno-defer-pop \
|
||||
-MD \
|
||||
-Wall \
|
||||
-I. \
|
||||
-I$(WIND_BASE)/target/h \
|
||||
-I$(PRJ_DIR)/../.. \
|
||||
-I$(PRJ_DIR)/../../.. \
|
||||
-DCPU=PENTIUM2
|
||||
<END>
|
||||
|
||||
<BEGIN> BUILD_PENTIUM2gnu.debug_MACRO_CFLAGS_AS
|
||||
-mcpu=pentiumpro \
|
||||
-march=pentiumpro \
|
||||
-ansi \
|
||||
-g \
|
||||
-nostdlib \
|
||||
-fno-builtin \
|
||||
-fno-defer-pop \
|
||||
-P \
|
||||
-x \
|
||||
assembler-with-cpp \
|
||||
-Wall \
|
||||
-I. \
|
||||
-I$(WIND_BASE)/target/h \
|
||||
-DCPU=PENTIUM2
|
||||
<END>
|
||||
|
||||
<BEGIN> BUILD_PENTIUM2gnu.debug_MACRO_CPP
|
||||
ccpentium -E -P
|
||||
<END>
|
||||
|
||||
<BEGIN> BUILD_PENTIUM2gnu.debug_MACRO_CPPFILT
|
||||
c++filtpentium --strip-underscores
|
||||
<END>
|
||||
|
||||
<BEGIN> BUILD_PENTIUM2gnu.debug_MACRO_LD
|
||||
ldpentium
|
||||
<END>
|
||||
|
||||
<BEGIN> BUILD_PENTIUM2gnu.debug_MACRO_LDFLAGS
|
||||
-X
|
||||
<END>
|
||||
|
||||
<BEGIN> BUILD_PENTIUM2gnu.debug_MACRO_LDPARTIAL
|
||||
ccpentium \
|
||||
-B$(WIND_BASE)/host/$(WIND_HOST_TYPE)/lib/gcc-lib/ \
|
||||
-nostdlib \
|
||||
-r \
|
||||
-Wl,-X
|
||||
<END>
|
||||
|
||||
<BEGIN> BUILD_PENTIUM2gnu.debug_MACRO_LD_PARTIAL_FLAGS
|
||||
-X -r
|
||||
<END>
|
||||
|
||||
<BEGIN> BUILD_PENTIUM2gnu.debug_MACRO_NM
|
||||
nmpentium -g
|
||||
<END>
|
||||
|
||||
<BEGIN> BUILD_PENTIUM2gnu.debug_MACRO_OPTION_DEFINE_MACRO
|
||||
-D
|
||||
<END>
|
||||
|
||||
<BEGIN> BUILD_PENTIUM2gnu.debug_MACRO_OPTION_GENERATE_DEPENDENCY_FILE
|
||||
-MD
|
||||
<END>
|
||||
|
||||
<BEGIN> BUILD_PENTIUM2gnu.debug_MACRO_OPTION_INCLUDE_DIR
|
||||
-I
|
||||
<END>
|
||||
|
||||
<BEGIN> BUILD_PENTIUM2gnu.debug_MACRO_RELEASE
|
||||
0
|
||||
<END>
|
||||
|
||||
<BEGIN> BUILD_PENTIUM2gnu.debug_MACRO_SIZE
|
||||
sizepentium
|
||||
<END>
|
||||
|
||||
<BEGIN> BUILD_PENTIUM2gnu.debug_RELEASE
|
||||
0
|
||||
<END>
|
||||
|
||||
<BEGIN> BUILD_PENTIUM2gnu.debug_RO_DEPEND_PATH
|
||||
$(WIND_BASE)/target/h/
|
||||
<END>
|
||||
|
||||
<BEGIN> BUILD_PENTIUM2gnu.debug_TC
|
||||
::tc_PENTIUM2gnu.debug
|
||||
<END>
|
||||
|
||||
<BEGIN> BUILD_PENTIUM2gnu.release_DEFAULTFORCPU
|
||||
0
|
||||
<END>
|
||||
|
||||
<BEGIN> BUILD_PENTIUM2gnu.release_FILE_$(PRJ_DIR)/../db_load.c_infoTags
|
||||
toolMacro objects
|
||||
<END>
|
||||
|
||||
<BEGIN> BUILD_PENTIUM2gnu.release_FILE_$(PRJ_DIR)/../db_load.c_objects
|
||||
db_load.o
|
||||
<END>
|
||||
|
||||
<BEGIN> BUILD_PENTIUM2gnu.release_FILE_$(PRJ_DIR)/../db_load.c_toolMacro
|
||||
CC
|
||||
<END>
|
||||
|
||||
<BEGIN> BUILD_PENTIUM2gnu.release_FILE_$(PRJ_DIR)/compConfig.c_infoTags
|
||||
toolMacro objects
|
||||
<END>
|
||||
|
||||
<BEGIN> BUILD_PENTIUM2gnu.release_FILE_$(PRJ_DIR)/compConfig.c_objects
|
||||
compConfig.o
|
||||
<END>
|
||||
|
||||
<BEGIN> BUILD_PENTIUM2gnu.release_FILE_$(PRJ_DIR)/compConfig.c_toolMacro
|
||||
CC
|
||||
<END>
|
||||
|
||||
<BEGIN> BUILD_PENTIUM2gnu.release_MACRO_AR
|
||||
arpentium
|
||||
<END>
|
||||
|
||||
<BEGIN> BUILD_PENTIUM2gnu.release_MACRO_AS
|
||||
ccpentium
|
||||
<END>
|
||||
|
||||
<BEGIN> BUILD_PENTIUM2gnu.release_MACRO_CC
|
||||
ccpentium
|
||||
<END>
|
||||
|
||||
<BEGIN> BUILD_PENTIUM2gnu.release_MACRO_CFLAGS
|
||||
-mcpu=pentiumpro \
|
||||
-march=pentiumpro \
|
||||
-ansi \
|
||||
-DRW_MULTI_THREAD \
|
||||
-D_REENTRANT \
|
||||
-O2 \
|
||||
-nostdlib \
|
||||
-fno-builtin \
|
||||
-fno-defer-pop \
|
||||
-MD \
|
||||
-Wall \
|
||||
-I. \
|
||||
-I$(WIND_BASE)/target/h \
|
||||
-I$(PRJ_DIR)/../.. \
|
||||
-I$(PRJ_DIR)/../../.. \
|
||||
-DCPU=PENTIUM2
|
||||
<END>
|
||||
|
||||
<BEGIN> BUILD_PENTIUM2gnu.release_MACRO_CFLAGS_AS
|
||||
-mcpu=pentiumpro \
|
||||
-march=pentiumpro \
|
||||
-ansi \
|
||||
-O2 \
|
||||
-nostdlib \
|
||||
-fno-builtin \
|
||||
-fno-defer-pop \
|
||||
-P \
|
||||
-x \
|
||||
assembler-with-cpp \
|
||||
-Wall \
|
||||
-I. \
|
||||
-I$(WIND_BASE)/target/h \
|
||||
-DCPU=PENTIUM2
|
||||
<END>
|
||||
|
||||
<BEGIN> BUILD_PENTIUM2gnu.release_MACRO_CPP
|
||||
ccpentium -E -P
|
||||
<END>
|
||||
|
||||
<BEGIN> BUILD_PENTIUM2gnu.release_MACRO_CPPFILT
|
||||
c++filtpentium --strip-underscores
|
||||
<END>
|
||||
|
||||
<BEGIN> BUILD_PENTIUM2gnu.release_MACRO_LD
|
||||
ldpentium
|
||||
<END>
|
||||
|
||||
<BEGIN> BUILD_PENTIUM2gnu.release_MACRO_LDFLAGS
|
||||
-X
|
||||
<END>
|
||||
|
||||
<BEGIN> BUILD_PENTIUM2gnu.release_MACRO_LDPARTIAL
|
||||
ccpentium \
|
||||
-B$(WIND_BASE)/host/$(WIND_HOST_TYPE)/lib/gcc-lib/ \
|
||||
-nostdlib \
|
||||
-r \
|
||||
-Wl,-X
|
||||
<END>
|
||||
|
||||
<BEGIN> BUILD_PENTIUM2gnu.release_MACRO_LD_PARTIAL_FLAGS
|
||||
-X -r
|
||||
<END>
|
||||
|
||||
<BEGIN> BUILD_PENTIUM2gnu.release_MACRO_NM
|
||||
nmpentium -g
|
||||
<END>
|
||||
|
||||
<BEGIN> BUILD_PENTIUM2gnu.release_MACRO_OPTION_DEFINE_MACRO
|
||||
-D
|
||||
<END>
|
||||
|
||||
<BEGIN> BUILD_PENTIUM2gnu.release_MACRO_OPTION_GENERATE_DEPENDENCY_FILE
|
||||
-MD
|
||||
<END>
|
||||
|
||||
<BEGIN> BUILD_PENTIUM2gnu.release_MACRO_OPTION_INCLUDE_DIR
|
||||
-I
|
||||
<END>
|
||||
|
||||
<BEGIN> BUILD_PENTIUM2gnu.release_MACRO_RELEASE
|
||||
1
|
||||
<END>
|
||||
|
||||
<BEGIN> BUILD_PENTIUM2gnu.release_MACRO_SIZE
|
||||
sizepentium
|
||||
<END>
|
||||
|
||||
<BEGIN> BUILD_PENTIUM2gnu.release_RELEASE
|
||||
1
|
||||
<END>
|
||||
|
||||
<BEGIN> BUILD_PENTIUM2gnu.release_RO_DEPEND_PATH
|
||||
$(WIND_BASE)/target/h/
|
||||
<END>
|
||||
|
||||
<BEGIN> BUILD_PENTIUM2gnu.release_TC
|
||||
::tc_PENTIUM2gnu.release
|
||||
<END>
|
||||
|
||||
<BEGIN> BUILD_PENTIUMgnu.debug_DEFAULTFORCPU
|
||||
1
|
||||
<END>
|
||||
|
||||
<BEGIN> BUILD_PENTIUMgnu.debug_FILE_$(PRJ_DIR)/../db_load.c_infoTags
|
||||
toolMacro objects
|
||||
<END>
|
||||
|
||||
<BEGIN> BUILD_PENTIUMgnu.debug_FILE_$(PRJ_DIR)/../db_load.c_objects
|
||||
db_load.o
|
||||
<END>
|
||||
|
||||
<BEGIN> BUILD_PENTIUMgnu.debug_FILE_$(PRJ_DIR)/../db_load.c_toolMacro
|
||||
CC
|
||||
<END>
|
||||
|
||||
<BEGIN> BUILD_PENTIUMgnu.debug_FILE_$(PRJ_DIR)/compConfig.c_infoTags
|
||||
toolMacro objects
|
||||
<END>
|
||||
|
||||
<BEGIN> BUILD_PENTIUMgnu.debug_FILE_$(PRJ_DIR)/compConfig.c_objects
|
||||
compConfig.o
|
||||
<END>
|
||||
|
||||
<BEGIN> BUILD_PENTIUMgnu.debug_FILE_$(PRJ_DIR)/compConfig.c_toolMacro
|
||||
CC
|
||||
<END>
|
||||
|
||||
<BEGIN> BUILD_PENTIUMgnu.debug_MACRO_AR
|
||||
arpentium
|
||||
<END>
|
||||
|
||||
<BEGIN> BUILD_PENTIUMgnu.debug_MACRO_AS
|
||||
ccpentium
|
||||
<END>
|
||||
|
||||
<BEGIN> BUILD_PENTIUMgnu.debug_MACRO_CC
|
||||
ccpentium
|
||||
<END>
|
||||
|
||||
<BEGIN> BUILD_PENTIUMgnu.debug_MACRO_CFLAGS
|
||||
-mcpu=pentium \
|
||||
-march=pentium \
|
||||
-ansi \
|
||||
-DRW_MULTI_THREAD \
|
||||
-D_REENTRANT \
|
||||
-g \
|
||||
-nostdlib \
|
||||
-fno-builtin \
|
||||
-fno-defer-pop \
|
||||
-MD \
|
||||
-Wall \
|
||||
-I. \
|
||||
-I$(WIND_BASE)/target/h \
|
||||
-I$(PRJ_DIR)/../.. \
|
||||
-I$(PRJ_DIR)/../../.. \
|
||||
-DCPU=PENTIUM
|
||||
<END>
|
||||
|
||||
<BEGIN> BUILD_PENTIUMgnu.debug_MACRO_CFLAGS_AS
|
||||
-mcpu=pentium \
|
||||
-march=pentium \
|
||||
-ansi \
|
||||
-g \
|
||||
-nostdlib \
|
||||
-fno-builtin \
|
||||
-fno-defer-pop \
|
||||
-P \
|
||||
-x \
|
||||
assembler-with-cpp \
|
||||
-Wall \
|
||||
-I. \
|
||||
-I$(WIND_BASE)/target/h \
|
||||
-DCPU=PENTIUM
|
||||
<END>
|
||||
|
||||
<BEGIN> BUILD_PENTIUMgnu.debug_MACRO_CPP
|
||||
ccpentium -E -P
|
||||
<END>
|
||||
|
||||
<BEGIN> BUILD_PENTIUMgnu.debug_MACRO_CPPFILT
|
||||
c++filtpentium --strip-underscores
|
||||
<END>
|
||||
|
||||
<BEGIN> BUILD_PENTIUMgnu.debug_MACRO_LD
|
||||
ldpentium
|
||||
<END>
|
||||
|
||||
<BEGIN> BUILD_PENTIUMgnu.debug_MACRO_LDFLAGS
|
||||
-X
|
||||
<END>
|
||||
|
||||
<BEGIN> BUILD_PENTIUMgnu.debug_MACRO_LDPARTIAL
|
||||
ccpentium \
|
||||
-B$(WIND_BASE)/host/$(WIND_HOST_TYPE)/lib/gcc-lib/ \
|
||||
-nostdlib \
|
||||
-r \
|
||||
-Wl,-X
|
||||
<END>
|
||||
|
||||
<BEGIN> BUILD_PENTIUMgnu.debug_MACRO_LD_PARTIAL_FLAGS
|
||||
-X -r
|
||||
<END>
|
||||
|
||||
<BEGIN> BUILD_PENTIUMgnu.debug_MACRO_NM
|
||||
nmpentium -g
|
||||
<END>
|
||||
|
||||
<BEGIN> BUILD_PENTIUMgnu.debug_MACRO_OPTION_DEFINE_MACRO
|
||||
-D
|
||||
<END>
|
||||
|
||||
<BEGIN> BUILD_PENTIUMgnu.debug_MACRO_OPTION_GENERATE_DEPENDENCY_FILE
|
||||
-MD
|
||||
<END>
|
||||
|
||||
<BEGIN> BUILD_PENTIUMgnu.debug_MACRO_OPTION_INCLUDE_DIR
|
||||
-I
|
||||
<END>
|
||||
|
||||
<BEGIN> BUILD_PENTIUMgnu.debug_MACRO_RELEASE
|
||||
0
|
||||
<END>
|
||||
|
||||
<BEGIN> BUILD_PENTIUMgnu.debug_MACRO_SIZE
|
||||
sizepentium
|
||||
<END>
|
||||
|
||||
<BEGIN> BUILD_PENTIUMgnu.debug_RELEASE
|
||||
0
|
||||
<END>
|
||||
|
||||
<BEGIN> BUILD_PENTIUMgnu.debug_RO_DEPEND_PATH
|
||||
$(WIND_BASE)/target/h/
|
||||
<END>
|
||||
|
||||
<BEGIN> BUILD_PENTIUMgnu.debug_TC
|
||||
::tc_PENTIUMgnu.debug
|
||||
<END>
|
||||
|
||||
<BEGIN> BUILD__LIST
|
||||
PENTIUM2gnu.debug PENTIUM2gnu.release PENTIUMgnu.debug
|
||||
<END>
|
||||
|
||||
<BEGIN> PROJECT_FILES
|
||||
$(PRJ_DIR)/../db_load.c \
|
||||
$(PRJ_DIR)/compConfig.c
|
||||
<END>
|
||||
|
||||
<BEGIN> WCC__CDF_PATH
|
||||
$(PRJ_DIR)
|
||||
<END>
|
||||
|
||||
<BEGIN> WCC__CURRENT
|
||||
PENTIUM2gnu.debug
|
||||
<END>
|
||||
|
||||
<BEGIN> WCC__LIST
|
||||
PENTIUM2gnu.debug
|
||||
<END>
|
||||
|
||||
<BEGIN> WCC__MXR_LIBS
|
||||
lib$(CPU)$(TOOL)vx.a
|
||||
<END>
|
||||
|
||||
<BEGIN> WCC__OBJS_PATH
|
||||
$(WIND_BASE)/target/lib/obj$CPU$TOOLvx
|
||||
<END>
|
||||
|
@ -1,375 +0,0 @@
|
||||
/*-
|
||||
* See the file LICENSE for redistribution information.
|
||||
*
|
||||
* Copyright (c) 1996-2002
|
||||
* Sleepycat Software. All rights reserved.
|
||||
*/
|
||||
|
||||
#include "db_config.h"
|
||||
|
||||
#ifndef lint
|
||||
static const char copyright[] =
|
||||
"Copyright (c) 1996-2002\nSleepycat Software Inc. All rights reserved.\n";
|
||||
static const char revid[] =
|
||||
"$Id: db_printlog.c,v 11.52 2002/08/08 03:50:38 bostic Exp $";
|
||||
#endif
|
||||
|
||||
#ifndef NO_SYSTEM_INCLUDES
|
||||
#include <sys/types.h>
|
||||
|
||||
#include <ctype.h>
|
||||
#include <stdio.h>
|
||||
#include <stdlib.h>
|
||||
#include <string.h>
|
||||
#include <unistd.h>
|
||||
#endif
|
||||
|
||||
#include "db_int.h"
|
||||
#include "dbinc/db_page.h"
|
||||
#include "dbinc/btree.h"
|
||||
#include "dbinc/fop.h"
|
||||
#include "dbinc/hash.h"
|
||||
#include "dbinc/log.h"
|
||||
#include "dbinc/qam.h"
|
||||
#include "dbinc/rep.h"
|
||||
#include "dbinc/txn.h"
|
||||
|
||||
int db_printlog_main __P((int, char *[]));
|
||||
int db_printlog_usage __P((void));
|
||||
int db_printlog_version_check __P((const char *));
|
||||
int db_printlog_print_app_record __P((DB_ENV *, DBT *, DB_LSN *, db_recops));
|
||||
int db_printlog_open_rep_db __P((DB_ENV *, DB **, DBC **));
|
||||
|
||||
int
|
||||
db_printlog(args)
|
||||
char *args;
|
||||
{
|
||||
int argc;
|
||||
char **argv;
|
||||
|
||||
__db_util_arg("db_printlog", args, &argc, &argv);
|
||||
return (db_printlog_main(argc, argv) ? EXIT_FAILURE : EXIT_SUCCESS);
|
||||
}
|
||||
|
||||
#include <stdio.h>
|
||||
#define ERROR_RETURN ERROR
|
||||
|
||||
int
|
||||
db_printlog_main(argc, argv)
|
||||
int argc;
|
||||
char *argv[];
|
||||
{
|
||||
extern char *optarg;
|
||||
extern int optind, __db_getopt_reset;
|
||||
const char *progname = "db_printlog";
|
||||
DB *dbp;
|
||||
DBC *dbc;
|
||||
DB_ENV *dbenv;
|
||||
DB_LOGC *logc;
|
||||
int (**dtab) __P((DB_ENV *, DBT *, DB_LSN *, db_recops, void *));
|
||||
size_t dtabsize;
|
||||
DBT data, keydbt;
|
||||
DB_LSN key;
|
||||
int ch, e_close, exitval, nflag, rflag, ret, repflag;
|
||||
char *home, *passwd;
|
||||
|
||||
if ((ret = db_printlog_version_check(progname)) != 0)
|
||||
return (ret);
|
||||
|
||||
dbp = NULL;
|
||||
dbc = NULL;
|
||||
logc = NULL;
|
||||
e_close = exitval = nflag = rflag = repflag = 0;
|
||||
home = passwd = NULL;
|
||||
dtabsize = 0;
|
||||
dtab = NULL;
|
||||
__db_getopt_reset = 1;
|
||||
while ((ch = getopt(argc, argv, "h:NP:rRV")) != EOF)
|
||||
switch (ch) {
|
||||
case 'h':
|
||||
home = optarg;
|
||||
break;
|
||||
case 'N':
|
||||
nflag = 1;
|
||||
break;
|
||||
case 'P':
|
||||
passwd = strdup(optarg);
|
||||
memset(optarg, 0, strlen(optarg));
|
||||
if (passwd == NULL) {
|
||||
fprintf(stderr, "%s: strdup: %s\n",
|
||||
progname, strerror(errno));
|
||||
return (EXIT_FAILURE);
|
||||
}
|
||||
break;
|
||||
case 'r':
|
||||
rflag = 1;
|
||||
break;
|
||||
case 'R':
|
||||
repflag = 1;
|
||||
break;
|
||||
case 'V':
|
||||
printf("%s\n", db_version(NULL, NULL, NULL));
|
||||
return (EXIT_SUCCESS);
|
||||
case '?':
|
||||
default:
|
||||
return (db_printlog_usage());
|
||||
}
|
||||
argc -= optind;
|
||||
argv += optind;
|
||||
|
||||
if (argc > 0)
|
||||
return (db_printlog_usage());
|
||||
|
||||
/* Handle possible interruptions. */
|
||||
__db_util_siginit();
|
||||
|
||||
/*
|
||||
* Create an environment object and initialize it for error
|
||||
* reporting.
|
||||
*/
|
||||
if ((ret = db_env_create(&dbenv, 0)) != 0) {
|
||||
fprintf(stderr,
|
||||
"%s: db_env_create: %s\n", progname, db_strerror(ret));
|
||||
goto shutdown;
|
||||
}
|
||||
e_close = 1;
|
||||
|
||||
dbenv->set_errfile(dbenv, stderr);
|
||||
dbenv->set_errpfx(dbenv, progname);
|
||||
|
||||
if (nflag) {
|
||||
if ((ret = dbenv->set_flags(dbenv, DB_NOLOCKING, 1)) != 0) {
|
||||
dbenv->err(dbenv, ret, "set_flags: DB_NOLOCKING");
|
||||
goto shutdown;
|
||||
}
|
||||
if ((ret = dbenv->set_flags(dbenv, DB_NOPANIC, 1)) != 0) {
|
||||
dbenv->err(dbenv, ret, "set_flags: DB_NOPANIC");
|
||||
goto shutdown;
|
||||
}
|
||||
}
|
||||
|
||||
if (passwd != NULL && (ret = dbenv->set_encrypt(dbenv,
|
||||
passwd, DB_ENCRYPT_AES)) != 0) {
|
||||
dbenv->err(dbenv, ret, "set_passwd");
|
||||
goto shutdown;
|
||||
}
|
||||
|
||||
/*
|
||||
* Set up an app-specific dispatch function so that we can gracefully
|
||||
* handle app-specific log records.
|
||||
*/
|
||||
if ((ret = dbenv->set_app_dispatch(dbenv, db_printlog_print_app_record)) != 0) {
|
||||
dbenv->err(dbenv, ret, "app_dispatch");
|
||||
goto shutdown;
|
||||
}
|
||||
|
||||
/*
|
||||
* An environment is required, but as all we're doing is reading log
|
||||
* files, we create one if it doesn't already exist. If we create
|
||||
* it, create it private so it automatically goes away when we're done.
|
||||
* If we are reading the replication database, do not open the env
|
||||
* with logging, because we don't want to log the opens.
|
||||
*/
|
||||
if (repflag) {
|
||||
if ((ret = dbenv->open(dbenv, home,
|
||||
DB_INIT_MPOOL | DB_USE_ENVIRON, 0)) != 0 &&
|
||||
(ret = dbenv->open(dbenv, home,
|
||||
DB_CREATE | DB_INIT_MPOOL | DB_PRIVATE | DB_USE_ENVIRON, 0))
|
||||
!= 0) {
|
||||
dbenv->err(dbenv, ret, "open");
|
||||
goto shutdown;
|
||||
}
|
||||
} else if ((ret = dbenv->open(dbenv, home,
|
||||
DB_JOINENV | DB_USE_ENVIRON, 0)) != 0 &&
|
||||
(ret = dbenv->open(dbenv, home,
|
||||
DB_CREATE | DB_INIT_LOG | DB_PRIVATE | DB_USE_ENVIRON, 0)) != 0) {
|
||||
dbenv->err(dbenv, ret, "open");
|
||||
goto shutdown;
|
||||
}
|
||||
|
||||
/* Initialize print callbacks. */
|
||||
if ((ret = __bam_init_print(dbenv, &dtab, &dtabsize)) != 0 ||
|
||||
(ret = __dbreg_init_print(dbenv, &dtab, &dtabsize)) != 0 ||
|
||||
(ret = __crdel_init_print(dbenv, &dtab, &dtabsize)) != 0 ||
|
||||
(ret = __db_init_print(dbenv, &dtab, &dtabsize)) != 0 ||
|
||||
(ret = __fop_init_print(dbenv, &dtab, &dtabsize)) != 0 ||
|
||||
(ret = __qam_init_print(dbenv, &dtab, &dtabsize)) != 0 ||
|
||||
(ret = __ham_init_print(dbenv, &dtab, &dtabsize)) != 0 ||
|
||||
(ret = __txn_init_print(dbenv, &dtab, &dtabsize)) != 0) {
|
||||
dbenv->err(dbenv, ret, "callback: initialization");
|
||||
goto shutdown;
|
||||
}
|
||||
|
||||
/* Allocate a log cursor. */
|
||||
if (repflag) {
|
||||
if ((ret = db_printlog_open_rep_db(dbenv, &dbp, &dbc)) != 0)
|
||||
goto shutdown;
|
||||
} else if ((ret = dbenv->log_cursor(dbenv, &logc, 0)) != 0) {
|
||||
dbenv->err(dbenv, ret, "DB_ENV->log_cursor");
|
||||
goto shutdown;
|
||||
}
|
||||
|
||||
memset(&data, 0, sizeof(data));
|
||||
memset(&keydbt, 0, sizeof(keydbt));
|
||||
while (!__db_util_interrupted()) {
|
||||
if (repflag) {
|
||||
ret = dbc->c_get(dbc,
|
||||
&keydbt, &data, rflag ? DB_PREV : DB_NEXT);
|
||||
if (ret == 0)
|
||||
key = ((REP_CONTROL *)keydbt.data)->lsn;
|
||||
} else
|
||||
ret = logc->get(logc,
|
||||
&key, &data, rflag ? DB_PREV : DB_NEXT);
|
||||
if (ret != 0) {
|
||||
if (ret == DB_NOTFOUND)
|
||||
break;
|
||||
dbenv->err(dbenv,
|
||||
ret, repflag ? "DB_LOGC->get" : "DBC->get");
|
||||
goto shutdown;
|
||||
}
|
||||
|
||||
ret = __db_dispatch(dbenv,
|
||||
dtab, dtabsize, &data, &key, DB_TXN_PRINT, NULL);
|
||||
|
||||
/*
|
||||
* XXX
|
||||
* Just in case the underlying routines don't flush.
|
||||
*/
|
||||
(void)fflush(stdout);
|
||||
|
||||
if (ret != 0) {
|
||||
dbenv->err(dbenv, ret, "tx: dispatch");
|
||||
goto shutdown;
|
||||
}
|
||||
}
|
||||
|
||||
if (0) {
|
||||
shutdown: exitval = 1;
|
||||
}
|
||||
if (logc != NULL && (ret = logc->close(logc, 0)) != 0)
|
||||
exitval = 1;
|
||||
|
||||
if (dbc != NULL && (ret = dbc->c_close(dbc)) != 0)
|
||||
exitval = 1;
|
||||
|
||||
if (dbp != NULL && (ret = dbp->close(dbp, 0)) != 0)
|
||||
exitval = 1;
|
||||
|
||||
/*
|
||||
* The dtab is allocated by __db_add_recovery (called by *_init_print)
|
||||
* using the library malloc function (__os_malloc). It thus needs to be
|
||||
* freed using the corresponding free (__os_free).
|
||||
*/
|
||||
if (dtab != NULL)
|
||||
__os_free(dbenv, dtab);
|
||||
if (e_close && (ret = dbenv->close(dbenv, 0)) != 0) {
|
||||
exitval = 1;
|
||||
fprintf(stderr,
|
||||
"%s: dbenv->close: %s\n", progname, db_strerror(ret));
|
||||
}
|
||||
|
||||
/* Resend any caught signal. */
|
||||
__db_util_sigresend();
|
||||
|
||||
return (exitval == 0 ? EXIT_SUCCESS : EXIT_FAILURE);
|
||||
}
|
||||
|
||||
int
|
||||
db_printlog_usage()
|
||||
{
|
||||
fprintf(stderr, "%s\n",
|
||||
"usage: db_printlog [-NrV] [-h home] [-P password]");
|
||||
return (EXIT_FAILURE);
|
||||
}
|
||||
|
||||
int
|
||||
db_printlog_version_check(progname)
|
||||
const char *progname;
|
||||
{
|
||||
int v_major, v_minor, v_patch;
|
||||
|
||||
/* Make sure we're loaded with the right version of the DB library. */
|
||||
(void)db_version(&v_major, &v_minor, &v_patch);
|
||||
if (v_major != DB_VERSION_MAJOR ||
|
||||
v_minor != DB_VERSION_MINOR || v_patch != DB_VERSION_PATCH) {
|
||||
fprintf(stderr,
|
||||
"%s: version %d.%d.%d doesn't match library version %d.%d.%d\n",
|
||||
progname, DB_VERSION_MAJOR, DB_VERSION_MINOR,
|
||||
DB_VERSION_PATCH, v_major, v_minor, v_patch);
|
||||
return (EXIT_FAILURE);
|
||||
}
|
||||
return (0);
|
||||
}
|
||||
|
||||
/* Print an unknown, application-specific log record as best we can. */
|
||||
int
|
||||
db_printlog_print_app_record(dbenv, dbt, lsnp, op)
|
||||
DB_ENV *dbenv;
|
||||
DBT *dbt;
|
||||
DB_LSN *lsnp;
|
||||
db_recops op;
|
||||
{
|
||||
int ch;
|
||||
u_int32_t i, rectype;
|
||||
|
||||
DB_ASSERT(op == DB_TXN_PRINT);
|
||||
COMPQUIET(dbenv, NULL);
|
||||
|
||||
/*
|
||||
* Fetch the rectype, which always must be at the beginning of the
|
||||
* record (if dispatching is to work at all).
|
||||
*/
|
||||
memcpy(&rectype, dbt->data, sizeof(rectype));
|
||||
|
||||
/*
|
||||
* Applications may wish to customize the output here based on the
|
||||
* rectype. We just print the entire log record in the generic
|
||||
* mixed-hex-and-printable format we use for binary data.
|
||||
*/
|
||||
printf("[%lu][%lu]application specific record: rec: %lu\n",
|
||||
(u_long)lsnp->file, (u_long)lsnp->offset, (u_long)rectype);
|
||||
printf("\tdata: ");
|
||||
for (i = 0; i < dbt->size; i++) {
|
||||
ch = ((u_int8_t *)dbt->data)[i];
|
||||
printf(isprint(ch) || ch == 0x0a ? "%c" : "%#x ", ch);
|
||||
}
|
||||
printf("\n\n");
|
||||
|
||||
return (0);
|
||||
}
|
||||
|
||||
int
|
||||
db_printlog_open_rep_db(dbenv, dbpp, dbcp)
|
||||
DB_ENV *dbenv;
|
||||
DB **dbpp;
|
||||
DBC **dbcp;
|
||||
{
|
||||
int ret;
|
||||
|
||||
DB *dbp;
|
||||
*dbpp = NULL;
|
||||
*dbcp = NULL;
|
||||
|
||||
if ((ret = db_create(dbpp, dbenv, 0)) != 0) {
|
||||
dbenv->err(dbenv, ret, "db_create");
|
||||
return (ret);
|
||||
}
|
||||
|
||||
dbp = *dbpp;
|
||||
if ((ret =
|
||||
dbp->open(dbp, NULL, "__db.rep.db", NULL, DB_BTREE, 0, 0)) != 0) {
|
||||
dbenv->err(dbenv, ret, "DB->open");
|
||||
goto err;
|
||||
}
|
||||
|
||||
if ((ret = dbp->cursor(dbp, NULL, dbcp, 0)) != 0) {
|
||||
dbenv->err(dbenv, ret, "DB->cursor");
|
||||
goto err;
|
||||
}
|
||||
|
||||
return (0);
|
||||
|
||||
err: if (*dbpp != NULL)
|
||||
(void)(*dbpp)->close(*dbpp, 0);
|
||||
return (ret);
|
||||
}
|
@ -1,160 +0,0 @@
|
||||
Document file - DO NOT EDIT
|
||||
|
||||
<BEGIN> BUILD_PENTIUMgnu_BUILDRULE
|
||||
db_printlog.out
|
||||
<END>
|
||||
|
||||
<BEGIN> BUILD_PENTIUMgnu_MACRO_AR
|
||||
ar386
|
||||
<END>
|
||||
|
||||
<BEGIN> BUILD_PENTIUMgnu_MACRO_ARCHIVE
|
||||
$(PRJ_DIR)/PENTIUMgnu/db_printlog.a
|
||||
<END>
|
||||
|
||||
<BEGIN> BUILD_PENTIUMgnu_MACRO_AS
|
||||
cc386
|
||||
<END>
|
||||
|
||||
<BEGIN> BUILD_PENTIUMgnu_MACRO_CC
|
||||
cc386
|
||||
<END>
|
||||
|
||||
<BEGIN> BUILD_PENTIUMgnu_MACRO_CFLAGS
|
||||
-g \
|
||||
-mpentium \
|
||||
-ansi \
|
||||
-nostdinc \
|
||||
-DRW_MULTI_THREAD \
|
||||
-D_REENTRANT \
|
||||
-fvolatile \
|
||||
-nostdlib \
|
||||
-fno-builtin \
|
||||
-fno-defer-pop \
|
||||
-I$(PRJ_DIR)/.. \
|
||||
-I$(PRJ_DIR)/../.. \
|
||||
-I$(WIND_BASE)/target/h \
|
||||
-DCPU=PENTIUM
|
||||
<END>
|
||||
|
||||
<BEGIN> BUILD_PENTIUMgnu_MACRO_CFLAGS_AS
|
||||
-g \
|
||||
-mpentium \
|
||||
-ansi \
|
||||
-nostdinc \
|
||||
-fvolatile \
|
||||
-nostdlib \
|
||||
-fno-builtin \
|
||||
-fno-defer-pop \
|
||||
-P \
|
||||
-x \
|
||||
assembler-with-cpp \
|
||||
-I$(WIND_BASE)/target/h \
|
||||
-DCPU=PENTIUM
|
||||
<END>
|
||||
|
||||
<BEGIN> BUILD_PENTIUMgnu_MACRO_CPP
|
||||
cc386 -E -P -xc
|
||||
<END>
|
||||
|
||||
<BEGIN> BUILD_PENTIUMgnu_MACRO_LD
|
||||
ld386
|
||||
<END>
|
||||
|
||||
<BEGIN> BUILD_PENTIUMgnu_MACRO_LDDEPS
|
||||
|
||||
<END>
|
||||
|
||||
<BEGIN> BUILD_PENTIUMgnu_MACRO_LDFLAGS
|
||||
-X -N
|
||||
<END>
|
||||
|
||||
<BEGIN> BUILD_PENTIUMgnu_MACRO_LD_PARTIAL_FLAGS
|
||||
-X -r
|
||||
<END>
|
||||
|
||||
<BEGIN> BUILD_PENTIUMgnu_MACRO_NM
|
||||
nm386 -g
|
||||
<END>
|
||||
|
||||
<BEGIN> BUILD_PENTIUMgnu_MACRO_OPTION_DEFINE_MACRO
|
||||
-D
|
||||
<END>
|
||||
|
||||
<BEGIN> BUILD_PENTIUMgnu_MACRO_OPTION_INCLUDE_DIR
|
||||
-I
|
||||
<END>
|
||||
|
||||
<BEGIN> BUILD_PENTIUMgnu_MACRO_POST_BUILD_RULE
|
||||
|
||||
<END>
|
||||
|
||||
<BEGIN> BUILD_PENTIUMgnu_MACRO_PRJ_LIBS
|
||||
|
||||
<END>
|
||||
|
||||
<BEGIN> BUILD_PENTIUMgnu_MACRO_SIZE
|
||||
size386
|
||||
<END>
|
||||
|
||||
<BEGIN> BUILD_PENTIUMgnu_RO_DEPEND_PATH
|
||||
{$(WIND_BASE)/target/h/} \
|
||||
{$(WIND_BASE)/target/src/} \
|
||||
{$(WIND_BASE)/target/config/}
|
||||
<END>
|
||||
|
||||
<BEGIN> BUILD_PENTIUMgnu_TC
|
||||
::tc_PENTIUMgnu
|
||||
<END>
|
||||
|
||||
<BEGIN> BUILD_RULE_archive
|
||||
|
||||
<END>
|
||||
|
||||
<BEGIN> BUILD_RULE_db_printlog.out
|
||||
|
||||
<END>
|
||||
|
||||
<BEGIN> BUILD_RULE_objects
|
||||
|
||||
<END>
|
||||
|
||||
<BEGIN> BUILD__CURRENT
|
||||
PENTIUMgnu
|
||||
<END>
|
||||
|
||||
<BEGIN> BUILD__LIST
|
||||
PENTIUMgnu
|
||||
<END>
|
||||
|
||||
<BEGIN> CORE_INFO_TYPE
|
||||
::prj_vxApp
|
||||
<END>
|
||||
|
||||
<BEGIN> CORE_INFO_VERSION
|
||||
2.0
|
||||
<END>
|
||||
|
||||
<BEGIN> FILE_db_printlog.c_dependDone
|
||||
FALSE
|
||||
<END>
|
||||
|
||||
<BEGIN> FILE_db_printlog.c_dependencies
|
||||
|
||||
<END>
|
||||
|
||||
<BEGIN> FILE_db_printlog.c_objects
|
||||
db_printlog.o
|
||||
<END>
|
||||
|
||||
<BEGIN> FILE_db_printlog.c_tool
|
||||
C/C++ compiler
|
||||
<END>
|
||||
|
||||
<BEGIN> PROJECT_FILES
|
||||
$(PRJ_DIR)/db_printlog.c
|
||||
<END>
|
||||
|
||||
<BEGIN> userComments
|
||||
db_printlog
|
||||
<END>
|
@ -1,51 +0,0 @@
|
||||
#
|
||||
# Custom Makefile shell
|
||||
#
|
||||
# This file may be edited freely, since it will not be regenerated
|
||||
# by the project manager.
|
||||
#
|
||||
# Use this makefile to define rules to make external binaries
|
||||
# and deposit them in the $(EXTERNAL_BINARIES_DIR) directory.
|
||||
#
|
||||
# If you have specified external modules during your component
|
||||
# creation, you will find make rules already in place below.
|
||||
# You will likely have to edit these to suit your individual
|
||||
# build setup.
|
||||
#
|
||||
# You may wish to use the CPU, BUILD_SPEC or TOOL make variables in
|
||||
# your Makefile to support builds for different architectures. Use
|
||||
# the FORCE_EXTERNAL_MAKE phony target to ensure that your external
|
||||
# make always runs.
|
||||
#
|
||||
# The example below assumes that your custom makefile is in the
|
||||
# mySourceTree directory, and that the binary file it produces
|
||||
# is placed into the $(BUILD_SPEC) sub-directory.
|
||||
#
|
||||
# EXTERNAL_SOURCE_BASE = /folk/me/mySourceTree
|
||||
# EXTERNAL_MODULE = myLibrary.o
|
||||
# EXTERNAL_MAKE = make
|
||||
#
|
||||
# $(EXTERNAL_BINARIES_DIR)/$(EXTERNAL_MODULE) : FORCE_EXTERNAL_MAKE
|
||||
# $(EXTERNAL_MAKE) -C $(EXTERNAL_SOURCE_BASE) \
|
||||
# -f $(EXTERNAL_SOURCE_BASE)/Makefile \
|
||||
# CPU=$(CPU) BUILD_SPEC=$(BUILD_SPEC) $(@F)
|
||||
# $(CP) $(subst /,$(DIRCHAR),$(EXTERNAL_SOURCE_BASE)/$(BUILD_SPEC)/$(@F) $@)
|
||||
#
|
||||
# If you are not adding your external modules from the component wizard,
|
||||
# you will have to include them in your component yourself:
|
||||
#
|
||||
# From the GUI, you can do this with the Component's 'Add external module'
|
||||
# dialog.
|
||||
#
|
||||
# If you are using the command line, add the module(s) by editing the
|
||||
# MODULES line in component.cdf file, e.g.
|
||||
#
|
||||
# Component INCLUDE_MYCOMPONENT {
|
||||
#
|
||||
# MODULES foo.o goo.o \
|
||||
# myLibrary.o
|
||||
#
|
||||
|
||||
|
||||
# rules to build custom libraries
|
||||
|
@ -1,30 +0,0 @@
|
||||
/* component.cdf - dynamically updated configuration */
|
||||
|
||||
/*
|
||||
* NOTE: you may edit this file to alter the configuration
|
||||
* But all non-configuration information, including comments,
|
||||
* will be lost upon rebuilding this project.
|
||||
*/
|
||||
|
||||
/* Component information */
|
||||
|
||||
Component INCLUDE_DB_PRINTLOG {
|
||||
ENTRY_POINTS ALL_GLOBAL_SYMBOLS
|
||||
MODULES db_printlog.o
|
||||
NAME db_printlog
|
||||
PREF_DOMAIN ANY
|
||||
_INIT_ORDER usrComponentsInit
|
||||
}
|
||||
|
||||
/* EntryPoint information */
|
||||
|
||||
/* Module information */
|
||||
|
||||
Module db_printlog.o {
|
||||
|
||||
NAME db_printlog.o
|
||||
SRC_PATH_NAME $PRJ_DIR/../db_printlog.c
|
||||
}
|
||||
|
||||
/* Parameter information */
|
||||
|
@ -1,475 +0,0 @@
|
||||
Document file - DO NOT EDIT
|
||||
|
||||
<BEGIN> CORE_INFO_TYPE
|
||||
::prj_component
|
||||
<END>
|
||||
|
||||
<BEGIN> CORE_INFO_VERSION
|
||||
AE1.1
|
||||
<END>
|
||||
|
||||
<BEGIN> BUILD__CURRENT
|
||||
PENTIUM2gnu.debug
|
||||
<END>
|
||||
|
||||
<BEGIN> BUILD_PENTIUM2gnu.debug_CURRENT_TARGET
|
||||
default
|
||||
<END>
|
||||
|
||||
<BEGIN> BUILD_PENTIUM2gnu.debug_DEFAULTFORCPU
|
||||
1
|
||||
<END>
|
||||
|
||||
<BEGIN> BUILD_PENTIUM2gnu.debug_FILE_$(PRJ_DIR)/../db_printlog.c_infoTags
|
||||
toolMacro objects
|
||||
<END>
|
||||
|
||||
<BEGIN> BUILD_PENTIUM2gnu.debug_FILE_$(PRJ_DIR)/../db_printlog.c_objects
|
||||
db_printlog.o
|
||||
<END>
|
||||
|
||||
<BEGIN> BUILD_PENTIUM2gnu.debug_FILE_$(PRJ_DIR)/../db_printlog.c_toolMacro
|
||||
CC
|
||||
<END>
|
||||
|
||||
<BEGIN> BUILD_PENTIUM2gnu.debug_FILE_$(PRJ_DIR)/../db_printlog.c_objects
|
||||
db_printlog.o
|
||||
<END>
|
||||
|
||||
<BEGIN> BUILD_PENTIUM2gnu.debug_FILE_$(PRJ_DIR)/../db_printlog.c_toolMacro
|
||||
CC
|
||||
<END>
|
||||
|
||||
<BEGIN> BUILD_PENTIUM2gnu.debug_FILE_$(PRJ_DIR)/compConfig.c_infoTags
|
||||
toolMacro objects
|
||||
<END>
|
||||
|
||||
<BEGIN> BUILD_PENTIUM2gnu.debug_FILE_$(PRJ_DIR)/compConfig.c_objects
|
||||
compConfig.o
|
||||
<END>
|
||||
|
||||
<BEGIN> BUILD_PENTIUM2gnu.debug_FILE_$(PRJ_DIR)/compConfig.c_toolMacro
|
||||
CC
|
||||
<END>
|
||||
|
||||
<BEGIN> BUILD_PENTIUM2gnu.debug_MACRO_AR
|
||||
arpentium
|
||||
<END>
|
||||
|
||||
<BEGIN> BUILD_PENTIUM2gnu.debug_MACRO_AS
|
||||
ccpentium
|
||||
<END>
|
||||
|
||||
<BEGIN> BUILD_PENTIUM2gnu.debug_MACRO_CC
|
||||
ccpentium
|
||||
<END>
|
||||
|
||||
<BEGIN> BUILD_PENTIUM2gnu.debug_MACRO_CFLAGS
|
||||
-mcpu=pentiumpro \
|
||||
-march=pentiumpro \
|
||||
-ansi \
|
||||
-DRW_MULTI_THREAD \
|
||||
-D_REENTRANT \
|
||||
-g \
|
||||
-nostdlib \
|
||||
-fno-builtin \
|
||||
-fno-defer-pop \
|
||||
-MD \
|
||||
-Wall \
|
||||
-I. \
|
||||
-I$(WIND_BASE)/target/h \
|
||||
-I$(PRJ_DIR)/../.. \
|
||||
-I$(PRJ_DIR)/../../.. \
|
||||
-DCPU=PENTIUM2
|
||||
<END>
|
||||
|
||||
<BEGIN> BUILD_PENTIUM2gnu.debug_MACRO_CFLAGS_AS
|
||||
-mcpu=pentiumpro \
|
||||
-march=pentiumpro \
|
||||
-ansi \
|
||||
-g \
|
||||
-nostdlib \
|
||||
-fno-builtin \
|
||||
-fno-defer-pop \
|
||||
-P \
|
||||
-x \
|
||||
assembler-with-cpp \
|
||||
-Wall \
|
||||
-I. \
|
||||
-I$(WIND_BASE)/target/h \
|
||||
-DCPU=PENTIUM2
|
||||
<END>
|
||||
|
||||
<BEGIN> BUILD_PENTIUM2gnu.debug_MACRO_CPP
|
||||
ccpentium -E -P
|
||||
<END>
|
||||
|
||||
<BEGIN> BUILD_PENTIUM2gnu.debug_MACRO_CPPFILT
|
||||
c++filtpentium --strip-underscores
|
||||
<END>
|
||||
|
||||
<BEGIN> BUILD_PENTIUM2gnu.debug_MACRO_LD
|
||||
ldpentium
|
||||
<END>
|
||||
|
||||
<BEGIN> BUILD_PENTIUM2gnu.debug_MACRO_LDFLAGS
|
||||
-X
|
||||
<END>
|
||||
|
||||
<BEGIN> BUILD_PENTIUM2gnu.debug_MACRO_LDPARTIAL
|
||||
ccpentium \
|
||||
-B$(WIND_BASE)/host/$(WIND_HOST_TYPE)/lib/gcc-lib/ \
|
||||
-nostdlib \
|
||||
-r \
|
||||
-Wl,-X
|
||||
<END>
|
||||
|
||||
<BEGIN> BUILD_PENTIUM2gnu.debug_MACRO_LD_PARTIAL_FLAGS
|
||||
-X -r
|
||||
<END>
|
||||
|
||||
<BEGIN> BUILD_PENTIUM2gnu.debug_MACRO_NM
|
||||
nmpentium -g
|
||||
<END>
|
||||
|
||||
<BEGIN> BUILD_PENTIUM2gnu.debug_MACRO_OPTION_DEFINE_MACRO
|
||||
-D
|
||||
<END>
|
||||
|
||||
<BEGIN> BUILD_PENTIUM2gnu.debug_MACRO_OPTION_GENERATE_DEPENDENCY_FILE
|
||||
-MD
|
||||
<END>
|
||||
|
||||
<BEGIN> BUILD_PENTIUM2gnu.debug_MACRO_OPTION_INCLUDE_DIR
|
||||
-I
|
||||
<END>
|
||||
|
||||
<BEGIN> BUILD_PENTIUM2gnu.debug_MACRO_RELEASE
|
||||
0
|
||||
<END>
|
||||
|
||||
<BEGIN> BUILD_PENTIUM2gnu.debug_MACRO_SIZE
|
||||
sizepentium
|
||||
<END>
|
||||
|
||||
<BEGIN> BUILD_PENTIUM2gnu.debug_RELEASE
|
||||
0
|
||||
<END>
|
||||
|
||||
<BEGIN> BUILD_PENTIUM2gnu.debug_RO_DEPEND_PATH
|
||||
$(WIND_BASE)/target/h/
|
||||
<END>
|
||||
|
||||
<BEGIN> BUILD_PENTIUM2gnu.debug_TC
|
||||
::tc_PENTIUM2gnu.debug
|
||||
<END>
|
||||
|
||||
<BEGIN> BUILD_PENTIUM2gnu.release_DEFAULTFORCPU
|
||||
0
|
||||
<END>
|
||||
|
||||
<BEGIN> BUILD_PENTIUM2gnu.release_FILE_$(PRJ_DIR)/../db_printlog.c_infoTags
|
||||
toolMacro objects
|
||||
<END>
|
||||
|
||||
<BEGIN> BUILD_PENTIUM2gnu.release_FILE_$(PRJ_DIR)/../db_printlog.c_objects
|
||||
db_printlog.o
|
||||
<END>
|
||||
|
||||
<BEGIN> BUILD_PENTIUM2gnu.release_FILE_$(PRJ_DIR)/../db_printlog.c_toolMacro
|
||||
CC
|
||||
<END>
|
||||
|
||||
<BEGIN> BUILD_PENTIUM2gnu.release_FILE_$(PRJ_DIR)/compConfig.c_infoTags
|
||||
toolMacro objects
|
||||
<END>
|
||||
|
||||
<BEGIN> BUILD_PENTIUM2gnu.release_FILE_$(PRJ_DIR)/compConfig.c_objects
|
||||
compConfig.o
|
||||
<END>
|
||||
|
||||
<BEGIN> BUILD_PENTIUM2gnu.release_FILE_$(PRJ_DIR)/compConfig.c_toolMacro
|
||||
CC
|
||||
<END>
|
||||
|
||||
<BEGIN> BUILD_PENTIUM2gnu.release_MACRO_AR
|
||||
arpentium
|
||||
<END>
|
||||
|
||||
<BEGIN> BUILD_PENTIUM2gnu.release_MACRO_AS
|
||||
ccpentium
|
||||
<END>
|
||||
|
||||
<BEGIN> BUILD_PENTIUM2gnu.release_MACRO_CC
|
||||
ccpentium
|
||||
<END>
|
||||
|
||||
<BEGIN> BUILD_PENTIUM2gnu.release_MACRO_CFLAGS
|
||||
-mcpu=pentiumpro \
|
||||
-march=pentiumpro \
|
||||
-ansi \
|
||||
-DRW_MULTI_THREAD \
|
||||
-D_REENTRANT \
|
||||
-O2 \
|
||||
-nostdlib \
|
||||
-fno-builtin \
|
||||
-fno-defer-pop \
|
||||
-MD \
|
||||
-Wall \
|
||||
-I. \
|
||||
-I$(WIND_BASE)/target/h \
|
||||
-I$(PRJ_DIR)/../.. \
|
||||
-I$(PRJ_DIR)/../../.. \
|
||||
-DCPU=PENTIUM2
|
||||
<END>
|
||||
|
||||
<BEGIN> BUILD_PENTIUM2gnu.release_MACRO_CFLAGS_AS
|
||||
-mcpu=pentiumpro \
|
||||
-march=pentiumpro \
|
||||
-ansi \
|
||||
-O2 \
|
||||
-nostdlib \
|
||||
-fno-builtin \
|
||||
-fno-defer-pop \
|
||||
-P \
|
||||
-x \
|
||||
assembler-with-cpp \
|
||||
-Wall \
|
||||
-I. \
|
||||
-I$(WIND_BASE)/target/h \
|
||||
-DCPU=PENTIUM2
|
||||
<END>
|
||||
|
||||
<BEGIN> BUILD_PENTIUM2gnu.release_MACRO_CPP
|
||||
ccpentium -E -P
|
||||
<END>
|
||||
|
||||
<BEGIN> BUILD_PENTIUM2gnu.release_MACRO_CPPFILT
|
||||
c++filtpentium --strip-underscores
|
||||
<END>
|
||||
|
||||
<BEGIN> BUILD_PENTIUM2gnu.release_MACRO_LD
|
||||
ldpentium
|
||||
<END>
|
||||
|
||||
<BEGIN> BUILD_PENTIUM2gnu.release_MACRO_LDFLAGS
|
||||
-X
|
||||
<END>
|
||||
|
||||
<BEGIN> BUILD_PENTIUM2gnu.release_MACRO_LDPARTIAL
|
||||
ccpentium \
|
||||
-B$(WIND_BASE)/host/$(WIND_HOST_TYPE)/lib/gcc-lib/ \
|
||||
-nostdlib \
|
||||
-r \
|
||||
-Wl,-X
|
||||
<END>
|
||||
|
||||
<BEGIN> BUILD_PENTIUM2gnu.release_MACRO_LD_PARTIAL_FLAGS
|
||||
-X -r
|
||||
<END>
|
||||
|
||||
<BEGIN> BUILD_PENTIUM2gnu.release_MACRO_NM
|
||||
nmpentium -g
|
||||
<END>
|
||||
|
||||
<BEGIN> BUILD_PENTIUM2gnu.release_MACRO_OPTION_DEFINE_MACRO
|
||||
-D
|
||||
<END>
|
||||
|
||||
<BEGIN> BUILD_PENTIUM2gnu.release_MACRO_OPTION_GENERATE_DEPENDENCY_FILE
|
||||
-MD
|
||||
<END>
|
||||
|
||||
<BEGIN> BUILD_PENTIUM2gnu.release_MACRO_OPTION_INCLUDE_DIR
|
||||
-I
|
||||
<END>
|
||||
|
||||
<BEGIN> BUILD_PENTIUM2gnu.release_MACRO_RELEASE
|
||||
1
|
||||
<END>
|
||||
|
||||
<BEGIN> BUILD_PENTIUM2gnu.release_MACRO_SIZE
|
||||
sizepentium
|
||||
<END>
|
||||
|
||||
<BEGIN> BUILD_PENTIUM2gnu.release_RELEASE
|
||||
1
|
||||
<END>
|
||||
|
||||
<BEGIN> BUILD_PENTIUM2gnu.release_RO_DEPEND_PATH
|
||||
$(WIND_BASE)/target/h/
|
||||
<END>
|
||||
|
||||
<BEGIN> BUILD_PENTIUM2gnu.release_TC
|
||||
::tc_PENTIUM2gnu.release
|
||||
<END>
|
||||
|
||||
<BEGIN> BUILD_PENTIUMgnu.debug_DEFAULTFORCPU
|
||||
1
|
||||
<END>
|
||||
|
||||
<BEGIN> BUILD_PENTIUMgnu.debug_FILE_$(PRJ_DIR)/../db_printlog.c_infoTags
|
||||
toolMacro objects
|
||||
<END>
|
||||
|
||||
<BEGIN> BUILD_PENTIUMgnu.debug_FILE_$(PRJ_DIR)/../db_printlog.c_objects
|
||||
db_printlog.o
|
||||
<END>
|
||||
|
||||
<BEGIN> BUILD_PENTIUMgnu.debug_FILE_$(PRJ_DIR)/../db_printlog.c_toolMacro
|
||||
CC
|
||||
<END>
|
||||
|
||||
<BEGIN> BUILD_PENTIUMgnu.debug_FILE_$(PRJ_DIR)/compConfig.c_infoTags
|
||||
toolMacro objects
|
||||
<END>
|
||||
|
||||
<BEGIN> BUILD_PENTIUMgnu.debug_FILE_$(PRJ_DIR)/compConfig.c_objects
|
||||
compConfig.o
|
||||
<END>
|
||||
|
||||
<BEGIN> BUILD_PENTIUMgnu.debug_FILE_$(PRJ_DIR)/compConfig.c_toolMacro
|
||||
CC
|
||||
<END>
|
||||
|
||||
<BEGIN> BUILD_PENTIUMgnu.debug_MACRO_AR
|
||||
arpentium
|
||||
<END>
|
||||
|
||||
<BEGIN> BUILD_PENTIUMgnu.debug_MACRO_AS
|
||||
ccpentium
|
||||
<END>
|
||||
|
||||
<BEGIN> BUILD_PENTIUMgnu.debug_MACRO_CC
|
||||
ccpentium
|
||||
<END>
|
||||
|
||||
<BEGIN> BUILD_PENTIUMgnu.debug_MACRO_CFLAGS
|
||||
-mcpu=pentium \
|
||||
-march=pentium \
|
||||
-ansi \
|
||||
-DRW_MULTI_THREAD \
|
||||
-D_REENTRANT \
|
||||
-g \
|
||||
-nostdlib \
|
||||
-fno-builtin \
|
||||
-fno-defer-pop \
|
||||
-MD \
|
||||
-Wall \
|
||||
-I. \
|
||||
-I$(WIND_BASE)/target/h \
|
||||
-I$(PRJ_DIR)/../.. \
|
||||
-I$(PRJ_DIR)/../../.. \
|
||||
-DCPU=PENTIUM
|
||||
<END>
|
||||
|
||||
<BEGIN> BUILD_PENTIUMgnu.debug_MACRO_CFLAGS_AS
|
||||
-mcpu=pentium \
|
||||
-march=pentium \
|
||||
-ansi \
|
||||
-g \
|
||||
-nostdlib \
|
||||
-fno-builtin \
|
||||
-fno-defer-pop \
|
||||
-P \
|
||||
-x \
|
||||
assembler-with-cpp \
|
||||
-Wall \
|
||||
-I. \
|
||||
-I$(WIND_BASE)/target/h \
|
||||
-DCPU=PENTIUM
|
||||
<END>
|
||||
|
||||
<BEGIN> BUILD_PENTIUMgnu.debug_MACRO_CPP
|
||||
ccpentium -E -P
|
||||
<END>
|
||||
|
||||
<BEGIN> BUILD_PENTIUMgnu.debug_MACRO_CPPFILT
|
||||
c++filtpentium --strip-underscores
|
||||
<END>
|
||||
|
||||
<BEGIN> BUILD_PENTIUMgnu.debug_MACRO_LD
|
||||
ldpentium
|
||||
<END>
|
||||
|
||||
<BEGIN> BUILD_PENTIUMgnu.debug_MACRO_LDFLAGS
|
||||
-X
|
||||
<END>
|
||||
|
||||
<BEGIN> BUILD_PENTIUMgnu.debug_MACRO_LDPARTIAL
|
||||
ccpentium \
|
||||
-B$(WIND_BASE)/host/$(WIND_HOST_TYPE)/lib/gcc-lib/ \
|
||||
-nostdlib \
|
||||
-r \
|
||||
-Wl,-X
|
||||
<END>
|
||||
|
||||
<BEGIN> BUILD_PENTIUMgnu.debug_MACRO_LD_PARTIAL_FLAGS
|
||||
-X -r
|
||||
<END>
|
||||
|
||||
<BEGIN> BUILD_PENTIUMgnu.debug_MACRO_NM
|
||||
nmpentium -g
|
||||
<END>
|
||||
|
||||
<BEGIN> BUILD_PENTIUMgnu.debug_MACRO_OPTION_DEFINE_MACRO
|
||||
-D
|
||||
<END>
|
||||
|
||||
<BEGIN> BUILD_PENTIUMgnu.debug_MACRO_OPTION_GENERATE_DEPENDENCY_FILE
|
||||
-MD
|
||||
<END>
|
||||
|
||||
<BEGIN> BUILD_PENTIUMgnu.debug_MACRO_OPTION_INCLUDE_DIR
|
||||
-I
|
||||
<END>
|
||||
|
||||
<BEGIN> BUILD_PENTIUMgnu.debug_MACRO_RELEASE
|
||||
0
|
||||
<END>
|
||||
|
||||
<BEGIN> BUILD_PENTIUMgnu.debug_MACRO_SIZE
|
||||
sizepentium
|
||||
<END>
|
||||
|
||||
<BEGIN> BUILD_PENTIUMgnu.debug_RELEASE
|
||||
0
|
||||
<END>
|
||||
|
||||
<BEGIN> BUILD_PENTIUMgnu.debug_RO_DEPEND_PATH
|
||||
$(WIND_BASE)/target/h/
|
||||
<END>
|
||||
|
||||
<BEGIN> BUILD_PENTIUMgnu.debug_TC
|
||||
::tc_PENTIUMgnu.debug
|
||||
<END>
|
||||
|
||||
<BEGIN> BUILD__LIST
|
||||
PENTIUM2gnu.debug PENTIUM2gnu.release PENTIUMgnu.debug
|
||||
<END>
|
||||
|
||||
<BEGIN> PROJECT_FILES
|
||||
$(PRJ_DIR)/../db_printlog.c \
|
||||
$(PRJ_DIR)/compConfig.c
|
||||
<END>
|
||||
|
||||
<BEGIN> WCC__CDF_PATH
|
||||
$(PRJ_DIR)
|
||||
<END>
|
||||
|
||||
<BEGIN> WCC__CURRENT
|
||||
PENTIUM2gnu.debug
|
||||
<END>
|
||||
|
||||
<BEGIN> WCC__LIST
|
||||
PENTIUM2gnu.debug
|
||||
<END>
|
||||
|
||||
<BEGIN> WCC__MXR_LIBS
|
||||
lib$(CPU)$(TOOL)vx.a
|
||||
<END>
|
||||
|
||||
<BEGIN> WCC__OBJS_PATH
|
||||
$(WIND_BASE)/target/lib/obj$CPU$TOOLvx
|
||||
<END>
|
||||
|
@ -1,328 +0,0 @@
|
||||
/*-
|
||||
* See the file LICENSE for redistribution information.
|
||||
*
|
||||
* Copyright (c) 1996-2002
|
||||
* Sleepycat Software. All rights reserved.
|
||||
*/
|
||||
|
||||
#include "db_config.h"
|
||||
|
||||
#ifndef lint
|
||||
static const char copyright[] =
|
||||
"Copyright (c) 1996-2002\nSleepycat Software Inc. All rights reserved.\n";
|
||||
static const char revid[] =
|
||||
"$Id: db_recover.c,v 11.33 2002/03/28 20:13:42 bostic Exp $";
|
||||
#endif
|
||||
|
||||
#ifndef NO_SYSTEM_INCLUDES
|
||||
#include <sys/types.h>
|
||||
|
||||
#if TIME_WITH_SYS_TIME
|
||||
#include <sys/time.h>
|
||||
#include <time.h>
|
||||
#else
|
||||
#if HAVE_SYS_TIME_H
|
||||
#include <sys/time.h>
|
||||
#else
|
||||
#include <time.h>
|
||||
#endif
|
||||
#endif
|
||||
|
||||
#include <stdlib.h>
|
||||
#include <string.h>
|
||||
#include <unistd.h>
|
||||
#endif
|
||||
|
||||
#include "db_int.h"
|
||||
#include "dbinc/txn.h"
|
||||
|
||||
int db_recover_main __P((int, char *[]));
|
||||
int db_recover_read_timestamp __P((const char *, char *, time_t *));
|
||||
int db_recover_usage __P((void));
|
||||
int db_recover_version_check __P((const char *));
|
||||
|
||||
int
|
||||
db_recover(args)
|
||||
char *args;
|
||||
{
|
||||
int argc;
|
||||
char **argv;
|
||||
|
||||
__db_util_arg("db_recover", args, &argc, &argv);
|
||||
return (db_recover_main(argc, argv) ? EXIT_FAILURE : EXIT_SUCCESS);
|
||||
}
|
||||
|
||||
#include <stdio.h>
|
||||
#define ERROR_RETURN ERROR
|
||||
|
||||
int
|
||||
db_recover_main(argc, argv)
|
||||
int argc;
|
||||
char *argv[];
|
||||
{
|
||||
extern char *optarg;
|
||||
extern int optind, __db_getopt_reset;
|
||||
const char *progname = "db_recover";
|
||||
DB_ENV *dbenv;
|
||||
DB_TXNREGION *region;
|
||||
time_t now, timestamp;
|
||||
u_int32_t flags;
|
||||
int ch, exitval, fatal_recover, ret, retain_env, verbose;
|
||||
char *home, *passwd;
|
||||
|
||||
if ((ret = db_recover_version_check(progname)) != 0)
|
||||
return (ret);
|
||||
|
||||
home = passwd = NULL;
|
||||
timestamp = 0;
|
||||
exitval = fatal_recover = retain_env = verbose = 0;
|
||||
__db_getopt_reset = 1;
|
||||
while ((ch = getopt(argc, argv, "ceh:P:t:Vv")) != EOF)
|
||||
switch (ch) {
|
||||
case 'c':
|
||||
fatal_recover = 1;
|
||||
break;
|
||||
case 'e':
|
||||
retain_env = 1;
|
||||
break;
|
||||
case 'h':
|
||||
home = optarg;
|
||||
break;
|
||||
case 'P':
|
||||
passwd = strdup(optarg);
|
||||
memset(optarg, 0, strlen(optarg));
|
||||
if (passwd == NULL) {
|
||||
fprintf(stderr, "%s: strdup: %s\n",
|
||||
progname, strerror(errno));
|
||||
return (EXIT_FAILURE);
|
||||
}
|
||||
break;
|
||||
case 't':
|
||||
if ((ret =
|
||||
db_recover_read_timestamp(progname, optarg, ×tamp)) != 0)
|
||||
return (ret);
|
||||
break;
|
||||
case 'V':
|
||||
printf("%s\n", db_version(NULL, NULL, NULL));
|
||||
return (EXIT_SUCCESS);
|
||||
case 'v':
|
||||
verbose = 1;
|
||||
break;
|
||||
case '?':
|
||||
default:
|
||||
return (db_recover_usage());
|
||||
}
|
||||
argc -= optind;
|
||||
argv += optind;
|
||||
|
||||
if (argc != 0)
|
||||
return (db_recover_usage());
|
||||
|
||||
/* Handle possible interruptions. */
|
||||
__db_util_siginit();
|
||||
|
||||
/*
|
||||
* Create an environment object and initialize it for error
|
||||
* reporting.
|
||||
*/
|
||||
if ((ret = db_env_create(&dbenv, 0)) != 0) {
|
||||
fprintf(stderr,
|
||||
"%s: db_env_create: %s\n", progname, db_strerror(ret));
|
||||
return (EXIT_FAILURE);
|
||||
}
|
||||
dbenv->set_errfile(dbenv, stderr);
|
||||
dbenv->set_errpfx(dbenv, progname);
|
||||
if (verbose) {
|
||||
(void)dbenv->set_verbose(dbenv, DB_VERB_RECOVERY, 1);
|
||||
(void)dbenv->set_verbose(dbenv, DB_VERB_CHKPOINT, 1);
|
||||
}
|
||||
if (timestamp &&
|
||||
(ret = dbenv->set_tx_timestamp(dbenv, ×tamp)) != 0) {
|
||||
dbenv->err(dbenv, ret, "DB_ENV->set_timestamp");
|
||||
goto shutdown;
|
||||
}
|
||||
|
||||
if (passwd != NULL && (ret = dbenv->set_encrypt(dbenv,
|
||||
passwd, DB_ENCRYPT_AES)) != 0) {
|
||||
dbenv->err(dbenv, ret, "set_passwd");
|
||||
goto shutdown;
|
||||
}
|
||||
|
||||
/*
|
||||
* Initialize the environment -- we don't actually do anything
|
||||
* else, that all that's needed to run recovery.
|
||||
*
|
||||
* Note that unless the caller specified the -e option, we use a
|
||||
* private environment, as we're about to create a region, and we
|
||||
* don't want to to leave it around. If we leave the region around,
|
||||
* the application that should create it will simply join it instead,
|
||||
* and will then be running with incorrectly sized (and probably
|
||||
* terribly small) caches. Applications that use -e should almost
|
||||
* certainly use DB_CONFIG files in the directory.
|
||||
*/
|
||||
flags = 0;
|
||||
LF_SET(DB_CREATE | DB_INIT_LOCK | DB_INIT_LOG |
|
||||
DB_INIT_MPOOL | DB_INIT_TXN | DB_USE_ENVIRON);
|
||||
LF_SET(fatal_recover ? DB_RECOVER_FATAL : DB_RECOVER);
|
||||
LF_SET(retain_env ? 0 : DB_PRIVATE);
|
||||
if ((ret = dbenv->open(dbenv, home, flags, 0)) != 0) {
|
||||
dbenv->err(dbenv, ret, "DB_ENV->open");
|
||||
goto shutdown;
|
||||
}
|
||||
|
||||
if (verbose) {
|
||||
(void)time(&now);
|
||||
region = ((DB_TXNMGR *)dbenv->tx_handle)->reginfo.primary;
|
||||
dbenv->errx(dbenv, "Recovery complete at %.24s", ctime(&now));
|
||||
dbenv->errx(dbenv, "%s %lx %s [%lu][%lu]",
|
||||
"Maximum transaction id", (u_long)region->last_txnid,
|
||||
"Recovery checkpoint", (u_long)region->last_ckp.file,
|
||||
(u_long)region->last_ckp.offset);
|
||||
}
|
||||
|
||||
if (0) {
|
||||
shutdown: exitval = 1;
|
||||
}
|
||||
|
||||
/* Clean up the environment. */
|
||||
if ((ret = dbenv->close(dbenv, 0)) != 0) {
|
||||
exitval = 1;
|
||||
fprintf(stderr,
|
||||
"%s: dbenv->close: %s\n", progname, db_strerror(ret));
|
||||
}
|
||||
|
||||
/* Resend any caught signal. */
|
||||
__db_util_sigresend();
|
||||
|
||||
return (exitval == 0 ? EXIT_SUCCESS : EXIT_FAILURE);
|
||||
}
|
||||
|
||||
#define ATOI2(ar) ((ar)[0] - '0') * 10 + ((ar)[1] - '0'); (ar) += 2;
|
||||
|
||||
/*
|
||||
* read_timestamp --
|
||||
* Convert a time argument to Epoch seconds.
|
||||
*
|
||||
* Copyright (c) 1993
|
||||
* The Regents of the University of California. All rights reserved.
|
||||
*
|
||||
* Redistribution and use in source and binary forms, with or without
|
||||
* modification, are permitted provided that the following conditions
|
||||
* are met:
|
||||
* 1. Redistributions of source code must retain the above copyright
|
||||
* notice, this list of conditions and the following disclaimer.
|
||||
* 2. Redistributions in binary form must reproduce the above copyright
|
||||
* notice, this list of conditions and the following disclaimer in the
|
||||
* documentation and/or other materials provided with the distribution.
|
||||
* 3. Neither the name of the University nor the names of its contributors
|
||||
* may be used to endorse or promote products derived from this software
|
||||
* without specific prior written permission.
|
||||
*
|
||||
* THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND
|
||||
* ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
|
||||
* IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
|
||||
* ARE DISCLAIMED. IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE
|
||||
* FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
|
||||
* DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
|
||||
* OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
|
||||
* HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
|
||||
* LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
|
||||
* OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
|
||||
* SUCH DAMAGE.
|
||||
*/
|
||||
int
|
||||
db_recover_read_timestamp(progname, arg, timep)
|
||||
const char *progname;
|
||||
char *arg;
|
||||
time_t *timep;
|
||||
{
|
||||
struct tm *t;
|
||||
time_t now;
|
||||
int yearset;
|
||||
char *p;
|
||||
/* Start with the current time. */
|
||||
(void)time(&now);
|
||||
if ((t = localtime(&now)) == NULL) {
|
||||
fprintf(stderr,
|
||||
"%s: localtime: %s\n", progname, strerror(errno));
|
||||
return (EXIT_FAILURE);
|
||||
}
|
||||
/* [[CC]YY]MMDDhhmm[.SS] */
|
||||
if ((p = strchr(arg, '.')) == NULL)
|
||||
t->tm_sec = 0; /* Seconds defaults to 0. */
|
||||
else {
|
||||
if (strlen(p + 1) != 2)
|
||||
goto terr;
|
||||
*p++ = '\0';
|
||||
t->tm_sec = ATOI2(p);
|
||||
}
|
||||
|
||||
yearset = 0;
|
||||
switch(strlen(arg)) {
|
||||
case 12: /* CCYYMMDDhhmm */
|
||||
t->tm_year = ATOI2(arg);
|
||||
t->tm_year *= 100;
|
||||
yearset = 1;
|
||||
/* FALLTHROUGH */
|
||||
case 10: /* YYMMDDhhmm */
|
||||
if (yearset) {
|
||||
yearset = ATOI2(arg);
|
||||
t->tm_year += yearset;
|
||||
} else {
|
||||
yearset = ATOI2(arg);
|
||||
if (yearset < 69)
|
||||
t->tm_year = yearset + 2000;
|
||||
else
|
||||
t->tm_year = yearset + 1900;
|
||||
}
|
||||
t->tm_year -= 1900; /* Convert to UNIX time. */
|
||||
/* FALLTHROUGH */
|
||||
case 8: /* MMDDhhmm */
|
||||
t->tm_mon = ATOI2(arg);
|
||||
--t->tm_mon; /* Convert from 01-12 to 00-11 */
|
||||
t->tm_mday = ATOI2(arg);
|
||||
t->tm_hour = ATOI2(arg);
|
||||
t->tm_min = ATOI2(arg);
|
||||
break;
|
||||
default:
|
||||
goto terr;
|
||||
}
|
||||
|
||||
t->tm_isdst = -1; /* Figure out DST. */
|
||||
|
||||
*timep = mktime(t);
|
||||
if (*timep == -1) {
|
||||
terr: fprintf(stderr,
|
||||
"%s: out of range or illegal time specification: [[CC]YY]MMDDhhmm[.SS]",
|
||||
progname);
|
||||
return (EXIT_FAILURE);
|
||||
}
|
||||
return (0);
|
||||
}
|
||||
|
||||
int
|
||||
db_recover_usage()
|
||||
{
|
||||
(void)fprintf(stderr, "%s\n",
|
||||
"usage: db_recover [-ceVv] [-h home] [-P password] [-t [[CC]YY]MMDDhhmm[.SS]]");
|
||||
return (EXIT_FAILURE);
|
||||
}
|
||||
|
||||
int
|
||||
db_recover_version_check(progname)
|
||||
const char *progname;
|
||||
{
|
||||
int v_major, v_minor, v_patch;
|
||||
|
||||
/* Make sure we're loaded with the right version of the DB library. */
|
||||
(void)db_version(&v_major, &v_minor, &v_patch);
|
||||
if (v_major != DB_VERSION_MAJOR ||
|
||||
v_minor != DB_VERSION_MINOR || v_patch != DB_VERSION_PATCH) {
|
||||
fprintf(stderr,
|
||||
"%s: version %d.%d.%d doesn't match library version %d.%d.%d\n",
|
||||
progname, DB_VERSION_MAJOR, DB_VERSION_MINOR,
|
||||
DB_VERSION_PATCH, v_major, v_minor, v_patch);
|
||||
return (EXIT_FAILURE);
|
||||
}
|
||||
return (0);
|
||||
}
|
@ -1,160 +0,0 @@
|
||||
Document file - DO NOT EDIT
|
||||
|
||||
<BEGIN> BUILD_PENTIUMgnu_BUILDRULE
|
||||
db_recover.out
|
||||
<END>
|
||||
|
||||
<BEGIN> BUILD_PENTIUMgnu_MACRO_AR
|
||||
ar386
|
||||
<END>
|
||||
|
||||
<BEGIN> BUILD_PENTIUMgnu_MACRO_ARCHIVE
|
||||
$(PRJ_DIR)/PENTIUMgnu/db_recover.a
|
||||
<END>
|
||||
|
||||
<BEGIN> BUILD_PENTIUMgnu_MACRO_AS
|
||||
cc386
|
||||
<END>
|
||||
|
||||
<BEGIN> BUILD_PENTIUMgnu_MACRO_CC
|
||||
cc386
|
||||
<END>
|
||||
|
||||
<BEGIN> BUILD_PENTIUMgnu_MACRO_CFLAGS
|
||||
-g \
|
||||
-mpentium \
|
||||
-ansi \
|
||||
-nostdinc \
|
||||
-DRW_MULTI_THREAD \
|
||||
-D_REENTRANT \
|
||||
-fvolatile \
|
||||
-nostdlib \
|
||||
-fno-builtin \
|
||||
-fno-defer-pop \
|
||||
-I$(PRJ_DIR)/.. \
|
||||
-I$(PRJ_DIR)/../.. \
|
||||
-I$(WIND_BASE)/target/h \
|
||||
-DCPU=PENTIUM
|
||||
<END>
|
||||
|
||||
<BEGIN> BUILD_PENTIUMgnu_MACRO_CFLAGS_AS
|
||||
-g \
|
||||
-mpentium \
|
||||
-ansi \
|
||||
-nostdinc \
|
||||
-fvolatile \
|
||||
-nostdlib \
|
||||
-fno-builtin \
|
||||
-fno-defer-pop \
|
||||
-P \
|
||||
-x \
|
||||
assembler-with-cpp \
|
||||
-I$(WIND_BASE)/target/h \
|
||||
-DCPU=PENTIUM
|
||||
<END>
|
||||
|
||||
<BEGIN> BUILD_PENTIUMgnu_MACRO_CPP
|
||||
cc386 -E -P -xc
|
||||
<END>
|
||||
|
||||
<BEGIN> BUILD_PENTIUMgnu_MACRO_LD
|
||||
ld386
|
||||
<END>
|
||||
|
||||
<BEGIN> BUILD_PENTIUMgnu_MACRO_LDDEPS
|
||||
|
||||
<END>
|
||||
|
||||
<BEGIN> BUILD_PENTIUMgnu_MACRO_LDFLAGS
|
||||
-X -N
|
||||
<END>
|
||||
|
||||
<BEGIN> BUILD_PENTIUMgnu_MACRO_LD_PARTIAL_FLAGS
|
||||
-X -r
|
||||
<END>
|
||||
|
||||
<BEGIN> BUILD_PENTIUMgnu_MACRO_NM
|
||||
nm386 -g
|
||||
<END>
|
||||
|
||||
<BEGIN> BUILD_PENTIUMgnu_MACRO_OPTION_DEFINE_MACRO
|
||||
-D
|
||||
<END>
|
||||
|
||||
<BEGIN> BUILD_PENTIUMgnu_MACRO_OPTION_INCLUDE_DIR
|
||||
-I
|
||||
<END>
|
||||
|
||||
<BEGIN> BUILD_PENTIUMgnu_MACRO_POST_BUILD_RULE
|
||||
|
||||
<END>
|
||||
|
||||
<BEGIN> BUILD_PENTIUMgnu_MACRO_PRJ_LIBS
|
||||
|
||||
<END>
|
||||
|
||||
<BEGIN> BUILD_PENTIUMgnu_MACRO_SIZE
|
||||
size386
|
||||
<END>
|
||||
|
||||
<BEGIN> BUILD_PENTIUMgnu_RO_DEPEND_PATH
|
||||
{$(WIND_BASE)/target/h/} \
|
||||
{$(WIND_BASE)/target/src/} \
|
||||
{$(WIND_BASE)/target/config/}
|
||||
<END>
|
||||
|
||||
<BEGIN> BUILD_PENTIUMgnu_TC
|
||||
::tc_PENTIUMgnu
|
||||
<END>
|
||||
|
||||
<BEGIN> BUILD_RULE_archive
|
||||
|
||||
<END>
|
||||
|
||||
<BEGIN> BUILD_RULE_db_recover.out
|
||||
|
||||
<END>
|
||||
|
||||
<BEGIN> BUILD_RULE_objects
|
||||
|
||||
<END>
|
||||
|
||||
<BEGIN> BUILD__CURRENT
|
||||
PENTIUMgnu
|
||||
<END>
|
||||
|
||||
<BEGIN> BUILD__LIST
|
||||
PENTIUMgnu
|
||||
<END>
|
||||
|
||||
<BEGIN> CORE_INFO_TYPE
|
||||
::prj_vxApp
|
||||
<END>
|
||||
|
||||
<BEGIN> CORE_INFO_VERSION
|
||||
2.0
|
||||
<END>
|
||||
|
||||
<BEGIN> FILE_db_recover.c_dependDone
|
||||
FALSE
|
||||
<END>
|
||||
|
||||
<BEGIN> FILE_db_recover.c_dependencies
|
||||
|
||||
<END>
|
||||
|
||||
<BEGIN> FILE_db_recover.c_objects
|
||||
db_recover.o
|
||||
<END>
|
||||
|
||||
<BEGIN> FILE_db_recover.c_tool
|
||||
C/C++ compiler
|
||||
<END>
|
||||
|
||||
<BEGIN> PROJECT_FILES
|
||||
$(PRJ_DIR)/db_recover.c
|
||||
<END>
|
||||
|
||||
<BEGIN> userComments
|
||||
db_recover
|
||||
<END>
|
@ -1,51 +0,0 @@
|
||||
#
|
||||
# Custom Makefile shell
|
||||
#
|
||||
# This file may be edited freely, since it will not be regenerated
|
||||
# by the project manager.
|
||||
#
|
||||
# Use this makefile to define rules to make external binaries
|
||||
# and deposit them in the $(EXTERNAL_BINARIES_DIR) directory.
|
||||
#
|
||||
# If you have specified external modules during your component
|
||||
# creation, you will find make rules already in place below.
|
||||
# You will likely have to edit these to suit your individual
|
||||
# build setup.
|
||||
#
|
||||
# You may wish to use the CPU, BUILD_SPEC or TOOL make variables in
|
||||
# your Makefile to support builds for different architectures. Use
|
||||
# the FORCE_EXTERNAL_MAKE phony target to ensure that your external
|
||||
# make always runs.
|
||||
#
|
||||
# The example below assumes that your custom makefile is in the
|
||||
# mySourceTree directory, and that the binary file it produces
|
||||
# is placed into the $(BUILD_SPEC) sub-directory.
|
||||
#
|
||||
# EXTERNAL_SOURCE_BASE = /folk/me/mySourceTree
|
||||
# EXTERNAL_MODULE = myLibrary.o
|
||||
# EXTERNAL_MAKE = make
|
||||
#
|
||||
# $(EXTERNAL_BINARIES_DIR)/$(EXTERNAL_MODULE) : FORCE_EXTERNAL_MAKE
|
||||
# $(EXTERNAL_MAKE) -C $(EXTERNAL_SOURCE_BASE) \
|
||||
# -f $(EXTERNAL_SOURCE_BASE)/Makefile \
|
||||
# CPU=$(CPU) BUILD_SPEC=$(BUILD_SPEC) $(@F)
|
||||
# $(CP) $(subst /,$(DIRCHAR),$(EXTERNAL_SOURCE_BASE)/$(BUILD_SPEC)/$(@F) $@)
|
||||
#
|
||||
# If you are not adding your external modules from the component wizard,
|
||||
# you will have to include them in your component yourself:
|
||||
#
|
||||
# From the GUI, you can do this with the Component's 'Add external module'
|
||||
# dialog.
|
||||
#
|
||||
# If you are using the command line, add the module(s) by editing the
|
||||
# MODULES line in component.cdf file, e.g.
|
||||
#
|
||||
# Component INCLUDE_MYCOMPONENT {
|
||||
#
|
||||
# MODULES foo.o goo.o \
|
||||
# myLibrary.o
|
||||
#
|
||||
|
||||
|
||||
# rules to build custom libraries
|
||||
|
@ -1,30 +0,0 @@
|
||||
/* component.cdf - dynamically updated configuration */
|
||||
|
||||
/*
|
||||
* NOTE: you may edit this file to alter the configuration
|
||||
* But all non-configuration information, including comments,
|
||||
* will be lost upon rebuilding this project.
|
||||
*/
|
||||
|
||||
/* Component information */
|
||||
|
||||
Component INCLUDE_DB_RECOVER {
|
||||
ENTRY_POINTS ALL_GLOBAL_SYMBOLS
|
||||
MODULES db_recover.o
|
||||
NAME db_recover
|
||||
PREF_DOMAIN ANY
|
||||
_INIT_ORDER usrComponentsInit
|
||||
}
|
||||
|
||||
/* EntryPoint information */
|
||||
|
||||
/* Module information */
|
||||
|
||||
Module db_recover.o {
|
||||
|
||||
NAME db_recover.o
|
||||
SRC_PATH_NAME $PRJ_DIR/../db_recover.c
|
||||
}
|
||||
|
||||
/* Parameter information */
|
||||
|
@ -1,475 +0,0 @@
|
||||
Document file - DO NOT EDIT
|
||||
|
||||
<BEGIN> CORE_INFO_TYPE
|
||||
::prj_component
|
||||
<END>
|
||||
|
||||
<BEGIN> CORE_INFO_VERSION
|
||||
AE1.1
|
||||
<END>
|
||||
|
||||
<BEGIN> BUILD__CURRENT
|
||||
PENTIUM2gnu.debug
|
||||
<END>
|
||||
|
||||
<BEGIN> BUILD_PENTIUM2gnu.debug_CURRENT_TARGET
|
||||
default
|
||||
<END>
|
||||
|
||||
<BEGIN> BUILD_PENTIUM2gnu.debug_DEFAULTFORCPU
|
||||
1
|
||||
<END>
|
||||
|
||||
<BEGIN> BUILD_PENTIUM2gnu.debug_FILE_$(PRJ_DIR)/../db_recover.c_infoTags
|
||||
toolMacro objects
|
||||
<END>
|
||||
|
||||
<BEGIN> BUILD_PENTIUM2gnu.debug_FILE_$(PRJ_DIR)/../db_recover.c_objects
|
||||
db_recover.o
|
||||
<END>
|
||||
|
||||
<BEGIN> BUILD_PENTIUM2gnu.debug_FILE_$(PRJ_DIR)/../db_recover.c_toolMacro
|
||||
CC
|
||||
<END>
|
||||
|
||||
<BEGIN> BUILD_PENTIUM2gnu.debug_FILE_$(PRJ_DIR)/../db_recover.c_objects
|
||||
db_recover.o
|
||||
<END>
|
||||
|
||||
<BEGIN> BUILD_PENTIUM2gnu.debug_FILE_$(PRJ_DIR)/../db_recover.c_toolMacro
|
||||
CC
|
||||
<END>
|
||||
|
||||
<BEGIN> BUILD_PENTIUM2gnu.debug_FILE_$(PRJ_DIR)/compConfig.c_infoTags
|
||||
toolMacro objects
|
||||
<END>
|
||||
|
||||
<BEGIN> BUILD_PENTIUM2gnu.debug_FILE_$(PRJ_DIR)/compConfig.c_objects
|
||||
compConfig.o
|
||||
<END>
|
||||
|
||||
<BEGIN> BUILD_PENTIUM2gnu.debug_FILE_$(PRJ_DIR)/compConfig.c_toolMacro
|
||||
CC
|
||||
<END>
|
||||
|
||||
<BEGIN> BUILD_PENTIUM2gnu.debug_MACRO_AR
|
||||
arpentium
|
||||
<END>
|
||||
|
||||
<BEGIN> BUILD_PENTIUM2gnu.debug_MACRO_AS
|
||||
ccpentium
|
||||
<END>
|
||||
|
||||
<BEGIN> BUILD_PENTIUM2gnu.debug_MACRO_CC
|
||||
ccpentium
|
||||
<END>
|
||||
|
||||
<BEGIN> BUILD_PENTIUM2gnu.debug_MACRO_CFLAGS
|
||||
-mcpu=pentiumpro \
|
||||
-march=pentiumpro \
|
||||
-ansi \
|
||||
-DRW_MULTI_THREAD \
|
||||
-D_REENTRANT \
|
||||
-g \
|
||||
-nostdlib \
|
||||
-fno-builtin \
|
||||
-fno-defer-pop \
|
||||
-MD \
|
||||
-Wall \
|
||||
-I. \
|
||||
-I$(WIND_BASE)/target/h \
|
||||
-I$(PRJ_DIR)/../.. \
|
||||
-I$(PRJ_DIR)/../../.. \
|
||||
-DCPU=PENTIUM2
|
||||
<END>
|
||||
|
||||
<BEGIN> BUILD_PENTIUM2gnu.debug_MACRO_CFLAGS_AS
|
||||
-mcpu=pentiumpro \
|
||||
-march=pentiumpro \
|
||||
-ansi \
|
||||
-g \
|
||||
-nostdlib \
|
||||
-fno-builtin \
|
||||
-fno-defer-pop \
|
||||
-P \
|
||||
-x \
|
||||
assembler-with-cpp \
|
||||
-Wall \
|
||||
-I. \
|
||||
-I$(WIND_BASE)/target/h \
|
||||
-DCPU=PENTIUM2
|
||||
<END>
|
||||
|
||||
<BEGIN> BUILD_PENTIUM2gnu.debug_MACRO_CPP
|
||||
ccpentium -E -P
|
||||
<END>
|
||||
|
||||
<BEGIN> BUILD_PENTIUM2gnu.debug_MACRO_CPPFILT
|
||||
c++filtpentium --strip-underscores
|
||||
<END>
|
||||
|
||||
<BEGIN> BUILD_PENTIUM2gnu.debug_MACRO_LD
|
||||
ldpentium
|
||||
<END>
|
||||
|
||||
<BEGIN> BUILD_PENTIUM2gnu.debug_MACRO_LDFLAGS
|
||||
-X
|
||||
<END>
|
||||
|
||||
<BEGIN> BUILD_PENTIUM2gnu.debug_MACRO_LDPARTIAL
|
||||
ccpentium \
|
||||
-B$(WIND_BASE)/host/$(WIND_HOST_TYPE)/lib/gcc-lib/ \
|
||||
-nostdlib \
|
||||
-r \
|
||||
-Wl,-X
|
||||
<END>
|
||||
|
||||
<BEGIN> BUILD_PENTIUM2gnu.debug_MACRO_LD_PARTIAL_FLAGS
|
||||
-X -r
|
||||
<END>
|
||||
|
||||
<BEGIN> BUILD_PENTIUM2gnu.debug_MACRO_NM
|
||||
nmpentium -g
|
||||
<END>
|
||||
|
||||
<BEGIN> BUILD_PENTIUM2gnu.debug_MACRO_OPTION_DEFINE_MACRO
|
||||
-D
|
||||
<END>
|
||||
|
||||
<BEGIN> BUILD_PENTIUM2gnu.debug_MACRO_OPTION_GENERATE_DEPENDENCY_FILE
|
||||
-MD
|
||||
<END>
|
||||
|
||||
<BEGIN> BUILD_PENTIUM2gnu.debug_MACRO_OPTION_INCLUDE_DIR
|
||||
-I
|
||||
<END>
|
||||
|
||||
<BEGIN> BUILD_PENTIUM2gnu.debug_MACRO_RELEASE
|
||||
0
|
||||
<END>
|
||||
|
||||
<BEGIN> BUILD_PENTIUM2gnu.debug_MACRO_SIZE
|
||||
sizepentium
|
||||
<END>
|
||||
|
||||
<BEGIN> BUILD_PENTIUM2gnu.debug_RELEASE
|
||||
0
|
||||
<END>
|
||||
|
||||
<BEGIN> BUILD_PENTIUM2gnu.debug_RO_DEPEND_PATH
|
||||
$(WIND_BASE)/target/h/
|
||||
<END>
|
||||
|
||||
<BEGIN> BUILD_PENTIUM2gnu.debug_TC
|
||||
::tc_PENTIUM2gnu.debug
|
||||
<END>
|
||||
|
||||
<BEGIN> BUILD_PENTIUM2gnu.release_DEFAULTFORCPU
|
||||
0
|
||||
<END>
|
||||
|
||||
<BEGIN> BUILD_PENTIUM2gnu.release_FILE_$(PRJ_DIR)/../db_recover.c_infoTags
|
||||
toolMacro objects
|
||||
<END>
|
||||
|
||||
<BEGIN> BUILD_PENTIUM2gnu.release_FILE_$(PRJ_DIR)/../db_recover.c_objects
|
||||
db_recover.o
|
||||
<END>
|
||||
|
||||
<BEGIN> BUILD_PENTIUM2gnu.release_FILE_$(PRJ_DIR)/../db_recover.c_toolMacro
|
||||
CC
|
||||
<END>
|
||||
|
||||
<BEGIN> BUILD_PENTIUM2gnu.release_FILE_$(PRJ_DIR)/compConfig.c_infoTags
|
||||
toolMacro objects
|
||||
<END>
|
||||
|
||||
<BEGIN> BUILD_PENTIUM2gnu.release_FILE_$(PRJ_DIR)/compConfig.c_objects
|
||||
compConfig.o
|
||||
<END>
|
||||
|
||||
<BEGIN> BUILD_PENTIUM2gnu.release_FILE_$(PRJ_DIR)/compConfig.c_toolMacro
|
||||
CC
|
||||
<END>
|
||||
|
||||
<BEGIN> BUILD_PENTIUM2gnu.release_MACRO_AR
|
||||
arpentium
|
||||
<END>
|
||||
|
||||
<BEGIN> BUILD_PENTIUM2gnu.release_MACRO_AS
|
||||
ccpentium
|
||||
<END>
|
||||
|
||||
<BEGIN> BUILD_PENTIUM2gnu.release_MACRO_CC
|
||||
ccpentium
|
||||
<END>
|
||||
|
||||
<BEGIN> BUILD_PENTIUM2gnu.release_MACRO_CFLAGS
|
||||
-mcpu=pentiumpro \
|
||||
-march=pentiumpro \
|
||||
-ansi \
|
||||
-DRW_MULTI_THREAD \
|
||||
-D_REENTRANT \
|
||||
-O2 \
|
||||
-nostdlib \
|
||||
-fno-builtin \
|
||||
-fno-defer-pop \
|
||||
-MD \
|
||||
-Wall \
|
||||
-I. \
|
||||
-I$(WIND_BASE)/target/h \
|
||||
-I$(PRJ_DIR)/../.. \
|
||||
-I$(PRJ_DIR)/../../.. \
|
||||
-DCPU=PENTIUM2
|
||||
<END>
|
||||
|
||||
<BEGIN> BUILD_PENTIUM2gnu.release_MACRO_CFLAGS_AS
|
||||
-mcpu=pentiumpro \
|
||||
-march=pentiumpro \
|
||||
-ansi \
|
||||
-O2 \
|
||||
-nostdlib \
|
||||
-fno-builtin \
|
||||
-fno-defer-pop \
|
||||
-P \
|
||||
-x \
|
||||
assembler-with-cpp \
|
||||
-Wall \
|
||||
-I. \
|
||||
-I$(WIND_BASE)/target/h \
|
||||
-DCPU=PENTIUM2
|
||||
<END>
|
||||
|
||||
<BEGIN> BUILD_PENTIUM2gnu.release_MACRO_CPP
|
||||
ccpentium -E -P
|
||||
<END>
|
||||
|
||||
<BEGIN> BUILD_PENTIUM2gnu.release_MACRO_CPPFILT
|
||||
c++filtpentium --strip-underscores
|
||||
<END>
|
||||
|
||||
<BEGIN> BUILD_PENTIUM2gnu.release_MACRO_LD
|
||||
ldpentium
|
||||
<END>
|
||||
|
||||
<BEGIN> BUILD_PENTIUM2gnu.release_MACRO_LDFLAGS
|
||||
-X
|
||||
<END>
|
||||
|
||||
<BEGIN> BUILD_PENTIUM2gnu.release_MACRO_LDPARTIAL
|
||||
ccpentium \
|
||||
-B$(WIND_BASE)/host/$(WIND_HOST_TYPE)/lib/gcc-lib/ \
|
||||
-nostdlib \
|
||||
-r \
|
||||
-Wl,-X
|
||||
<END>
|
||||
|
||||
<BEGIN> BUILD_PENTIUM2gnu.release_MACRO_LD_PARTIAL_FLAGS
|
||||
-X -r
|
||||
<END>
|
||||
|
||||
<BEGIN> BUILD_PENTIUM2gnu.release_MACRO_NM
|
||||
nmpentium -g
|
||||
<END>
|
||||
|
||||
<BEGIN> BUILD_PENTIUM2gnu.release_MACRO_OPTION_DEFINE_MACRO
|
||||
-D
|
||||
<END>
|
||||
|
||||
<BEGIN> BUILD_PENTIUM2gnu.release_MACRO_OPTION_GENERATE_DEPENDENCY_FILE
|
||||
-MD
|
||||
<END>
|
||||
|
||||
<BEGIN> BUILD_PENTIUM2gnu.release_MACRO_OPTION_INCLUDE_DIR
|
||||
-I
|
||||
<END>
|
||||
|
||||
<BEGIN> BUILD_PENTIUM2gnu.release_MACRO_RELEASE
|
||||
1
|
||||
<END>
|
||||
|
||||
<BEGIN> BUILD_PENTIUM2gnu.release_MACRO_SIZE
|
||||
sizepentium
|
||||
<END>
|
||||
|
||||
<BEGIN> BUILD_PENTIUM2gnu.release_RELEASE
|
||||
1
|
||||
<END>
|
||||
|
||||
<BEGIN> BUILD_PENTIUM2gnu.release_RO_DEPEND_PATH
|
||||
$(WIND_BASE)/target/h/
|
||||
<END>
|
||||
|
||||
<BEGIN> BUILD_PENTIUM2gnu.release_TC
|
||||
::tc_PENTIUM2gnu.release
|
||||
<END>
|
||||
|
||||
<BEGIN> BUILD_PENTIUMgnu.debug_DEFAULTFORCPU
|
||||
1
|
||||
<END>
|
||||
|
||||
<BEGIN> BUILD_PENTIUMgnu.debug_FILE_$(PRJ_DIR)/../db_recover.c_infoTags
|
||||
toolMacro objects
|
||||
<END>
|
||||
|
||||
<BEGIN> BUILD_PENTIUMgnu.debug_FILE_$(PRJ_DIR)/../db_recover.c_objects
|
||||
db_recover.o
|
||||
<END>
|
||||
|
||||
<BEGIN> BUILD_PENTIUMgnu.debug_FILE_$(PRJ_DIR)/../db_recover.c_toolMacro
|
||||
CC
|
||||
<END>
|
||||
|
||||
<BEGIN> BUILD_PENTIUMgnu.debug_FILE_$(PRJ_DIR)/compConfig.c_infoTags
|
||||
toolMacro objects
|
||||
<END>
|
||||
|
||||
<BEGIN> BUILD_PENTIUMgnu.debug_FILE_$(PRJ_DIR)/compConfig.c_objects
|
||||
compConfig.o
|
||||
<END>
|
||||
|
||||
<BEGIN> BUILD_PENTIUMgnu.debug_FILE_$(PRJ_DIR)/compConfig.c_toolMacro
|
||||
CC
|
||||
<END>
|
||||
|
||||
<BEGIN> BUILD_PENTIUMgnu.debug_MACRO_AR
|
||||
arpentium
|
||||
<END>
|
||||
|
||||
<BEGIN> BUILD_PENTIUMgnu.debug_MACRO_AS
|
||||
ccpentium
|
||||
<END>
|
||||
|
||||
<BEGIN> BUILD_PENTIUMgnu.debug_MACRO_CC
|
||||
ccpentium
|
||||
<END>
|
||||
|
||||
<BEGIN> BUILD_PENTIUMgnu.debug_MACRO_CFLAGS
|
||||
-mcpu=pentium \
|
||||
-march=pentium \
|
||||
-ansi \
|
||||
-DRW_MULTI_THREAD \
|
||||
-D_REENTRANT \
|
||||
-g \
|
||||
-nostdlib \
|
||||
-fno-builtin \
|
||||
-fno-defer-pop \
|
||||
-MD \
|
||||
-Wall \
|
||||
-I. \
|
||||
-I$(WIND_BASE)/target/h \
|
||||
-I$(PRJ_DIR)/../.. \
|
||||
-I$(PRJ_DIR)/../../.. \
|
||||
-DCPU=PENTIUM
|
||||
<END>
|
||||
|
||||
<BEGIN> BUILD_PENTIUMgnu.debug_MACRO_CFLAGS_AS
|
||||
-mcpu=pentium \
|
||||
-march=pentium \
|
||||
-ansi \
|
||||
-g \
|
||||
-nostdlib \
|
||||
-fno-builtin \
|
||||
-fno-defer-pop \
|
||||
-P \
|
||||
-x \
|
||||
assembler-with-cpp \
|
||||
-Wall \
|
||||
-I. \
|
||||
-I$(WIND_BASE)/target/h \
|
||||
-DCPU=PENTIUM
|
||||
<END>
|
||||
|
||||
<BEGIN> BUILD_PENTIUMgnu.debug_MACRO_CPP
|
||||
ccpentium -E -P
|
||||
<END>
|
||||
|
||||
<BEGIN> BUILD_PENTIUMgnu.debug_MACRO_CPPFILT
|
||||
c++filtpentium --strip-underscores
|
||||
<END>
|
||||
|
||||
<BEGIN> BUILD_PENTIUMgnu.debug_MACRO_LD
|
||||
ldpentium
|
||||
<END>
|
||||
|
||||
<BEGIN> BUILD_PENTIUMgnu.debug_MACRO_LDFLAGS
|
||||
-X
|
||||
<END>
|
||||
|
||||
<BEGIN> BUILD_PENTIUMgnu.debug_MACRO_LDPARTIAL
|
||||
ccpentium \
|
||||
-B$(WIND_BASE)/host/$(WIND_HOST_TYPE)/lib/gcc-lib/ \
|
||||
-nostdlib \
|
||||
-r \
|
||||
-Wl,-X
|
||||
<END>
|
||||
|
||||
<BEGIN> BUILD_PENTIUMgnu.debug_MACRO_LD_PARTIAL_FLAGS
|
||||
-X -r
|
||||
<END>
|
||||
|
||||
<BEGIN> BUILD_PENTIUMgnu.debug_MACRO_NM
|
||||
nmpentium -g
|
||||
<END>
|
||||
|
||||
<BEGIN> BUILD_PENTIUMgnu.debug_MACRO_OPTION_DEFINE_MACRO
|
||||
-D
|
||||
<END>
|
||||
|
||||
<BEGIN> BUILD_PENTIUMgnu.debug_MACRO_OPTION_GENERATE_DEPENDENCY_FILE
|
||||
-MD
|
||||
<END>
|
||||
|
||||
<BEGIN> BUILD_PENTIUMgnu.debug_MACRO_OPTION_INCLUDE_DIR
|
||||
-I
|
||||
<END>
|
||||
|
||||
<BEGIN> BUILD_PENTIUMgnu.debug_MACRO_RELEASE
|
||||
0
|
||||
<END>
|
||||
|
||||
<BEGIN> BUILD_PENTIUMgnu.debug_MACRO_SIZE
|
||||
sizepentium
|
||||
<END>
|
||||
|
||||
<BEGIN> BUILD_PENTIUMgnu.debug_RELEASE
|
||||
0
|
||||
<END>
|
||||
|
||||
<BEGIN> BUILD_PENTIUMgnu.debug_RO_DEPEND_PATH
|
||||
$(WIND_BASE)/target/h/
|
||||
<END>
|
||||
|
||||
<BEGIN> BUILD_PENTIUMgnu.debug_TC
|
||||
::tc_PENTIUMgnu.debug
|
||||
<END>
|
||||
|
||||
<BEGIN> BUILD__LIST
|
||||
PENTIUM2gnu.debug PENTIUM2gnu.release PENTIUMgnu.debug
|
||||
<END>
|
||||
|
||||
<BEGIN> PROJECT_FILES
|
||||
$(PRJ_DIR)/../db_recover.c \
|
||||
$(PRJ_DIR)/compConfig.c
|
||||
<END>
|
||||
|
||||
<BEGIN> WCC__CDF_PATH
|
||||
$(PRJ_DIR)
|
||||
<END>
|
||||
|
||||
<BEGIN> WCC__CURRENT
|
||||
PENTIUM2gnu.debug
|
||||
<END>
|
||||
|
||||
<BEGIN> WCC__LIST
|
||||
PENTIUM2gnu.debug
|
||||
<END>
|
||||
|
||||
<BEGIN> WCC__MXR_LIBS
|
||||
lib$(CPU)$(TOOL)vx.a
|
||||
<END>
|
||||
|
||||
<BEGIN> WCC__OBJS_PATH
|
||||
$(WIND_BASE)/target/lib/obj$CPU$TOOLvx
|
||||
<END>
|
||||
|
File diff suppressed because it is too large
Load Diff
@ -1,160 +0,0 @@
|
||||
Document file - DO NOT EDIT
|
||||
|
||||
<BEGIN> BUILD_PENTIUMgnu_BUILDRULE
|
||||
db_stat.out
|
||||
<END>
|
||||
|
||||
<BEGIN> BUILD_PENTIUMgnu_MACRO_AR
|
||||
ar386
|
||||
<END>
|
||||
|
||||
<BEGIN> BUILD_PENTIUMgnu_MACRO_ARCHIVE
|
||||
$(PRJ_DIR)/PENTIUMgnu/db_stat.a
|
||||
<END>
|
||||
|
||||
<BEGIN> BUILD_PENTIUMgnu_MACRO_AS
|
||||
cc386
|
||||
<END>
|
||||
|
||||
<BEGIN> BUILD_PENTIUMgnu_MACRO_CC
|
||||
cc386
|
||||
<END>
|
||||
|
||||
<BEGIN> BUILD_PENTIUMgnu_MACRO_CFLAGS
|
||||
-g \
|
||||
-mpentium \
|
||||
-ansi \
|
||||
-nostdinc \
|
||||
-DRW_MULTI_THREAD \
|
||||
-D_REENTRANT \
|
||||
-fvolatile \
|
||||
-nostdlib \
|
||||
-fno-builtin \
|
||||
-fno-defer-pop \
|
||||
-I$(PRJ_DIR)/.. \
|
||||
-I$(PRJ_DIR)/../.. \
|
||||
-I$(WIND_BASE)/target/h \
|
||||
-DCPU=PENTIUM
|
||||
<END>
|
||||
|
||||
<BEGIN> BUILD_PENTIUMgnu_MACRO_CFLAGS_AS
|
||||
-g \
|
||||
-mpentium \
|
||||
-ansi \
|
||||
-nostdinc \
|
||||
-fvolatile \
|
||||
-nostdlib \
|
||||
-fno-builtin \
|
||||
-fno-defer-pop \
|
||||
-P \
|
||||
-x \
|
||||
assembler-with-cpp \
|
||||
-I$(WIND_BASE)/target/h \
|
||||
-DCPU=PENTIUM
|
||||
<END>
|
||||
|
||||
<BEGIN> BUILD_PENTIUMgnu_MACRO_CPP
|
||||
cc386 -E -P -xc
|
||||
<END>
|
||||
|
||||
<BEGIN> BUILD_PENTIUMgnu_MACRO_LD
|
||||
ld386
|
||||
<END>
|
||||
|
||||
<BEGIN> BUILD_PENTIUMgnu_MACRO_LDDEPS
|
||||
|
||||
<END>
|
||||
|
||||
<BEGIN> BUILD_PENTIUMgnu_MACRO_LDFLAGS
|
||||
-X -N
|
||||
<END>
|
||||
|
||||
<BEGIN> BUILD_PENTIUMgnu_MACRO_LD_PARTIAL_FLAGS
|
||||
-X -r
|
||||
<END>
|
||||
|
||||
<BEGIN> BUILD_PENTIUMgnu_MACRO_NM
|
||||
nm386 -g
|
||||
<END>
|
||||
|
||||
<BEGIN> BUILD_PENTIUMgnu_MACRO_OPTION_DEFINE_MACRO
|
||||
-D
|
||||
<END>
|
||||
|
||||
<BEGIN> BUILD_PENTIUMgnu_MACRO_OPTION_INCLUDE_DIR
|
||||
-I
|
||||
<END>
|
||||
|
||||
<BEGIN> BUILD_PENTIUMgnu_MACRO_POST_BUILD_RULE
|
||||
|
||||
<END>
|
||||
|
||||
<BEGIN> BUILD_PENTIUMgnu_MACRO_PRJ_LIBS
|
||||
|
||||
<END>
|
||||
|
||||
<BEGIN> BUILD_PENTIUMgnu_MACRO_SIZE
|
||||
size386
|
||||
<END>
|
||||
|
||||
<BEGIN> BUILD_PENTIUMgnu_RO_DEPEND_PATH
|
||||
{$(WIND_BASE)/target/h/} \
|
||||
{$(WIND_BASE)/target/src/} \
|
||||
{$(WIND_BASE)/target/config/}
|
||||
<END>
|
||||
|
||||
<BEGIN> BUILD_PENTIUMgnu_TC
|
||||
::tc_PENTIUMgnu
|
||||
<END>
|
||||
|
||||
<BEGIN> BUILD_RULE_archive
|
||||
|
||||
<END>
|
||||
|
||||
<BEGIN> BUILD_RULE_db_stat.out
|
||||
|
||||
<END>
|
||||
|
||||
<BEGIN> BUILD_RULE_objects
|
||||
|
||||
<END>
|
||||
|
||||
<BEGIN> BUILD__CURRENT
|
||||
PENTIUMgnu
|
||||
<END>
|
||||
|
||||
<BEGIN> BUILD__LIST
|
||||
PENTIUMgnu
|
||||
<END>
|
||||
|
||||
<BEGIN> CORE_INFO_TYPE
|
||||
::prj_vxApp
|
||||
<END>
|
||||
|
||||
<BEGIN> CORE_INFO_VERSION
|
||||
2.0
|
||||
<END>
|
||||
|
||||
<BEGIN> FILE_db_stat.c_dependDone
|
||||
FALSE
|
||||
<END>
|
||||
|
||||
<BEGIN> FILE_db_stat.c_dependencies
|
||||
|
||||
<END>
|
||||
|
||||
<BEGIN> FILE_db_stat.c_objects
|
||||
db_stat.o
|
||||
<END>
|
||||
|
||||
<BEGIN> FILE_db_stat.c_tool
|
||||
C/C++ compiler
|
||||
<END>
|
||||
|
||||
<BEGIN> PROJECT_FILES
|
||||
$(PRJ_DIR)/db_stat.c
|
||||
<END>
|
||||
|
||||
<BEGIN> userComments
|
||||
db_stat
|
||||
<END>
|
@ -1,51 +0,0 @@
|
||||
#
|
||||
# Custom Makefile shell
|
||||
#
|
||||
# This file may be edited freely, since it will not be regenerated
|
||||
# by the project manager.
|
||||
#
|
||||
# Use this makefile to define rules to make external binaries
|
||||
# and deposit them in the $(EXTERNAL_BINARIES_DIR) directory.
|
||||
#
|
||||
# If you have specified external modules during your component
|
||||
# creation, you will find make rules already in place below.
|
||||
# You will likely have to edit these to suit your individual
|
||||
# build setup.
|
||||
#
|
||||
# You may wish to use the CPU, BUILD_SPEC or TOOL make variables in
|
||||
# your Makefile to support builds for different architectures. Use
|
||||
# the FORCE_EXTERNAL_MAKE phony target to ensure that your external
|
||||
# make always runs.
|
||||
#
|
||||
# The example below assumes that your custom makefile is in the
|
||||
# mySourceTree directory, and that the binary file it produces
|
||||
# is placed into the $(BUILD_SPEC) sub-directory.
|
||||
#
|
||||
# EXTERNAL_SOURCE_BASE = /folk/me/mySourceTree
|
||||
# EXTERNAL_MODULE = myLibrary.o
|
||||
# EXTERNAL_MAKE = make
|
||||
#
|
||||
# $(EXTERNAL_BINARIES_DIR)/$(EXTERNAL_MODULE) : FORCE_EXTERNAL_MAKE
|
||||
# $(EXTERNAL_MAKE) -C $(EXTERNAL_SOURCE_BASE) \
|
||||
# -f $(EXTERNAL_SOURCE_BASE)/Makefile \
|
||||
# CPU=$(CPU) BUILD_SPEC=$(BUILD_SPEC) $(@F)
|
||||
# $(CP) $(subst /,$(DIRCHAR),$(EXTERNAL_SOURCE_BASE)/$(BUILD_SPEC)/$(@F) $@)
|
||||
#
|
||||
# If you are not adding your external modules from the component wizard,
|
||||
# you will have to include them in your component yourself:
|
||||
#
|
||||
# From the GUI, you can do this with the Component's 'Add external module'
|
||||
# dialog.
|
||||
#
|
||||
# If you are using the command line, add the module(s) by editing the
|
||||
# MODULES line in component.cdf file, e.g.
|
||||
#
|
||||
# Component INCLUDE_MYCOMPONENT {
|
||||
#
|
||||
# MODULES foo.o goo.o \
|
||||
# myLibrary.o
|
||||
#
|
||||
|
||||
|
||||
# rules to build custom libraries
|
||||
|
@ -1,30 +0,0 @@
|
||||
/* component.cdf - dynamically updated configuration */
|
||||
|
||||
/*
|
||||
* NOTE: you may edit this file to alter the configuration
|
||||
* But all non-configuration information, including comments,
|
||||
* will be lost upon rebuilding this project.
|
||||
*/
|
||||
|
||||
/* Component information */
|
||||
|
||||
Component INCLUDE_DB_STAT {
|
||||
ENTRY_POINTS ALL_GLOBAL_SYMBOLS
|
||||
MODULES db_stat.o
|
||||
NAME db_stat
|
||||
PREF_DOMAIN ANY
|
||||
_INIT_ORDER usrComponentsInit
|
||||
}
|
||||
|
||||
/* EntryPoint information */
|
||||
|
||||
/* Module information */
|
||||
|
||||
Module db_stat.o {
|
||||
|
||||
NAME db_stat.o
|
||||
SRC_PATH_NAME $PRJ_DIR/../db_stat.c
|
||||
}
|
||||
|
||||
/* Parameter information */
|
||||
|
@ -1,475 +0,0 @@
|
||||
Document file - DO NOT EDIT
|
||||
|
||||
<BEGIN> CORE_INFO_TYPE
|
||||
::prj_component
|
||||
<END>
|
||||
|
||||
<BEGIN> CORE_INFO_VERSION
|
||||
AE1.1
|
||||
<END>
|
||||
|
||||
<BEGIN> BUILD__CURRENT
|
||||
PENTIUM2gnu.debug
|
||||
<END>
|
||||
|
||||
<BEGIN> BUILD_PENTIUM2gnu.debug_CURRENT_TARGET
|
||||
default
|
||||
<END>
|
||||
|
||||
<BEGIN> BUILD_PENTIUM2gnu.debug_DEFAULTFORCPU
|
||||
1
|
||||
<END>
|
||||
|
||||
<BEGIN> BUILD_PENTIUM2gnu.debug_FILE_$(PRJ_DIR)/../db_stat.c_infoTags
|
||||
toolMacro objects
|
||||
<END>
|
||||
|
||||
<BEGIN> BUILD_PENTIUM2gnu.debug_FILE_$(PRJ_DIR)/../db_stat.c_objects
|
||||
db_stat.o
|
||||
<END>
|
||||
|
||||
<BEGIN> BUILD_PENTIUM2gnu.debug_FILE_$(PRJ_DIR)/../db_stat.c_toolMacro
|
||||
CC
|
||||
<END>
|
||||
|
||||
<BEGIN> BUILD_PENTIUM2gnu.debug_FILE_$(PRJ_DIR)/../db_stat.c_objects
|
||||
db_stat.o
|
||||
<END>
|
||||
|
||||
<BEGIN> BUILD_PENTIUM2gnu.debug_FILE_$(PRJ_DIR)/../db_stat.c_toolMacro
|
||||
CC
|
||||
<END>
|
||||
|
||||
<BEGIN> BUILD_PENTIUM2gnu.debug_FILE_$(PRJ_DIR)/compConfig.c_infoTags
|
||||
toolMacro objects
|
||||
<END>
|
||||
|
||||
<BEGIN> BUILD_PENTIUM2gnu.debug_FILE_$(PRJ_DIR)/compConfig.c_objects
|
||||
compConfig.o
|
||||
<END>
|
||||
|
||||
<BEGIN> BUILD_PENTIUM2gnu.debug_FILE_$(PRJ_DIR)/compConfig.c_toolMacro
|
||||
CC
|
||||
<END>
|
||||
|
||||
<BEGIN> BUILD_PENTIUM2gnu.debug_MACRO_AR
|
||||
arpentium
|
||||
<END>
|
||||
|
||||
<BEGIN> BUILD_PENTIUM2gnu.debug_MACRO_AS
|
||||
ccpentium
|
||||
<END>
|
||||
|
||||
<BEGIN> BUILD_PENTIUM2gnu.debug_MACRO_CC
|
||||
ccpentium
|
||||
<END>
|
||||
|
||||
<BEGIN> BUILD_PENTIUM2gnu.debug_MACRO_CFLAGS
|
||||
-mcpu=pentiumpro \
|
||||
-march=pentiumpro \
|
||||
-ansi \
|
||||
-DRW_MULTI_THREAD \
|
||||
-D_REENTRANT \
|
||||
-g \
|
||||
-nostdlib \
|
||||
-fno-builtin \
|
||||
-fno-defer-pop \
|
||||
-MD \
|
||||
-Wall \
|
||||
-I. \
|
||||
-I$(WIND_BASE)/target/h \
|
||||
-I$(PRJ_DIR)/../.. \
|
||||
-I$(PRJ_DIR)/../../.. \
|
||||
-DCPU=PENTIUM2
|
||||
<END>
|
||||
|
||||
<BEGIN> BUILD_PENTIUM2gnu.debug_MACRO_CFLAGS_AS
|
||||
-mcpu=pentiumpro \
|
||||
-march=pentiumpro \
|
||||
-ansi \
|
||||
-g \
|
||||
-nostdlib \
|
||||
-fno-builtin \
|
||||
-fno-defer-pop \
|
||||
-P \
|
||||
-x \
|
||||
assembler-with-cpp \
|
||||
-Wall \
|
||||
-I. \
|
||||
-I$(WIND_BASE)/target/h \
|
||||
-DCPU=PENTIUM2
|
||||
<END>
|
||||
|
||||
<BEGIN> BUILD_PENTIUM2gnu.debug_MACRO_CPP
|
||||
ccpentium -E -P
|
||||
<END>
|
||||
|
||||
<BEGIN> BUILD_PENTIUM2gnu.debug_MACRO_CPPFILT
|
||||
c++filtpentium --strip-underscores
|
||||
<END>
|
||||
|
||||
<BEGIN> BUILD_PENTIUM2gnu.debug_MACRO_LD
|
||||
ldpentium
|
||||
<END>
|
||||
|
||||
<BEGIN> BUILD_PENTIUM2gnu.debug_MACRO_LDFLAGS
|
||||
-X
|
||||
<END>
|
||||
|
||||
<BEGIN> BUILD_PENTIUM2gnu.debug_MACRO_LDPARTIAL
|
||||
ccpentium \
|
||||
-B$(WIND_BASE)/host/$(WIND_HOST_TYPE)/lib/gcc-lib/ \
|
||||
-nostdlib \
|
||||
-r \
|
||||
-Wl,-X
|
||||
<END>
|
||||
|
||||
<BEGIN> BUILD_PENTIUM2gnu.debug_MACRO_LD_PARTIAL_FLAGS
|
||||
-X -r
|
||||
<END>
|
||||
|
||||
<BEGIN> BUILD_PENTIUM2gnu.debug_MACRO_NM
|
||||
nmpentium -g
|
||||
<END>
|
||||
|
||||
<BEGIN> BUILD_PENTIUM2gnu.debug_MACRO_OPTION_DEFINE_MACRO
|
||||
-D
|
||||
<END>
|
||||
|
||||
<BEGIN> BUILD_PENTIUM2gnu.debug_MACRO_OPTION_GENERATE_DEPENDENCY_FILE
|
||||
-MD
|
||||
<END>
|
||||
|
||||
<BEGIN> BUILD_PENTIUM2gnu.debug_MACRO_OPTION_INCLUDE_DIR
|
||||
-I
|
||||
<END>
|
||||
|
||||
<BEGIN> BUILD_PENTIUM2gnu.debug_MACRO_RELEASE
|
||||
0
|
||||
<END>
|
||||
|
||||
<BEGIN> BUILD_PENTIUM2gnu.debug_MACRO_SIZE
|
||||
sizepentium
|
||||
<END>
|
||||
|
||||
<BEGIN> BUILD_PENTIUM2gnu.debug_RELEASE
|
||||
0
|
||||
<END>
|
||||
|
||||
<BEGIN> BUILD_PENTIUM2gnu.debug_RO_DEPEND_PATH
|
||||
$(WIND_BASE)/target/h/
|
||||
<END>
|
||||
|
||||
<BEGIN> BUILD_PENTIUM2gnu.debug_TC
|
||||
::tc_PENTIUM2gnu.debug
|
||||
<END>
|
||||
|
||||
<BEGIN> BUILD_PENTIUM2gnu.release_DEFAULTFORCPU
|
||||
0
|
||||
<END>
|
||||
|
||||
<BEGIN> BUILD_PENTIUM2gnu.release_FILE_$(PRJ_DIR)/../db_stat.c_infoTags
|
||||
toolMacro objects
|
||||
<END>
|
||||
|
||||
<BEGIN> BUILD_PENTIUM2gnu.release_FILE_$(PRJ_DIR)/../db_stat.c_objects
|
||||
db_stat.o
|
||||
<END>
|
||||
|
||||
<BEGIN> BUILD_PENTIUM2gnu.release_FILE_$(PRJ_DIR)/../db_stat.c_toolMacro
|
||||
CC
|
||||
<END>
|
||||
|
||||
<BEGIN> BUILD_PENTIUM2gnu.release_FILE_$(PRJ_DIR)/compConfig.c_infoTags
|
||||
toolMacro objects
|
||||
<END>
|
||||
|
||||
<BEGIN> BUILD_PENTIUM2gnu.release_FILE_$(PRJ_DIR)/compConfig.c_objects
|
||||
compConfig.o
|
||||
<END>
|
||||
|
||||
<BEGIN> BUILD_PENTIUM2gnu.release_FILE_$(PRJ_DIR)/compConfig.c_toolMacro
|
||||
CC
|
||||
<END>
|
||||
|
||||
<BEGIN> BUILD_PENTIUM2gnu.release_MACRO_AR
|
||||
arpentium
|
||||
<END>
|
||||
|
||||
<BEGIN> BUILD_PENTIUM2gnu.release_MACRO_AS
|
||||
ccpentium
|
||||
<END>
|
||||
|
||||
<BEGIN> BUILD_PENTIUM2gnu.release_MACRO_CC
|
||||
ccpentium
|
||||
<END>
|
||||
|
||||
<BEGIN> BUILD_PENTIUM2gnu.release_MACRO_CFLAGS
|
||||
-mcpu=pentiumpro \
|
||||
-march=pentiumpro \
|
||||
-ansi \
|
||||
-DRW_MULTI_THREAD \
|
||||
-D_REENTRANT \
|
||||
-O2 \
|
||||
-nostdlib \
|
||||
-fno-builtin \
|
||||
-fno-defer-pop \
|
||||
-MD \
|
||||
-Wall \
|
||||
-I. \
|
||||
-I$(WIND_BASE)/target/h \
|
||||
-I$(PRJ_DIR)/../.. \
|
||||
-I$(PRJ_DIR)/../../.. \
|
||||
-DCPU=PENTIUM2
|
||||
<END>
|
||||
|
||||
<BEGIN> BUILD_PENTIUM2gnu.release_MACRO_CFLAGS_AS
|
||||
-mcpu=pentiumpro \
|
||||
-march=pentiumpro \
|
||||
-ansi \
|
||||
-O2 \
|
||||
-nostdlib \
|
||||
-fno-builtin \
|
||||
-fno-defer-pop \
|
||||
-P \
|
||||
-x \
|
||||
assembler-with-cpp \
|
||||
-Wall \
|
||||
-I. \
|
||||
-I$(WIND_BASE)/target/h \
|
||||
-DCPU=PENTIUM2
|
||||
<END>
|
||||
|
||||
<BEGIN> BUILD_PENTIUM2gnu.release_MACRO_CPP
|
||||
ccpentium -E -P
|
||||
<END>
|
||||
|
||||
<BEGIN> BUILD_PENTIUM2gnu.release_MACRO_CPPFILT
|
||||
c++filtpentium --strip-underscores
|
||||
<END>
|
||||
|
||||
<BEGIN> BUILD_PENTIUM2gnu.release_MACRO_LD
|
||||
ldpentium
|
||||
<END>
|
||||
|
||||
<BEGIN> BUILD_PENTIUM2gnu.release_MACRO_LDFLAGS
|
||||
-X
|
||||
<END>
|
||||
|
||||
<BEGIN> BUILD_PENTIUM2gnu.release_MACRO_LDPARTIAL
|
||||
ccpentium \
|
||||
-B$(WIND_BASE)/host/$(WIND_HOST_TYPE)/lib/gcc-lib/ \
|
||||
-nostdlib \
|
||||
-r \
|
||||
-Wl,-X
|
||||
<END>
|
||||
|
||||
<BEGIN> BUILD_PENTIUM2gnu.release_MACRO_LD_PARTIAL_FLAGS
|
||||
-X -r
|
||||
<END>
|
||||
|
||||
<BEGIN> BUILD_PENTIUM2gnu.release_MACRO_NM
|
||||
nmpentium -g
|
||||
<END>
|
||||
|
||||
<BEGIN> BUILD_PENTIUM2gnu.release_MACRO_OPTION_DEFINE_MACRO
|
||||
-D
|
||||
<END>
|
||||
|
||||
<BEGIN> BUILD_PENTIUM2gnu.release_MACRO_OPTION_GENERATE_DEPENDENCY_FILE
|
||||
-MD
|
||||
<END>
|
||||
|
||||
<BEGIN> BUILD_PENTIUM2gnu.release_MACRO_OPTION_INCLUDE_DIR
|
||||
-I
|
||||
<END>
|
||||
|
||||
<BEGIN> BUILD_PENTIUM2gnu.release_MACRO_RELEASE
|
||||
1
|
||||
<END>
|
||||
|
||||
<BEGIN> BUILD_PENTIUM2gnu.release_MACRO_SIZE
|
||||
sizepentium
|
||||
<END>
|
||||
|
||||
<BEGIN> BUILD_PENTIUM2gnu.release_RELEASE
|
||||
1
|
||||
<END>
|
||||
|
||||
<BEGIN> BUILD_PENTIUM2gnu.release_RO_DEPEND_PATH
|
||||
$(WIND_BASE)/target/h/
|
||||
<END>
|
||||
|
||||
<BEGIN> BUILD_PENTIUM2gnu.release_TC
|
||||
::tc_PENTIUM2gnu.release
|
||||
<END>
|
||||
|
||||
<BEGIN> BUILD_PENTIUMgnu.debug_DEFAULTFORCPU
|
||||
1
|
||||
<END>
|
||||
|
||||
<BEGIN> BUILD_PENTIUMgnu.debug_FILE_$(PRJ_DIR)/../db_stat.c_infoTags
|
||||
toolMacro objects
|
||||
<END>
|
||||
|
||||
<BEGIN> BUILD_PENTIUMgnu.debug_FILE_$(PRJ_DIR)/../db_stat.c_objects
|
||||
db_stat.o
|
||||
<END>
|
||||
|
||||
<BEGIN> BUILD_PENTIUMgnu.debug_FILE_$(PRJ_DIR)/../db_stat.c_toolMacro
|
||||
CC
|
||||
<END>
|
||||
|
||||
<BEGIN> BUILD_PENTIUMgnu.debug_FILE_$(PRJ_DIR)/compConfig.c_infoTags
|
||||
toolMacro objects
|
||||
<END>
|
||||
|
||||
<BEGIN> BUILD_PENTIUMgnu.debug_FILE_$(PRJ_DIR)/compConfig.c_objects
|
||||
compConfig.o
|
||||
<END>
|
||||
|
||||
<BEGIN> BUILD_PENTIUMgnu.debug_FILE_$(PRJ_DIR)/compConfig.c_toolMacro
|
||||
CC
|
||||
<END>
|
||||
|
||||
<BEGIN> BUILD_PENTIUMgnu.debug_MACRO_AR
|
||||
arpentium
|
||||
<END>
|
||||
|
||||
<BEGIN> BUILD_PENTIUMgnu.debug_MACRO_AS
|
||||
ccpentium
|
||||
<END>
|
||||
|
||||
<BEGIN> BUILD_PENTIUMgnu.debug_MACRO_CC
|
||||
ccpentium
|
||||
<END>
|
||||
|
||||
<BEGIN> BUILD_PENTIUMgnu.debug_MACRO_CFLAGS
|
||||
-mcpu=pentium \
|
||||
-march=pentium \
|
||||
-ansi \
|
||||
-DRW_MULTI_THREAD \
|
||||
-D_REENTRANT \
|
||||
-g \
|
||||
-nostdlib \
|
||||
-fno-builtin \
|
||||
-fno-defer-pop \
|
||||
-MD \
|
||||
-Wall \
|
||||
-I. \
|
||||
-I$(WIND_BASE)/target/h \
|
||||
-I$(PRJ_DIR)/../.. \
|
||||
-I$(PRJ_DIR)/../../.. \
|
||||
-DCPU=PENTIUM
|
||||
<END>
|
||||
|
||||
<BEGIN> BUILD_PENTIUMgnu.debug_MACRO_CFLAGS_AS
|
||||
-mcpu=pentium \
|
||||
-march=pentium \
|
||||
-ansi \
|
||||
-g \
|
||||
-nostdlib \
|
||||
-fno-builtin \
|
||||
-fno-defer-pop \
|
||||
-P \
|
||||
-x \
|
||||
assembler-with-cpp \
|
||||
-Wall \
|
||||
-I. \
|
||||
-I$(WIND_BASE)/target/h \
|
||||
-DCPU=PENTIUM
|
||||
<END>
|
||||
|
||||
<BEGIN> BUILD_PENTIUMgnu.debug_MACRO_CPP
|
||||
ccpentium -E -P
|
||||
<END>
|
||||
|
||||
<BEGIN> BUILD_PENTIUMgnu.debug_MACRO_CPPFILT
|
||||
c++filtpentium --strip-underscores
|
||||
<END>
|
||||
|
||||
<BEGIN> BUILD_PENTIUMgnu.debug_MACRO_LD
|
||||
ldpentium
|
||||
<END>
|
||||
|
||||
<BEGIN> BUILD_PENTIUMgnu.debug_MACRO_LDFLAGS
|
||||
-X
|
||||
<END>
|
||||
|
||||
<BEGIN> BUILD_PENTIUMgnu.debug_MACRO_LDPARTIAL
|
||||
ccpentium \
|
||||
-B$(WIND_BASE)/host/$(WIND_HOST_TYPE)/lib/gcc-lib/ \
|
||||
-nostdlib \
|
||||
-r \
|
||||
-Wl,-X
|
||||
<END>
|
||||
|
||||
<BEGIN> BUILD_PENTIUMgnu.debug_MACRO_LD_PARTIAL_FLAGS
|
||||
-X -r
|
||||
<END>
|
||||
|
||||
<BEGIN> BUILD_PENTIUMgnu.debug_MACRO_NM
|
||||
nmpentium -g
|
||||
<END>
|
||||
|
||||
<BEGIN> BUILD_PENTIUMgnu.debug_MACRO_OPTION_DEFINE_MACRO
|
||||
-D
|
||||
<END>
|
||||
|
||||
<BEGIN> BUILD_PENTIUMgnu.debug_MACRO_OPTION_GENERATE_DEPENDENCY_FILE
|
||||
-MD
|
||||
<END>
|
||||
|
||||
<BEGIN> BUILD_PENTIUMgnu.debug_MACRO_OPTION_INCLUDE_DIR
|
||||
-I
|
||||
<END>
|
||||
|
||||
<BEGIN> BUILD_PENTIUMgnu.debug_MACRO_RELEASE
|
||||
0
|
||||
<END>
|
||||
|
||||
<BEGIN> BUILD_PENTIUMgnu.debug_MACRO_SIZE
|
||||
sizepentium
|
||||
<END>
|
||||
|
||||
<BEGIN> BUILD_PENTIUMgnu.debug_RELEASE
|
||||
0
|
||||
<END>
|
||||
|
||||
<BEGIN> BUILD_PENTIUMgnu.debug_RO_DEPEND_PATH
|
||||
$(WIND_BASE)/target/h/
|
||||
<END>
|
||||
|
||||
<BEGIN> BUILD_PENTIUMgnu.debug_TC
|
||||
::tc_PENTIUMgnu.debug
|
||||
<END>
|
||||
|
||||
<BEGIN> BUILD__LIST
|
||||
PENTIUM2gnu.debug PENTIUM2gnu.release PENTIUMgnu.debug
|
||||
<END>
|
||||
|
||||
<BEGIN> PROJECT_FILES
|
||||
$(PRJ_DIR)/../db_stat.c \
|
||||
$(PRJ_DIR)/compConfig.c
|
||||
<END>
|
||||
|
||||
<BEGIN> WCC__CDF_PATH
|
||||
$(PRJ_DIR)
|
||||
<END>
|
||||
|
||||
<BEGIN> WCC__CURRENT
|
||||
PENTIUM2gnu.debug
|
||||
<END>
|
||||
|
||||
<BEGIN> WCC__LIST
|
||||
PENTIUM2gnu.debug
|
||||
<END>
|
||||
|
||||
<BEGIN> WCC__MXR_LIBS
|
||||
lib$(CPU)$(TOOL)vx.a
|
||||
<END>
|
||||
|
||||
<BEGIN> WCC__OBJS_PATH
|
||||
$(WIND_BASE)/target/lib/obj$CPU$TOOLvx
|
||||
<END>
|
||||
|
@ -1,205 +0,0 @@
|
||||
/*-
|
||||
* See the file LICENSE for redistribution information.
|
||||
*
|
||||
* Copyright (c) 1996-2002
|
||||
* Sleepycat Software. All rights reserved.
|
||||
*/
|
||||
|
||||
#include "db_config.h"
|
||||
|
||||
#ifndef lint
|
||||
static const char copyright[] =
|
||||
"Copyright (c) 1996-2002\nSleepycat Software Inc. All rights reserved.\n";
|
||||
static const char revid[] =
|
||||
"$Id: db_upgrade.c,v 1.31 2002/03/28 20:13:47 bostic Exp $";
|
||||
#endif
|
||||
|
||||
#ifndef NO_SYSTEM_INCLUDES
|
||||
#include <sys/types.h>
|
||||
|
||||
#include <stdio.h>
|
||||
#include <stdlib.h>
|
||||
#include <string.h>
|
||||
#include <unistd.h>
|
||||
#endif
|
||||
|
||||
#include "db_int.h"
|
||||
|
||||
int db_upgrade_main __P((int, char *[]));
|
||||
int db_upgrade_usage __P((void));
|
||||
int db_upgrade_version_check __P((const char *));
|
||||
|
||||
int
|
||||
db_upgrade(args)
|
||||
char *args;
|
||||
{
|
||||
int argc;
|
||||
char **argv;
|
||||
|
||||
__db_util_arg("db_upgrade", args, &argc, &argv);
|
||||
return (db_upgrade_main(argc, argv) ? EXIT_FAILURE : EXIT_SUCCESS);
|
||||
}
|
||||
|
||||
#include <stdio.h>
|
||||
#define ERROR_RETURN ERROR
|
||||
|
||||
int
|
||||
db_upgrade_main(argc, argv)
|
||||
int argc;
|
||||
char *argv[];
|
||||
{
|
||||
extern char *optarg;
|
||||
extern int optind, __db_getopt_reset;
|
||||
const char *progname = "db_upgrade";
|
||||
DB *dbp;
|
||||
DB_ENV *dbenv;
|
||||
u_int32_t flags;
|
||||
int ch, e_close, exitval, nflag, ret, t_ret;
|
||||
char *home, *passwd;
|
||||
|
||||
if ((ret = db_upgrade_version_check(progname)) != 0)
|
||||
return (ret);
|
||||
|
||||
dbenv = NULL;
|
||||
flags = nflag = 0;
|
||||
e_close = exitval = 0;
|
||||
home = passwd = NULL;
|
||||
__db_getopt_reset = 1;
|
||||
while ((ch = getopt(argc, argv, "h:NP:sV")) != EOF)
|
||||
switch (ch) {
|
||||
case 'h':
|
||||
home = optarg;
|
||||
break;
|
||||
case 'N':
|
||||
nflag = 1;
|
||||
break;
|
||||
case 'P':
|
||||
passwd = strdup(optarg);
|
||||
memset(optarg, 0, strlen(optarg));
|
||||
if (passwd == NULL) {
|
||||
fprintf(stderr, "%s: strdup: %s\n",
|
||||
progname, strerror(errno));
|
||||
return (EXIT_FAILURE);
|
||||
}
|
||||
break;
|
||||
case 's':
|
||||
LF_SET(DB_DUPSORT);
|
||||
break;
|
||||
case 'V':
|
||||
printf("%s\n", db_version(NULL, NULL, NULL));
|
||||
return (EXIT_SUCCESS);
|
||||
case '?':
|
||||
default:
|
||||
return (db_upgrade_usage());
|
||||
}
|
||||
argc -= optind;
|
||||
argv += optind;
|
||||
|
||||
if (argc <= 0)
|
||||
return (db_upgrade_usage());
|
||||
|
||||
/* Handle possible interruptions. */
|
||||
__db_util_siginit();
|
||||
|
||||
/*
|
||||
* Create an environment object and initialize it for error
|
||||
* reporting.
|
||||
*/
|
||||
if ((ret = db_env_create(&dbenv, 0)) != 0) {
|
||||
fprintf(stderr, "%s: db_env_create: %s\n",
|
||||
progname, db_strerror(ret));
|
||||
goto shutdown;
|
||||
}
|
||||
e_close = 1;
|
||||
|
||||
dbenv->set_errfile(dbenv, stderr);
|
||||
dbenv->set_errpfx(dbenv, progname);
|
||||
|
||||
if (nflag) {
|
||||
if ((ret = dbenv->set_flags(dbenv, DB_NOLOCKING, 1)) != 0) {
|
||||
dbenv->err(dbenv, ret, "set_flags: DB_NOLOCKING");
|
||||
goto shutdown;
|
||||
}
|
||||
if ((ret = dbenv->set_flags(dbenv, DB_NOPANIC, 1)) != 0) {
|
||||
dbenv->err(dbenv, ret, "set_flags: DB_NOPANIC");
|
||||
goto shutdown;
|
||||
}
|
||||
}
|
||||
|
||||
if (passwd != NULL && (ret = dbenv->set_encrypt(dbenv,
|
||||
passwd, DB_ENCRYPT_AES)) != 0) {
|
||||
dbenv->err(dbenv, ret, "set_passwd");
|
||||
goto shutdown;
|
||||
}
|
||||
|
||||
/*
|
||||
* If attaching to a pre-existing environment fails, create a
|
||||
* private one and try again.
|
||||
*/
|
||||
if ((ret = dbenv->open(dbenv,
|
||||
home, DB_JOINENV | DB_USE_ENVIRON, 0)) != 0 &&
|
||||
(ret = dbenv->open(dbenv, home,
|
||||
DB_CREATE | DB_INIT_MPOOL | DB_PRIVATE | DB_USE_ENVIRON, 0)) != 0) {
|
||||
dbenv->err(dbenv, ret, "open");
|
||||
goto shutdown;
|
||||
}
|
||||
|
||||
for (; !__db_util_interrupted() && argv[0] != NULL; ++argv) {
|
||||
if ((ret = db_create(&dbp, dbenv, 0)) != 0) {
|
||||
fprintf(stderr,
|
||||
"%s: db_create: %s\n", progname, db_strerror(ret));
|
||||
goto shutdown;
|
||||
}
|
||||
dbp->set_errfile(dbp, stderr);
|
||||
dbp->set_errpfx(dbp, progname);
|
||||
if ((ret = dbp->upgrade(dbp, argv[0], flags)) != 0)
|
||||
dbp->err(dbp, ret, "DB->upgrade: %s", argv[0]);
|
||||
if ((t_ret = dbp->close(dbp, 0)) != 0 && ret == 0) {
|
||||
dbenv->err(dbenv, ret, "DB->close: %s", argv[0]);
|
||||
ret = t_ret;
|
||||
}
|
||||
if (ret != 0)
|
||||
goto shutdown;
|
||||
}
|
||||
|
||||
if (0) {
|
||||
shutdown: exitval = 1;
|
||||
}
|
||||
if (e_close && (ret = dbenv->close(dbenv, 0)) != 0) {
|
||||
exitval = 1;
|
||||
fprintf(stderr,
|
||||
"%s: dbenv->close: %s\n", progname, db_strerror(ret));
|
||||
}
|
||||
|
||||
/* Resend any caught signal. */
|
||||
__db_util_sigresend();
|
||||
|
||||
return (exitval == 0 ? EXIT_SUCCESS : EXIT_FAILURE);
|
||||
}
|
||||
|
||||
int
|
||||
db_upgrade_usage()
|
||||
{
|
||||
fprintf(stderr, "%s\n",
|
||||
"usage: db_upgrade [-NsV] [-h home] [-P password] db_file ...");
|
||||
return (EXIT_FAILURE);
|
||||
}
|
||||
|
||||
int
|
||||
db_upgrade_version_check(progname)
|
||||
const char *progname;
|
||||
{
|
||||
int v_major, v_minor, v_patch;
|
||||
|
||||
/* Make sure we're loaded with the right version of the DB library. */
|
||||
(void)db_version(&v_major, &v_minor, &v_patch);
|
||||
if (v_major != DB_VERSION_MAJOR ||
|
||||
v_minor != DB_VERSION_MINOR || v_patch != DB_VERSION_PATCH) {
|
||||
fprintf(stderr,
|
||||
"%s: version %d.%d.%d doesn't match library version %d.%d.%d\n",
|
||||
progname, DB_VERSION_MAJOR, DB_VERSION_MINOR,
|
||||
DB_VERSION_PATCH, v_major, v_minor, v_patch);
|
||||
return (EXIT_FAILURE);
|
||||
}
|
||||
return (0);
|
||||
}
|
@ -1,160 +0,0 @@
|
||||
Document file - DO NOT EDIT
|
||||
|
||||
<BEGIN> BUILD_PENTIUMgnu_BUILDRULE
|
||||
db_upgrade.out
|
||||
<END>
|
||||
|
||||
<BEGIN> BUILD_PENTIUMgnu_MACRO_AR
|
||||
ar386
|
||||
<END>
|
||||
|
||||
<BEGIN> BUILD_PENTIUMgnu_MACRO_ARCHIVE
|
||||
$(PRJ_DIR)/PENTIUMgnu/db_upgrade.a
|
||||
<END>
|
||||
|
||||
<BEGIN> BUILD_PENTIUMgnu_MACRO_AS
|
||||
cc386
|
||||
<END>
|
||||
|
||||
<BEGIN> BUILD_PENTIUMgnu_MACRO_CC
|
||||
cc386
|
||||
<END>
|
||||
|
||||
<BEGIN> BUILD_PENTIUMgnu_MACRO_CFLAGS
|
||||
-g \
|
||||
-mpentium \
|
||||
-ansi \
|
||||
-nostdinc \
|
||||
-DRW_MULTI_THREAD \
|
||||
-D_REENTRANT \
|
||||
-fvolatile \
|
||||
-nostdlib \
|
||||
-fno-builtin \
|
||||
-fno-defer-pop \
|
||||
-I$(PRJ_DIR)/.. \
|
||||
-I$(PRJ_DIR)/../.. \
|
||||
-I$(WIND_BASE)/target/h \
|
||||
-DCPU=PENTIUM
|
||||
<END>
|
||||
|
||||
<BEGIN> BUILD_PENTIUMgnu_MACRO_CFLAGS_AS
|
||||
-g \
|
||||
-mpentium \
|
||||
-ansi \
|
||||
-nostdinc \
|
||||
-fvolatile \
|
||||
-nostdlib \
|
||||
-fno-builtin \
|
||||
-fno-defer-pop \
|
||||
-P \
|
||||
-x \
|
||||
assembler-with-cpp \
|
||||
-I$(WIND_BASE)/target/h \
|
||||
-DCPU=PENTIUM
|
||||
<END>
|
||||
|
||||
<BEGIN> BUILD_PENTIUMgnu_MACRO_CPP
|
||||
cc386 -E -P -xc
|
||||
<END>
|
||||
|
||||
<BEGIN> BUILD_PENTIUMgnu_MACRO_LD
|
||||
ld386
|
||||
<END>
|
||||
|
||||
<BEGIN> BUILD_PENTIUMgnu_MACRO_LDDEPS
|
||||
|
||||
<END>
|
||||
|
||||
<BEGIN> BUILD_PENTIUMgnu_MACRO_LDFLAGS
|
||||
-X -N
|
||||
<END>
|
||||
|
||||
<BEGIN> BUILD_PENTIUMgnu_MACRO_LD_PARTIAL_FLAGS
|
||||
-X -r
|
||||
<END>
|
||||
|
||||
<BEGIN> BUILD_PENTIUMgnu_MACRO_NM
|
||||
nm386 -g
|
||||
<END>
|
||||
|
||||
<BEGIN> BUILD_PENTIUMgnu_MACRO_OPTION_DEFINE_MACRO
|
||||
-D
|
||||
<END>
|
||||
|
||||
<BEGIN> BUILD_PENTIUMgnu_MACRO_OPTION_INCLUDE_DIR
|
||||
-I
|
||||
<END>
|
||||
|
||||
<BEGIN> BUILD_PENTIUMgnu_MACRO_POST_BUILD_RULE
|
||||
|
||||
<END>
|
||||
|
||||
<BEGIN> BUILD_PENTIUMgnu_MACRO_PRJ_LIBS
|
||||
|
||||
<END>
|
||||
|
||||
<BEGIN> BUILD_PENTIUMgnu_MACRO_SIZE
|
||||
size386
|
||||
<END>
|
||||
|
||||
<BEGIN> BUILD_PENTIUMgnu_RO_DEPEND_PATH
|
||||
{$(WIND_BASE)/target/h/} \
|
||||
{$(WIND_BASE)/target/src/} \
|
||||
{$(WIND_BASE)/target/config/}
|
||||
<END>
|
||||
|
||||
<BEGIN> BUILD_PENTIUMgnu_TC
|
||||
::tc_PENTIUMgnu
|
||||
<END>
|
||||
|
||||
<BEGIN> BUILD_RULE_archive
|
||||
|
||||
<END>
|
||||
|
||||
<BEGIN> BUILD_RULE_db_upgrade.out
|
||||
|
||||
<END>
|
||||
|
||||
<BEGIN> BUILD_RULE_objects
|
||||
|
||||
<END>
|
||||
|
||||
<BEGIN> BUILD__CURRENT
|
||||
PENTIUMgnu
|
||||
<END>
|
||||
|
||||
<BEGIN> BUILD__LIST
|
||||
PENTIUMgnu
|
||||
<END>
|
||||
|
||||
<BEGIN> CORE_INFO_TYPE
|
||||
::prj_vxApp
|
||||
<END>
|
||||
|
||||
<BEGIN> CORE_INFO_VERSION
|
||||
2.0
|
||||
<END>
|
||||
|
||||
<BEGIN> FILE_db_upgrade.c_dependDone
|
||||
FALSE
|
||||
<END>
|
||||
|
||||
<BEGIN> FILE_db_upgrade.c_dependencies
|
||||
|
||||
<END>
|
||||
|
||||
<BEGIN> FILE_db_upgrade.c_objects
|
||||
db_upgrade.o
|
||||
<END>
|
||||
|
||||
<BEGIN> FILE_db_upgrade.c_tool
|
||||
C/C++ compiler
|
||||
<END>
|
||||
|
||||
<BEGIN> PROJECT_FILES
|
||||
$(PRJ_DIR)/db_upgrade.c
|
||||
<END>
|
||||
|
||||
<BEGIN> userComments
|
||||
db_upgrade
|
||||
<END>
|
@ -1,51 +0,0 @@
|
||||
#
|
||||
# Custom Makefile shell
|
||||
#
|
||||
# This file may be edited freely, since it will not be regenerated
|
||||
# by the project manager.
|
||||
#
|
||||
# Use this makefile to define rules to make external binaries
|
||||
# and deposit them in the $(EXTERNAL_BINARIES_DIR) directory.
|
||||
#
|
||||
# If you have specified external modules during your component
|
||||
# creation, you will find make rules already in place below.
|
||||
# You will likely have to edit these to suit your individual
|
||||
# build setup.
|
||||
#
|
||||
# You may wish to use the CPU, BUILD_SPEC or TOOL make variables in
|
||||
# your Makefile to support builds for different architectures. Use
|
||||
# the FORCE_EXTERNAL_MAKE phony target to ensure that your external
|
||||
# make always runs.
|
||||
#
|
||||
# The example below assumes that your custom makefile is in the
|
||||
# mySourceTree directory, and that the binary file it produces
|
||||
# is placed into the $(BUILD_SPEC) sub-directory.
|
||||
#
|
||||
# EXTERNAL_SOURCE_BASE = /folk/me/mySourceTree
|
||||
# EXTERNAL_MODULE = myLibrary.o
|
||||
# EXTERNAL_MAKE = make
|
||||
#
|
||||
# $(EXTERNAL_BINARIES_DIR)/$(EXTERNAL_MODULE) : FORCE_EXTERNAL_MAKE
|
||||
# $(EXTERNAL_MAKE) -C $(EXTERNAL_SOURCE_BASE) \
|
||||
# -f $(EXTERNAL_SOURCE_BASE)/Makefile \
|
||||
# CPU=$(CPU) BUILD_SPEC=$(BUILD_SPEC) $(@F)
|
||||
# $(CP) $(subst /,$(DIRCHAR),$(EXTERNAL_SOURCE_BASE)/$(BUILD_SPEC)/$(@F) $@)
|
||||
#
|
||||
# If you are not adding your external modules from the component wizard,
|
||||
# you will have to include them in your component yourself:
|
||||
#
|
||||
# From the GUI, you can do this with the Component's 'Add external module'
|
||||
# dialog.
|
||||
#
|
||||
# If you are using the command line, add the module(s) by editing the
|
||||
# MODULES line in component.cdf file, e.g.
|
||||
#
|
||||
# Component INCLUDE_MYCOMPONENT {
|
||||
#
|
||||
# MODULES foo.o goo.o \
|
||||
# myLibrary.o
|
||||
#
|
||||
|
||||
|
||||
# rules to build custom libraries
|
||||
|
@ -1,30 +0,0 @@
|
||||
/* component.cdf - dynamically updated configuration */
|
||||
|
||||
/*
|
||||
* NOTE: you may edit this file to alter the configuration
|
||||
* But all non-configuration information, including comments,
|
||||
* will be lost upon rebuilding this project.
|
||||
*/
|
||||
|
||||
/* Component information */
|
||||
|
||||
Component INCLUDE_DB_UPGRADE {
|
||||
ENTRY_POINTS ALL_GLOBAL_SYMBOLS
|
||||
MODULES db_upgrade.o
|
||||
NAME db_upgrade
|
||||
PREF_DOMAIN ANY
|
||||
_INIT_ORDER usrComponentsInit
|
||||
}
|
||||
|
||||
/* EntryPoint information */
|
||||
|
||||
/* Module information */
|
||||
|
||||
Module db_upgrade.o {
|
||||
|
||||
NAME db_upgrade.o
|
||||
SRC_PATH_NAME $PRJ_DIR/../db_upgrade.c
|
||||
}
|
||||
|
||||
/* Parameter information */
|
||||
|
@ -1,475 +0,0 @@
|
||||
Document file - DO NOT EDIT
|
||||
|
||||
<BEGIN> CORE_INFO_TYPE
|
||||
::prj_component
|
||||
<END>
|
||||
|
||||
<BEGIN> CORE_INFO_VERSION
|
||||
AE1.1
|
||||
<END>
|
||||
|
||||
<BEGIN> BUILD__CURRENT
|
||||
PENTIUM2gnu.debug
|
||||
<END>
|
||||
|
||||
<BEGIN> BUILD_PENTIUM2gnu.debug_CURRENT_TARGET
|
||||
default
|
||||
<END>
|
||||
|
||||
<BEGIN> BUILD_PENTIUM2gnu.debug_DEFAULTFORCPU
|
||||
1
|
||||
<END>
|
||||
|
||||
<BEGIN> BUILD_PENTIUM2gnu.debug_FILE_$(PRJ_DIR)/../db_upgrade.c_infoTags
|
||||
toolMacro objects
|
||||
<END>
|
||||
|
||||
<BEGIN> BUILD_PENTIUM2gnu.debug_FILE_$(PRJ_DIR)/../db_upgrade.c_objects
|
||||
db_upgrade.o
|
||||
<END>
|
||||
|
||||
<BEGIN> BUILD_PENTIUM2gnu.debug_FILE_$(PRJ_DIR)/../db_upgrade.c_toolMacro
|
||||
CC
|
||||
<END>
|
||||
|
||||
<BEGIN> BUILD_PENTIUM2gnu.debug_FILE_$(PRJ_DIR)/../db_upgrade.c_objects
|
||||
db_upgrade.o
|
||||
<END>
|
||||
|
||||
<BEGIN> BUILD_PENTIUM2gnu.debug_FILE_$(PRJ_DIR)/../db_upgrade.c_toolMacro
|
||||
CC
|
||||
<END>
|
||||
|
||||
<BEGIN> BUILD_PENTIUM2gnu.debug_FILE_$(PRJ_DIR)/compConfig.c_infoTags
|
||||
toolMacro objects
|
||||
<END>
|
||||
|
||||
<BEGIN> BUILD_PENTIUM2gnu.debug_FILE_$(PRJ_DIR)/compConfig.c_objects
|
||||
compConfig.o
|
||||
<END>
|
||||
|
||||
<BEGIN> BUILD_PENTIUM2gnu.debug_FILE_$(PRJ_DIR)/compConfig.c_toolMacro
|
||||
CC
|
||||
<END>
|
||||
|
||||
<BEGIN> BUILD_PENTIUM2gnu.debug_MACRO_AR
|
||||
arpentium
|
||||
<END>
|
||||
|
||||
<BEGIN> BUILD_PENTIUM2gnu.debug_MACRO_AS
|
||||
ccpentium
|
||||
<END>
|
||||
|
||||
<BEGIN> BUILD_PENTIUM2gnu.debug_MACRO_CC
|
||||
ccpentium
|
||||
<END>
|
||||
|
||||
<BEGIN> BUILD_PENTIUM2gnu.debug_MACRO_CFLAGS
|
||||
-mcpu=pentiumpro \
|
||||
-march=pentiumpro \
|
||||
-ansi \
|
||||
-DRW_MULTI_THREAD \
|
||||
-D_REENTRANT \
|
||||
-g \
|
||||
-nostdlib \
|
||||
-fno-builtin \
|
||||
-fno-defer-pop \
|
||||
-MD \
|
||||
-Wall \
|
||||
-I. \
|
||||
-I$(WIND_BASE)/target/h \
|
||||
-I$(PRJ_DIR)/../.. \
|
||||
-I$(PRJ_DIR)/../../.. \
|
||||
-DCPU=PENTIUM2
|
||||
<END>
|
||||
|
||||
<BEGIN> BUILD_PENTIUM2gnu.debug_MACRO_CFLAGS_AS
|
||||
-mcpu=pentiumpro \
|
||||
-march=pentiumpro \
|
||||
-ansi \
|
||||
-g \
|
||||
-nostdlib \
|
||||
-fno-builtin \
|
||||
-fno-defer-pop \
|
||||
-P \
|
||||
-x \
|
||||
assembler-with-cpp \
|
||||
-Wall \
|
||||
-I. \
|
||||
-I$(WIND_BASE)/target/h \
|
||||
-DCPU=PENTIUM2
|
||||
<END>
|
||||
|
||||
<BEGIN> BUILD_PENTIUM2gnu.debug_MACRO_CPP
|
||||
ccpentium -E -P
|
||||
<END>
|
||||
|
||||
<BEGIN> BUILD_PENTIUM2gnu.debug_MACRO_CPPFILT
|
||||
c++filtpentium --strip-underscores
|
||||
<END>
|
||||
|
||||
<BEGIN> BUILD_PENTIUM2gnu.debug_MACRO_LD
|
||||
ldpentium
|
||||
<END>
|
||||
|
||||
<BEGIN> BUILD_PENTIUM2gnu.debug_MACRO_LDFLAGS
|
||||
-X
|
||||
<END>
|
||||
|
||||
<BEGIN> BUILD_PENTIUM2gnu.debug_MACRO_LDPARTIAL
|
||||
ccpentium \
|
||||
-B$(WIND_BASE)/host/$(WIND_HOST_TYPE)/lib/gcc-lib/ \
|
||||
-nostdlib \
|
||||
-r \
|
||||
-Wl,-X
|
||||
<END>
|
||||
|
||||
<BEGIN> BUILD_PENTIUM2gnu.debug_MACRO_LD_PARTIAL_FLAGS
|
||||
-X -r
|
||||
<END>
|
||||
|
||||
<BEGIN> BUILD_PENTIUM2gnu.debug_MACRO_NM
|
||||
nmpentium -g
|
||||
<END>
|
||||
|
||||
<BEGIN> BUILD_PENTIUM2gnu.debug_MACRO_OPTION_DEFINE_MACRO
|
||||
-D
|
||||
<END>
|
||||
|
||||
<BEGIN> BUILD_PENTIUM2gnu.debug_MACRO_OPTION_GENERATE_DEPENDENCY_FILE
|
||||
-MD
|
||||
<END>
|
||||
|
||||
<BEGIN> BUILD_PENTIUM2gnu.debug_MACRO_OPTION_INCLUDE_DIR
|
||||
-I
|
||||
<END>
|
||||
|
||||
<BEGIN> BUILD_PENTIUM2gnu.debug_MACRO_RELEASE
|
||||
0
|
||||
<END>
|
||||
|
||||
<BEGIN> BUILD_PENTIUM2gnu.debug_MACRO_SIZE
|
||||
sizepentium
|
||||
<END>
|
||||
|
||||
<BEGIN> BUILD_PENTIUM2gnu.debug_RELEASE
|
||||
0
|
||||
<END>
|
||||
|
||||
<BEGIN> BUILD_PENTIUM2gnu.debug_RO_DEPEND_PATH
|
||||
$(WIND_BASE)/target/h/
|
||||
<END>
|
||||
|
||||
<BEGIN> BUILD_PENTIUM2gnu.debug_TC
|
||||
::tc_PENTIUM2gnu.debug
|
||||
<END>
|
||||
|
||||
<BEGIN> BUILD_PENTIUM2gnu.release_DEFAULTFORCPU
|
||||
0
|
||||
<END>
|
||||
|
||||
<BEGIN> BUILD_PENTIUM2gnu.release_FILE_$(PRJ_DIR)/../db_upgrade.c_infoTags
|
||||
toolMacro objects
|
||||
<END>
|
||||
|
||||
<BEGIN> BUILD_PENTIUM2gnu.release_FILE_$(PRJ_DIR)/../db_upgrade.c_objects
|
||||
db_upgrade.o
|
||||
<END>
|
||||
|
||||
<BEGIN> BUILD_PENTIUM2gnu.release_FILE_$(PRJ_DIR)/../db_upgrade.c_toolMacro
|
||||
CC
|
||||
<END>
|
||||
|
||||
<BEGIN> BUILD_PENTIUM2gnu.release_FILE_$(PRJ_DIR)/compConfig.c_infoTags
|
||||
toolMacro objects
|
||||
<END>
|
||||
|
||||
<BEGIN> BUILD_PENTIUM2gnu.release_FILE_$(PRJ_DIR)/compConfig.c_objects
|
||||
compConfig.o
|
||||
<END>
|
||||
|
||||
<BEGIN> BUILD_PENTIUM2gnu.release_FILE_$(PRJ_DIR)/compConfig.c_toolMacro
|
||||
CC
|
||||
<END>
|
||||
|
||||
<BEGIN> BUILD_PENTIUM2gnu.release_MACRO_AR
|
||||
arpentium
|
||||
<END>
|
||||
|
||||
<BEGIN> BUILD_PENTIUM2gnu.release_MACRO_AS
|
||||
ccpentium
|
||||
<END>
|
||||
|
||||
<BEGIN> BUILD_PENTIUM2gnu.release_MACRO_CC
|
||||
ccpentium
|
||||
<END>
|
||||
|
||||
<BEGIN> BUILD_PENTIUM2gnu.release_MACRO_CFLAGS
|
||||
-mcpu=pentiumpro \
|
||||
-march=pentiumpro \
|
||||
-ansi \
|
||||
-DRW_MULTI_THREAD \
|
||||
-D_REENTRANT \
|
||||
-O2 \
|
||||
-nostdlib \
|
||||
-fno-builtin \
|
||||
-fno-defer-pop \
|
||||
-MD \
|
||||
-Wall \
|
||||
-I. \
|
||||
-I$(WIND_BASE)/target/h \
|
||||
-I$(PRJ_DIR)/../.. \
|
||||
-I$(PRJ_DIR)/../../.. \
|
||||
-DCPU=PENTIUM2
|
||||
<END>
|
||||
|
||||
<BEGIN> BUILD_PENTIUM2gnu.release_MACRO_CFLAGS_AS
|
||||
-mcpu=pentiumpro \
|
||||
-march=pentiumpro \
|
||||
-ansi \
|
||||
-O2 \
|
||||
-nostdlib \
|
||||
-fno-builtin \
|
||||
-fno-defer-pop \
|
||||
-P \
|
||||
-x \
|
||||
assembler-with-cpp \
|
||||
-Wall \
|
||||
-I. \
|
||||
-I$(WIND_BASE)/target/h \
|
||||
-DCPU=PENTIUM2
|
||||
<END>
|
||||
|
||||
<BEGIN> BUILD_PENTIUM2gnu.release_MACRO_CPP
|
||||
ccpentium -E -P
|
||||
<END>
|
||||
|
||||
<BEGIN> BUILD_PENTIUM2gnu.release_MACRO_CPPFILT
|
||||
c++filtpentium --strip-underscores
|
||||
<END>
|
||||
|
||||
<BEGIN> BUILD_PENTIUM2gnu.release_MACRO_LD
|
||||
ldpentium
|
||||
<END>
|
||||
|
||||
<BEGIN> BUILD_PENTIUM2gnu.release_MACRO_LDFLAGS
|
||||
-X
|
||||
<END>
|
||||
|
||||
<BEGIN> BUILD_PENTIUM2gnu.release_MACRO_LDPARTIAL
|
||||
ccpentium \
|
||||
-B$(WIND_BASE)/host/$(WIND_HOST_TYPE)/lib/gcc-lib/ \
|
||||
-nostdlib \
|
||||
-r \
|
||||
-Wl,-X
|
||||
<END>
|
||||
|
||||
<BEGIN> BUILD_PENTIUM2gnu.release_MACRO_LD_PARTIAL_FLAGS
|
||||
-X -r
|
||||
<END>
|
||||
|
||||
<BEGIN> BUILD_PENTIUM2gnu.release_MACRO_NM
|
||||
nmpentium -g
|
||||
<END>
|
||||
|
||||
<BEGIN> BUILD_PENTIUM2gnu.release_MACRO_OPTION_DEFINE_MACRO
|
||||
-D
|
||||
<END>
|
||||
|
||||
<BEGIN> BUILD_PENTIUM2gnu.release_MACRO_OPTION_GENERATE_DEPENDENCY_FILE
|
||||
-MD
|
||||
<END>
|
||||
|
||||
<BEGIN> BUILD_PENTIUM2gnu.release_MACRO_OPTION_INCLUDE_DIR
|
||||
-I
|
||||
<END>
|
||||
|
||||
<BEGIN> BUILD_PENTIUM2gnu.release_MACRO_RELEASE
|
||||
1
|
||||
<END>
|
||||
|
||||
<BEGIN> BUILD_PENTIUM2gnu.release_MACRO_SIZE
|
||||
sizepentium
|
||||
<END>
|
||||
|
||||
<BEGIN> BUILD_PENTIUM2gnu.release_RELEASE
|
||||
1
|
||||
<END>
|
||||
|
||||
<BEGIN> BUILD_PENTIUM2gnu.release_RO_DEPEND_PATH
|
||||
$(WIND_BASE)/target/h/
|
||||
<END>
|
||||
|
||||
<BEGIN> BUILD_PENTIUM2gnu.release_TC
|
||||
::tc_PENTIUM2gnu.release
|
||||
<END>
|
||||
|
||||
<BEGIN> BUILD_PENTIUMgnu.debug_DEFAULTFORCPU
|
||||
1
|
||||
<END>
|
||||
|
||||
<BEGIN> BUILD_PENTIUMgnu.debug_FILE_$(PRJ_DIR)/../db_upgrade.c_infoTags
|
||||
toolMacro objects
|
||||
<END>
|
||||
|
||||
<BEGIN> BUILD_PENTIUMgnu.debug_FILE_$(PRJ_DIR)/../db_upgrade.c_objects
|
||||
db_upgrade.o
|
||||
<END>
|
||||
|
||||
<BEGIN> BUILD_PENTIUMgnu.debug_FILE_$(PRJ_DIR)/../db_upgrade.c_toolMacro
|
||||
CC
|
||||
<END>
|
||||
|
||||
<BEGIN> BUILD_PENTIUMgnu.debug_FILE_$(PRJ_DIR)/compConfig.c_infoTags
|
||||
toolMacro objects
|
||||
<END>
|
||||
|
||||
<BEGIN> BUILD_PENTIUMgnu.debug_FILE_$(PRJ_DIR)/compConfig.c_objects
|
||||
compConfig.o
|
||||
<END>
|
||||
|
||||
<BEGIN> BUILD_PENTIUMgnu.debug_FILE_$(PRJ_DIR)/compConfig.c_toolMacro
|
||||
CC
|
||||
<END>
|
||||
|
||||
<BEGIN> BUILD_PENTIUMgnu.debug_MACRO_AR
|
||||
arpentium
|
||||
<END>
|
||||
|
||||
<BEGIN> BUILD_PENTIUMgnu.debug_MACRO_AS
|
||||
ccpentium
|
||||
<END>
|
||||
|
||||
<BEGIN> BUILD_PENTIUMgnu.debug_MACRO_CC
|
||||
ccpentium
|
||||
<END>
|
||||
|
||||
<BEGIN> BUILD_PENTIUMgnu.debug_MACRO_CFLAGS
|
||||
-mcpu=pentium \
|
||||
-march=pentium \
|
||||
-ansi \
|
||||
-DRW_MULTI_THREAD \
|
||||
-D_REENTRANT \
|
||||
-g \
|
||||
-nostdlib \
|
||||
-fno-builtin \
|
||||
-fno-defer-pop \
|
||||
-MD \
|
||||
-Wall \
|
||||
-I. \
|
||||
-I$(WIND_BASE)/target/h \
|
||||
-I$(PRJ_DIR)/../.. \
|
||||
-I$(PRJ_DIR)/../../.. \
|
||||
-DCPU=PENTIUM
|
||||
<END>
|
||||
|
||||
<BEGIN> BUILD_PENTIUMgnu.debug_MACRO_CFLAGS_AS
|
||||
-mcpu=pentium \
|
||||
-march=pentium \
|
||||
-ansi \
|
||||
-g \
|
||||
-nostdlib \
|
||||
-fno-builtin \
|
||||
-fno-defer-pop \
|
||||
-P \
|
||||
-x \
|
||||
assembler-with-cpp \
|
||||
-Wall \
|
||||
-I. \
|
||||
-I$(WIND_BASE)/target/h \
|
||||
-DCPU=PENTIUM
|
||||
<END>
|
||||
|
||||
<BEGIN> BUILD_PENTIUMgnu.debug_MACRO_CPP
|
||||
ccpentium -E -P
|
||||
<END>
|
||||
|
||||
<BEGIN> BUILD_PENTIUMgnu.debug_MACRO_CPPFILT
|
||||
c++filtpentium --strip-underscores
|
||||
<END>
|
||||
|
||||
<BEGIN> BUILD_PENTIUMgnu.debug_MACRO_LD
|
||||
ldpentium
|
||||
<END>
|
||||
|
||||
<BEGIN> BUILD_PENTIUMgnu.debug_MACRO_LDFLAGS
|
||||
-X
|
||||
<END>
|
||||
|
||||
<BEGIN> BUILD_PENTIUMgnu.debug_MACRO_LDPARTIAL
|
||||
ccpentium \
|
||||
-B$(WIND_BASE)/host/$(WIND_HOST_TYPE)/lib/gcc-lib/ \
|
||||
-nostdlib \
|
||||
-r \
|
||||
-Wl,-X
|
||||
<END>
|
||||
|
||||
<BEGIN> BUILD_PENTIUMgnu.debug_MACRO_LD_PARTIAL_FLAGS
|
||||
-X -r
|
||||
<END>
|
||||
|
||||
<BEGIN> BUILD_PENTIUMgnu.debug_MACRO_NM
|
||||
nmpentium -g
|
||||
<END>
|
||||
|
||||
<BEGIN> BUILD_PENTIUMgnu.debug_MACRO_OPTION_DEFINE_MACRO
|
||||
-D
|
||||
<END>
|
||||
|
||||
<BEGIN> BUILD_PENTIUMgnu.debug_MACRO_OPTION_GENERATE_DEPENDENCY_FILE
|
||||
-MD
|
||||
<END>
|
||||
|
||||
<BEGIN> BUILD_PENTIUMgnu.debug_MACRO_OPTION_INCLUDE_DIR
|
||||
-I
|
||||
<END>
|
||||
|
||||
<BEGIN> BUILD_PENTIUMgnu.debug_MACRO_RELEASE
|
||||
0
|
||||
<END>
|
||||
|
||||
<BEGIN> BUILD_PENTIUMgnu.debug_MACRO_SIZE
|
||||
sizepentium
|
||||
<END>
|
||||
|
||||
<BEGIN> BUILD_PENTIUMgnu.debug_RELEASE
|
||||
0
|
||||
<END>
|
||||
|
||||
<BEGIN> BUILD_PENTIUMgnu.debug_RO_DEPEND_PATH
|
||||
$(WIND_BASE)/target/h/
|
||||
<END>
|
||||
|
||||
<BEGIN> BUILD_PENTIUMgnu.debug_TC
|
||||
::tc_PENTIUMgnu.debug
|
||||
<END>
|
||||
|
||||
<BEGIN> BUILD__LIST
|
||||
PENTIUM2gnu.debug PENTIUM2gnu.release PENTIUMgnu.debug
|
||||
<END>
|
||||
|
||||
<BEGIN> PROJECT_FILES
|
||||
$(PRJ_DIR)/../db_upgrade.c \
|
||||
$(PRJ_DIR)/compConfig.c
|
||||
<END>
|
||||
|
||||
<BEGIN> WCC__CDF_PATH
|
||||
$(PRJ_DIR)
|
||||
<END>
|
||||
|
||||
<BEGIN> WCC__CURRENT
|
||||
PENTIUM2gnu.debug
|
||||
<END>
|
||||
|
||||
<BEGIN> WCC__LIST
|
||||
PENTIUM2gnu.debug
|
||||
<END>
|
||||
|
||||
<BEGIN> WCC__MXR_LIBS
|
||||
lib$(CPU)$(TOOL)vx.a
|
||||
<END>
|
||||
|
||||
<BEGIN> WCC__OBJS_PATH
|
||||
$(WIND_BASE)/target/lib/obj$CPU$TOOLvx
|
||||
<END>
|
||||
|
@ -1,263 +0,0 @@
|
||||
/*-
|
||||
* See the file LICENSE for redistribution information.
|
||||
*
|
||||
* Copyright (c) 1996-2002
|
||||
* Sleepycat Software. All rights reserved.
|
||||
*/
|
||||
|
||||
#include "db_config.h"
|
||||
|
||||
#ifndef lint
|
||||
static const char copyright[] =
|
||||
"Copyright (c) 1996-2002\nSleepycat Software Inc. All rights reserved.\n";
|
||||
static const char revid[] =
|
||||
"$Id: db_verify.c,v 1.38 2002/08/08 03:51:38 bostic Exp $";
|
||||
#endif
|
||||
|
||||
#ifndef NO_SYSTEM_INCLUDES
|
||||
#include <sys/types.h>
|
||||
|
||||
#include <stdio.h>
|
||||
#include <stdlib.h>
|
||||
#include <string.h>
|
||||
#include <unistd.h>
|
||||
#endif
|
||||
|
||||
#include "db_int.h"
|
||||
|
||||
int db_verify_main __P((int, char *[]));
|
||||
int db_verify_usage __P((void));
|
||||
int db_verify_version_check __P((const char *));
|
||||
|
||||
int
|
||||
db_verify(args)
|
||||
char *args;
|
||||
{
|
||||
int argc;
|
||||
char **argv;
|
||||
|
||||
__db_util_arg("db_verify", args, &argc, &argv);
|
||||
return (db_verify_main(argc, argv) ? EXIT_FAILURE : EXIT_SUCCESS);
|
||||
}
|
||||
|
||||
#include <stdio.h>
|
||||
#define ERROR_RETURN ERROR
|
||||
|
||||
int
|
||||
db_verify_main(argc, argv)
|
||||
int argc;
|
||||
char *argv[];
|
||||
{
|
||||
extern char *optarg;
|
||||
extern int optind, __db_getopt_reset;
|
||||
const char *progname = "db_verify";
|
||||
DB *dbp, *dbp1;
|
||||
DB_ENV *dbenv;
|
||||
u_int32_t cache;
|
||||
int ch, d_close, e_close, exitval, nflag, oflag, private;
|
||||
int quiet, resize, ret, t_ret;
|
||||
char *home, *passwd;
|
||||
|
||||
if ((ret = db_verify_version_check(progname)) != 0)
|
||||
return (ret);
|
||||
|
||||
dbenv = NULL;
|
||||
cache = MEGABYTE;
|
||||
d_close = e_close = exitval = nflag = oflag = quiet = 0;
|
||||
home = passwd = NULL;
|
||||
__db_getopt_reset = 1;
|
||||
while ((ch = getopt(argc, argv, "h:NoP:qV")) != EOF)
|
||||
switch (ch) {
|
||||
case 'h':
|
||||
home = optarg;
|
||||
break;
|
||||
case 'N':
|
||||
nflag = 1;
|
||||
break;
|
||||
case 'P':
|
||||
passwd = strdup(optarg);
|
||||
memset(optarg, 0, strlen(optarg));
|
||||
if (passwd == NULL) {
|
||||
fprintf(stderr, "%s: strdup: %s\n",
|
||||
progname, strerror(errno));
|
||||
return (EXIT_FAILURE);
|
||||
}
|
||||
break;
|
||||
case 'o':
|
||||
oflag = 1;
|
||||
break;
|
||||
case 'q':
|
||||
quiet = 1;
|
||||
break;
|
||||
case 'V':
|
||||
printf("%s\n", db_version(NULL, NULL, NULL));
|
||||
return (EXIT_SUCCESS);
|
||||
case '?':
|
||||
default:
|
||||
return (db_verify_usage());
|
||||
}
|
||||
argc -= optind;
|
||||
argv += optind;
|
||||
|
||||
if (argc <= 0)
|
||||
return (db_verify_usage());
|
||||
|
||||
/* Handle possible interruptions. */
|
||||
__db_util_siginit();
|
||||
|
||||
/*
|
||||
* Create an environment object and initialize it for error
|
||||
* reporting.
|
||||
*/
|
||||
retry: if ((ret = db_env_create(&dbenv, 0)) != 0) {
|
||||
fprintf(stderr,
|
||||
"%s: db_env_create: %s\n", progname, db_strerror(ret));
|
||||
goto shutdown;
|
||||
}
|
||||
e_close = 1;
|
||||
|
||||
if (!quiet) {
|
||||
dbenv->set_errfile(dbenv, stderr);
|
||||
dbenv->set_errpfx(dbenv, progname);
|
||||
}
|
||||
|
||||
if (nflag) {
|
||||
if ((ret = dbenv->set_flags(dbenv, DB_NOLOCKING, 1)) != 0) {
|
||||
dbenv->err(dbenv, ret, "set_flags: DB_NOLOCKING");
|
||||
goto shutdown;
|
||||
}
|
||||
if ((ret = dbenv->set_flags(dbenv, DB_NOPANIC, 1)) != 0) {
|
||||
dbenv->err(dbenv, ret, "set_flags: DB_NOPANIC");
|
||||
goto shutdown;
|
||||
}
|
||||
}
|
||||
|
||||
if (passwd != NULL &&
|
||||
(ret = dbenv->set_encrypt(dbenv, passwd, DB_ENCRYPT_AES)) != 0) {
|
||||
dbenv->err(dbenv, ret, "set_passwd");
|
||||
goto shutdown;
|
||||
}
|
||||
/*
|
||||
* Attach to an mpool if it exists, but if that fails, attach to a
|
||||
* private region. In the latter case, declare a reasonably large
|
||||
* cache so that we don't fail when verifying large databases.
|
||||
*/
|
||||
private = 0;
|
||||
if ((ret =
|
||||
dbenv->open(dbenv, home, DB_INIT_MPOOL | DB_USE_ENVIRON, 0)) != 0) {
|
||||
if ((ret = dbenv->set_cachesize(dbenv, 0, cache, 1)) != 0) {
|
||||
dbenv->err(dbenv, ret, "set_cachesize");
|
||||
goto shutdown;
|
||||
}
|
||||
private = 1;
|
||||
if ((ret = dbenv->open(dbenv, home,
|
||||
DB_CREATE | DB_INIT_MPOOL | DB_PRIVATE | DB_USE_ENVIRON, 0)) != 0) {
|
||||
dbenv->err(dbenv, ret, "open");
|
||||
goto shutdown;
|
||||
}
|
||||
}
|
||||
|
||||
for (; !__db_util_interrupted() && argv[0] != NULL; ++argv) {
|
||||
if ((ret = db_create(&dbp, dbenv, 0)) != 0) {
|
||||
dbenv->err(dbenv, ret, "%s: db_create", progname);
|
||||
goto shutdown;
|
||||
}
|
||||
d_close = 1;
|
||||
|
||||
/*
|
||||
* We create a 2nd dbp to this database to get its pagesize
|
||||
* because the dbp we're using for verify cannot be opened.
|
||||
*/
|
||||
if (private) {
|
||||
if ((ret = db_create(&dbp1, dbenv, 0)) != 0) {
|
||||
dbenv->err(
|
||||
dbenv, ret, "%s: db_create", progname);
|
||||
goto shutdown;
|
||||
}
|
||||
|
||||
if ((ret = dbp1->open(dbp1, NULL,
|
||||
argv[0], NULL, DB_UNKNOWN, DB_RDONLY, 0)) != 0) {
|
||||
dbenv->err(dbenv, ret, "DB->open: %s", argv[0]);
|
||||
(void)dbp1->close(dbp1, 0);
|
||||
goto shutdown;
|
||||
}
|
||||
/*
|
||||
* If we get here, we can check the cache/page.
|
||||
* !!!
|
||||
* If we have to retry with an env with a larger
|
||||
* cache, we jump out of this loop. However, we
|
||||
* will still be working on the same argv when we
|
||||
* get back into the for-loop.
|
||||
*/
|
||||
ret = __db_util_cache(dbenv, dbp1, &cache, &resize);
|
||||
(void)dbp1->close(dbp1, 0);
|
||||
if (ret != 0)
|
||||
goto shutdown;
|
||||
|
||||
if (resize) {
|
||||
(void)dbp->close(dbp, 0);
|
||||
d_close = 0;
|
||||
|
||||
(void)dbenv->close(dbenv, 0);
|
||||
e_close = 0;
|
||||
goto retry;
|
||||
}
|
||||
}
|
||||
if ((ret = dbp->verify(dbp,
|
||||
argv[0], NULL, NULL, oflag ? DB_NOORDERCHK : 0)) != 0)
|
||||
dbp->err(dbp, ret, "DB->verify: %s", argv[0]);
|
||||
if ((t_ret = dbp->close(dbp, 0)) != 0 && ret == 0) {
|
||||
dbenv->err(dbenv, ret, "DB->close: %s", argv[0]);
|
||||
ret = t_ret;
|
||||
}
|
||||
d_close = 0;
|
||||
if (ret != 0)
|
||||
goto shutdown;
|
||||
}
|
||||
|
||||
if (0) {
|
||||
shutdown: exitval = 1;
|
||||
}
|
||||
|
||||
if (d_close && (ret = dbp->close(dbp, 0)) != 0) {
|
||||
exitval = 1;
|
||||
dbenv->err(dbenv, ret, "close");
|
||||
}
|
||||
if (e_close && (ret = dbenv->close(dbenv, 0)) != 0) {
|
||||
exitval = 1;
|
||||
fprintf(stderr,
|
||||
"%s: dbenv->close: %s\n", progname, db_strerror(ret));
|
||||
}
|
||||
|
||||
/* Resend any caught signal. */
|
||||
__db_util_sigresend();
|
||||
|
||||
return (exitval == 0 ? EXIT_SUCCESS : EXIT_FAILURE);
|
||||
}
|
||||
|
||||
int
|
||||
db_verify_usage()
|
||||
{
|
||||
fprintf(stderr, "%s\n",
|
||||
"usage: db_verify [-NoqV] [-h home] [-P password] db_file ...");
|
||||
return (EXIT_FAILURE);
|
||||
}
|
||||
|
||||
int
|
||||
db_verify_version_check(progname)
|
||||
const char *progname;
|
||||
{
|
||||
int v_major, v_minor, v_patch;
|
||||
|
||||
/* Make sure we're loaded with the right version of the DB library. */
|
||||
(void)db_version(&v_major, &v_minor, &v_patch);
|
||||
if (v_major != DB_VERSION_MAJOR ||
|
||||
v_minor != DB_VERSION_MINOR || v_patch != DB_VERSION_PATCH) {
|
||||
fprintf(stderr,
|
||||
"%s: version %d.%d.%d doesn't match library version %d.%d.%d\n",
|
||||
progname, DB_VERSION_MAJOR, DB_VERSION_MINOR,
|
||||
DB_VERSION_PATCH, v_major, v_minor, v_patch);
|
||||
return (EXIT_FAILURE);
|
||||
}
|
||||
return (0);
|
||||
}
|
@ -1,160 +0,0 @@
|
||||
Document file - DO NOT EDIT
|
||||
|
||||
<BEGIN> BUILD_PENTIUMgnu_BUILDRULE
|
||||
db_verify.out
|
||||
<END>
|
||||
|
||||
<BEGIN> BUILD_PENTIUMgnu_MACRO_AR
|
||||
ar386
|
||||
<END>
|
||||
|
||||
<BEGIN> BUILD_PENTIUMgnu_MACRO_ARCHIVE
|
||||
$(PRJ_DIR)/PENTIUMgnu/db_verify.a
|
||||
<END>
|
||||
|
||||
<BEGIN> BUILD_PENTIUMgnu_MACRO_AS
|
||||
cc386
|
||||
<END>
|
||||
|
||||
<BEGIN> BUILD_PENTIUMgnu_MACRO_CC
|
||||
cc386
|
||||
<END>
|
||||
|
||||
<BEGIN> BUILD_PENTIUMgnu_MACRO_CFLAGS
|
||||
-g \
|
||||
-mpentium \
|
||||
-ansi \
|
||||
-nostdinc \
|
||||
-DRW_MULTI_THREAD \
|
||||
-D_REENTRANT \
|
||||
-fvolatile \
|
||||
-nostdlib \
|
||||
-fno-builtin \
|
||||
-fno-defer-pop \
|
||||
-I$(PRJ_DIR)/.. \
|
||||
-I$(PRJ_DIR)/../.. \
|
||||
-I$(WIND_BASE)/target/h \
|
||||
-DCPU=PENTIUM
|
||||
<END>
|
||||
|
||||
<BEGIN> BUILD_PENTIUMgnu_MACRO_CFLAGS_AS
|
||||
-g \
|
||||
-mpentium \
|
||||
-ansi \
|
||||
-nostdinc \
|
||||
-fvolatile \
|
||||
-nostdlib \
|
||||
-fno-builtin \
|
||||
-fno-defer-pop \
|
||||
-P \
|
||||
-x \
|
||||
assembler-with-cpp \
|
||||
-I$(WIND_BASE)/target/h \
|
||||
-DCPU=PENTIUM
|
||||
<END>
|
||||
|
||||
<BEGIN> BUILD_PENTIUMgnu_MACRO_CPP
|
||||
cc386 -E -P -xc
|
||||
<END>
|
||||
|
||||
<BEGIN> BUILD_PENTIUMgnu_MACRO_LD
|
||||
ld386
|
||||
<END>
|
||||
|
||||
<BEGIN> BUILD_PENTIUMgnu_MACRO_LDDEPS
|
||||
|
||||
<END>
|
||||
|
||||
<BEGIN> BUILD_PENTIUMgnu_MACRO_LDFLAGS
|
||||
-X -N
|
||||
<END>
|
||||
|
||||
<BEGIN> BUILD_PENTIUMgnu_MACRO_LD_PARTIAL_FLAGS
|
||||
-X -r
|
||||
<END>
|
||||
|
||||
<BEGIN> BUILD_PENTIUMgnu_MACRO_NM
|
||||
nm386 -g
|
||||
<END>
|
||||
|
||||
<BEGIN> BUILD_PENTIUMgnu_MACRO_OPTION_DEFINE_MACRO
|
||||
-D
|
||||
<END>
|
||||
|
||||
<BEGIN> BUILD_PENTIUMgnu_MACRO_OPTION_INCLUDE_DIR
|
||||
-I
|
||||
<END>
|
||||
|
||||
<BEGIN> BUILD_PENTIUMgnu_MACRO_POST_BUILD_RULE
|
||||
|
||||
<END>
|
||||
|
||||
<BEGIN> BUILD_PENTIUMgnu_MACRO_PRJ_LIBS
|
||||
|
||||
<END>
|
||||
|
||||
<BEGIN> BUILD_PENTIUMgnu_MACRO_SIZE
|
||||
size386
|
||||
<END>
|
||||
|
||||
<BEGIN> BUILD_PENTIUMgnu_RO_DEPEND_PATH
|
||||
{$(WIND_BASE)/target/h/} \
|
||||
{$(WIND_BASE)/target/src/} \
|
||||
{$(WIND_BASE)/target/config/}
|
||||
<END>
|
||||
|
||||
<BEGIN> BUILD_PENTIUMgnu_TC
|
||||
::tc_PENTIUMgnu
|
||||
<END>
|
||||
|
||||
<BEGIN> BUILD_RULE_archive
|
||||
|
||||
<END>
|
||||
|
||||
<BEGIN> BUILD_RULE_db_verify.out
|
||||
|
||||
<END>
|
||||
|
||||
<BEGIN> BUILD_RULE_objects
|
||||
|
||||
<END>
|
||||
|
||||
<BEGIN> BUILD__CURRENT
|
||||
PENTIUMgnu
|
||||
<END>
|
||||
|
||||
<BEGIN> BUILD__LIST
|
||||
PENTIUMgnu
|
||||
<END>
|
||||
|
||||
<BEGIN> CORE_INFO_TYPE
|
||||
::prj_vxApp
|
||||
<END>
|
||||
|
||||
<BEGIN> CORE_INFO_VERSION
|
||||
2.0
|
||||
<END>
|
||||
|
||||
<BEGIN> FILE_db_verify.c_dependDone
|
||||
FALSE
|
||||
<END>
|
||||
|
||||
<BEGIN> FILE_db_verify.c_dependencies
|
||||
|
||||
<END>
|
||||
|
||||
<BEGIN> FILE_db_verify.c_objects
|
||||
db_verify.o
|
||||
<END>
|
||||
|
||||
<BEGIN> FILE_db_verify.c_tool
|
||||
C/C++ compiler
|
||||
<END>
|
||||
|
||||
<BEGIN> PROJECT_FILES
|
||||
$(PRJ_DIR)/db_verify.c
|
||||
<END>
|
||||
|
||||
<BEGIN> userComments
|
||||
db_verify
|
||||
<END>
|
@ -1,51 +0,0 @@
|
||||
#
|
||||
# Custom Makefile shell
|
||||
#
|
||||
# This file may be edited freely, since it will not be regenerated
|
||||
# by the project manager.
|
||||
#
|
||||
# Use this makefile to define rules to make external binaries
|
||||
# and deposit them in the $(EXTERNAL_BINARIES_DIR) directory.
|
||||
#
|
||||
# If you have specified external modules during your component
|
||||
# creation, you will find make rules already in place below.
|
||||
# You will likely have to edit these to suit your individual
|
||||
# build setup.
|
||||
#
|
||||
# You may wish to use the CPU, BUILD_SPEC or TOOL make variables in
|
||||
# your Makefile to support builds for different architectures. Use
|
||||
# the FORCE_EXTERNAL_MAKE phony target to ensure that your external
|
||||
# make always runs.
|
||||
#
|
||||
# The example below assumes that your custom makefile is in the
|
||||
# mySourceTree directory, and that the binary file it produces
|
||||
# is placed into the $(BUILD_SPEC) sub-directory.
|
||||
#
|
||||
# EXTERNAL_SOURCE_BASE = /folk/me/mySourceTree
|
||||
# EXTERNAL_MODULE = myLibrary.o
|
||||
# EXTERNAL_MAKE = make
|
||||
#
|
||||
# $(EXTERNAL_BINARIES_DIR)/$(EXTERNAL_MODULE) : FORCE_EXTERNAL_MAKE
|
||||
# $(EXTERNAL_MAKE) -C $(EXTERNAL_SOURCE_BASE) \
|
||||
# -f $(EXTERNAL_SOURCE_BASE)/Makefile \
|
||||
# CPU=$(CPU) BUILD_SPEC=$(BUILD_SPEC) $(@F)
|
||||
# $(CP) $(subst /,$(DIRCHAR),$(EXTERNAL_SOURCE_BASE)/$(BUILD_SPEC)/$(@F) $@)
|
||||
#
|
||||
# If you are not adding your external modules from the component wizard,
|
||||
# you will have to include them in your component yourself:
|
||||
#
|
||||
# From the GUI, you can do this with the Component's 'Add external module'
|
||||
# dialog.
|
||||
#
|
||||
# If you are using the command line, add the module(s) by editing the
|
||||
# MODULES line in component.cdf file, e.g.
|
||||
#
|
||||
# Component INCLUDE_MYCOMPONENT {
|
||||
#
|
||||
# MODULES foo.o goo.o \
|
||||
# myLibrary.o
|
||||
#
|
||||
|
||||
|
||||
# rules to build custom libraries
|
||||
|
@ -1,30 +0,0 @@
|
||||
/* component.cdf - dynamically updated configuration */
|
||||
|
||||
/*
|
||||
* NOTE: you may edit this file to alter the configuration
|
||||
* But all non-configuration information, including comments,
|
||||
* will be lost upon rebuilding this project.
|
||||
*/
|
||||
|
||||
/* Component information */
|
||||
|
||||
Component INCLUDE_DB_VERIFY {
|
||||
ENTRY_POINTS ALL_GLOBAL_SYMBOLS
|
||||
MODULES db_verify.o
|
||||
NAME db_verify
|
||||
PREF_DOMAIN ANY
|
||||
_INIT_ORDER usrComponentsInit
|
||||
}
|
||||
|
||||
/* EntryPoint information */
|
||||
|
||||
/* Module information */
|
||||
|
||||
Module db_verify.o {
|
||||
|
||||
NAME db_verify.o
|
||||
SRC_PATH_NAME $PRJ_DIR/../db_verify.c
|
||||
}
|
||||
|
||||
/* Parameter information */
|
||||
|
@ -1,475 +0,0 @@
|
||||
Document file - DO NOT EDIT
|
||||
|
||||
<BEGIN> CORE_INFO_TYPE
|
||||
::prj_component
|
||||
<END>
|
||||
|
||||
<BEGIN> CORE_INFO_VERSION
|
||||
AE1.1
|
||||
<END>
|
||||
|
||||
<BEGIN> BUILD__CURRENT
|
||||
PENTIUM2gnu.debug
|
||||
<END>
|
||||
|
||||
<BEGIN> BUILD_PENTIUM2gnu.debug_CURRENT_TARGET
|
||||
default
|
||||
<END>
|
||||
|
||||
<BEGIN> BUILD_PENTIUM2gnu.debug_DEFAULTFORCPU
|
||||
1
|
||||
<END>
|
||||
|
||||
<BEGIN> BUILD_PENTIUM2gnu.debug_FILE_$(PRJ_DIR)/../db_verify.c_infoTags
|
||||
toolMacro objects
|
||||
<END>
|
||||
|
||||
<BEGIN> BUILD_PENTIUM2gnu.debug_FILE_$(PRJ_DIR)/../db_verify.c_objects
|
||||
db_verify.o
|
||||
<END>
|
||||
|
||||
<BEGIN> BUILD_PENTIUM2gnu.debug_FILE_$(PRJ_DIR)/../db_verify.c_toolMacro
|
||||
CC
|
||||
<END>
|
||||
|
||||
<BEGIN> BUILD_PENTIUM2gnu.debug_FILE_$(PRJ_DIR)/../db_verify.c_objects
|
||||
db_verify.o
|
||||
<END>
|
||||
|
||||
<BEGIN> BUILD_PENTIUM2gnu.debug_FILE_$(PRJ_DIR)/../db_verify.c_toolMacro
|
||||
CC
|
||||
<END>
|
||||
|
||||
<BEGIN> BUILD_PENTIUM2gnu.debug_FILE_$(PRJ_DIR)/compConfig.c_infoTags
|
||||
toolMacro objects
|
||||
<END>
|
||||
|
||||
<BEGIN> BUILD_PENTIUM2gnu.debug_FILE_$(PRJ_DIR)/compConfig.c_objects
|
||||
compConfig.o
|
||||
<END>
|
||||
|
||||
<BEGIN> BUILD_PENTIUM2gnu.debug_FILE_$(PRJ_DIR)/compConfig.c_toolMacro
|
||||
CC
|
||||
<END>
|
||||
|
||||
<BEGIN> BUILD_PENTIUM2gnu.debug_MACRO_AR
|
||||
arpentium
|
||||
<END>
|
||||
|
||||
<BEGIN> BUILD_PENTIUM2gnu.debug_MACRO_AS
|
||||
ccpentium
|
||||
<END>
|
||||
|
||||
<BEGIN> BUILD_PENTIUM2gnu.debug_MACRO_CC
|
||||
ccpentium
|
||||
<END>
|
||||
|
||||
<BEGIN> BUILD_PENTIUM2gnu.debug_MACRO_CFLAGS
|
||||
-mcpu=pentiumpro \
|
||||
-march=pentiumpro \
|
||||
-ansi \
|
||||
-DRW_MULTI_THREAD \
|
||||
-D_REENTRANT \
|
||||
-g \
|
||||
-nostdlib \
|
||||
-fno-builtin \
|
||||
-fno-defer-pop \
|
||||
-MD \
|
||||
-Wall \
|
||||
-I. \
|
||||
-I$(WIND_BASE)/target/h \
|
||||
-I$(PRJ_DIR)/../.. \
|
||||
-I$(PRJ_DIR)/../../.. \
|
||||
-DCPU=PENTIUM2
|
||||
<END>
|
||||
|
||||
<BEGIN> BUILD_PENTIUM2gnu.debug_MACRO_CFLAGS_AS
|
||||
-mcpu=pentiumpro \
|
||||
-march=pentiumpro \
|
||||
-ansi \
|
||||
-g \
|
||||
-nostdlib \
|
||||
-fno-builtin \
|
||||
-fno-defer-pop \
|
||||
-P \
|
||||
-x \
|
||||
assembler-with-cpp \
|
||||
-Wall \
|
||||
-I. \
|
||||
-I$(WIND_BASE)/target/h \
|
||||
-DCPU=PENTIUM2
|
||||
<END>
|
||||
|
||||
<BEGIN> BUILD_PENTIUM2gnu.debug_MACRO_CPP
|
||||
ccpentium -E -P
|
||||
<END>
|
||||
|
||||
<BEGIN> BUILD_PENTIUM2gnu.debug_MACRO_CPPFILT
|
||||
c++filtpentium --strip-underscores
|
||||
<END>
|
||||
|
||||
<BEGIN> BUILD_PENTIUM2gnu.debug_MACRO_LD
|
||||
ldpentium
|
||||
<END>
|
||||
|
||||
<BEGIN> BUILD_PENTIUM2gnu.debug_MACRO_LDFLAGS
|
||||
-X
|
||||
<END>
|
||||
|
||||
<BEGIN> BUILD_PENTIUM2gnu.debug_MACRO_LDPARTIAL
|
||||
ccpentium \
|
||||
-B$(WIND_BASE)/host/$(WIND_HOST_TYPE)/lib/gcc-lib/ \
|
||||
-nostdlib \
|
||||
-r \
|
||||
-Wl,-X
|
||||
<END>
|
||||
|
||||
<BEGIN> BUILD_PENTIUM2gnu.debug_MACRO_LD_PARTIAL_FLAGS
|
||||
-X -r
|
||||
<END>
|
||||
|
||||
<BEGIN> BUILD_PENTIUM2gnu.debug_MACRO_NM
|
||||
nmpentium -g
|
||||
<END>
|
||||
|
||||
<BEGIN> BUILD_PENTIUM2gnu.debug_MACRO_OPTION_DEFINE_MACRO
|
||||
-D
|
||||
<END>
|
||||
|
||||
<BEGIN> BUILD_PENTIUM2gnu.debug_MACRO_OPTION_GENERATE_DEPENDENCY_FILE
|
||||
-MD
|
||||
<END>
|
||||
|
||||
<BEGIN> BUILD_PENTIUM2gnu.debug_MACRO_OPTION_INCLUDE_DIR
|
||||
-I
|
||||
<END>
|
||||
|
||||
<BEGIN> BUILD_PENTIUM2gnu.debug_MACRO_RELEASE
|
||||
0
|
||||
<END>
|
||||
|
||||
<BEGIN> BUILD_PENTIUM2gnu.debug_MACRO_SIZE
|
||||
sizepentium
|
||||
<END>
|
||||
|
||||
<BEGIN> BUILD_PENTIUM2gnu.debug_RELEASE
|
||||
0
|
||||
<END>
|
||||
|
||||
<BEGIN> BUILD_PENTIUM2gnu.debug_RO_DEPEND_PATH
|
||||
$(WIND_BASE)/target/h/
|
||||
<END>
|
||||
|
||||
<BEGIN> BUILD_PENTIUM2gnu.debug_TC
|
||||
::tc_PENTIUM2gnu.debug
|
||||
<END>
|
||||
|
||||
<BEGIN> BUILD_PENTIUM2gnu.release_DEFAULTFORCPU
|
||||
0
|
||||
<END>
|
||||
|
||||
<BEGIN> BUILD_PENTIUM2gnu.release_FILE_$(PRJ_DIR)/../db_verify.c_infoTags
|
||||
toolMacro objects
|
||||
<END>
|
||||
|
||||
<BEGIN> BUILD_PENTIUM2gnu.release_FILE_$(PRJ_DIR)/../db_verify.c_objects
|
||||
db_verify.o
|
||||
<END>
|
||||
|
||||
<BEGIN> BUILD_PENTIUM2gnu.release_FILE_$(PRJ_DIR)/../db_verify.c_toolMacro
|
||||
CC
|
||||
<END>
|
||||
|
||||
<BEGIN> BUILD_PENTIUM2gnu.release_FILE_$(PRJ_DIR)/compConfig.c_infoTags
|
||||
toolMacro objects
|
||||
<END>
|
||||
|
||||
<BEGIN> BUILD_PENTIUM2gnu.release_FILE_$(PRJ_DIR)/compConfig.c_objects
|
||||
compConfig.o
|
||||
<END>
|
||||
|
||||
<BEGIN> BUILD_PENTIUM2gnu.release_FILE_$(PRJ_DIR)/compConfig.c_toolMacro
|
||||
CC
|
||||
<END>
|
||||
|
||||
<BEGIN> BUILD_PENTIUM2gnu.release_MACRO_AR
|
||||
arpentium
|
||||
<END>
|
||||
|
||||
<BEGIN> BUILD_PENTIUM2gnu.release_MACRO_AS
|
||||
ccpentium
|
||||
<END>
|
||||
|
||||
<BEGIN> BUILD_PENTIUM2gnu.release_MACRO_CC
|
||||
ccpentium
|
||||
<END>
|
||||
|
||||
<BEGIN> BUILD_PENTIUM2gnu.release_MACRO_CFLAGS
|
||||
-mcpu=pentiumpro \
|
||||
-march=pentiumpro \
|
||||
-ansi \
|
||||
-DRW_MULTI_THREAD \
|
||||
-D_REENTRANT \
|
||||
-O2 \
|
||||
-nostdlib \
|
||||
-fno-builtin \
|
||||
-fno-defer-pop \
|
||||
-MD \
|
||||
-Wall \
|
||||
-I. \
|
||||
-I$(WIND_BASE)/target/h \
|
||||
-I$(PRJ_DIR)/../.. \
|
||||
-I$(PRJ_DIR)/../../.. \
|
||||
-DCPU=PENTIUM2
|
||||
<END>
|
||||
|
||||
<BEGIN> BUILD_PENTIUM2gnu.release_MACRO_CFLAGS_AS
|
||||
-mcpu=pentiumpro \
|
||||
-march=pentiumpro \
|
||||
-ansi \
|
||||
-O2 \
|
||||
-nostdlib \
|
||||
-fno-builtin \
|
||||
-fno-defer-pop \
|
||||
-P \
|
||||
-x \
|
||||
assembler-with-cpp \
|
||||
-Wall \
|
||||
-I. \
|
||||
-I$(WIND_BASE)/target/h \
|
||||
-DCPU=PENTIUM2
|
||||
<END>
|
||||
|
||||
<BEGIN> BUILD_PENTIUM2gnu.release_MACRO_CPP
|
||||
ccpentium -E -P
|
||||
<END>
|
||||
|
||||
<BEGIN> BUILD_PENTIUM2gnu.release_MACRO_CPPFILT
|
||||
c++filtpentium --strip-underscores
|
||||
<END>
|
||||
|
||||
<BEGIN> BUILD_PENTIUM2gnu.release_MACRO_LD
|
||||
ldpentium
|
||||
<END>
|
||||
|
||||
<BEGIN> BUILD_PENTIUM2gnu.release_MACRO_LDFLAGS
|
||||
-X
|
||||
<END>
|
||||
|
||||
<BEGIN> BUILD_PENTIUM2gnu.release_MACRO_LDPARTIAL
|
||||
ccpentium \
|
||||
-B$(WIND_BASE)/host/$(WIND_HOST_TYPE)/lib/gcc-lib/ \
|
||||
-nostdlib \
|
||||
-r \
|
||||
-Wl,-X
|
||||
<END>
|
||||
|
||||
<BEGIN> BUILD_PENTIUM2gnu.release_MACRO_LD_PARTIAL_FLAGS
|
||||
-X -r
|
||||
<END>
|
||||
|
||||
<BEGIN> BUILD_PENTIUM2gnu.release_MACRO_NM
|
||||
nmpentium -g
|
||||
<END>
|
||||
|
||||
<BEGIN> BUILD_PENTIUM2gnu.release_MACRO_OPTION_DEFINE_MACRO
|
||||
-D
|
||||
<END>
|
||||
|
||||
<BEGIN> BUILD_PENTIUM2gnu.release_MACRO_OPTION_GENERATE_DEPENDENCY_FILE
|
||||
-MD
|
||||
<END>
|
||||
|
||||
<BEGIN> BUILD_PENTIUM2gnu.release_MACRO_OPTION_INCLUDE_DIR
|
||||
-I
|
||||
<END>
|
||||
|
||||
<BEGIN> BUILD_PENTIUM2gnu.release_MACRO_RELEASE
|
||||
1
|
||||
<END>
|
||||
|
||||
<BEGIN> BUILD_PENTIUM2gnu.release_MACRO_SIZE
|
||||
sizepentium
|
||||
<END>
|
||||
|
||||
<BEGIN> BUILD_PENTIUM2gnu.release_RELEASE
|
||||
1
|
||||
<END>
|
||||
|
||||
<BEGIN> BUILD_PENTIUM2gnu.release_RO_DEPEND_PATH
|
||||
$(WIND_BASE)/target/h/
|
||||
<END>
|
||||
|
||||
<BEGIN> BUILD_PENTIUM2gnu.release_TC
|
||||
::tc_PENTIUM2gnu.release
|
||||
<END>
|
||||
|
||||
<BEGIN> BUILD_PENTIUMgnu.debug_DEFAULTFORCPU
|
||||
1
|
||||
<END>
|
||||
|
||||
<BEGIN> BUILD_PENTIUMgnu.debug_FILE_$(PRJ_DIR)/../db_verify.c_infoTags
|
||||
toolMacro objects
|
||||
<END>
|
||||
|
||||
<BEGIN> BUILD_PENTIUMgnu.debug_FILE_$(PRJ_DIR)/../db_verify.c_objects
|
||||
db_verify.o
|
||||
<END>
|
||||
|
||||
<BEGIN> BUILD_PENTIUMgnu.debug_FILE_$(PRJ_DIR)/../db_verify.c_toolMacro
|
||||
CC
|
||||
<END>
|
||||
|
||||
<BEGIN> BUILD_PENTIUMgnu.debug_FILE_$(PRJ_DIR)/compConfig.c_infoTags
|
||||
toolMacro objects
|
||||
<END>
|
||||
|
||||
<BEGIN> BUILD_PENTIUMgnu.debug_FILE_$(PRJ_DIR)/compConfig.c_objects
|
||||
compConfig.o
|
||||
<END>
|
||||
|
||||
<BEGIN> BUILD_PENTIUMgnu.debug_FILE_$(PRJ_DIR)/compConfig.c_toolMacro
|
||||
CC
|
||||
<END>
|
||||
|
||||
<BEGIN> BUILD_PENTIUMgnu.debug_MACRO_AR
|
||||
arpentium
|
||||
<END>
|
||||
|
||||
<BEGIN> BUILD_PENTIUMgnu.debug_MACRO_AS
|
||||
ccpentium
|
||||
<END>
|
||||
|
||||
<BEGIN> BUILD_PENTIUMgnu.debug_MACRO_CC
|
||||
ccpentium
|
||||
<END>
|
||||
|
||||
<BEGIN> BUILD_PENTIUMgnu.debug_MACRO_CFLAGS
|
||||
-mcpu=pentium \
|
||||
-march=pentium \
|
||||
-ansi \
|
||||
-DRW_MULTI_THREAD \
|
||||
-D_REENTRANT \
|
||||
-g \
|
||||
-nostdlib \
|
||||
-fno-builtin \
|
||||
-fno-defer-pop \
|
||||
-MD \
|
||||
-Wall \
|
||||
-I. \
|
||||
-I$(WIND_BASE)/target/h \
|
||||
-I$(PRJ_DIR)/../.. \
|
||||
-I$(PRJ_DIR)/../../.. \
|
||||
-DCPU=PENTIUM
|
||||
<END>
|
||||
|
||||
<BEGIN> BUILD_PENTIUMgnu.debug_MACRO_CFLAGS_AS
|
||||
-mcpu=pentium \
|
||||
-march=pentium \
|
||||
-ansi \
|
||||
-g \
|
||||
-nostdlib \
|
||||
-fno-builtin \
|
||||
-fno-defer-pop \
|
||||
-P \
|
||||
-x \
|
||||
assembler-with-cpp \
|
||||
-Wall \
|
||||
-I. \
|
||||
-I$(WIND_BASE)/target/h \
|
||||
-DCPU=PENTIUM
|
||||
<END>
|
||||
|
||||
<BEGIN> BUILD_PENTIUMgnu.debug_MACRO_CPP
|
||||
ccpentium -E -P
|
||||
<END>
|
||||
|
||||
<BEGIN> BUILD_PENTIUMgnu.debug_MACRO_CPPFILT
|
||||
c++filtpentium --strip-underscores
|
||||
<END>
|
||||
|
||||
<BEGIN> BUILD_PENTIUMgnu.debug_MACRO_LD
|
||||
ldpentium
|
||||
<END>
|
||||
|
||||
<BEGIN> BUILD_PENTIUMgnu.debug_MACRO_LDFLAGS
|
||||
-X
|
||||
<END>
|
||||
|
||||
<BEGIN> BUILD_PENTIUMgnu.debug_MACRO_LDPARTIAL
|
||||
ccpentium \
|
||||
-B$(WIND_BASE)/host/$(WIND_HOST_TYPE)/lib/gcc-lib/ \
|
||||
-nostdlib \
|
||||
-r \
|
||||
-Wl,-X
|
||||
<END>
|
||||
|
||||
<BEGIN> BUILD_PENTIUMgnu.debug_MACRO_LD_PARTIAL_FLAGS
|
||||
-X -r
|
||||
<END>
|
||||
|
||||
<BEGIN> BUILD_PENTIUMgnu.debug_MACRO_NM
|
||||
nmpentium -g
|
||||
<END>
|
||||
|
||||
<BEGIN> BUILD_PENTIUMgnu.debug_MACRO_OPTION_DEFINE_MACRO
|
||||
-D
|
||||
<END>
|
||||
|
||||
<BEGIN> BUILD_PENTIUMgnu.debug_MACRO_OPTION_GENERATE_DEPENDENCY_FILE
|
||||
-MD
|
||||
<END>
|
||||
|
||||
<BEGIN> BUILD_PENTIUMgnu.debug_MACRO_OPTION_INCLUDE_DIR
|
||||
-I
|
||||
<END>
|
||||
|
||||
<BEGIN> BUILD_PENTIUMgnu.debug_MACRO_RELEASE
|
||||
0
|
||||
<END>
|
||||
|
||||
<BEGIN> BUILD_PENTIUMgnu.debug_MACRO_SIZE
|
||||
sizepentium
|
||||
<END>
|
||||
|
||||
<BEGIN> BUILD_PENTIUMgnu.debug_RELEASE
|
||||
0
|
||||
<END>
|
||||
|
||||
<BEGIN> BUILD_PENTIUMgnu.debug_RO_DEPEND_PATH
|
||||
$(WIND_BASE)/target/h/
|
||||
<END>
|
||||
|
||||
<BEGIN> BUILD_PENTIUMgnu.debug_TC
|
||||
::tc_PENTIUMgnu.debug
|
||||
<END>
|
||||
|
||||
<BEGIN> BUILD__LIST
|
||||
PENTIUM2gnu.debug PENTIUM2gnu.release PENTIUMgnu.debug
|
||||
<END>
|
||||
|
||||
<BEGIN> PROJECT_FILES
|
||||
$(PRJ_DIR)/../db_verify.c \
|
||||
$(PRJ_DIR)/compConfig.c
|
||||
<END>
|
||||
|
||||
<BEGIN> WCC__CDF_PATH
|
||||
$(PRJ_DIR)
|
||||
<END>
|
||||
|
||||
<BEGIN> WCC__CURRENT
|
||||
PENTIUM2gnu.debug
|
||||
<END>
|
||||
|
||||
<BEGIN> WCC__LIST
|
||||
PENTIUM2gnu.debug
|
||||
<END>
|
||||
|
||||
<BEGIN> WCC__MXR_LIBS
|
||||
lib$(CPU)$(TOOL)vx.a
|
||||
<END>
|
||||
|
||||
<BEGIN> WCC__OBJS_PATH
|
||||
$(WIND_BASE)/target/lib/obj$CPU$TOOLvx
|
||||
<END>
|
||||
|
@ -1,178 +0,0 @@
|
||||
/*-
|
||||
* See the file LICENSE for redistribution information.
|
||||
*
|
||||
* Copyright (c) 1997-2002
|
||||
* Sleepycat Software. All rights reserved.
|
||||
*
|
||||
* $Id: ex_access.c,v 11.22 2002/09/03 12:54:26 bostic Exp $
|
||||
*/
|
||||
|
||||
#include <sys/types.h>
|
||||
|
||||
#include <stdio.h>
|
||||
#include <stdlib.h>
|
||||
#include <string.h>
|
||||
|
||||
#ifdef _WIN32
|
||||
extern int getopt(int, char * const *, const char *);
|
||||
#else
|
||||
#include <unistd.h>
|
||||
#endif
|
||||
|
||||
#include <db_config.h>
|
||||
#include <db_int.h>
|
||||
|
||||
#define DATABASE "access.db"
|
||||
int dbdemo_main __P((int, char *[]));
|
||||
int dbdemo_usage __P((void));
|
||||
|
||||
int
|
||||
dbdemo(args)
|
||||
char *args;
|
||||
{
|
||||
int argc;
|
||||
char **argv;
|
||||
|
||||
__db_util_arg("dbdemo", args, &argc, &argv);
|
||||
return (dbdemo_main(argc, argv) ? EXIT_FAILURE : EXIT_SUCCESS);
|
||||
}
|
||||
|
||||
#include <stdio.h>
|
||||
#define ERROR_RETURN ERROR
|
||||
|
||||
int
|
||||
dbdemo_main(argc, argv)
|
||||
int argc;
|
||||
char *argv[];
|
||||
{
|
||||
extern int optind, __db_getopt_reset;
|
||||
DB *dbp;
|
||||
DBC *dbcp;
|
||||
DBT key, data;
|
||||
u_int32_t len;
|
||||
int ch, ret, rflag;
|
||||
char *database, *p, *t, buf[1024], rbuf[1024];
|
||||
const char *progname = "dbdemo"; /* Program name. */
|
||||
|
||||
rflag = 0;
|
||||
__db_getopt_reset = 1;
|
||||
while ((ch = getopt(argc, argv, "r")) != EOF)
|
||||
switch (ch) {
|
||||
case 'r':
|
||||
rflag = 1;
|
||||
break;
|
||||
case '?':
|
||||
default:
|
||||
return (dbdemo_usage());
|
||||
}
|
||||
argc -= optind;
|
||||
argv += optind;
|
||||
|
||||
/* Accept optional database name. */
|
||||
database = *argv == NULL ? DATABASE : argv[0];
|
||||
|
||||
/* Optionally discard the database. */
|
||||
if (rflag)
|
||||
(void)remove(database);
|
||||
|
||||
/* Create and initialize database object, open the database. */
|
||||
if ((ret = db_create(&dbp, NULL, 0)) != 0) {
|
||||
fprintf(stderr,
|
||||
"%s: db_create: %s\n", progname, db_strerror(ret));
|
||||
return (EXIT_FAILURE);
|
||||
}
|
||||
dbp->set_errfile(dbp, stderr);
|
||||
dbp->set_errpfx(dbp, progname);
|
||||
if ((ret = dbp->set_pagesize(dbp, 1024)) != 0) {
|
||||
dbp->err(dbp, ret, "set_pagesize");
|
||||
goto err1;
|
||||
}
|
||||
if ((ret = dbp->set_cachesize(dbp, 0, 32 * 1024, 0)) != 0) {
|
||||
dbp->err(dbp, ret, "set_cachesize");
|
||||
goto err1;
|
||||
}
|
||||
if ((ret = dbp->open(dbp,
|
||||
NULL, database, NULL, DB_BTREE, DB_CREATE, 0664)) != 0) {
|
||||
dbp->err(dbp, ret, "%s: open", database);
|
||||
goto err1;
|
||||
}
|
||||
|
||||
/*
|
||||
* Insert records into the database, where the key is the user
|
||||
* input and the data is the user input in reverse order.
|
||||
*/
|
||||
memset(&key, 0, sizeof(DBT));
|
||||
memset(&data, 0, sizeof(DBT));
|
||||
for (;;) {
|
||||
printf("input> ");
|
||||
fflush(stdout);
|
||||
if (fgets(buf, sizeof(buf), stdin) == NULL)
|
||||
break;
|
||||
if (strcmp(buf, "exit\n") == 0 || strcmp(buf, "quit\n") == 0)
|
||||
break;
|
||||
if ((len = strlen(buf)) <= 1)
|
||||
continue;
|
||||
for (t = rbuf, p = buf + (len - 2); p >= buf;)
|
||||
*t++ = *p--;
|
||||
*t++ = '\0';
|
||||
|
||||
key.data = buf;
|
||||
data.data = rbuf;
|
||||
data.size = key.size = len - 1;
|
||||
|
||||
switch (ret =
|
||||
dbp->put(dbp, NULL, &key, &data, DB_NOOVERWRITE)) {
|
||||
case 0:
|
||||
break;
|
||||
default:
|
||||
dbp->err(dbp, ret, "DB->put");
|
||||
if (ret != DB_KEYEXIST)
|
||||
goto err1;
|
||||
break;
|
||||
}
|
||||
}
|
||||
printf("\n");
|
||||
|
||||
/* Acquire a cursor for the database. */
|
||||
if ((ret = dbp->cursor(dbp, NULL, &dbcp, 0)) != 0) {
|
||||
dbp->err(dbp, ret, "DB->cursor");
|
||||
goto err1;
|
||||
}
|
||||
|
||||
/* Initialize the key/data pair so the flags aren't set. */
|
||||
memset(&key, 0, sizeof(key));
|
||||
memset(&data, 0, sizeof(data));
|
||||
|
||||
/* Walk through the database and print out the key/data pairs. */
|
||||
while ((ret = dbcp->c_get(dbcp, &key, &data, DB_NEXT)) == 0)
|
||||
printf("%.*s : %.*s\n",
|
||||
(int)key.size, (char *)key.data,
|
||||
(int)data.size, (char *)data.data);
|
||||
if (ret != DB_NOTFOUND) {
|
||||
dbp->err(dbp, ret, "DBcursor->get");
|
||||
goto err2;
|
||||
}
|
||||
|
||||
/* Close everything down. */
|
||||
if ((ret = dbcp->c_close(dbcp)) != 0) {
|
||||
dbp->err(dbp, ret, "DBcursor->close");
|
||||
goto err1;
|
||||
}
|
||||
if ((ret = dbp->close(dbp, 0)) != 0) {
|
||||
fprintf(stderr,
|
||||
"%s: DB->close: %s\n", progname, db_strerror(ret));
|
||||
return (EXIT_FAILURE);
|
||||
}
|
||||
return (EXIT_SUCCESS);
|
||||
|
||||
err2: (void)dbcp->c_close(dbcp);
|
||||
err1: (void)dbp->close(dbp, 0);
|
||||
return (EXIT_FAILURE);
|
||||
}
|
||||
|
||||
int
|
||||
dbdemo_usage()
|
||||
{
|
||||
(void)fprintf(stderr, "usage: ex_access [-r] [database]\n");
|
||||
return (EXIT_FAILURE);
|
||||
}
|
@ -1,160 +0,0 @@
|
||||
Document file - DO NOT EDIT
|
||||
|
||||
<BEGIN> BUILD_PENTIUMgnu_BUILDRULE
|
||||
dbdemo.out
|
||||
<END>
|
||||
|
||||
<BEGIN> BUILD_PENTIUMgnu_MACRO_AR
|
||||
ar386
|
||||
<END>
|
||||
|
||||
<BEGIN> BUILD_PENTIUMgnu_MACRO_ARCHIVE
|
||||
$(PRJ_DIR)/PENTIUMgnu/dbdemo.a
|
||||
<END>
|
||||
|
||||
<BEGIN> BUILD_PENTIUMgnu_MACRO_AS
|
||||
cc386
|
||||
<END>
|
||||
|
||||
<BEGIN> BUILD_PENTIUMgnu_MACRO_CC
|
||||
cc386
|
||||
<END>
|
||||
|
||||
<BEGIN> BUILD_PENTIUMgnu_MACRO_CFLAGS
|
||||
-g \
|
||||
-mpentium \
|
||||
-ansi \
|
||||
-nostdinc \
|
||||
-DRW_MULTI_THREAD \
|
||||
-D_REENTRANT \
|
||||
-fvolatile \
|
||||
-nostdlib \
|
||||
-fno-builtin \
|
||||
-fno-defer-pop \
|
||||
-I$(PRJ_DIR)/.. \
|
||||
-I$(PRJ_DIR)/../.. \
|
||||
-I$(WIND_BASE)/target/h \
|
||||
-DCPU=PENTIUM
|
||||
<END>
|
||||
|
||||
<BEGIN> BUILD_PENTIUMgnu_MACRO_CFLAGS_AS
|
||||
-g \
|
||||
-mpentium \
|
||||
-ansi \
|
||||
-nostdinc \
|
||||
-fvolatile \
|
||||
-nostdlib \
|
||||
-fno-builtin \
|
||||
-fno-defer-pop \
|
||||
-P \
|
||||
-x \
|
||||
assembler-with-cpp \
|
||||
-I$(WIND_BASE)/target/h \
|
||||
-DCPU=PENTIUM
|
||||
<END>
|
||||
|
||||
<BEGIN> BUILD_PENTIUMgnu_MACRO_CPP
|
||||
cc386 -E -P -xc
|
||||
<END>
|
||||
|
||||
<BEGIN> BUILD_PENTIUMgnu_MACRO_LD
|
||||
ld386
|
||||
<END>
|
||||
|
||||
<BEGIN> BUILD_PENTIUMgnu_MACRO_LDDEPS
|
||||
|
||||
<END>
|
||||
|
||||
<BEGIN> BUILD_PENTIUMgnu_MACRO_LDFLAGS
|
||||
-X -N
|
||||
<END>
|
||||
|
||||
<BEGIN> BUILD_PENTIUMgnu_MACRO_LD_PARTIAL_FLAGS
|
||||
-X -r
|
||||
<END>
|
||||
|
||||
<BEGIN> BUILD_PENTIUMgnu_MACRO_NM
|
||||
nm386 -g
|
||||
<END>
|
||||
|
||||
<BEGIN> BUILD_PENTIUMgnu_MACRO_OPTION_DEFINE_MACRO
|
||||
-D
|
||||
<END>
|
||||
|
||||
<BEGIN> BUILD_PENTIUMgnu_MACRO_OPTION_INCLUDE_DIR
|
||||
-I
|
||||
<END>
|
||||
|
||||
<BEGIN> BUILD_PENTIUMgnu_MACRO_POST_BUILD_RULE
|
||||
|
||||
<END>
|
||||
|
||||
<BEGIN> BUILD_PENTIUMgnu_MACRO_PRJ_LIBS
|
||||
|
||||
<END>
|
||||
|
||||
<BEGIN> BUILD_PENTIUMgnu_MACRO_SIZE
|
||||
size386
|
||||
<END>
|
||||
|
||||
<BEGIN> BUILD_PENTIUMgnu_RO_DEPEND_PATH
|
||||
{$(WIND_BASE)/target/h/} \
|
||||
{$(WIND_BASE)/target/src/} \
|
||||
{$(WIND_BASE)/target/config/}
|
||||
<END>
|
||||
|
||||
<BEGIN> BUILD_PENTIUMgnu_TC
|
||||
::tc_PENTIUMgnu
|
||||
<END>
|
||||
|
||||
<BEGIN> BUILD_RULE_archive
|
||||
|
||||
<END>
|
||||
|
||||
<BEGIN> BUILD_RULE_dbdemo.out
|
||||
|
||||
<END>
|
||||
|
||||
<BEGIN> BUILD_RULE_objects
|
||||
|
||||
<END>
|
||||
|
||||
<BEGIN> BUILD__CURRENT
|
||||
PENTIUMgnu
|
||||
<END>
|
||||
|
||||
<BEGIN> BUILD__LIST
|
||||
PENTIUMgnu
|
||||
<END>
|
||||
|
||||
<BEGIN> CORE_INFO_TYPE
|
||||
::prj_vxApp
|
||||
<END>
|
||||
|
||||
<BEGIN> CORE_INFO_VERSION
|
||||
2.0
|
||||
<END>
|
||||
|
||||
<BEGIN> FILE_dbdemo.c_dependDone
|
||||
FALSE
|
||||
<END>
|
||||
|
||||
<BEGIN> FILE_dbdemo.c_dependencies
|
||||
|
||||
<END>
|
||||
|
||||
<BEGIN> FILE_dbdemo.c_objects
|
||||
dbdemo.o
|
||||
<END>
|
||||
|
||||
<BEGIN> FILE_dbdemo.c_tool
|
||||
C/C++ compiler
|
||||
<END>
|
||||
|
||||
<BEGIN> PROJECT_FILES
|
||||
$(PRJ_DIR)/dbdemo.c
|
||||
<END>
|
||||
|
||||
<BEGIN> userComments
|
||||
dbdemo
|
||||
<END>
|
@ -1,51 +0,0 @@
|
||||
#
|
||||
# Custom Makefile shell
|
||||
#
|
||||
# This file may be edited freely, since it will not be regenerated
|
||||
# by the project manager.
|
||||
#
|
||||
# Use this makefile to define rules to make external binaries
|
||||
# and deposit them in the $(EXTERNAL_BINARIES_DIR) directory.
|
||||
#
|
||||
# If you have specified external modules during your component
|
||||
# creation, you will find make rules already in place below.
|
||||
# You will likely have to edit these to suit your individual
|
||||
# build setup.
|
||||
#
|
||||
# You may wish to use the CPU, BUILD_SPEC or TOOL make variables in
|
||||
# your Makefile to support builds for different architectures. Use
|
||||
# the FORCE_EXTERNAL_MAKE phony target to ensure that your external
|
||||
# make always runs.
|
||||
#
|
||||
# The example below assumes that your custom makefile is in the
|
||||
# mySourceTree directory, and that the binary file it produces
|
||||
# is placed into the $(BUILD_SPEC) sub-directory.
|
||||
#
|
||||
# EXTERNAL_SOURCE_BASE = /folk/me/mySourceTree
|
||||
# EXTERNAL_MODULE = myLibrary.o
|
||||
# EXTERNAL_MAKE = make
|
||||
#
|
||||
# $(EXTERNAL_BINARIES_DIR)/$(EXTERNAL_MODULE) : FORCE_EXTERNAL_MAKE
|
||||
# $(EXTERNAL_MAKE) -C $(EXTERNAL_SOURCE_BASE) \
|
||||
# -f $(EXTERNAL_SOURCE_BASE)/Makefile \
|
||||
# CPU=$(CPU) BUILD_SPEC=$(BUILD_SPEC) $(@F)
|
||||
# $(CP) $(subst /,$(DIRCHAR),$(EXTERNAL_SOURCE_BASE)/$(BUILD_SPEC)/$(@F) $@)
|
||||
#
|
||||
# If you are not adding your external modules from the component wizard,
|
||||
# you will have to include them in your component yourself:
|
||||
#
|
||||
# From the GUI, you can do this with the Component's 'Add external module'
|
||||
# dialog.
|
||||
#
|
||||
# If you are using the command line, add the module(s) by editing the
|
||||
# MODULES line in component.cdf file, e.g.
|
||||
#
|
||||
# Component INCLUDE_MYCOMPONENT {
|
||||
#
|
||||
# MODULES foo.o goo.o \
|
||||
# myLibrary.o
|
||||
#
|
||||
|
||||
|
||||
# rules to build custom libraries
|
||||
|
@ -1,30 +0,0 @@
|
||||
/* component.cdf - dynamically updated configuration */
|
||||
|
||||
/*
|
||||
* NOTE: you may edit this file to alter the configuration
|
||||
* But all non-configuration information, including comments,
|
||||
* will be lost upon rebuilding this project.
|
||||
*/
|
||||
|
||||
/* Component information */
|
||||
|
||||
Component INCLUDE_DBDEMO {
|
||||
ENTRY_POINTS ALL_GLOBAL_SYMBOLS
|
||||
MODULES dbdemo.o
|
||||
NAME dbdemo
|
||||
PREF_DOMAIN ANY
|
||||
_INIT_ORDER usrComponentsInit
|
||||
}
|
||||
|
||||
/* EntryPoint information */
|
||||
|
||||
/* Module information */
|
||||
|
||||
Module dbdemo.o {
|
||||
|
||||
NAME dbdemo.o
|
||||
SRC_PATH_NAME $PRJ_DIR/../dbdemo.c
|
||||
}
|
||||
|
||||
/* Parameter information */
|
||||
|
@ -1,475 +0,0 @@
|
||||
Document file - DO NOT EDIT
|
||||
|
||||
<BEGIN> CORE_INFO_TYPE
|
||||
::prj_component
|
||||
<END>
|
||||
|
||||
<BEGIN> CORE_INFO_VERSION
|
||||
AE1.1
|
||||
<END>
|
||||
|
||||
<BEGIN> BUILD__CURRENT
|
||||
PENTIUM2gnu.debug
|
||||
<END>
|
||||
|
||||
<BEGIN> BUILD_PENTIUM2gnu.debug_CURRENT_TARGET
|
||||
default
|
||||
<END>
|
||||
|
||||
<BEGIN> BUILD_PENTIUM2gnu.debug_DEFAULTFORCPU
|
||||
1
|
||||
<END>
|
||||
|
||||
<BEGIN> BUILD_PENTIUM2gnu.debug_FILE_$(PRJ_DIR)/../dbdemo.c_infoTags
|
||||
toolMacro objects
|
||||
<END>
|
||||
|
||||
<BEGIN> BUILD_PENTIUM2gnu.debug_FILE_$(PRJ_DIR)/../dbdemo.c_objects
|
||||
dbdemo.o
|
||||
<END>
|
||||
|
||||
<BEGIN> BUILD_PENTIUM2gnu.debug_FILE_$(PRJ_DIR)/../dbdemo.c_toolMacro
|
||||
CC
|
||||
<END>
|
||||
|
||||
<BEGIN> BUILD_PENTIUM2gnu.debug_FILE_$(PRJ_DIR)/../dbdemo.c_objects
|
||||
dbdemo.o
|
||||
<END>
|
||||
|
||||
<BEGIN> BUILD_PENTIUM2gnu.debug_FILE_$(PRJ_DIR)/../dbdemo.c_toolMacro
|
||||
CC
|
||||
<END>
|
||||
|
||||
<BEGIN> BUILD_PENTIUM2gnu.debug_FILE_$(PRJ_DIR)/compConfig.c_infoTags
|
||||
toolMacro objects
|
||||
<END>
|
||||
|
||||
<BEGIN> BUILD_PENTIUM2gnu.debug_FILE_$(PRJ_DIR)/compConfig.c_objects
|
||||
compConfig.o
|
||||
<END>
|
||||
|
||||
<BEGIN> BUILD_PENTIUM2gnu.debug_FILE_$(PRJ_DIR)/compConfig.c_toolMacro
|
||||
CC
|
||||
<END>
|
||||
|
||||
<BEGIN> BUILD_PENTIUM2gnu.debug_MACRO_AR
|
||||
arpentium
|
||||
<END>
|
||||
|
||||
<BEGIN> BUILD_PENTIUM2gnu.debug_MACRO_AS
|
||||
ccpentium
|
||||
<END>
|
||||
|
||||
<BEGIN> BUILD_PENTIUM2gnu.debug_MACRO_CC
|
||||
ccpentium
|
||||
<END>
|
||||
|
||||
<BEGIN> BUILD_PENTIUM2gnu.debug_MACRO_CFLAGS
|
||||
-mcpu=pentiumpro \
|
||||
-march=pentiumpro \
|
||||
-ansi \
|
||||
-DRW_MULTI_THREAD \
|
||||
-D_REENTRANT \
|
||||
-g \
|
||||
-nostdlib \
|
||||
-fno-builtin \
|
||||
-fno-defer-pop \
|
||||
-MD \
|
||||
-Wall \
|
||||
-I. \
|
||||
-I$(WIND_BASE)/target/h \
|
||||
-I$(PRJ_DIR)/../.. \
|
||||
-I$(PRJ_DIR)/../../.. \
|
||||
-DCPU=PENTIUM2
|
||||
<END>
|
||||
|
||||
<BEGIN> BUILD_PENTIUM2gnu.debug_MACRO_CFLAGS_AS
|
||||
-mcpu=pentiumpro \
|
||||
-march=pentiumpro \
|
||||
-ansi \
|
||||
-g \
|
||||
-nostdlib \
|
||||
-fno-builtin \
|
||||
-fno-defer-pop \
|
||||
-P \
|
||||
-x \
|
||||
assembler-with-cpp \
|
||||
-Wall \
|
||||
-I. \
|
||||
-I$(WIND_BASE)/target/h \
|
||||
-DCPU=PENTIUM2
|
||||
<END>
|
||||
|
||||
<BEGIN> BUILD_PENTIUM2gnu.debug_MACRO_CPP
|
||||
ccpentium -E -P
|
||||
<END>
|
||||
|
||||
<BEGIN> BUILD_PENTIUM2gnu.debug_MACRO_CPPFILT
|
||||
c++filtpentium --strip-underscores
|
||||
<END>
|
||||
|
||||
<BEGIN> BUILD_PENTIUM2gnu.debug_MACRO_LD
|
||||
ldpentium
|
||||
<END>
|
||||
|
||||
<BEGIN> BUILD_PENTIUM2gnu.debug_MACRO_LDFLAGS
|
||||
-X
|
||||
<END>
|
||||
|
||||
<BEGIN> BUILD_PENTIUM2gnu.debug_MACRO_LDPARTIAL
|
||||
ccpentium \
|
||||
-B$(WIND_BASE)/host/$(WIND_HOST_TYPE)/lib/gcc-lib/ \
|
||||
-nostdlib \
|
||||
-r \
|
||||
-Wl,-X
|
||||
<END>
|
||||
|
||||
<BEGIN> BUILD_PENTIUM2gnu.debug_MACRO_LD_PARTIAL_FLAGS
|
||||
-X -r
|
||||
<END>
|
||||
|
||||
<BEGIN> BUILD_PENTIUM2gnu.debug_MACRO_NM
|
||||
nmpentium -g
|
||||
<END>
|
||||
|
||||
<BEGIN> BUILD_PENTIUM2gnu.debug_MACRO_OPTION_DEFINE_MACRO
|
||||
-D
|
||||
<END>
|
||||
|
||||
<BEGIN> BUILD_PENTIUM2gnu.debug_MACRO_OPTION_GENERATE_DEPENDENCY_FILE
|
||||
-MD
|
||||
<END>
|
||||
|
||||
<BEGIN> BUILD_PENTIUM2gnu.debug_MACRO_OPTION_INCLUDE_DIR
|
||||
-I
|
||||
<END>
|
||||
|
||||
<BEGIN> BUILD_PENTIUM2gnu.debug_MACRO_RELEASE
|
||||
0
|
||||
<END>
|
||||
|
||||
<BEGIN> BUILD_PENTIUM2gnu.debug_MACRO_SIZE
|
||||
sizepentium
|
||||
<END>
|
||||
|
||||
<BEGIN> BUILD_PENTIUM2gnu.debug_RELEASE
|
||||
0
|
||||
<END>
|
||||
|
||||
<BEGIN> BUILD_PENTIUM2gnu.debug_RO_DEPEND_PATH
|
||||
$(WIND_BASE)/target/h/
|
||||
<END>
|
||||
|
||||
<BEGIN> BUILD_PENTIUM2gnu.debug_TC
|
||||
::tc_PENTIUM2gnu.debug
|
||||
<END>
|
||||
|
||||
<BEGIN> BUILD_PENTIUM2gnu.release_DEFAULTFORCPU
|
||||
0
|
||||
<END>
|
||||
|
||||
<BEGIN> BUILD_PENTIUM2gnu.release_FILE_$(PRJ_DIR)/../dbdemo.c_infoTags
|
||||
toolMacro objects
|
||||
<END>
|
||||
|
||||
<BEGIN> BUILD_PENTIUM2gnu.release_FILE_$(PRJ_DIR)/../dbdemo.c_objects
|
||||
dbdemo.o
|
||||
<END>
|
||||
|
||||
<BEGIN> BUILD_PENTIUM2gnu.release_FILE_$(PRJ_DIR)/../dbdemo.c_toolMacro
|
||||
CC
|
||||
<END>
|
||||
|
||||
<BEGIN> BUILD_PENTIUM2gnu.release_FILE_$(PRJ_DIR)/compConfig.c_infoTags
|
||||
toolMacro objects
|
||||
<END>
|
||||
|
||||
<BEGIN> BUILD_PENTIUM2gnu.release_FILE_$(PRJ_DIR)/compConfig.c_objects
|
||||
compConfig.o
|
||||
<END>
|
||||
|
||||
<BEGIN> BUILD_PENTIUM2gnu.release_FILE_$(PRJ_DIR)/compConfig.c_toolMacro
|
||||
CC
|
||||
<END>
|
||||
|
||||
<BEGIN> BUILD_PENTIUM2gnu.release_MACRO_AR
|
||||
arpentium
|
||||
<END>
|
||||
|
||||
<BEGIN> BUILD_PENTIUM2gnu.release_MACRO_AS
|
||||
ccpentium
|
||||
<END>
|
||||
|
||||
<BEGIN> BUILD_PENTIUM2gnu.release_MACRO_CC
|
||||
ccpentium
|
||||
<END>
|
||||
|
||||
<BEGIN> BUILD_PENTIUM2gnu.release_MACRO_CFLAGS
|
||||
-mcpu=pentiumpro \
|
||||
-march=pentiumpro \
|
||||
-ansi \
|
||||
-DRW_MULTI_THREAD \
|
||||
-D_REENTRANT \
|
||||
-O2 \
|
||||
-nostdlib \
|
||||
-fno-builtin \
|
||||
-fno-defer-pop \
|
||||
-MD \
|
||||
-Wall \
|
||||
-I. \
|
||||
-I$(WIND_BASE)/target/h \
|
||||
-I$(PRJ_DIR)/../.. \
|
||||
-I$(PRJ_DIR)/../../.. \
|
||||
-DCPU=PENTIUM2
|
||||
<END>
|
||||
|
||||
<BEGIN> BUILD_PENTIUM2gnu.release_MACRO_CFLAGS_AS
|
||||
-mcpu=pentiumpro \
|
||||
-march=pentiumpro \
|
||||
-ansi \
|
||||
-O2 \
|
||||
-nostdlib \
|
||||
-fno-builtin \
|
||||
-fno-defer-pop \
|
||||
-P \
|
||||
-x \
|
||||
assembler-with-cpp \
|
||||
-Wall \
|
||||
-I. \
|
||||
-I$(WIND_BASE)/target/h \
|
||||
-DCPU=PENTIUM2
|
||||
<END>
|
||||
|
||||
<BEGIN> BUILD_PENTIUM2gnu.release_MACRO_CPP
|
||||
ccpentium -E -P
|
||||
<END>
|
||||
|
||||
<BEGIN> BUILD_PENTIUM2gnu.release_MACRO_CPPFILT
|
||||
c++filtpentium --strip-underscores
|
||||
<END>
|
||||
|
||||
<BEGIN> BUILD_PENTIUM2gnu.release_MACRO_LD
|
||||
ldpentium
|
||||
<END>
|
||||
|
||||
<BEGIN> BUILD_PENTIUM2gnu.release_MACRO_LDFLAGS
|
||||
-X
|
||||
<END>
|
||||
|
||||
<BEGIN> BUILD_PENTIUM2gnu.release_MACRO_LDPARTIAL
|
||||
ccpentium \
|
||||
-B$(WIND_BASE)/host/$(WIND_HOST_TYPE)/lib/gcc-lib/ \
|
||||
-nostdlib \
|
||||
-r \
|
||||
-Wl,-X
|
||||
<END>
|
||||
|
||||
<BEGIN> BUILD_PENTIUM2gnu.release_MACRO_LD_PARTIAL_FLAGS
|
||||
-X -r
|
||||
<END>
|
||||
|
||||
<BEGIN> BUILD_PENTIUM2gnu.release_MACRO_NM
|
||||
nmpentium -g
|
||||
<END>
|
||||
|
||||
<BEGIN> BUILD_PENTIUM2gnu.release_MACRO_OPTION_DEFINE_MACRO
|
||||
-D
|
||||
<END>
|
||||
|
||||
<BEGIN> BUILD_PENTIUM2gnu.release_MACRO_OPTION_GENERATE_DEPENDENCY_FILE
|
||||
-MD
|
||||
<END>
|
||||
|
||||
<BEGIN> BUILD_PENTIUM2gnu.release_MACRO_OPTION_INCLUDE_DIR
|
||||
-I
|
||||
<END>
|
||||
|
||||
<BEGIN> BUILD_PENTIUM2gnu.release_MACRO_RELEASE
|
||||
1
|
||||
<END>
|
||||
|
||||
<BEGIN> BUILD_PENTIUM2gnu.release_MACRO_SIZE
|
||||
sizepentium
|
||||
<END>
|
||||
|
||||
<BEGIN> BUILD_PENTIUM2gnu.release_RELEASE
|
||||
1
|
||||
<END>
|
||||
|
||||
<BEGIN> BUILD_PENTIUM2gnu.release_RO_DEPEND_PATH
|
||||
$(WIND_BASE)/target/h/
|
||||
<END>
|
||||
|
||||
<BEGIN> BUILD_PENTIUM2gnu.release_TC
|
||||
::tc_PENTIUM2gnu.release
|
||||
<END>
|
||||
|
||||
<BEGIN> BUILD_PENTIUMgnu.debug_DEFAULTFORCPU
|
||||
1
|
||||
<END>
|
||||
|
||||
<BEGIN> BUILD_PENTIUMgnu.debug_FILE_$(PRJ_DIR)/../dbdemo.c_infoTags
|
||||
toolMacro objects
|
||||
<END>
|
||||
|
||||
<BEGIN> BUILD_PENTIUMgnu.debug_FILE_$(PRJ_DIR)/../dbdemo.c_objects
|
||||
dbdemo.o
|
||||
<END>
|
||||
|
||||
<BEGIN> BUILD_PENTIUMgnu.debug_FILE_$(PRJ_DIR)/../dbdemo.c_toolMacro
|
||||
CC
|
||||
<END>
|
||||
|
||||
<BEGIN> BUILD_PENTIUMgnu.debug_FILE_$(PRJ_DIR)/compConfig.c_infoTags
|
||||
toolMacro objects
|
||||
<END>
|
||||
|
||||
<BEGIN> BUILD_PENTIUMgnu.debug_FILE_$(PRJ_DIR)/compConfig.c_objects
|
||||
compConfig.o
|
||||
<END>
|
||||
|
||||
<BEGIN> BUILD_PENTIUMgnu.debug_FILE_$(PRJ_DIR)/compConfig.c_toolMacro
|
||||
CC
|
||||
<END>
|
||||
|
||||
<BEGIN> BUILD_PENTIUMgnu.debug_MACRO_AR
|
||||
arpentium
|
||||
<END>
|
||||
|
||||
<BEGIN> BUILD_PENTIUMgnu.debug_MACRO_AS
|
||||
ccpentium
|
||||
<END>
|
||||
|
||||
<BEGIN> BUILD_PENTIUMgnu.debug_MACRO_CC
|
||||
ccpentium
|
||||
<END>
|
||||
|
||||
<BEGIN> BUILD_PENTIUMgnu.debug_MACRO_CFLAGS
|
||||
-mcpu=pentium \
|
||||
-march=pentium \
|
||||
-ansi \
|
||||
-DRW_MULTI_THREAD \
|
||||
-D_REENTRANT \
|
||||
-g \
|
||||
-nostdlib \
|
||||
-fno-builtin \
|
||||
-fno-defer-pop \
|
||||
-MD \
|
||||
-Wall \
|
||||
-I. \
|
||||
-I$(WIND_BASE)/target/h \
|
||||
-I$(PRJ_DIR)/../.. \
|
||||
-I$(PRJ_DIR)/../../.. \
|
||||
-DCPU=PENTIUM
|
||||
<END>
|
||||
|
||||
<BEGIN> BUILD_PENTIUMgnu.debug_MACRO_CFLAGS_AS
|
||||
-mcpu=pentium \
|
||||
-march=pentium \
|
||||
-ansi \
|
||||
-g \
|
||||
-nostdlib \
|
||||
-fno-builtin \
|
||||
-fno-defer-pop \
|
||||
-P \
|
||||
-x \
|
||||
assembler-with-cpp \
|
||||
-Wall \
|
||||
-I. \
|
||||
-I$(WIND_BASE)/target/h \
|
||||
-DCPU=PENTIUM
|
||||
<END>
|
||||
|
||||
<BEGIN> BUILD_PENTIUMgnu.debug_MACRO_CPP
|
||||
ccpentium -E -P
|
||||
<END>
|
||||
|
||||
<BEGIN> BUILD_PENTIUMgnu.debug_MACRO_CPPFILT
|
||||
c++filtpentium --strip-underscores
|
||||
<END>
|
||||
|
||||
<BEGIN> BUILD_PENTIUMgnu.debug_MACRO_LD
|
||||
ldpentium
|
||||
<END>
|
||||
|
||||
<BEGIN> BUILD_PENTIUMgnu.debug_MACRO_LDFLAGS
|
||||
-X
|
||||
<END>
|
||||
|
||||
<BEGIN> BUILD_PENTIUMgnu.debug_MACRO_LDPARTIAL
|
||||
ccpentium \
|
||||
-B$(WIND_BASE)/host/$(WIND_HOST_TYPE)/lib/gcc-lib/ \
|
||||
-nostdlib \
|
||||
-r \
|
||||
-Wl,-X
|
||||
<END>
|
||||
|
||||
<BEGIN> BUILD_PENTIUMgnu.debug_MACRO_LD_PARTIAL_FLAGS
|
||||
-X -r
|
||||
<END>
|
||||
|
||||
<BEGIN> BUILD_PENTIUMgnu.debug_MACRO_NM
|
||||
nmpentium -g
|
||||
<END>
|
||||
|
||||
<BEGIN> BUILD_PENTIUMgnu.debug_MACRO_OPTION_DEFINE_MACRO
|
||||
-D
|
||||
<END>
|
||||
|
||||
<BEGIN> BUILD_PENTIUMgnu.debug_MACRO_OPTION_GENERATE_DEPENDENCY_FILE
|
||||
-MD
|
||||
<END>
|
||||
|
||||
<BEGIN> BUILD_PENTIUMgnu.debug_MACRO_OPTION_INCLUDE_DIR
|
||||
-I
|
||||
<END>
|
||||
|
||||
<BEGIN> BUILD_PENTIUMgnu.debug_MACRO_RELEASE
|
||||
0
|
||||
<END>
|
||||
|
||||
<BEGIN> BUILD_PENTIUMgnu.debug_MACRO_SIZE
|
||||
sizepentium
|
||||
<END>
|
||||
|
||||
<BEGIN> BUILD_PENTIUMgnu.debug_RELEASE
|
||||
0
|
||||
<END>
|
||||
|
||||
<BEGIN> BUILD_PENTIUMgnu.debug_RO_DEPEND_PATH
|
||||
$(WIND_BASE)/target/h/
|
||||
<END>
|
||||
|
||||
<BEGIN> BUILD_PENTIUMgnu.debug_TC
|
||||
::tc_PENTIUMgnu.debug
|
||||
<END>
|
||||
|
||||
<BEGIN> BUILD__LIST
|
||||
PENTIUM2gnu.debug PENTIUM2gnu.release PENTIUMgnu.debug
|
||||
<END>
|
||||
|
||||
<BEGIN> PROJECT_FILES
|
||||
$(PRJ_DIR)/../dbdemo.c \
|
||||
$(PRJ_DIR)/compConfig.c
|
||||
<END>
|
||||
|
||||
<BEGIN> WCC__CDF_PATH
|
||||
$(PRJ_DIR)
|
||||
<END>
|
||||
|
||||
<BEGIN> WCC__CURRENT
|
||||
PENTIUM2gnu.debug
|
||||
<END>
|
||||
|
||||
<BEGIN> WCC__LIST
|
||||
PENTIUM2gnu.debug
|
||||
<END>
|
||||
|
||||
<BEGIN> WCC__MXR_LIBS
|
||||
lib$(CPU)$(TOOL)vx.a
|
||||
<END>
|
||||
|
||||
<BEGIN> WCC__OBJS_PATH
|
||||
$(WIND_BASE)/target/lib/obj$CPU$TOOLvx
|
||||
<END>
|
||||
|
@ -1,440 +0,0 @@
|
||||
/* DO NOT EDIT: automatically built by dist/s_win32. */
|
||||
/* Define to 1 if you want to build a version for running the test suite. */
|
||||
/* #undef CONFIG_TEST */
|
||||
|
||||
/* Define to 1 if you want a debugging version. */
|
||||
/* #undef DEBUG */
|
||||
#if defined(_DEBUG)
|
||||
#if !defined(DEBUG)
|
||||
#define DEBUG 1
|
||||
#endif
|
||||
#endif
|
||||
|
||||
/* Define to 1 if you want a version that logs read operations. */
|
||||
/* #undef DEBUG_ROP */
|
||||
|
||||
/* Define to 1 if you want a version that logs write operations. */
|
||||
/* #undef DEBUG_WOP */
|
||||
|
||||
/* Define to 1 if you want a version with run-time diagnostic checking. */
|
||||
/* #undef DIAGNOSTIC */
|
||||
|
||||
/* Define to 1 if you have the `clock_gettime' function. */
|
||||
/* #undef HAVE_CLOCK_GETTIME */
|
||||
|
||||
/* Define to 1 if Berkeley DB release includes strong cryptography. */
|
||||
/* #undef HAVE_CRYPTO */
|
||||
|
||||
/* Define to 1 if you have the `directio' function. */
|
||||
/* #undef HAVE_DIRECTIO */
|
||||
|
||||
/* Define to 1 if you have the <dirent.h> header file, and it defines `DIR'.
|
||||
*/
|
||||
/* #undef HAVE_DIRENT_H */
|
||||
|
||||
/* Define to 1 if you have the <dlfcn.h> header file. */
|
||||
/* #undef HAVE_DLFCN_H */
|
||||
|
||||
/* Define to 1 if you have EXIT_SUCCESS/EXIT_FAILURE #defines. */
|
||||
#define HAVE_EXIT_SUCCESS 1
|
||||
|
||||
/* Define to 1 if fcntl/F_SETFD denies child access to file descriptors. */
|
||||
/* #undef HAVE_FCNTL_F_SETFD */
|
||||
|
||||
/* Define to 1 if allocated filesystem blocks are not zeroed. */
|
||||
#define HAVE_FILESYSTEM_NOTZERO 1
|
||||
|
||||
/* Define to 1 if you have the `getcwd' function. */
|
||||
#define HAVE_GETCWD 1
|
||||
|
||||
/* Define to 1 if you have the `getopt' function. */
|
||||
/* #undef HAVE_GETOPT */
|
||||
|
||||
/* Define to 1 if you have the `gettimeofday' function. */
|
||||
/* #undef HAVE_GETTIMEOFDAY */
|
||||
|
||||
/* Define to 1 if you have the `getuid' function. */
|
||||
/* #undef HAVE_GETUID */
|
||||
|
||||
/* Define to 1 if you have the <inttypes.h> header file. */
|
||||
/* #undef HAVE_INTTYPES_H */
|
||||
|
||||
/* Define to 1 if you have the `nsl' library (-lnsl). */
|
||||
/* #undef HAVE_LIBNSL */
|
||||
|
||||
/* Define to 1 if you have the `memcmp' function. */
|
||||
#define HAVE_MEMCMP 1
|
||||
|
||||
/* Define to 1 if you have the `memcpy' function. */
|
||||
#define HAVE_MEMCPY 1
|
||||
|
||||
/* Define to 1 if you have the `memmove' function. */
|
||||
#define HAVE_MEMMOVE 1
|
||||
|
||||
/* Define to 1 if you have the <memory.h> header file. */
|
||||
#define HAVE_MEMORY_H 1
|
||||
|
||||
/* Define to 1 if you have the `mlock' function. */
|
||||
/* #undef HAVE_MLOCK */
|
||||
|
||||
/* Define to 1 if you have the `mmap' function. */
|
||||
/* #undef HAVE_MMAP */
|
||||
|
||||
/* Define to 1 if you have the `munlock' function. */
|
||||
/* #undef HAVE_MUNLOCK */
|
||||
|
||||
/* Define to 1 if you have the `munmap' function. */
|
||||
/* #undef HAVE_MUNMAP */
|
||||
|
||||
/* Define to 1 to use the GCC compiler and 68K assembly language mutexes. */
|
||||
/* #undef HAVE_MUTEX_68K_GCC_ASSEMBLY */
|
||||
|
||||
/* Define to 1 to use the AIX _check_lock mutexes. */
|
||||
/* #undef HAVE_MUTEX_AIX_CHECK_LOCK */
|
||||
|
||||
/* Define to 1 to use the GCC compiler and Alpha assembly language mutexes. */
|
||||
/* #undef HAVE_MUTEX_ALPHA_GCC_ASSEMBLY */
|
||||
|
||||
/* Define to 1 to use the GCC compiler and ARM assembly language mutexes. */
|
||||
/* #undef HAVE_MUTEX_ARM_GCC_ASSEMBLY */
|
||||
|
||||
/* Define to 1 to use the UNIX fcntl system call mutexes. */
|
||||
/* #undef HAVE_MUTEX_FCNTL */
|
||||
|
||||
/* Define to 1 to use the GCC compiler and PaRisc assembly language mutexes.
|
||||
*/
|
||||
/* #undef HAVE_MUTEX_HPPA_GCC_ASSEMBLY */
|
||||
|
||||
/* Define to 1 to use the msem_XXX mutexes on HP-UX. */
|
||||
/* #undef HAVE_MUTEX_HPPA_MSEM_INIT */
|
||||
|
||||
/* Define to 1 to use the GCC compiler and IA64 assembly language mutexes. */
|
||||
/* #undef HAVE_MUTEX_IA64_GCC_ASSEMBLY */
|
||||
|
||||
/* Define to 1 to use the msem_XXX mutexes on systems other than HP-UX. */
|
||||
/* #undef HAVE_MUTEX_MSEM_INIT */
|
||||
|
||||
/* Define to 1 to use the GCC compiler and Apple PowerPC assembly language. */
|
||||
/* #undef HAVE_MUTEX_PPC_APPLE_GCC_ASSEMBLY */
|
||||
|
||||
/* Define to 1 to use the GCC compiler and generic PowerPC assembly language.
|
||||
*/
|
||||
/* #undef HAVE_MUTEX_PPC_GENERIC_GCC_ASSEMBLY */
|
||||
|
||||
/* Define to 1 to use POSIX 1003.1 pthread_XXX mutexes. */
|
||||
/* #undef HAVE_MUTEX_PTHREADS */
|
||||
|
||||
/* Define to 1 to use Reliant UNIX initspin mutexes. */
|
||||
/* #undef HAVE_MUTEX_RELIANTUNIX_INITSPIN */
|
||||
|
||||
/* Define to 1 to use the GCC compiler and S/390 assembly language mutexes. */
|
||||
/* #undef HAVE_MUTEX_S390_GCC_ASSEMBLY */
|
||||
|
||||
/* Define to 1 to use the SCO compiler and x86 assembly language mutexes. */
|
||||
/* #undef HAVE_MUTEX_SCO_X86_CC_ASSEMBLY */
|
||||
|
||||
/* Define to 1 to use the obsolete POSIX 1003.1 sema_XXX mutexes. */
|
||||
/* #undef HAVE_MUTEX_SEMA_INIT */
|
||||
|
||||
/* Define to 1 to use the SGI XXX_lock mutexes. */
|
||||
/* #undef HAVE_MUTEX_SGI_INIT_LOCK */
|
||||
|
||||
/* Define to 1 to use the Solaris _lock_XXX mutexes. */
|
||||
/* #undef HAVE_MUTEX_SOLARIS_LOCK_TRY */
|
||||
|
||||
/* Define to 1 to use the Solaris lwp threads mutexes. */
|
||||
/* #undef HAVE_MUTEX_SOLARIS_LWP */
|
||||
|
||||
/* Define to 1 to use the GCC compiler and Sparc assembly language mutexes. */
|
||||
/* #undef HAVE_MUTEX_SPARC_GCC_ASSEMBLY */
|
||||
|
||||
/* Define to 1 if mutexes hold system resources. */
|
||||
/* #undef HAVE_MUTEX_SYSTEM_RESOURCES */
|
||||
|
||||
/* Define to 1 if fast mutexes are available. */
|
||||
#define HAVE_MUTEX_THREADS 1
|
||||
|
||||
/* Define to 1 to configure mutexes intra-process only. */
|
||||
/* #undef HAVE_MUTEX_THREAD_ONLY */
|
||||
|
||||
/* Define to 1 to use the UNIX International mutexes. */
|
||||
/* #undef HAVE_MUTEX_UI_THREADS */
|
||||
|
||||
/* Define to 1 to use the UTS compiler and assembly language mutexes. */
|
||||
/* #undef HAVE_MUTEX_UTS_CC_ASSEMBLY */
|
||||
|
||||
/* Define to 1 to use VMS mutexes. */
|
||||
/* #undef HAVE_MUTEX_VMS */
|
||||
|
||||
/* Define to 1 to use VxWorks mutexes. */
|
||||
/* #undef HAVE_MUTEX_VXWORKS */
|
||||
|
||||
/* Define to 1 to use Windows mutexes. */
|
||||
#define HAVE_MUTEX_WIN32 1
|
||||
|
||||
/* Define to 1 to use the GCC compiler and x86 assembly language mutexes. */
|
||||
/* #undef HAVE_MUTEX_X86_GCC_ASSEMBLY */
|
||||
|
||||
/* Define to 1 if you have the <ndir.h> header file, and it defines `DIR'. */
|
||||
/* #undef HAVE_NDIR_H */
|
||||
|
||||
/* Define to 1 if you have the O_DIRECT flag. */
|
||||
/* #undef HAVE_O_DIRECT */
|
||||
|
||||
/* Define to 1 if you have the `pread' function. */
|
||||
/* #undef HAVE_PREAD */
|
||||
|
||||
/* Define to 1 if you have the `pstat_getdynamic' function. */
|
||||
/* #undef HAVE_PSTAT_GETDYNAMIC */
|
||||
|
||||
/* Define to 1 if you have the `pwrite' function. */
|
||||
/* #undef HAVE_PWRITE */
|
||||
|
||||
/* Define to 1 if building on QNX. */
|
||||
/* #undef HAVE_QNX */
|
||||
|
||||
/* Define to 1 if you have the `qsort' function. */
|
||||
#define HAVE_QSORT 1
|
||||
|
||||
/* Define to 1 if you have the `raise' function. */
|
||||
#define HAVE_RAISE 1
|
||||
|
||||
/* Define to 1 if building RPC client/server. */
|
||||
/* #undef HAVE_RPC */
|
||||
|
||||
/* Define to 1 if you have the `sched_yield' function. */
|
||||
/* #undef HAVE_SCHED_YIELD */
|
||||
|
||||
/* Define to 1 if you have the `select' function. */
|
||||
/* #undef HAVE_SELECT */
|
||||
|
||||
/* Define to 1 if you have the `shmget' function. */
|
||||
/* #undef HAVE_SHMGET */
|
||||
|
||||
/* Define to 1 if you have the `snprintf' function. */
|
||||
#define HAVE_SNPRINTF 1
|
||||
|
||||
/* Define to 1 if you have the <stdint.h> header file. */
|
||||
/* #undef HAVE_STDINT_H */
|
||||
|
||||
/* Define to 1 if you have the <stdlib.h> header file. */
|
||||
#define HAVE_STDLIB_H 1
|
||||
|
||||
/* Define to 1 if you have the `strcasecmp' function. */
|
||||
/* #undef HAVE_STRCASECMP */
|
||||
|
||||
/* Define to 1 if you have the `strdup' function. */
|
||||
#define HAVE_STRDUP 1
|
||||
|
||||
/* Define to 1 if you have the `strerror' function. */
|
||||
#define HAVE_STRERROR 1
|
||||
|
||||
/* Define to 1 if you have the <strings.h> header file. */
|
||||
#define HAVE_STRINGS_H 1
|
||||
|
||||
/* Define to 1 if you have the <string.h> header file. */
|
||||
#define HAVE_STRING_H 1
|
||||
|
||||
/* Define to 1 if you have the `strtoul' function. */
|
||||
#define HAVE_STRTOUL 1
|
||||
|
||||
/* Define to 1 if `st_blksize' is member of `struct stat'. */
|
||||
/* #undef HAVE_STRUCT_STAT_ST_BLKSIZE */
|
||||
|
||||
/* Define to 1 if you have the `sysconf' function. */
|
||||
/* #undef HAVE_SYSCONF */
|
||||
|
||||
/* Define to 1 if you have the <sys/dir.h> header file, and it defines `DIR'.
|
||||
*/
|
||||
/* #undef HAVE_SYS_DIR_H */
|
||||
|
||||
/* Define to 1 if you have the <sys/ndir.h> header file, and it defines `DIR'.
|
||||
*/
|
||||
/* #undef HAVE_SYS_NDIR_H */
|
||||
|
||||
/* Define to 1 if you have the <sys/select.h> header file. */
|
||||
/* #undef HAVE_SYS_SELECT_H */
|
||||
|
||||
/* Define to 1 if you have the <sys/stat.h> header file. */
|
||||
#define HAVE_SYS_STAT_H 1
|
||||
|
||||
/* Define to 1 if you have the <sys/time.h> header file. */
|
||||
/* #undef HAVE_SYS_TIME_H */
|
||||
|
||||
/* Define to 1 if you have the <sys/types.h> header file. */
|
||||
#define HAVE_SYS_TYPES_H 1
|
||||
|
||||
/* Define to 1 if you have the <unistd.h> header file. */
|
||||
/* #undef HAVE_UNISTD_H */
|
||||
|
||||
/* Define to 1 if unlink of file with open file descriptors will fail. */
|
||||
/* #undef HAVE_UNLINK_WITH_OPEN_FAILURE */
|
||||
|
||||
/* Define to 1 if you have the `vsnprintf' function. */
|
||||
#define HAVE_VSNPRINTF 1
|
||||
|
||||
/* Define to 1 if building VxWorks. */
|
||||
/* #undef HAVE_VXWORKS */
|
||||
|
||||
/* Define to 1 if you have the `yield' function. */
|
||||
/* #undef HAVE_YIELD */
|
||||
|
||||
/* Define to 1 if you have the `_fstati64' function. */
|
||||
#define HAVE__FSTATI64 1
|
||||
|
||||
/* Define to the address where bug reports for this package should be sent. */
|
||||
#define PACKAGE_BUGREPORT "support@sleepycat.com"
|
||||
|
||||
/* Define to the full name of this package. */
|
||||
#define PACKAGE_NAME "Berkeley DB"
|
||||
|
||||
/* Define to the full name and version of this package. */
|
||||
#define PACKAGE_STRING "Berkeley DB 4.1.24"
|
||||
|
||||
/* Define to the one symbol short name of this package. */
|
||||
#define PACKAGE_TARNAME "db-4.1.24"
|
||||
|
||||
/* Define to the version of this package. */
|
||||
#define PACKAGE_VERSION "4.1.24"
|
||||
|
||||
/* Define to 1 if the `S_IS*' macros in <sys/stat.h> do not work properly. */
|
||||
/* #undef STAT_MACROS_BROKEN */
|
||||
|
||||
/* Define to 1 if you have the ANSI C header files. */
|
||||
#define STDC_HEADERS 1
|
||||
|
||||
/* Define to 1 if you can safely include both <sys/time.h> and <time.h>. */
|
||||
/* #undef TIME_WITH_SYS_TIME */
|
||||
|
||||
/* Define to 1 to mask harmless unitialized memory read/writes. */
|
||||
/* #undef UMRW */
|
||||
|
||||
/* Number of bits in a file offset, on hosts where this is settable. */
|
||||
/* #undef _FILE_OFFSET_BITS */
|
||||
|
||||
/* Define for large files, on AIX-style hosts. */
|
||||
/* #undef _LARGE_FILES */
|
||||
|
||||
/* Define to empty if `const' does not conform to ANSI C. */
|
||||
/* #undef const */
|
||||
|
||||
/*
|
||||
* Exit success/failure macros.
|
||||
*/
|
||||
#ifndef HAVE_EXIT_SUCCESS
|
||||
#define EXIT_FAILURE 1
|
||||
#define EXIT_SUCCESS 0
|
||||
#endif
|
||||
|
||||
/*
|
||||
* Don't step on the namespace. Other libraries may have their own
|
||||
* implementations of these functions, we don't want to use their
|
||||
* implementations or force them to use ours based on the load order.
|
||||
*/
|
||||
#ifndef HAVE_GETCWD
|
||||
#define getcwd __db_Cgetcwd
|
||||
#endif
|
||||
#ifndef HAVE_MEMCMP
|
||||
#define memcmp __db_Cmemcmp
|
||||
#endif
|
||||
#ifndef HAVE_MEMCPY
|
||||
#define memcpy __db_Cmemcpy
|
||||
#endif
|
||||
#ifndef HAVE_MEMMOVE
|
||||
#define memmove __db_Cmemmove
|
||||
#endif
|
||||
#ifndef HAVE_RAISE
|
||||
#define raise __db_Craise
|
||||
#endif
|
||||
#ifndef HAVE_SNPRINTF
|
||||
#define snprintf __db_Csnprintf
|
||||
#endif
|
||||
#ifndef HAVE_STRCASECMP
|
||||
#define strcasecmp __db_Cstrcasecmp
|
||||
#define strncasecmp __db_Cstrncasecmp
|
||||
#endif
|
||||
#ifndef HAVE_STRERROR
|
||||
#define strerror __db_Cstrerror
|
||||
#endif
|
||||
#ifndef HAVE_VSNPRINTF
|
||||
#define vsnprintf __db_Cvsnprintf
|
||||
#endif
|
||||
|
||||
/*
|
||||
* XXX
|
||||
* The following is not part of the automatic configuration setup, but
|
||||
* provides the information necessary to build Berkeley DB on Windows.
|
||||
*/
|
||||
#include <sys/types.h>
|
||||
#include <sys/stat.h>
|
||||
|
||||
#include <direct.h>
|
||||
#include <fcntl.h>
|
||||
#include <io.h>
|
||||
#include <limits.h>
|
||||
#include <memory.h>
|
||||
#include <process.h>
|
||||
#include <signal.h>
|
||||
#include <stdio.h>
|
||||
#include <stdlib.h>
|
||||
#include <time.h>
|
||||
#include <errno.h>
|
||||
|
||||
/*
|
||||
* To build Tcl interface libraries, the include path must be configured to
|
||||
* use the directory containing <tcl.h>, usually the include directory in
|
||||
* the Tcl distribution.
|
||||
*/
|
||||
#ifdef DB_TCL_SUPPORT
|
||||
#include <tcl.h>
|
||||
#endif
|
||||
|
||||
#define WIN32_LEAN_AND_MEAN
|
||||
#include <windows.h>
|
||||
|
||||
/*
|
||||
* All of the necessary includes have been included, ignore the #includes
|
||||
* in the Berkeley DB source files.
|
||||
*/
|
||||
#define NO_SYSTEM_INCLUDES
|
||||
|
||||
/*
|
||||
* Win32 has getcwd, snprintf and vsnprintf, but under different names.
|
||||
*/
|
||||
#define getcwd(buf, size) _getcwd(buf, size)
|
||||
#define snprintf _snprintf
|
||||
#define vsnprintf _vsnprintf
|
||||
|
||||
/*
|
||||
* Win32 does not define getopt and friends in any header file, so we must.
|
||||
*/
|
||||
#if defined(__cplusplus)
|
||||
extern "C" {
|
||||
#endif
|
||||
extern int optind;
|
||||
extern char *optarg;
|
||||
extern int getopt(int, char * const *, const char *);
|
||||
#if defined(__cplusplus)
|
||||
}
|
||||
#endif
|
||||
|
||||
/*
|
||||
* We use DB_WIN32 much as one would use _WIN32, to determine that we're
|
||||
* using an operating system environment that supports Win32 calls
|
||||
* and semantics. We don't use _WIN32 because cygwin/gcc also defines
|
||||
* that, even though it closely emulates the Unix environment.
|
||||
*/
|
||||
#define DB_WIN32 1
|
||||
|
||||
/*
|
||||
* This is a grievous hack -- once we've included windows.h, we have no choice
|
||||
* but to use ANSI-style varargs (because it pulls in stdarg.h for us). DB's
|
||||
* code decides which type of varargs to use based on the state of __STDC__.
|
||||
* Sensible. Unfortunately, Microsoft's compiler _doesn't_ define __STDC__
|
||||
* unless you invoke it with arguments turning OFF all vendor extensions. Even
|
||||
* more unfortunately, if we do that, it fails to parse windows.h!!!!! So, we
|
||||
* define __STDC__ here, after windows.h comes in. Note: the compiler knows
|
||||
* we've defined it, and starts enforcing strict ANSI compilance from this point
|
||||
* on.
|
||||
*/
|
||||
#define __STDC__ 1
|
@ -1,796 +0,0 @@
|
||||
/* DO NOT EDIT: automatically built by dist/s_win32. */
|
||||
/*-
|
||||
* See the file LICENSE for redistribution information.
|
||||
*
|
||||
* Copyright (c) 1997-2002
|
||||
* Sleepycat Software. All rights reserved.
|
||||
*
|
||||
* $Id: db_cxx.in,v 11.113 2002/08/23 13:02:27 mjc Exp $
|
||||
*/
|
||||
|
||||
#ifndef _DB_CXX_H_
|
||||
#define _DB_CXX_H_
|
||||
//
|
||||
// C++ assumptions:
|
||||
//
|
||||
// To ensure portability to many platforms, both new and old, we make
|
||||
// few assumptions about the C++ compiler and library. For example,
|
||||
// we do not expect STL, templates or namespaces to be available. The
|
||||
// "newest" C++ feature used is exceptions, which are used liberally
|
||||
// to transmit error information. Even the use of exceptions can be
|
||||
// disabled at runtime, to do so, use the DB_CXX_NO_EXCEPTIONS flags
|
||||
// with the DbEnv or Db constructor.
|
||||
//
|
||||
// C++ naming conventions:
|
||||
//
|
||||
// - All top level class names start with Db.
|
||||
// - All class members start with lower case letter.
|
||||
// - All private data members are suffixed with underscore.
|
||||
// - Use underscores to divide names into multiple words.
|
||||
// - Simple data accessors are named with get_ or set_ prefix.
|
||||
// - All method names are taken from names of functions in the C
|
||||
// layer of db (usually by dropping a prefix like "db_").
|
||||
// These methods have the same argument types and order,
|
||||
// other than dropping the explicit arg that acts as "this".
|
||||
//
|
||||
// As a rule, each DbFoo object has exactly one underlying DB_FOO struct
|
||||
// (defined in db.h) associated with it. In some cases, we inherit directly
|
||||
// from the DB_FOO structure to make this relationship explicit. Often,
|
||||
// the underlying C layer allocates and deallocates these structures, so
|
||||
// there is no easy way to add any data to the DbFoo class. When you see
|
||||
// a comment about whether data is permitted to be added, this is what
|
||||
// is going on. Of course, if we need to add data to such C++ classes
|
||||
// in the future, we will arrange to have an indirect pointer to the
|
||||
// DB_FOO struct (as some of the classes already have).
|
||||
//
|
||||
|
||||
////////////////////////////////////////////////////////////////
|
||||
////////////////////////////////////////////////////////////////
|
||||
//
|
||||
// Forward declarations
|
||||
//
|
||||
|
||||
#include <stdarg.h>
|
||||
|
||||
#define HAVE_CXX_STDHEADERS 1
|
||||
#ifdef HAVE_CXX_STDHEADERS
|
||||
#include <iostream>
|
||||
#define __DB_OSTREAMCLASS std::ostream
|
||||
#else
|
||||
#include <iostream.h>
|
||||
#define __DB_OSTREAMCLASS ostream
|
||||
#endif
|
||||
|
||||
#include "db.h"
|
||||
#include "cxx_common.h"
|
||||
#include "cxx_except.h"
|
||||
|
||||
class Db; // forward
|
||||
class Dbc; // forward
|
||||
class DbEnv; // forward
|
||||
class DbInfo; // forward
|
||||
class DbLock; // forward
|
||||
class DbLogc; // forward
|
||||
class DbLsn; // forward
|
||||
class DbMpoolFile; // forward
|
||||
class DbPreplist; // forward
|
||||
class Dbt; // forward
|
||||
class DbTxn; // forward
|
||||
|
||||
// These classes are not defined here and should be invisible
|
||||
// to the user, but some compilers require forward references.
|
||||
// There is one for each use of the DEFINE_DB_CLASS macro.
|
||||
|
||||
class DbImp;
|
||||
class DbEnvImp;
|
||||
class DbMpoolFileImp;
|
||||
class DbTxnImp;
|
||||
|
||||
// DEFINE_DB_CLASS defines an imp_ data member and imp() accessor.
|
||||
// The underlying type is a pointer to an opaque *Imp class, that
|
||||
// gets converted to the correct implementation class by the implementation.
|
||||
//
|
||||
// Since these defines use "private/public" labels, and leave the access
|
||||
// being "private", we always use these by convention before any data
|
||||
// members in the private section of a class. Keeping them in the
|
||||
// private section also emphasizes that they are off limits to user code.
|
||||
//
|
||||
#define DEFINE_DB_CLASS(name) \
|
||||
public: class name##Imp* imp() { return (imp_); } \
|
||||
public: const class name##Imp* constimp() const { return (imp_); } \
|
||||
private: class name##Imp* imp_
|
||||
|
||||
////////////////////////////////////////////////////////////////
|
||||
////////////////////////////////////////////////////////////////
|
||||
//
|
||||
// Turn off inappropriate compiler warnings
|
||||
//
|
||||
|
||||
#ifdef _MSC_VER
|
||||
|
||||
// These are level 4 warnings that are explicitly disabled.
|
||||
// With Visual C++, by default you do not see above level 3 unless
|
||||
// you use /W4. But we like to compile with the highest level
|
||||
// warnings to catch other errors.
|
||||
//
|
||||
// 4201: nameless struct/union
|
||||
// triggered by standard include file <winnt.h>
|
||||
//
|
||||
// 4514: unreferenced inline function has been removed
|
||||
// certain include files in MSVC define methods that are not called
|
||||
//
|
||||
#pragma warning(disable: 4201 4514)
|
||||
|
||||
#endif
|
||||
|
||||
// Some interfaces can be customized by allowing users to define
|
||||
// callback functions. For performance and logistical reasons, some
|
||||
// callback functions must be declared in extern "C" blocks. For others,
|
||||
// we allow you to declare the callbacks in C++ or C (or an extern "C"
|
||||
// block) as you wish. See the set methods for the callbacks for
|
||||
// the choices.
|
||||
//
|
||||
extern "C" {
|
||||
typedef void * (*db_malloc_fcn_type)
|
||||
(size_t);
|
||||
typedef void * (*db_realloc_fcn_type)
|
||||
(void *, size_t);
|
||||
typedef void (*db_free_fcn_type)
|
||||
(void *);
|
||||
typedef int (*bt_compare_fcn_type) /*C++ version available*/
|
||||
(DB *, const DBT *, const DBT *);
|
||||
typedef size_t (*bt_prefix_fcn_type) /*C++ version available*/
|
||||
(DB *, const DBT *, const DBT *);
|
||||
typedef int (*dup_compare_fcn_type) /*C++ version available*/
|
||||
(DB *, const DBT *, const DBT *);
|
||||
typedef u_int32_t (*h_hash_fcn_type) /*C++ version available*/
|
||||
(DB *, const void *, u_int32_t);
|
||||
typedef int (*pgin_fcn_type)
|
||||
(DB_ENV *dbenv, db_pgno_t pgno, void *pgaddr, DBT *pgcookie);
|
||||
typedef int (*pgout_fcn_type)
|
||||
(DB_ENV *dbenv, db_pgno_t pgno, void *pgaddr, DBT *pgcookie);
|
||||
};
|
||||
|
||||
////////////////////////////////////////////////////////////////
|
||||
////////////////////////////////////////////////////////////////
|
||||
//
|
||||
// Lock classes
|
||||
//
|
||||
|
||||
class _exported DbLock
|
||||
{
|
||||
friend class DbEnv;
|
||||
|
||||
public:
|
||||
DbLock();
|
||||
DbLock(const DbLock &);
|
||||
DbLock &operator = (const DbLock &);
|
||||
|
||||
protected:
|
||||
// We can add data to this class if needed
|
||||
// since its contained class is not allocated by db.
|
||||
// (see comment at top)
|
||||
|
||||
DbLock(DB_LOCK);
|
||||
DB_LOCK lock_;
|
||||
};
|
||||
|
||||
////////////////////////////////////////////////////////////////
|
||||
////////////////////////////////////////////////////////////////
|
||||
//
|
||||
// Log classes
|
||||
//
|
||||
|
||||
class _exported DbLsn : protected DB_LSN
|
||||
{
|
||||
friend class DbEnv; // friendship needed to cast to base class
|
||||
friend class DbLogc; // friendship needed to cast to base class
|
||||
};
|
||||
|
||||
////////////////////////////////////////////////////////////////
|
||||
////////////////////////////////////////////////////////////////
|
||||
//
|
||||
// Memory pool classes
|
||||
//
|
||||
|
||||
class _exported DbMpoolFile
|
||||
{
|
||||
friend class DbEnv;
|
||||
|
||||
private:
|
||||
// Put this first to allow inlining with some C++ compilers (g++-2.95)
|
||||
DEFINE_DB_CLASS(DbMpoolFile);
|
||||
|
||||
public:
|
||||
int close(u_int32_t flags);
|
||||
int get(db_pgno_t *pgnoaddr, u_int32_t flags, void *pagep);
|
||||
void last_pgno(db_pgno_t *pgnoaddr);
|
||||
int open(const char *file, u_int32_t flags, int mode, size_t pagesize);
|
||||
int put(void *pgaddr, u_int32_t flags);
|
||||
void refcnt(db_pgno_t *pgnoaddr);
|
||||
int set(void *pgaddr, u_int32_t flags);
|
||||
int set_clear_len(u_int32_t len);
|
||||
int set_fileid(u_int8_t *fileid);
|
||||
int set_ftype(int ftype);
|
||||
int set_lsn_offset(int32_t offset);
|
||||
int set_pgcookie(DBT *dbt);
|
||||
void set_unlink(int);
|
||||
int sync();
|
||||
|
||||
virtual DB_MPOOLFILE *get_DB_MPOOLFILE()
|
||||
{
|
||||
return (DB_MPOOLFILE *)imp();
|
||||
}
|
||||
|
||||
virtual const DB_MPOOLFILE *get_const_DB_MPOOLFILE() const
|
||||
{
|
||||
return (const DB_MPOOLFILE *)constimp();
|
||||
}
|
||||
|
||||
private:
|
||||
// We can add data to this class if needed
|
||||
// since it is implemented via a pointer.
|
||||
// (see comment at top)
|
||||
|
||||
// Note: use DbEnv::memp_fcreate() to get pointers to a DbMpoolFile,
|
||||
// and call DbMpoolFile::close() rather than delete to release them.
|
||||
//
|
||||
DbMpoolFile();
|
||||
|
||||
// Shut g++ up.
|
||||
protected:
|
||||
virtual ~DbMpoolFile();
|
||||
|
||||
private:
|
||||
// no copying
|
||||
DbMpoolFile(const DbMpoolFile &);
|
||||
void operator = (const DbMpoolFile &);
|
||||
};
|
||||
|
||||
////////////////////////////////////////////////////////////////
|
||||
////////////////////////////////////////////////////////////////
|
||||
//
|
||||
// This is filled in and returned by the DbEnv::txn_recover() method.
|
||||
//
|
||||
|
||||
class _exported DbPreplist
|
||||
{
|
||||
public:
|
||||
DbTxn *txn;
|
||||
u_int8_t gid[DB_XIDDATASIZE];
|
||||
};
|
||||
|
||||
////////////////////////////////////////////////////////////////
|
||||
////////////////////////////////////////////////////////////////
|
||||
//
|
||||
// Transaction classes
|
||||
//
|
||||
|
||||
class _exported DbTxn
|
||||
{
|
||||
friend class DbEnv;
|
||||
|
||||
private:
|
||||
// Put this first to allow inlining with some C++ compilers (g++-2.95)
|
||||
DEFINE_DB_CLASS(DbTxn);
|
||||
|
||||
public:
|
||||
int abort();
|
||||
int commit(u_int32_t flags);
|
||||
int discard(u_int32_t flags);
|
||||
u_int32_t id();
|
||||
int prepare(u_int8_t *gid);
|
||||
int set_timeout(db_timeout_t timeout, u_int32_t flags);
|
||||
|
||||
virtual DB_TXN *get_DB_TXN()
|
||||
{
|
||||
return (DB_TXN *)imp();
|
||||
}
|
||||
|
||||
virtual const DB_TXN *get_const_DB_TXN() const
|
||||
{
|
||||
return (const DB_TXN *)constimp();
|
||||
}
|
||||
|
||||
static DbTxn* get_DbTxn(DB_TXN *txn)
|
||||
{
|
||||
return (DbTxn *)txn->api_internal;
|
||||
}
|
||||
|
||||
static const DbTxn* get_const_DbTxn(const DB_TXN *txn)
|
||||
{
|
||||
return (const DbTxn *)txn->api_internal;
|
||||
}
|
||||
|
||||
// For internal use only.
|
||||
static DbTxn* wrap_DB_TXN(DB_TXN *txn);
|
||||
|
||||
private:
|
||||
// We can add data to this class if needed
|
||||
// since it is implemented via a pointer.
|
||||
// (see comment at top)
|
||||
|
||||
// Note: use DbEnv::txn_begin() to get pointers to a DbTxn,
|
||||
// and call DbTxn::abort() or DbTxn::commit rather than
|
||||
// delete to release them.
|
||||
//
|
||||
DbTxn();
|
||||
// For internal use only.
|
||||
DbTxn(DB_TXN *txn);
|
||||
virtual ~DbTxn();
|
||||
|
||||
// no copying
|
||||
DbTxn(const DbTxn &);
|
||||
void operator = (const DbTxn &);
|
||||
};
|
||||
|
||||
//
|
||||
// Berkeley DB environment class. Provides functions for opening databases.
|
||||
// User of this library can use this class as a starting point for
|
||||
// developing a DB application - derive their application class from
|
||||
// this one, add application control logic.
|
||||
//
|
||||
// Note that if you use the default constructor, you must explicitly
|
||||
// call appinit() before any other db activity (e.g. opening files)
|
||||
//
|
||||
class _exported DbEnv
|
||||
{
|
||||
friend class Db;
|
||||
friend class DbLock;
|
||||
friend class DbMpoolFile;
|
||||
|
||||
private:
|
||||
// Put this first to allow inlining with some C++ compilers (g++-2.95)
|
||||
DEFINE_DB_CLASS(DbEnv);
|
||||
|
||||
public:
|
||||
// After using this constructor, you can set any needed
|
||||
// parameters for the environment using the set_* methods.
|
||||
// Then call open() to finish initializing the environment
|
||||
// and attaching it to underlying files.
|
||||
//
|
||||
DbEnv(u_int32_t flags);
|
||||
|
||||
virtual ~DbEnv();
|
||||
|
||||
// These methods match those in the C interface.
|
||||
//
|
||||
virtual int close(u_int32_t);
|
||||
virtual int dbremove(DbTxn *txn, const char *name, const char *subdb,
|
||||
u_int32_t flags);
|
||||
virtual int dbrename(DbTxn *txn, const char *name, const char *subdb,
|
||||
const char *newname, u_int32_t flags);
|
||||
virtual void err(int, const char *, ...);
|
||||
virtual void errx(const char *, ...);
|
||||
virtual void *get_app_private() const;
|
||||
virtual int open(const char *, u_int32_t, int);
|
||||
virtual int remove(const char *, u_int32_t);
|
||||
virtual int set_alloc(db_malloc_fcn_type, db_realloc_fcn_type,
|
||||
db_free_fcn_type);
|
||||
virtual void set_app_private(void *);
|
||||
virtual int set_cachesize(u_int32_t, u_int32_t, int);
|
||||
virtual int set_data_dir(const char *);
|
||||
virtual int set_encrypt(const char *, int);
|
||||
virtual void set_errcall(void (*)(const char *, char *));
|
||||
virtual void set_errfile(FILE *);
|
||||
virtual void set_errpfx(const char *);
|
||||
virtual int set_flags(u_int32_t, int);
|
||||
virtual int set_feedback(void (*)(DbEnv *, int, int));
|
||||
virtual int set_lg_bsize(u_int32_t);
|
||||
virtual int set_lg_dir(const char *);
|
||||
virtual int set_lg_max(u_int32_t);
|
||||
virtual int set_lg_regionmax(u_int32_t);
|
||||
virtual int set_lk_conflicts(u_int8_t *, int);
|
||||
virtual int set_lk_detect(u_int32_t);
|
||||
virtual int set_lk_max(u_int32_t);
|
||||
virtual int set_lk_max_lockers(u_int32_t);
|
||||
virtual int set_lk_max_locks(u_int32_t);
|
||||
virtual int set_lk_max_objects(u_int32_t);
|
||||
virtual int set_mp_mmapsize(size_t);
|
||||
virtual int set_paniccall(void (*)(DbEnv *, int));
|
||||
virtual int set_rpc_server(void *, char *, long, long, u_int32_t);
|
||||
virtual int set_shm_key(long);
|
||||
virtual int set_timeout(db_timeout_t timeout, u_int32_t flags);
|
||||
virtual int set_tmp_dir(const char *);
|
||||
virtual int set_tas_spins(u_int32_t);
|
||||
virtual int set_tx_max(u_int32_t);
|
||||
virtual int set_app_dispatch(int (*)(DbEnv *,
|
||||
Dbt *, DbLsn *, db_recops));
|
||||
virtual int set_tx_timestamp(time_t *);
|
||||
virtual int set_verbose(u_int32_t which, int onoff);
|
||||
|
||||
// Version information. A static method so it can be obtained anytime.
|
||||
//
|
||||
static char *version(int *major, int *minor, int *patch);
|
||||
|
||||
// Convert DB errors to strings
|
||||
static char *strerror(int);
|
||||
|
||||
// If an error is detected and the error call function
|
||||
// or stream is set, a message is dispatched or printed.
|
||||
// If a prefix is set, each message is prefixed.
|
||||
//
|
||||
// You can use set_errcall() or set_errfile() above to control
|
||||
// error functionality. Alternatively, you can call
|
||||
// set_error_stream() to force all errors to a C++ stream.
|
||||
// It is unwise to mix these approaches.
|
||||
//
|
||||
virtual void set_error_stream(__DB_OSTREAMCLASS *);
|
||||
|
||||
// used internally
|
||||
static void runtime_error(const char *caller, int err,
|
||||
int error_policy);
|
||||
static void runtime_error_dbt(const char *caller, Dbt *dbt,
|
||||
int error_policy);
|
||||
static void runtime_error_lock_get(const char *caller, int err,
|
||||
db_lockop_t op, db_lockmode_t mode,
|
||||
const Dbt *obj, DbLock lock, int index,
|
||||
int error_policy);
|
||||
|
||||
// Lock functions
|
||||
//
|
||||
virtual int lock_detect(u_int32_t flags, u_int32_t atype, int *aborted);
|
||||
virtual int lock_get(u_int32_t locker, u_int32_t flags, const Dbt *obj,
|
||||
db_lockmode_t lock_mode, DbLock *lock);
|
||||
virtual int lock_id(u_int32_t *idp);
|
||||
virtual int lock_id_free(u_int32_t id);
|
||||
virtual int lock_put(DbLock *lock);
|
||||
virtual int lock_stat(DB_LOCK_STAT **statp, u_int32_t flags);
|
||||
virtual int lock_vec(u_int32_t locker, u_int32_t flags, DB_LOCKREQ list[],
|
||||
int nlist, DB_LOCKREQ **elistp);
|
||||
|
||||
// Log functions
|
||||
//
|
||||
virtual int log_archive(char **list[], u_int32_t flags);
|
||||
static int log_compare(const DbLsn *lsn0, const DbLsn *lsn1);
|
||||
virtual int log_cursor(DbLogc **cursorp, u_int32_t flags);
|
||||
virtual int log_file(DbLsn *lsn, char *namep, size_t len);
|
||||
virtual int log_flush(const DbLsn *lsn);
|
||||
virtual int log_put(DbLsn *lsn, const Dbt *data, u_int32_t flags);
|
||||
|
||||
virtual int log_stat(DB_LOG_STAT **spp, u_int32_t flags);
|
||||
|
||||
// Mpool functions
|
||||
//
|
||||
virtual int memp_fcreate(DbMpoolFile **dbmfp, u_int32_t flags);
|
||||
virtual int memp_register(int ftype,
|
||||
pgin_fcn_type pgin_fcn,
|
||||
pgout_fcn_type pgout_fcn);
|
||||
virtual int memp_stat(DB_MPOOL_STAT
|
||||
**gsp, DB_MPOOL_FSTAT ***fsp, u_int32_t flags);
|
||||
virtual int memp_sync(DbLsn *lsn);
|
||||
virtual int memp_trickle(int pct, int *nwrotep);
|
||||
|
||||
// Transaction functions
|
||||
//
|
||||
virtual int txn_begin(DbTxn *pid, DbTxn **tid, u_int32_t flags);
|
||||
virtual int txn_checkpoint(u_int32_t kbyte, u_int32_t min, u_int32_t flags);
|
||||
virtual int txn_recover(DbPreplist *preplist, long count,
|
||||
long *retp, u_int32_t flags);
|
||||
virtual int txn_stat(DB_TXN_STAT **statp, u_int32_t flags);
|
||||
|
||||
// Replication functions
|
||||
//
|
||||
virtual int rep_elect(int, int, u_int32_t, int *);
|
||||
virtual int rep_process_message(Dbt *, Dbt *, int *);
|
||||
virtual int rep_start(Dbt *, u_int32_t);
|
||||
virtual int rep_stat(DB_REP_STAT **statp, u_int32_t flags);
|
||||
virtual int set_rep_limit(u_int32_t, u_int32_t);
|
||||
virtual int set_rep_transport(u_int32_t,
|
||||
int (*)(DbEnv *, const Dbt *, const Dbt *, int, u_int32_t));
|
||||
|
||||
// Conversion functions
|
||||
//
|
||||
virtual DB_ENV *get_DB_ENV()
|
||||
{
|
||||
return (DB_ENV *)imp();
|
||||
}
|
||||
|
||||
virtual const DB_ENV *get_const_DB_ENV() const
|
||||
{
|
||||
return (const DB_ENV *)constimp();
|
||||
}
|
||||
|
||||
static DbEnv* get_DbEnv(DB_ENV *dbenv)
|
||||
{
|
||||
return (DbEnv *)dbenv->api1_internal;
|
||||
}
|
||||
|
||||
static const DbEnv* get_const_DbEnv(const DB_ENV *dbenv)
|
||||
{
|
||||
return (const DbEnv *)dbenv->api1_internal;
|
||||
}
|
||||
|
||||
// For internal use only.
|
||||
static DbEnv* wrap_DB_ENV(DB_ENV *dbenv);
|
||||
|
||||
// These are public only because they need to be called
|
||||
// via C functions. They should never be called by users
|
||||
// of this class.
|
||||
//
|
||||
static void _stream_error_function(const char *, char *);
|
||||
static int _app_dispatch_intercept(DB_ENV *env, DBT *dbt, DB_LSN *lsn,
|
||||
db_recops op);
|
||||
static void _paniccall_intercept(DB_ENV *env, int errval);
|
||||
static void _feedback_intercept(DB_ENV *env, int opcode, int pct);
|
||||
static int _rep_send_intercept(DB_ENV *env,
|
||||
const DBT *cntrl, const DBT *data,
|
||||
int id, u_int32_t flags);
|
||||
|
||||
private:
|
||||
void cleanup();
|
||||
int initialize(DB_ENV *env);
|
||||
int error_policy();
|
||||
|
||||
// For internal use only.
|
||||
DbEnv(DB_ENV *, u_int32_t flags);
|
||||
|
||||
// no copying
|
||||
DbEnv(const DbEnv &);
|
||||
void operator = (const DbEnv &);
|
||||
|
||||
// instance data
|
||||
int construct_error_;
|
||||
u_int32_t construct_flags_;
|
||||
int (*app_dispatch_callback_)(DbEnv *, Dbt *, DbLsn *, db_recops);
|
||||
void (*feedback_callback_)(DbEnv *, int, int);
|
||||
void (*paniccall_callback_)(DbEnv *, int);
|
||||
int (*pgin_callback_)(DbEnv *dbenv, db_pgno_t pgno,
|
||||
void *pgaddr, Dbt *pgcookie);
|
||||
int (*pgout_callback_)(DbEnv *dbenv, db_pgno_t pgno,
|
||||
void *pgaddr, Dbt *pgcookie);
|
||||
int (*rep_send_callback_)(DbEnv *,
|
||||
const Dbt *, const Dbt *, int, u_int32_t);
|
||||
|
||||
// class data
|
||||
static __DB_OSTREAMCLASS *error_stream_;
|
||||
};
|
||||
|
||||
////////////////////////////////////////////////////////////////
|
||||
////////////////////////////////////////////////////////////////
|
||||
//
|
||||
// Table access classes
|
||||
//
|
||||
|
||||
//
|
||||
// Represents a database table = a set of keys with associated values.
|
||||
//
|
||||
class _exported Db
|
||||
{
|
||||
friend class DbEnv;
|
||||
|
||||
private:
|
||||
// Put this first to allow inlining with some C++ compilers (g++-2.95)
|
||||
DEFINE_DB_CLASS(Db);
|
||||
|
||||
public:
|
||||
Db(DbEnv*, u_int32_t); // create a Db object, then call open()
|
||||
virtual ~Db(); // does *not* call close.
|
||||
|
||||
// These methods exactly match those in the C interface.
|
||||
//
|
||||
virtual int associate(DbTxn *txn, Db *secondary,
|
||||
int (*callback)(Db *, const Dbt *, const Dbt *, Dbt *),
|
||||
u_int32_t flags);
|
||||
virtual int close(u_int32_t flags);
|
||||
virtual int cursor(DbTxn *txnid, Dbc **cursorp, u_int32_t flags);
|
||||
virtual int del(DbTxn *txnid, Dbt *key, u_int32_t flags);
|
||||
virtual void err(int, const char *, ...);
|
||||
virtual void errx(const char *, ...);
|
||||
virtual int fd(int *fdp);
|
||||
virtual int get(DbTxn *txnid, Dbt *key, Dbt *data, u_int32_t flags);
|
||||
virtual void *get_app_private() const;
|
||||
virtual int get_byteswapped(int *);
|
||||
virtual int get_type(DBTYPE *);
|
||||
virtual int join(Dbc **curslist, Dbc **dbcp, u_int32_t flags);
|
||||
virtual int key_range(DbTxn *, Dbt *, DB_KEY_RANGE *, u_int32_t);
|
||||
virtual int open(DbTxn *txnid,
|
||||
const char *, const char *subname, DBTYPE, u_int32_t, int);
|
||||
virtual int pget(DbTxn *txnid, Dbt *key, Dbt *pkey, Dbt *data,
|
||||
u_int32_t flags);
|
||||
virtual int put(DbTxn *, Dbt *, Dbt *, u_int32_t);
|
||||
virtual int remove(const char *, const char *, u_int32_t);
|
||||
virtual int rename(const char *, const char *, const char *, u_int32_t);
|
||||
virtual int set_alloc(db_malloc_fcn_type, db_realloc_fcn_type,
|
||||
db_free_fcn_type);
|
||||
virtual void set_app_private(void *);
|
||||
virtual int set_append_recno(int (*)(Db *, Dbt *, db_recno_t));
|
||||
virtual int set_bt_compare(bt_compare_fcn_type); /*deprecated*/
|
||||
virtual int set_bt_compare(int (*)(Db *, const Dbt *, const Dbt *));
|
||||
virtual int set_bt_maxkey(u_int32_t);
|
||||
virtual int set_bt_minkey(u_int32_t);
|
||||
virtual int set_bt_prefix(bt_prefix_fcn_type); /*deprecated*/
|
||||
virtual int set_bt_prefix(size_t (*)(Db *, const Dbt *, const Dbt *));
|
||||
virtual int set_cachesize(u_int32_t, u_int32_t, int);
|
||||
virtual int set_cache_priority(DB_CACHE_PRIORITY);
|
||||
virtual int set_dup_compare(dup_compare_fcn_type); /*deprecated*/
|
||||
virtual int set_dup_compare(int (*)(Db *, const Dbt *, const Dbt *));
|
||||
virtual int set_encrypt(const char *, int);
|
||||
virtual void set_errcall(void (*)(const char *, char *));
|
||||
virtual void set_errfile(FILE *);
|
||||
virtual void set_errpfx(const char *);
|
||||
virtual int set_feedback(void (*)(Db *, int, int));
|
||||
virtual int set_flags(u_int32_t);
|
||||
virtual int set_h_ffactor(u_int32_t);
|
||||
virtual int set_h_hash(h_hash_fcn_type); /*deprecated*/
|
||||
virtual int set_h_hash(u_int32_t (*)(Db *, const void *, u_int32_t));
|
||||
virtual int set_h_nelem(u_int32_t);
|
||||
virtual int set_lorder(int);
|
||||
virtual int set_pagesize(u_int32_t);
|
||||
virtual int set_paniccall(void (*)(DbEnv *, int));
|
||||
virtual int set_re_delim(int);
|
||||
virtual int set_re_len(u_int32_t);
|
||||
virtual int set_re_pad(int);
|
||||
virtual int set_re_source(char *);
|
||||
virtual int set_q_extentsize(u_int32_t);
|
||||
virtual int stat(void *sp, u_int32_t flags);
|
||||
virtual int sync(u_int32_t flags);
|
||||
virtual int truncate(DbTxn *, u_int32_t *, u_int32_t);
|
||||
virtual int upgrade(const char *name, u_int32_t flags);
|
||||
virtual int verify(const char *, const char *, __DB_OSTREAMCLASS *, u_int32_t);
|
||||
|
||||
// These additional methods are not in the C interface, and
|
||||
// are only available for C++.
|
||||
//
|
||||
virtual void set_error_stream(__DB_OSTREAMCLASS *);
|
||||
|
||||
virtual DB *get_DB()
|
||||
{
|
||||
return (DB *)imp();
|
||||
}
|
||||
|
||||
virtual const DB *get_const_DB() const
|
||||
{
|
||||
return (const DB *)constimp();
|
||||
}
|
||||
|
||||
static Db* get_Db(DB *db)
|
||||
{
|
||||
return (Db *)db->api_internal;
|
||||
}
|
||||
|
||||
static const Db* get_const_Db(const DB *db)
|
||||
{
|
||||
return (const Db *)db->api_internal;
|
||||
}
|
||||
|
||||
private:
|
||||
// no copying
|
||||
Db(const Db &);
|
||||
Db &operator = (const Db &);
|
||||
|
||||
void cleanup();
|
||||
int initialize();
|
||||
int error_policy();
|
||||
|
||||
// instance data
|
||||
DbEnv *env_;
|
||||
int construct_error_;
|
||||
u_int32_t flags_;
|
||||
u_int32_t construct_flags_;
|
||||
|
||||
public:
|
||||
// These are public only because they need to be called
|
||||
// via C callback functions. They should never be used by
|
||||
// external users of this class.
|
||||
//
|
||||
int (*append_recno_callback_)(Db *, Dbt *, db_recno_t);
|
||||
int (*associate_callback_)(Db *, const Dbt *, const Dbt *, Dbt *);
|
||||
int (*bt_compare_callback_)(Db *, const Dbt *, const Dbt *);
|
||||
size_t (*bt_prefix_callback_)(Db *, const Dbt *, const Dbt *);
|
||||
int (*dup_compare_callback_)(Db *, const Dbt *, const Dbt *);
|
||||
void (*feedback_callback_)(Db *, int, int);
|
||||
u_int32_t (*h_hash_callback_)(Db *, const void *, u_int32_t);
|
||||
};
|
||||
|
||||
//
|
||||
// A chunk of data, maybe a key or value.
|
||||
//
|
||||
class _exported Dbt : private DBT
|
||||
{
|
||||
friend class Dbc;
|
||||
friend class Db;
|
||||
friend class DbEnv;
|
||||
friend class DbLogc;
|
||||
|
||||
public:
|
||||
|
||||
// key/data
|
||||
void *get_data() const { return data; }
|
||||
void set_data(void *value) { data = value; }
|
||||
|
||||
// key/data length
|
||||
u_int32_t get_size() const { return size; }
|
||||
void set_size(u_int32_t value) { size = value; }
|
||||
|
||||
// RO: length of user buffer.
|
||||
u_int32_t get_ulen() const { return ulen; }
|
||||
void set_ulen(u_int32_t value) { ulen = value; }
|
||||
|
||||
// RO: get/put record length.
|
||||
u_int32_t get_dlen() const { return dlen; }
|
||||
void set_dlen(u_int32_t value) { dlen = value; }
|
||||
|
||||
// RO: get/put record offset.
|
||||
u_int32_t get_doff() const { return doff; }
|
||||
void set_doff(u_int32_t value) { doff = value; }
|
||||
|
||||
// flags
|
||||
u_int32_t get_flags() const { return flags; }
|
||||
void set_flags(u_int32_t value) { flags = value; }
|
||||
|
||||
// Conversion functions
|
||||
DBT *get_DBT() { return (DBT *)this; }
|
||||
const DBT *get_const_DBT() const { return (const DBT *)this; }
|
||||
|
||||
static Dbt* get_Dbt(DBT *dbt) { return (Dbt *)dbt; }
|
||||
static const Dbt* get_const_Dbt(const DBT *dbt)
|
||||
{ return (const Dbt *)dbt; }
|
||||
|
||||
Dbt(void *data, u_int32_t size);
|
||||
Dbt();
|
||||
~Dbt();
|
||||
Dbt(const Dbt &);
|
||||
Dbt &operator = (const Dbt &);
|
||||
|
||||
private:
|
||||
// Note: no extra data appears in this class (other than
|
||||
// inherited from DBT) since we need DBT and Dbt objects
|
||||
// to have interchangable pointers.
|
||||
//
|
||||
// When subclassing this class, remember that callback
|
||||
// methods like bt_compare, bt_prefix, dup_compare may
|
||||
// internally manufacture DBT objects (which later are
|
||||
// cast to Dbt), so such callbacks might receive objects
|
||||
// not of your subclassed type.
|
||||
};
|
||||
|
||||
class _exported Dbc : protected DBC
|
||||
{
|
||||
friend class Db;
|
||||
|
||||
public:
|
||||
int close();
|
||||
int count(db_recno_t *countp, u_int32_t flags);
|
||||
int del(u_int32_t flags);
|
||||
int dup(Dbc** cursorp, u_int32_t flags);
|
||||
int get(Dbt* key, Dbt *data, u_int32_t flags);
|
||||
int pget(Dbt* key, Dbt* pkey, Dbt *data, u_int32_t flags);
|
||||
int put(Dbt* key, Dbt *data, u_int32_t flags);
|
||||
|
||||
private:
|
||||
// No data is permitted in this class (see comment at top)
|
||||
|
||||
// Note: use Db::cursor() to get pointers to a Dbc,
|
||||
// and call Dbc::close() rather than delete to release them.
|
||||
//
|
||||
Dbc();
|
||||
~Dbc();
|
||||
|
||||
// no copying
|
||||
Dbc(const Dbc &);
|
||||
Dbc &operator = (const Dbc &);
|
||||
};
|
||||
|
||||
class _exported DbLogc : protected DB_LOGC
|
||||
{
|
||||
friend class DbEnv;
|
||||
|
||||
public:
|
||||
int close(u_int32_t _flags);
|
||||
int get(DbLsn *lsn, Dbt *data, u_int32_t _flags);
|
||||
|
||||
private:
|
||||
// No data is permitted in this class (see comment at top)
|
||||
|
||||
// Note: use Db::cursor() to get pointers to a Dbc,
|
||||
// and call Dbc::close() rather than delete to release them.
|
||||
//
|
||||
DbLogc();
|
||||
~DbLogc();
|
||||
|
||||
// no copying
|
||||
DbLogc(const Dbc &);
|
||||
DbLogc &operator = (const Dbc &);
|
||||
};
|
||||
#endif /* !_DB_CXX_H_ */
|
@ -1,216 +0,0 @@
|
||||
# Microsoft Developer Studio Project File - Name="db_perf" - Package Owner=<4>
|
||||
# Microsoft Developer Studio Generated Build File, Format Version 6.00
|
||||
# ** DO NOT EDIT **
|
||||
|
||||
# TARGTYPE "Win32 (x86) Console Application" 0x0103
|
||||
|
||||
CFG=db_perf - Win32 Debug Static
|
||||
!MESSAGE This is not a valid makefile. To build this project using NMAKE,
|
||||
!MESSAGE use the Export Makefile command and run
|
||||
!MESSAGE
|
||||
!MESSAGE NMAKE /f "db_perf.mak".
|
||||
!MESSAGE
|
||||
!MESSAGE You can specify a configuration when running NMAKE
|
||||
!MESSAGE by defining the macro CFG on the command line. For example:
|
||||
!MESSAGE
|
||||
!MESSAGE NMAKE /f "db_perf.mak" CFG="db_perf - Win32 Debug Static"
|
||||
!MESSAGE
|
||||
!MESSAGE Possible choices for configuration are:
|
||||
!MESSAGE
|
||||
!MESSAGE "db_perf - Win32 Release" (based on "Win32 (x86) Console Application")
|
||||
!MESSAGE "db_perf - Win32 Debug" (based on "Win32 (x86) Console Application")
|
||||
!MESSAGE "db_perf - Win32 Release Static" (based on "Win32 (x86) Console Application")
|
||||
!MESSAGE "db_perf - Win32 Debug Static" (based on "Win32 (x86) Console Application")
|
||||
!MESSAGE
|
||||
|
||||
# Begin Project
|
||||
# PROP AllowPerConfigDependencies 0
|
||||
# PROP Scc_ProjName ""
|
||||
# PROP Scc_LocalPath ""
|
||||
CPP=cl.exe
|
||||
RSC=rc.exe
|
||||
|
||||
!IF "$(CFG)" == "db_perf - Win32 Release"
|
||||
|
||||
# PROP BASE Use_MFC 0
|
||||
# PROP BASE Use_Debug_Libraries 0
|
||||
# PROP BASE Output_Dir "Release"
|
||||
# PROP BASE Intermediate_Dir "Release"
|
||||
# PROP BASE Target_Dir ""
|
||||
# PROP Use_MFC 0
|
||||
# PROP Use_Debug_Libraries 0
|
||||
# PROP Output_Dir "Release"
|
||||
# PROP Intermediate_Dir "Release"
|
||||
# PROP Ignore_Export_Lib 0
|
||||
# PROP Target_Dir ""
|
||||
# ADD BASE CPP /nologo /W3 /GX /O2 /D "WIN32" /D "NDEBUG" /D "_CONSOLE" /D "_MBCS" /YX /FD /c
|
||||
# ADD CPP /nologo /MD /W3 /GX /O2 /I "." /I ".." /I "../dbinc" /D "WIN32" /D "NDEBUG" /D "_CONSOLE" /D "_MBCS" /YX /FD /c
|
||||
# ADD BASE RSC /l 0x409 /d "NDEBUG"
|
||||
# ADD RSC /l 0x409 /d "NDEBUG"
|
||||
BSC32=bscmake.exe
|
||||
# ADD BASE BSC32 /nologo
|
||||
# ADD BSC32 /nologo
|
||||
LINK32=link.exe
|
||||
# ADD BASE LINK32 kernel32.lib user32.lib gdi32.lib winspool.lib comdlg32.lib advapi32.lib shell32.lib ole32.lib oleaut32.lib uuid.lib odbc32.lib odbccp32.lib /nologo /subsystem:console /machine:I386
|
||||
# ADD LINK32 Release/libdb41.lib /nologo /subsystem:console /machine:I386 /nodefaultlib:"libcmt"
|
||||
|
||||
!ELSEIF "$(CFG)" == "db_perf - Win32 Debug"
|
||||
|
||||
# PROP BASE Use_MFC 0
|
||||
# PROP BASE Use_Debug_Libraries 1
|
||||
# PROP BASE Output_Dir "Debug"
|
||||
# PROP BASE Intermediate_Dir "Debug"
|
||||
# PROP BASE Target_Dir ""
|
||||
# PROP Use_MFC 0
|
||||
# PROP Use_Debug_Libraries 1
|
||||
# PROP Output_Dir "Debug"
|
||||
# PROP Intermediate_Dir "Debug"
|
||||
# PROP Ignore_Export_Lib 0
|
||||
# PROP Target_Dir ""
|
||||
# ADD BASE CPP /nologo /W3 /Gm /GX /Zi /Od /D "WIN32" /D "_DEBUG" /D "_CONSOLE" /D "_MBCS" /YX /FD /c
|
||||
# ADD CPP /nologo /MDd /W3 /GX /Z7 /Od /I "." /I ".." /I "../dbinc" /D "WIN32" /D "_DEBUG" /D "_CONSOLE" /D "_MBCS" /YX /FD /c
|
||||
# ADD BASE RSC /l 0x409 /d "_DEBUG"
|
||||
# ADD RSC /l 0x409 /d "_DEBUG"
|
||||
BSC32=bscmake.exe
|
||||
# ADD BASE BSC32 /nologo
|
||||
# ADD BSC32 /nologo
|
||||
LINK32=link.exe
|
||||
# ADD BASE LINK32 kernel32.lib user32.lib gdi32.lib winspool.lib comdlg32.lib advapi32.lib shell32.lib ole32.lib oleaut32.lib uuid.lib odbc32.lib odbccp32.lib /nologo /subsystem:console /debug /machine:I386 /pdbtype:sept
|
||||
# ADD LINK32 Debug/libdb41d.lib /nologo /subsystem:console /pdb:none /debug /machine:I386 /nodefaultlib:"libcmtd" /fixed:no
|
||||
|
||||
!ELSEIF "$(CFG)" == "db_perf - Win32 Release Static"
|
||||
|
||||
# PROP BASE Use_MFC 0
|
||||
# PROP BASE Use_Debug_Libraries 0
|
||||
# PROP BASE Output_Dir "Release"
|
||||
# PROP BASE Intermediate_Dir "Release"
|
||||
# PROP BASE Ignore_Export_Lib 0
|
||||
# PROP BASE Target_Dir ""
|
||||
# PROP Use_MFC 0
|
||||
# PROP Use_Debug_Libraries 0
|
||||
# PROP Output_Dir "Release_static"
|
||||
# PROP Intermediate_Dir "Release_static"
|
||||
# PROP Ignore_Export_Lib 0
|
||||
# PROP Target_Dir ""
|
||||
# ADD BASE CPP /nologo /MD /W3 /GX /O2 /I "." /I ".." /I "../dbinc" /D "WIN32" /D "NDEBUG" /D "_CONSOLE" /D "_MBCS" /YX /FD /c
|
||||
# ADD CPP /nologo /MT /W3 /GX /O2 /I "." /I ".." /I "../dbinc" /D "WIN32" /D "NDEBUG" /D "_CONSOLE" /D "_MBCS" /YX /FD /c
|
||||
# ADD BASE RSC /l 0x409 /d "NDEBUG"
|
||||
# ADD RSC /l 0x409 /d "NDEBUG"
|
||||
BSC32=bscmake.exe
|
||||
# ADD BASE BSC32 /nologo
|
||||
# ADD BSC32 /nologo
|
||||
LINK32=link.exe
|
||||
# ADD BASE LINK32 Release_static/libdb41.lib /nologo /subsystem:console /machine:I386
|
||||
# ADD LINK32 Release_static/libdb41s.lib /nologo /subsystem:console /machine:I386
|
||||
|
||||
!ELSEIF "$(CFG)" == "db_perf - Win32 Debug Static"
|
||||
|
||||
# PROP BASE Use_MFC 0
|
||||
# PROP BASE Use_Debug_Libraries 1
|
||||
# PROP BASE Output_Dir "Debug"
|
||||
# PROP BASE Intermediate_Dir "Debug"
|
||||
# PROP BASE Ignore_Export_Lib 0
|
||||
# PROP BASE Target_Dir ""
|
||||
# PROP Use_MFC 0
|
||||
# PROP Use_Debug_Libraries 1
|
||||
# PROP Output_Dir "Debug_static"
|
||||
# PROP Intermediate_Dir "Debug_static"
|
||||
# PROP Ignore_Export_Lib 0
|
||||
# PROP Target_Dir ""
|
||||
# ADD BASE CPP /nologo /MDd /W3 /GX /Z7 /Od /I "." /I ".." /I "../dbinc" /D "WIN32" /D "_DEBUG" /D "_CONSOLE" /D "_MBCS" /YX /FD /c
|
||||
# ADD CPP /nologo /MTd /W3 /GX /Z7 /Od /I "." /I ".." /I "../dbinc" /D "WIN32" /D "_DEBUG" /D "_CONSOLE" /D "_MBCS" /YX /FD /c
|
||||
# ADD BASE RSC /l 0x409 /d "_DEBUG"
|
||||
# ADD RSC /l 0x409 /d "_DEBUG"
|
||||
BSC32=bscmake.exe
|
||||
# ADD BASE BSC32 /nologo
|
||||
# ADD BSC32 /nologo
|
||||
LINK32=link.exe
|
||||
# ADD BASE LINK32 Debug_static/libdb41d.lib kernel32.lib user32.lib gdi32.lib winspool.lib comdlg32.lib advapi32.lib shell32.lib ole32.lib oleaut32.lib uuid.lib odbc32.lib odbccp32.lib /nologo /subsystem:console /pdb:none /debug /machine:I386 /fixed:no
|
||||
# ADD LINK32 Debug_static/libdb41sd.lib kernel32.lib user32.lib gdi32.lib winspool.lib comdlg32.lib advapi32.lib shell32.lib ole32.lib oleaut32.lib uuid.lib odbc32.lib odbccp32.lib /nologo /subsystem:console /pdb:none /debug /machine:I386 /fixed:no
|
||||
|
||||
!ENDIF
|
||||
|
||||
# Begin Target
|
||||
|
||||
# Name "db_perf - Win32 Release"
|
||||
# Name "db_perf - Win32 Debug"
|
||||
# Name "db_perf - Win32 Release Static"
|
||||
# Name "db_perf - Win32 Debug Static"
|
||||
# Begin Source File
|
||||
|
||||
SOURCE=..\test_perf\db_perf.c
|
||||
# End Source File
|
||||
# Begin Source File
|
||||
|
||||
SOURCE=..\test_perf\perf_cache_check.c
|
||||
# End Source File
|
||||
# Begin Source File
|
||||
|
||||
SOURCE=..\test_perf\perf_checkpoint.c
|
||||
# End Source File
|
||||
# Begin Source File
|
||||
|
||||
SOURCE=..\test_perf\perf_config.c
|
||||
# End Source File
|
||||
# Begin Source File
|
||||
|
||||
SOURCE=..\test_perf\perf_dbs.c
|
||||
# End Source File
|
||||
# Begin Source File
|
||||
|
||||
SOURCE=..\test_perf\perf_debug.c
|
||||
# End Source File
|
||||
# Begin Source File
|
||||
|
||||
SOURCE=..\test_perf\perf_file.c
|
||||
# End Source File
|
||||
# Begin Source File
|
||||
|
||||
SOURCE=..\test_perf\perf_key.c
|
||||
# End Source File
|
||||
# Begin Source File
|
||||
|
||||
SOURCE=..\test_perf\perf_log.c
|
||||
# End Source File
|
||||
# Begin Source File
|
||||
|
||||
SOURCE=..\test_perf\perf_misc.c
|
||||
# End Source File
|
||||
# Begin Source File
|
||||
|
||||
SOURCE=..\test_perf\perf_op.c
|
||||
# End Source File
|
||||
# Begin Source File
|
||||
|
||||
SOURCE=..\test_perf\perf_parse.c
|
||||
# End Source File
|
||||
# Begin Source File
|
||||
|
||||
SOURCE=..\test_perf\perf_rand.c
|
||||
# End Source File
|
||||
# Begin Source File
|
||||
|
||||
SOURCE=..\test_perf\perf_spawn.c
|
||||
# End Source File
|
||||
# Begin Source File
|
||||
|
||||
SOURCE=..\test_perf\perf_thread.c
|
||||
# End Source File
|
||||
# Begin Source File
|
||||
|
||||
SOURCE=..\test_perf\perf_trickle.c
|
||||
# End Source File
|
||||
# Begin Source File
|
||||
|
||||
SOURCE=..\test_perf\perf_txn.c
|
||||
# End Source File
|
||||
# Begin Source File
|
||||
|
||||
SOURCE=..\test_perf\perf_util.c
|
||||
# End Source File
|
||||
# Begin Source File
|
||||
|
||||
SOURCE=..\clib\getopt.c
|
||||
# End Source File
|
||||
# End Target
|
||||
# End Project
|
@ -1,100 +0,0 @@
|
||||
# Microsoft Developer Studio Project File - Name="db_test" - Package Owner=<4>
|
||||
# Microsoft Developer Studio Generated Build File, Format Version 6.00
|
||||
# ** DO NOT EDIT **
|
||||
|
||||
# TARGTYPE "Win32 (x86) Console Application" 0x0103
|
||||
|
||||
CFG=db_test - Win32 Debug
|
||||
!MESSAGE This is not a valid makefile. To build this project using NMAKE,
|
||||
!MESSAGE use the Export Makefile command and run
|
||||
!MESSAGE
|
||||
!MESSAGE NMAKE /f "db_test.mak".
|
||||
!MESSAGE
|
||||
!MESSAGE You can specify a configuration when running NMAKE
|
||||
!MESSAGE by defining the macro CFG on the command line. For example:
|
||||
!MESSAGE
|
||||
!MESSAGE NMAKE /f "db_test.mak" CFG="db_test - Win32 Debug"
|
||||
!MESSAGE
|
||||
!MESSAGE Possible choices for configuration are:
|
||||
!MESSAGE
|
||||
!MESSAGE "db_test - Win32 Release" (based on "Win32 (x86) Console Application")
|
||||
!MESSAGE "db_test - Win32 Debug" (based on "Win32 (x86) Console Application")
|
||||
!MESSAGE
|
||||
|
||||
# Begin Project
|
||||
# PROP AllowPerConfigDependencies 0
|
||||
# PROP Scc_ProjName ""
|
||||
# PROP Scc_LocalPath ""
|
||||
CPP=cl.exe
|
||||
RSC=rc.exe
|
||||
|
||||
!IF "$(CFG)" == "db_test - Win32 Release"
|
||||
|
||||
# PROP BASE Use_MFC 0
|
||||
# PROP BASE Use_Debug_Libraries 0
|
||||
# PROP BASE Output_Dir "Release"
|
||||
# PROP BASE Intermediate_Dir "Release"
|
||||
# PROP BASE Target_Dir ""
|
||||
# PROP Use_MFC 0
|
||||
# PROP Use_Debug_Libraries 0
|
||||
# PROP Output_Dir "Release"
|
||||
# PROP Intermediate_Dir "Release"
|
||||
# PROP Ignore_Export_Lib 0
|
||||
# PROP Target_Dir ""
|
||||
# ADD BASE CPP /nologo /W3 /GX /O2 /D "WIN32" /D "NDEBUG" /D "_CONSOLE" /D "_MBCS" /YX /FD /c
|
||||
# ADD CPP /nologo /MD /W3 /GX /O2 /I "." /I ".." /I "../dbinc" /D "WIN32" /D "NDEBUG" /D "_CONSOLE" /D "_MBCS" /YX /FD /c
|
||||
# ADD BASE RSC /l 0x409 /d "NDEBUG"
|
||||
# ADD RSC /l 0x409 /d "NDEBUG"
|
||||
BSC32=bscmake.exe
|
||||
# ADD BASE BSC32 /nologo
|
||||
# ADD BSC32 /nologo
|
||||
LINK32=link.exe
|
||||
# ADD BASE LINK32 kernel32.lib user32.lib gdi32.lib winspool.lib comdlg32.lib advapi32.lib shell32.lib ole32.lib oleaut32.lib uuid.lib odbc32.lib odbccp32.lib /nologo /subsystem:console /machine:I386
|
||||
# ADD LINK32 Release/libdb41.lib /nologo /subsystem:console /machine:I386
|
||||
# Begin Special Build Tool
|
||||
SOURCE="$(InputPath)"
|
||||
PostBuild_Desc=Copy built executable files.
|
||||
PostBuild_Cmds=copy Release\*.exe .
|
||||
# End Special Build Tool
|
||||
|
||||
!ELSEIF "$(CFG)" == "db_test - Win32 Debug"
|
||||
|
||||
# PROP BASE Use_MFC 0
|
||||
# PROP BASE Use_Debug_Libraries 1
|
||||
# PROP BASE Output_Dir "Debug"
|
||||
# PROP BASE Intermediate_Dir "Debug"
|
||||
# PROP BASE Target_Dir ""
|
||||
# PROP Use_MFC 0
|
||||
# PROP Use_Debug_Libraries 1
|
||||
# PROP Output_Dir "Debug"
|
||||
# PROP Intermediate_Dir "Debug"
|
||||
# PROP Ignore_Export_Lib 0
|
||||
# PROP Target_Dir ""
|
||||
# ADD BASE CPP /nologo /W3 /Gm /GX /Zi /Od /D "WIN32" /D "_DEBUG" /D "_CONSOLE" /D "_MBCS" /YX /FD /c
|
||||
# ADD CPP /nologo /MDd /W3 /GX /Z7 /Od /I "." /I ".." /I "../dbinc" /D "WIN32" /D "_DEBUG" /D "_CONSOLE" /D "_MBCS" /YX /FD /c
|
||||
# ADD BASE RSC /l 0x409 /d "_DEBUG"
|
||||
# ADD RSC /l 0x409 /d "_DEBUG"
|
||||
BSC32=bscmake.exe
|
||||
# ADD BASE BSC32 /nologo
|
||||
# ADD BSC32 /nologo
|
||||
LINK32=link.exe
|
||||
# ADD BASE LINK32 kernel32.lib user32.lib gdi32.lib winspool.lib comdlg32.lib advapi32.lib shell32.lib ole32.lib oleaut32.lib uuid.lib odbc32.lib odbccp32.lib /nologo /subsystem:console /debug /machine:I386 /pdbtype:sept
|
||||
# ADD LINK32 Debug/libdb41d.lib kernel32.lib user32.lib gdi32.lib winspool.lib comdlg32.lib advapi32.lib shell32.lib ole32.lib oleaut32.lib uuid.lib odbc32.lib odbccp32.lib /nologo /subsystem:console /pdb:none /debug /machine:I386 /out:"Debug/dbkill.exe" /fixed:no
|
||||
# Begin Special Build Tool
|
||||
SOURCE="$(InputPath)"
|
||||
PostBuild_Desc=Copy built executable files.
|
||||
PostBuild_Cmds=copy Debug\*.exe .
|
||||
# End Special Build Tool
|
||||
|
||||
!ENDIF
|
||||
|
||||
# Begin Target
|
||||
|
||||
# Name "db_test - Win32 Release"
|
||||
# Name "db_test - Win32 Debug"
|
||||
# Begin Source File
|
||||
|
||||
SOURCE=.\dbkill.cpp
|
||||
# End Source File
|
||||
# End Target
|
||||
# End Project
|
@ -1,128 +0,0 @@
|
||||
; DO NOT EDIT: automatically built by dist/s_win32.
|
||||
|
||||
DESCRIPTION 'Berkeley DB 4.1 Library'
|
||||
|
||||
EXPORTS
|
||||
db_create @1
|
||||
db_env_create @2
|
||||
db_strerror @3
|
||||
db_version @4
|
||||
db_xa_switch @5
|
||||
log_compare @6
|
||||
txn_abort @7
|
||||
txn_begin @8
|
||||
txn_commit @9
|
||||
db_env_set_func_close @10
|
||||
db_env_set_func_dirfree @11
|
||||
db_env_set_func_dirlist @12
|
||||
db_env_set_func_exists @13
|
||||
db_env_set_func_free @14
|
||||
db_env_set_func_fsync @15
|
||||
db_env_set_func_ioinfo @16
|
||||
db_env_set_func_malloc @17
|
||||
db_env_set_func_map @18
|
||||
db_env_set_func_open @19
|
||||
db_env_set_func_read @20
|
||||
db_env_set_func_realloc @21
|
||||
db_env_set_func_rename @22
|
||||
db_env_set_func_seek @23
|
||||
db_env_set_func_sleep @24
|
||||
db_env_set_func_unlink @25
|
||||
db_env_set_func_unmap @26
|
||||
db_env_set_func_write @27
|
||||
db_env_set_func_yield @28
|
||||
__db_add_recovery @29
|
||||
__db_dbm_close @30
|
||||
__db_dbm_delete @31
|
||||
__db_dbm_fetch @32
|
||||
__db_dbm_firstkey @33
|
||||
__db_dbm_init @34
|
||||
__db_dbm_nextkey @35
|
||||
__db_dbm_store @36
|
||||
__db_hcreate @37
|
||||
__db_hdestroy @38
|
||||
__db_hsearch @39
|
||||
__db_loadme @40
|
||||
__db_ndbm_clearerr @41
|
||||
__db_ndbm_close @42
|
||||
__db_ndbm_delete @43
|
||||
__db_ndbm_dirfno @44
|
||||
__db_ndbm_error @45
|
||||
__db_ndbm_fetch @46
|
||||
__db_ndbm_firstkey @47
|
||||
__db_ndbm_nextkey @48
|
||||
__db_ndbm_open @49
|
||||
__db_ndbm_pagfno @50
|
||||
__db_ndbm_rdonly @51
|
||||
__db_ndbm_store @52
|
||||
__db_panic @53
|
||||
__db_r_attach @54
|
||||
__db_r_detach @55
|
||||
__db_win32_mutex_init @56
|
||||
__db_win32_mutex_lock @57
|
||||
__db_win32_mutex_unlock @58
|
||||
__ham_func2 @59
|
||||
__ham_func3 @60
|
||||
__ham_func4 @61
|
||||
__ham_func5 @62
|
||||
__ham_test @63
|
||||
__lock_dump_region @64
|
||||
__memp_dump_region @65
|
||||
__os_calloc @66
|
||||
__os_closehandle @67
|
||||
__os_free @68
|
||||
__os_ioinfo @69
|
||||
__os_malloc @70
|
||||
__os_open @71
|
||||
__os_openhandle @72
|
||||
__os_read @73
|
||||
__os_realloc @74
|
||||
__os_strdup @75
|
||||
__os_umalloc @76
|
||||
__os_write @77
|
||||
__bam_init_print @78
|
||||
__bam_pgin @79
|
||||
__bam_pgout @80
|
||||
__crdel_init_print @81
|
||||
__db_dispatch @82
|
||||
__db_dump @83
|
||||
__db_e_stat @84
|
||||
__db_err @85
|
||||
__db_getlong @86
|
||||
__db_getulong @87
|
||||
__db_global_values @88
|
||||
__db_init_print @89
|
||||
__db_inmemdbflags @90
|
||||
__db_isbigendian @91
|
||||
__db_omode @92
|
||||
__db_overwrite @93
|
||||
__db_pgin @94
|
||||
__db_pgout @95
|
||||
__db_prdbt @96
|
||||
__db_prfooter @97
|
||||
__db_prheader @98
|
||||
__db_rpath @99
|
||||
__db_util_cache @100
|
||||
__db_util_interrupted @101
|
||||
__db_util_logset @102
|
||||
__db_util_siginit @103
|
||||
__db_util_sigresend @104
|
||||
__db_verify_callback @105
|
||||
__db_verify_internal @106
|
||||
__dbreg_init_print @107
|
||||
__fop_init_print @108
|
||||
__ham_get_meta @109
|
||||
__ham_init_print @110
|
||||
__ham_pgin @111
|
||||
__ham_pgout @112
|
||||
__ham_release_meta @113
|
||||
__os_clock @114
|
||||
__os_get_errno @115
|
||||
__os_id @116
|
||||
__os_set_errno @117
|
||||
__os_sleep @118
|
||||
__os_ufree @119
|
||||
__os_yield @120
|
||||
__qam_init_print @121
|
||||
__qam_pgin_out @122
|
||||
__txn_init_print @123
|
@ -1,128 +0,0 @@
|
||||
/* Do not edit: automatically built by gen_rec.awk. */
|
||||
|
||||
#ifndef __bam_AUTO_H
|
||||
#define __bam_AUTO_H
|
||||
#define DB___bam_split 62
|
||||
typedef struct ___bam_split_args {
|
||||
u_int32_t type;
|
||||
DB_TXN *txnid;
|
||||
DB_LSN prev_lsn;
|
||||
int32_t fileid;
|
||||
db_pgno_t left;
|
||||
DB_LSN llsn;
|
||||
db_pgno_t right;
|
||||
DB_LSN rlsn;
|
||||
u_int32_t indx;
|
||||
db_pgno_t npgno;
|
||||
DB_LSN nlsn;
|
||||
db_pgno_t root_pgno;
|
||||
DBT pg;
|
||||
u_int32_t opflags;
|
||||
} __bam_split_args;
|
||||
|
||||
#define DB___bam_rsplit 63
|
||||
typedef struct ___bam_rsplit_args {
|
||||
u_int32_t type;
|
||||
DB_TXN *txnid;
|
||||
DB_LSN prev_lsn;
|
||||
int32_t fileid;
|
||||
db_pgno_t pgno;
|
||||
DBT pgdbt;
|
||||
db_pgno_t root_pgno;
|
||||
db_pgno_t nrec;
|
||||
DBT rootent;
|
||||
DB_LSN rootlsn;
|
||||
} __bam_rsplit_args;
|
||||
|
||||
#define DB___bam_adj 55
|
||||
typedef struct ___bam_adj_args {
|
||||
u_int32_t type;
|
||||
DB_TXN *txnid;
|
||||
DB_LSN prev_lsn;
|
||||
int32_t fileid;
|
||||
db_pgno_t pgno;
|
||||
DB_LSN lsn;
|
||||
u_int32_t indx;
|
||||
u_int32_t indx_copy;
|
||||
u_int32_t is_insert;
|
||||
} __bam_adj_args;
|
||||
|
||||
#define DB___bam_cadjust 56
|
||||
typedef struct ___bam_cadjust_args {
|
||||
u_int32_t type;
|
||||
DB_TXN *txnid;
|
||||
DB_LSN prev_lsn;
|
||||
int32_t fileid;
|
||||
db_pgno_t pgno;
|
||||
DB_LSN lsn;
|
||||
u_int32_t indx;
|
||||
int32_t adjust;
|
||||
u_int32_t opflags;
|
||||
} __bam_cadjust_args;
|
||||
|
||||
#define DB___bam_cdel 57
|
||||
typedef struct ___bam_cdel_args {
|
||||
u_int32_t type;
|
||||
DB_TXN *txnid;
|
||||
DB_LSN prev_lsn;
|
||||
int32_t fileid;
|
||||
db_pgno_t pgno;
|
||||
DB_LSN lsn;
|
||||
u_int32_t indx;
|
||||
} __bam_cdel_args;
|
||||
|
||||
#define DB___bam_repl 58
|
||||
typedef struct ___bam_repl_args {
|
||||
u_int32_t type;
|
||||
DB_TXN *txnid;
|
||||
DB_LSN prev_lsn;
|
||||
int32_t fileid;
|
||||
db_pgno_t pgno;
|
||||
DB_LSN lsn;
|
||||
u_int32_t indx;
|
||||
u_int32_t isdeleted;
|
||||
DBT orig;
|
||||
DBT repl;
|
||||
u_int32_t prefix;
|
||||
u_int32_t suffix;
|
||||
} __bam_repl_args;
|
||||
|
||||
#define DB___bam_root 59
|
||||
typedef struct ___bam_root_args {
|
||||
u_int32_t type;
|
||||
DB_TXN *txnid;
|
||||
DB_LSN prev_lsn;
|
||||
int32_t fileid;
|
||||
db_pgno_t meta_pgno;
|
||||
db_pgno_t root_pgno;
|
||||
DB_LSN meta_lsn;
|
||||
} __bam_root_args;
|
||||
|
||||
#define DB___bam_curadj 64
|
||||
typedef struct ___bam_curadj_args {
|
||||
u_int32_t type;
|
||||
DB_TXN *txnid;
|
||||
DB_LSN prev_lsn;
|
||||
int32_t fileid;
|
||||
db_ca_mode mode;
|
||||
db_pgno_t from_pgno;
|
||||
db_pgno_t to_pgno;
|
||||
db_pgno_t left_pgno;
|
||||
u_int32_t first_indx;
|
||||
u_int32_t from_indx;
|
||||
u_int32_t to_indx;
|
||||
} __bam_curadj_args;
|
||||
|
||||
#define DB___bam_rcuradj 65
|
||||
typedef struct ___bam_rcuradj_args {
|
||||
u_int32_t type;
|
||||
DB_TXN *txnid;
|
||||
DB_LSN prev_lsn;
|
||||
int32_t fileid;
|
||||
ca_recno_arg mode;
|
||||
db_pgno_t root;
|
||||
db_recno_t recno;
|
||||
u_int32_t order;
|
||||
} __bam_rcuradj_args;
|
||||
|
||||
#endif
|
@ -1,132 +0,0 @@
|
||||
/* DO NOT EDIT: automatically built by dist/s_include. */
|
||||
#ifndef _btree_ext_h_
|
||||
#define _btree_ext_h_
|
||||
|
||||
#if defined(__cplusplus)
|
||||
extern "C" {
|
||||
#endif
|
||||
|
||||
int __bam_cmp __P((DB *, const DBT *, PAGE *, u_int32_t, int (*)(DB *, const DBT *, const DBT *), int *));
|
||||
int __bam_defcmp __P((DB *, const DBT *, const DBT *));
|
||||
size_t __bam_defpfx __P((DB *, const DBT *, const DBT *));
|
||||
int __bam_pgin __P((DB_ENV *, DB *, db_pgno_t, void *, DBT *));
|
||||
int __bam_pgout __P((DB_ENV *, DB *, db_pgno_t, void *, DBT *));
|
||||
int __bam_mswap __P((PAGE *));
|
||||
void __bam_cprint __P((DBC *));
|
||||
int __bam_ca_delete __P((DB *, db_pgno_t, u_int32_t, int));
|
||||
int __ram_ca_delete __P((DB *, db_pgno_t));
|
||||
int __bam_ca_di __P((DBC *, db_pgno_t, u_int32_t, int));
|
||||
int __bam_ca_dup __P((DBC *, u_int32_t, db_pgno_t, u_int32_t, db_pgno_t, u_int32_t));
|
||||
int __bam_ca_undodup __P((DB *, u_int32_t, db_pgno_t, u_int32_t, u_int32_t));
|
||||
int __bam_ca_rsplit __P((DBC *, db_pgno_t, db_pgno_t));
|
||||
int __bam_ca_split __P((DBC *, db_pgno_t, db_pgno_t, db_pgno_t, u_int32_t, int));
|
||||
void __bam_ca_undosplit __P((DB *, db_pgno_t, db_pgno_t, db_pgno_t, u_int32_t));
|
||||
int __bam_c_init __P((DBC *, DBTYPE));
|
||||
int __bam_c_refresh __P((DBC *));
|
||||
int __bam_c_count __P((DBC *, db_recno_t *));
|
||||
int __bam_c_dup __P((DBC *, DBC *));
|
||||
int __bam_bulk_overflow __P((DBC *, u_int32_t, db_pgno_t, u_int8_t *));
|
||||
int __bam_bulk_duplicates __P((DBC *, db_pgno_t, u_int8_t *, int32_t *, int32_t **, u_int8_t **, u_int32_t *, int));
|
||||
int __bam_c_rget __P((DBC *, DBT *));
|
||||
int __bam_ditem __P((DBC *, PAGE *, u_int32_t));
|
||||
int __bam_adjindx __P((DBC *, PAGE *, u_int32_t, u_int32_t, int));
|
||||
int __bam_dpages __P((DBC *, EPG *));
|
||||
int __bam_db_create __P((DB *));
|
||||
int __bam_db_close __P((DB *));
|
||||
int __bam_set_flags __P((DB *, u_int32_t *flagsp));
|
||||
int __ram_set_flags __P((DB *, u_int32_t *flagsp));
|
||||
int __bam_open __P((DB *, DB_TXN *, const char *, db_pgno_t, u_int32_t));
|
||||
int __bam_metachk __P((DB *, const char *, BTMETA *));
|
||||
int __bam_read_root __P((DB *, DB_TXN *, db_pgno_t, u_int32_t));
|
||||
int __bam_new_file __P((DB *, DB_TXN *, DB_FH *, const char *));
|
||||
int __bam_new_subdb __P((DB *, DB *, DB_TXN *));
|
||||
int __bam_iitem __P((DBC *, DBT *, DBT *, u_int32_t, u_int32_t));
|
||||
int __bam_ritem __P((DBC *, PAGE *, u_int32_t, DBT *));
|
||||
int __bam_split_recover __P((DB_ENV *, DBT *, DB_LSN *, db_recops, void *));
|
||||
int __bam_rsplit_recover __P((DB_ENV *, DBT *, DB_LSN *, db_recops, void *));
|
||||
int __bam_adj_recover __P((DB_ENV *, DBT *, DB_LSN *, db_recops, void *));
|
||||
int __bam_cadjust_recover __P((DB_ENV *, DBT *, DB_LSN *, db_recops, void *));
|
||||
int __bam_cdel_recover __P((DB_ENV *, DBT *, DB_LSN *, db_recops, void *));
|
||||
int __bam_repl_recover __P((DB_ENV *, DBT *, DB_LSN *, db_recops, void *));
|
||||
int __bam_root_recover __P((DB_ENV *, DBT *, DB_LSN *, db_recops, void *));
|
||||
int __bam_curadj_recover __P((DB_ENV *, DBT *, DB_LSN *, db_recops, void *));
|
||||
int __bam_rcuradj_recover __P((DB_ENV *, DBT *, DB_LSN *, db_recops, void *));
|
||||
int __bam_reclaim __P((DB *, DB_TXN *));
|
||||
int __bam_truncate __P((DB *, DB_TXN *, u_int32_t *));
|
||||
int __ram_open __P((DB *, DB_TXN *, const char *, db_pgno_t, u_int32_t));
|
||||
int __ram_append __P((DBC *, DBT *, DBT *));
|
||||
int __ram_c_del __P((DBC *));
|
||||
int __ram_c_get __P((DBC *, DBT *, DBT *, u_int32_t, db_pgno_t *));
|
||||
int __ram_c_put __P((DBC *, DBT *, DBT *, u_int32_t, db_pgno_t *));
|
||||
int __ram_ca __P((DBC *, ca_recno_arg));
|
||||
int __ram_getno __P((DBC *, const DBT *, db_recno_t *, int));
|
||||
int __ram_writeback __P((DB *));
|
||||
int __bam_rsearch __P((DBC *, db_recno_t *, u_int32_t, int, int *));
|
||||
int __bam_adjust __P((DBC *, int32_t));
|
||||
int __bam_nrecs __P((DBC *, db_recno_t *));
|
||||
db_recno_t __bam_total __P((DB *, PAGE *));
|
||||
int __bam_search __P((DBC *, db_pgno_t, const DBT *, u_int32_t, int, db_recno_t *, int *));
|
||||
int __bam_stkrel __P((DBC *, u_int32_t));
|
||||
int __bam_stkgrow __P((DB_ENV *, BTREE_CURSOR *));
|
||||
int __bam_split __P((DBC *, void *, db_pgno_t *));
|
||||
int __bam_copy __P((DB *, PAGE *, PAGE *, u_int32_t, u_int32_t));
|
||||
int __bam_stat __P((DB *, void *, u_int32_t));
|
||||
int __bam_traverse __P((DBC *, db_lockmode_t, db_pgno_t, int (*)(DB *, PAGE *, void *, int *), void *));
|
||||
int __bam_stat_callback __P((DB *, PAGE *, void *, int *));
|
||||
int __bam_key_range __P((DB *, DB_TXN *, DBT *, DB_KEY_RANGE *, u_int32_t));
|
||||
int __bam_30_btreemeta __P((DB *, char *, u_int8_t *));
|
||||
int __bam_31_btreemeta __P((DB *, char *, u_int32_t, DB_FH *, PAGE *, int *));
|
||||
int __bam_31_lbtree __P((DB *, char *, u_int32_t, DB_FH *, PAGE *, int *));
|
||||
int __bam_vrfy_meta __P((DB *, VRFY_DBINFO *, BTMETA *, db_pgno_t, u_int32_t));
|
||||
int __ram_vrfy_leaf __P((DB *, VRFY_DBINFO *, PAGE *, db_pgno_t, u_int32_t));
|
||||
int __bam_vrfy __P((DB *, VRFY_DBINFO *, PAGE *, db_pgno_t, u_int32_t));
|
||||
int __bam_vrfy_itemorder __P((DB *, VRFY_DBINFO *, PAGE *, db_pgno_t, u_int32_t, int, int, u_int32_t));
|
||||
int __bam_vrfy_structure __P((DB *, VRFY_DBINFO *, db_pgno_t, u_int32_t));
|
||||
int __bam_vrfy_subtree __P((DB *, VRFY_DBINFO *, db_pgno_t, void *, void *, u_int32_t, u_int32_t *, u_int32_t *, u_int32_t *));
|
||||
int __bam_salvage __P((DB *, VRFY_DBINFO *, db_pgno_t, u_int32_t, PAGE *, void *, int (*)(void *, const void *), DBT *, u_int32_t));
|
||||
int __bam_salvage_walkdupint __P((DB *, VRFY_DBINFO *, PAGE *, DBT *, void *, int (*)(void *, const void *), u_int32_t));
|
||||
int __bam_meta2pgset __P((DB *, VRFY_DBINFO *, BTMETA *, u_int32_t, DB *));
|
||||
int __bam_split_log __P((DB *, DB_TXN *, DB_LSN *, u_int32_t, db_pgno_t, DB_LSN *, db_pgno_t, DB_LSN *, u_int32_t, db_pgno_t, DB_LSN *, db_pgno_t, const DBT *, u_int32_t));
|
||||
int __bam_split_getpgnos __P((DB_ENV *, DBT *, DB_LSN *, db_recops, void *));
|
||||
int __bam_split_print __P((DB_ENV *, DBT *, DB_LSN *, db_recops, void *));
|
||||
int __bam_split_read __P((DB_ENV *, void *, __bam_split_args **));
|
||||
int __bam_rsplit_log __P((DB *, DB_TXN *, DB_LSN *, u_int32_t, db_pgno_t, const DBT *, db_pgno_t, db_pgno_t, const DBT *, DB_LSN *));
|
||||
int __bam_rsplit_getpgnos __P((DB_ENV *, DBT *, DB_LSN *, db_recops, void *));
|
||||
int __bam_rsplit_print __P((DB_ENV *, DBT *, DB_LSN *, db_recops, void *));
|
||||
int __bam_rsplit_read __P((DB_ENV *, void *, __bam_rsplit_args **));
|
||||
int __bam_adj_log __P((DB *, DB_TXN *, DB_LSN *, u_int32_t, db_pgno_t, DB_LSN *, u_int32_t, u_int32_t, u_int32_t));
|
||||
int __bam_adj_getpgnos __P((DB_ENV *, DBT *, DB_LSN *, db_recops, void *));
|
||||
int __bam_adj_print __P((DB_ENV *, DBT *, DB_LSN *, db_recops, void *));
|
||||
int __bam_adj_read __P((DB_ENV *, void *, __bam_adj_args **));
|
||||
int __bam_cadjust_log __P((DB *, DB_TXN *, DB_LSN *, u_int32_t, db_pgno_t, DB_LSN *, u_int32_t, int32_t, u_int32_t));
|
||||
int __bam_cadjust_getpgnos __P((DB_ENV *, DBT *, DB_LSN *, db_recops, void *));
|
||||
int __bam_cadjust_print __P((DB_ENV *, DBT *, DB_LSN *, db_recops, void *));
|
||||
int __bam_cadjust_read __P((DB_ENV *, void *, __bam_cadjust_args **));
|
||||
int __bam_cdel_log __P((DB *, DB_TXN *, DB_LSN *, u_int32_t, db_pgno_t, DB_LSN *, u_int32_t));
|
||||
int __bam_cdel_getpgnos __P((DB_ENV *, DBT *, DB_LSN *, db_recops, void *));
|
||||
int __bam_cdel_print __P((DB_ENV *, DBT *, DB_LSN *, db_recops, void *));
|
||||
int __bam_cdel_read __P((DB_ENV *, void *, __bam_cdel_args **));
|
||||
int __bam_repl_log __P((DB *, DB_TXN *, DB_LSN *, u_int32_t, db_pgno_t, DB_LSN *, u_int32_t, u_int32_t, const DBT *, const DBT *, u_int32_t, u_int32_t));
|
||||
int __bam_repl_getpgnos __P((DB_ENV *, DBT *, DB_LSN *, db_recops, void *));
|
||||
int __bam_repl_print __P((DB_ENV *, DBT *, DB_LSN *, db_recops, void *));
|
||||
int __bam_repl_read __P((DB_ENV *, void *, __bam_repl_args **));
|
||||
int __bam_root_log __P((DB *, DB_TXN *, DB_LSN *, u_int32_t, db_pgno_t, db_pgno_t, DB_LSN *));
|
||||
int __bam_root_getpgnos __P((DB_ENV *, DBT *, DB_LSN *, db_recops, void *));
|
||||
int __bam_root_print __P((DB_ENV *, DBT *, DB_LSN *, db_recops, void *));
|
||||
int __bam_root_read __P((DB_ENV *, void *, __bam_root_args **));
|
||||
int __bam_curadj_log __P((DB *, DB_TXN *, DB_LSN *, u_int32_t, db_ca_mode, db_pgno_t, db_pgno_t, db_pgno_t, u_int32_t, u_int32_t, u_int32_t));
|
||||
int __bam_curadj_getpgnos __P((DB_ENV *, DBT *, DB_LSN *, db_recops, void *));
|
||||
int __bam_curadj_print __P((DB_ENV *, DBT *, DB_LSN *, db_recops, void *));
|
||||
int __bam_curadj_read __P((DB_ENV *, void *, __bam_curadj_args **));
|
||||
int __bam_rcuradj_log __P((DB *, DB_TXN *, DB_LSN *, u_int32_t, ca_recno_arg, db_pgno_t, db_recno_t, u_int32_t));
|
||||
int __bam_rcuradj_getpgnos __P((DB_ENV *, DBT *, DB_LSN *, db_recops, void *));
|
||||
int __bam_rcuradj_print __P((DB_ENV *, DBT *, DB_LSN *, db_recops, void *));
|
||||
int __bam_rcuradj_read __P((DB_ENV *, void *, __bam_rcuradj_args **));
|
||||
int __bam_init_print __P((DB_ENV *, int (***)(DB_ENV *, DBT *, DB_LSN *, db_recops, void *), size_t *));
|
||||
int __bam_init_getpgnos __P((DB_ENV *, int (***)(DB_ENV *, DBT *, DB_LSN *, db_recops, void *), size_t *));
|
||||
int __bam_init_recover __P((DB_ENV *, int (***)(DB_ENV *, DBT *, DB_LSN *, db_recops, void *), size_t *));
|
||||
|
||||
#if defined(__cplusplus)
|
||||
}
|
||||
#endif
|
||||
#endif /* !_btree_ext_h_ */
|
@ -1,49 +0,0 @@
|
||||
/* DO NOT EDIT: automatically built by dist/s_include. */
|
||||
#ifndef _clib_ext_h_
|
||||
#define _clib_ext_h_
|
||||
|
||||
#if defined(__cplusplus)
|
||||
extern "C" {
|
||||
#endif
|
||||
|
||||
#ifndef HAVE_GETCWD
|
||||
char *getcwd __P((char *, size_t));
|
||||
#endif
|
||||
#ifndef HAVE_GETOPT
|
||||
int getopt __P((int, char * const *, const char *));
|
||||
#endif
|
||||
#ifndef HAVE_MEMCMP
|
||||
int memcmp __P((const void *, const void *, size_t));
|
||||
#endif
|
||||
#ifndef HAVE_MEMCPY
|
||||
void *memcpy __P((void *, const void *, size_t));
|
||||
#endif
|
||||
#ifndef HAVE_MEMMOVE
|
||||
void *memmove __P((void *, const void *, size_t));
|
||||
#endif
|
||||
#ifndef HAVE_RAISE
|
||||
int raise __P((int));
|
||||
#endif
|
||||
#ifndef HAVE_SNPRINTF
|
||||
int snprintf __P((char *, size_t, const char *, ...));
|
||||
#endif
|
||||
#ifndef HAVE_STRCASECMP
|
||||
int strcasecmp __P((const char *, const char *));
|
||||
#endif
|
||||
#ifndef HAVE_STRCASECMP
|
||||
int strncasecmp __P((const char *, const char *, size_t));
|
||||
#endif
|
||||
#ifndef HAVE_STRDUP
|
||||
char *strdup __P((const char *));
|
||||
#endif
|
||||
#ifndef HAVE_STRERROR
|
||||
char *strerror __P((int));
|
||||
#endif
|
||||
#ifndef HAVE_VSNPRINTF
|
||||
int vsnprintf __P((char *, size_t, const char *, va_list));
|
||||
#endif
|
||||
|
||||
#if defined(__cplusplus)
|
||||
}
|
||||
#endif
|
||||
#endif /* !_clib_ext_h_ */
|
@ -1,44 +0,0 @@
|
||||
/* DO NOT EDIT: automatically built by dist/s_include. */
|
||||
#ifndef _common_ext_h_
|
||||
#define _common_ext_h_
|
||||
|
||||
#if defined(__cplusplus)
|
||||
extern "C" {
|
||||
#endif
|
||||
|
||||
int __db_isbigendian __P((void));
|
||||
int __db_byteorder __P((DB_ENV *, int));
|
||||
int __db_fchk __P((DB_ENV *, const char *, u_int32_t, u_int32_t));
|
||||
int __db_fcchk __P((DB_ENV *, const char *, u_int32_t, u_int32_t, u_int32_t));
|
||||
int __db_ferr __P((const DB_ENV *, const char *, int));
|
||||
void __db_pgerr __P((DB *, db_pgno_t, int));
|
||||
int __db_pgfmt __P((DB_ENV *, db_pgno_t));
|
||||
int __db_eopnotsup __P((const DB_ENV *));
|
||||
#ifdef DIAGNOSTIC
|
||||
void __db_assert __P((const char *, const char *, int));
|
||||
#endif
|
||||
int __db_panic_msg __P((DB_ENV *));
|
||||
int __db_panic __P((DB_ENV *, int));
|
||||
void __db_err __P((const DB_ENV *, const char *, ...));
|
||||
void __db_errcall __P((const DB_ENV *, int, int, const char *, va_list));
|
||||
void __db_errfile __P((const DB_ENV *, int, int, const char *, va_list));
|
||||
void __db_logmsg __P((const DB_ENV *, DB_TXN *, const char *, u_int32_t, const char *, ...));
|
||||
int __db_unknown_flag __P((DB_ENV *, char *, u_int32_t));
|
||||
int __db_unknown_type __P((DB_ENV *, char *, DBTYPE));
|
||||
int __db_check_txn __P((DB *, DB_TXN *, u_int32_t, int));
|
||||
int __db_not_txn_env __P((DB_ENV *));
|
||||
int __db_getlong __P((DB *, const char *, char *, long, long, long *));
|
||||
int __db_getulong __P((DB *, const char *, char *, u_long, u_long, u_long *));
|
||||
void __db_idspace __P((u_int32_t *, int, u_int32_t *, u_int32_t *));
|
||||
u_int32_t __db_log2 __P((u_int32_t));
|
||||
int __db_util_arg __P((char *, char *, int *, char ***));
|
||||
int __db_util_cache __P((DB_ENV *, DB *, u_int32_t *, int *));
|
||||
int __db_util_logset __P((const char *, char *));
|
||||
void __db_util_siginit __P((void));
|
||||
int __db_util_interrupted __P((void));
|
||||
void __db_util_sigresend __P((void));
|
||||
|
||||
#if defined(__cplusplus)
|
||||
}
|
||||
#endif
|
||||
#endif /* !_common_ext_h_ */
|
@ -1,16 +0,0 @@
|
||||
/* Do not edit: automatically built by gen_rec.awk. */
|
||||
|
||||
#ifndef __crdel_AUTO_H
|
||||
#define __crdel_AUTO_H
|
||||
#define DB___crdel_metasub 142
|
||||
typedef struct ___crdel_metasub_args {
|
||||
u_int32_t type;
|
||||
DB_TXN *txnid;
|
||||
DB_LSN prev_lsn;
|
||||
int32_t fileid;
|
||||
db_pgno_t pgno;
|
||||
DBT page;
|
||||
DB_LSN lsn;
|
||||
} __crdel_metasub_args;
|
||||
|
||||
#endif
|
@ -1,118 +0,0 @@
|
||||
/* Do not edit: automatically built by gen_rec.awk. */
|
||||
|
||||
#ifndef __db_AUTO_H
|
||||
#define __db_AUTO_H
|
||||
#define DB___db_addrem 41
|
||||
typedef struct ___db_addrem_args {
|
||||
u_int32_t type;
|
||||
DB_TXN *txnid;
|
||||
DB_LSN prev_lsn;
|
||||
u_int32_t opcode;
|
||||
int32_t fileid;
|
||||
db_pgno_t pgno;
|
||||
u_int32_t indx;
|
||||
u_int32_t nbytes;
|
||||
DBT hdr;
|
||||
DBT dbt;
|
||||
DB_LSN pagelsn;
|
||||
} __db_addrem_args;
|
||||
|
||||
#define DB___db_big 43
|
||||
typedef struct ___db_big_args {
|
||||
u_int32_t type;
|
||||
DB_TXN *txnid;
|
||||
DB_LSN prev_lsn;
|
||||
u_int32_t opcode;
|
||||
int32_t fileid;
|
||||
db_pgno_t pgno;
|
||||
db_pgno_t prev_pgno;
|
||||
db_pgno_t next_pgno;
|
||||
DBT dbt;
|
||||
DB_LSN pagelsn;
|
||||
DB_LSN prevlsn;
|
||||
DB_LSN nextlsn;
|
||||
} __db_big_args;
|
||||
|
||||
#define DB___db_ovref 44
|
||||
typedef struct ___db_ovref_args {
|
||||
u_int32_t type;
|
||||
DB_TXN *txnid;
|
||||
DB_LSN prev_lsn;
|
||||
int32_t fileid;
|
||||
db_pgno_t pgno;
|
||||
int32_t adjust;
|
||||
DB_LSN lsn;
|
||||
} __db_ovref_args;
|
||||
|
||||
#define DB___db_relink 45
|
||||
typedef struct ___db_relink_args {
|
||||
u_int32_t type;
|
||||
DB_TXN *txnid;
|
||||
DB_LSN prev_lsn;
|
||||
u_int32_t opcode;
|
||||
int32_t fileid;
|
||||
db_pgno_t pgno;
|
||||
DB_LSN lsn;
|
||||
db_pgno_t prev;
|
||||
DB_LSN lsn_prev;
|
||||
db_pgno_t next;
|
||||
DB_LSN lsn_next;
|
||||
} __db_relink_args;
|
||||
|
||||
#define DB___db_debug 47
|
||||
typedef struct ___db_debug_args {
|
||||
u_int32_t type;
|
||||
DB_TXN *txnid;
|
||||
DB_LSN prev_lsn;
|
||||
DBT op;
|
||||
int32_t fileid;
|
||||
DBT key;
|
||||
DBT data;
|
||||
u_int32_t arg_flags;
|
||||
} __db_debug_args;
|
||||
|
||||
#define DB___db_noop 48
|
||||
typedef struct ___db_noop_args {
|
||||
u_int32_t type;
|
||||
DB_TXN *txnid;
|
||||
DB_LSN prev_lsn;
|
||||
int32_t fileid;
|
||||
db_pgno_t pgno;
|
||||
DB_LSN prevlsn;
|
||||
} __db_noop_args;
|
||||
|
||||
#define DB___db_pg_alloc 49
|
||||
typedef struct ___db_pg_alloc_args {
|
||||
u_int32_t type;
|
||||
DB_TXN *txnid;
|
||||
DB_LSN prev_lsn;
|
||||
int32_t fileid;
|
||||
DB_LSN meta_lsn;
|
||||
db_pgno_t meta_pgno;
|
||||
DB_LSN page_lsn;
|
||||
db_pgno_t pgno;
|
||||
u_int32_t ptype;
|
||||
db_pgno_t next;
|
||||
} __db_pg_alloc_args;
|
||||
|
||||
#define DB___db_pg_free 50
|
||||
typedef struct ___db_pg_free_args {
|
||||
u_int32_t type;
|
||||
DB_TXN *txnid;
|
||||
DB_LSN prev_lsn;
|
||||
int32_t fileid;
|
||||
db_pgno_t pgno;
|
||||
DB_LSN meta_lsn;
|
||||
db_pgno_t meta_pgno;
|
||||
DBT header;
|
||||
db_pgno_t next;
|
||||
} __db_pg_free_args;
|
||||
|
||||
#define DB___db_cksum 51
|
||||
typedef struct ___db_cksum_args {
|
||||
u_int32_t type;
|
||||
DB_TXN *txnid;
|
||||
DB_LSN prev_lsn;
|
||||
} __db_cksum_args;
|
||||
|
||||
#endif
|
@ -1,224 +0,0 @@
|
||||
/* DO NOT EDIT: automatically built by dist/s_include. */
|
||||
#ifndef _db_ext_h_
|
||||
#define _db_ext_h_
|
||||
|
||||
#if defined(__cplusplus)
|
||||
extern "C" {
|
||||
#endif
|
||||
|
||||
int __crdel_metasub_log __P((DB *, DB_TXN *, DB_LSN *, u_int32_t, db_pgno_t, const DBT *, DB_LSN *));
|
||||
int __crdel_metasub_getpgnos __P((DB_ENV *, DBT *, DB_LSN *, db_recops, void *));
|
||||
int __crdel_metasub_print __P((DB_ENV *, DBT *, DB_LSN *, db_recops, void *));
|
||||
int __crdel_metasub_read __P((DB_ENV *, void *, __crdel_metasub_args **));
|
||||
int __crdel_init_print __P((DB_ENV *, int (***)(DB_ENV *, DBT *, DB_LSN *, db_recops, void *), size_t *));
|
||||
int __crdel_init_getpgnos __P((DB_ENV *, int (***)(DB_ENV *, DBT *, DB_LSN *, db_recops, void *), size_t *));
|
||||
int __crdel_init_recover __P((DB_ENV *, int (***)(DB_ENV *, DBT *, DB_LSN *, db_recops, void *), size_t *));
|
||||
int __crdel_metasub_recover __P((DB_ENV *, DBT *, DB_LSN *, db_recops, void *));
|
||||
int __db_master_open __P((DB *, DB_TXN *, const char *, u_int32_t, int, DB **));
|
||||
int __db_master_update __P((DB *, DB *, DB_TXN *, const char *, DBTYPE, mu_action, const char *, u_int32_t));
|
||||
int __db_dbenv_setup __P((DB *, DB_TXN *, const char *, u_int32_t, u_int32_t));
|
||||
int __db_close __P((DB *, u_int32_t));
|
||||
int __db_close_i __P((DB *, DB_TXN *, u_int32_t));
|
||||
int __db_refresh __P((DB *, DB_TXN *, u_int32_t));
|
||||
int __db_log_page __P((DB *, DB_TXN *, DB_LSN *, db_pgno_t, PAGE *));
|
||||
int __db_backup_name __P((DB_ENV *, const char *, DB_TXN *, char **));
|
||||
DB *__dblist_get __P((DB_ENV *, u_int32_t));
|
||||
#if CONFIG_TEST
|
||||
int __db_testcopy __P((DB_ENV *, DB *, const char *));
|
||||
#endif
|
||||
int __db_cursor __P((DB *, DB_TXN *, DBC **, u_int32_t));
|
||||
int __db_icursor __P((DB *, DB_TXN *, DBTYPE, db_pgno_t, int, u_int32_t, DBC **));
|
||||
int __db_cprint __P((DB *));
|
||||
int __db_fd __P((DB *, int *));
|
||||
int __db_get __P((DB *, DB_TXN *, DBT *, DBT *, u_int32_t));
|
||||
int __db_put __P((DB *, DB_TXN *, DBT *, DBT *, u_int32_t));
|
||||
int __db_delete __P((DB *, DB_TXN *, DBT *, u_int32_t));
|
||||
int __db_sync __P((DB *, u_int32_t));
|
||||
int __db_associate __P((DB *, DB_TXN *, DB *, int (*)(DB *, const DBT *, const DBT *, DBT *), u_int32_t));
|
||||
int __db_pget __P((DB *, DB_TXN *, DBT *, DBT *, DBT *, u_int32_t));
|
||||
int __db_addrem_log __P((DB *, DB_TXN *, DB_LSN *, u_int32_t, u_int32_t, db_pgno_t, u_int32_t, u_int32_t, const DBT *, const DBT *, DB_LSN *));
|
||||
int __db_addrem_getpgnos __P((DB_ENV *, DBT *, DB_LSN *, db_recops, void *));
|
||||
int __db_addrem_print __P((DB_ENV *, DBT *, DB_LSN *, db_recops, void *));
|
||||
int __db_addrem_read __P((DB_ENV *, void *, __db_addrem_args **));
|
||||
int __db_big_log __P((DB *, DB_TXN *, DB_LSN *, u_int32_t, u_int32_t, db_pgno_t, db_pgno_t, db_pgno_t, const DBT *, DB_LSN *, DB_LSN *, DB_LSN *));
|
||||
int __db_big_getpgnos __P((DB_ENV *, DBT *, DB_LSN *, db_recops, void *));
|
||||
int __db_big_print __P((DB_ENV *, DBT *, DB_LSN *, db_recops, void *));
|
||||
int __db_big_read __P((DB_ENV *, void *, __db_big_args **));
|
||||
int __db_ovref_log __P((DB *, DB_TXN *, DB_LSN *, u_int32_t, db_pgno_t, int32_t, DB_LSN *));
|
||||
int __db_ovref_getpgnos __P((DB_ENV *, DBT *, DB_LSN *, db_recops, void *));
|
||||
int __db_ovref_print __P((DB_ENV *, DBT *, DB_LSN *, db_recops, void *));
|
||||
int __db_ovref_read __P((DB_ENV *, void *, __db_ovref_args **));
|
||||
int __db_relink_log __P((DB *, DB_TXN *, DB_LSN *, u_int32_t, u_int32_t, db_pgno_t, DB_LSN *, db_pgno_t, DB_LSN *, db_pgno_t, DB_LSN *));
|
||||
int __db_relink_getpgnos __P((DB_ENV *, DBT *, DB_LSN *, db_recops, void *));
|
||||
int __db_relink_print __P((DB_ENV *, DBT *, DB_LSN *, db_recops, void *));
|
||||
int __db_relink_read __P((DB_ENV *, void *, __db_relink_args **));
|
||||
int __db_debug_log __P((DB_ENV *, DB_TXN *, DB_LSN *, u_int32_t, const DBT *, int32_t, const DBT *, const DBT *, u_int32_t));
|
||||
int __db_debug_getpgnos __P((DB_ENV *, DBT *, DB_LSN *, db_recops, void *));
|
||||
int __db_debug_print __P((DB_ENV *, DBT *, DB_LSN *, db_recops, void *));
|
||||
int __db_debug_read __P((DB_ENV *, void *, __db_debug_args **));
|
||||
int __db_noop_log __P((DB *, DB_TXN *, DB_LSN *, u_int32_t, db_pgno_t, DB_LSN *));
|
||||
int __db_noop_getpgnos __P((DB_ENV *, DBT *, DB_LSN *, db_recops, void *));
|
||||
int __db_noop_print __P((DB_ENV *, DBT *, DB_LSN *, db_recops, void *));
|
||||
int __db_noop_read __P((DB_ENV *, void *, __db_noop_args **));
|
||||
int __db_pg_alloc_log __P((DB *, DB_TXN *, DB_LSN *, u_int32_t, DB_LSN *, db_pgno_t, DB_LSN *, db_pgno_t, u_int32_t, db_pgno_t));
|
||||
int __db_pg_alloc_getpgnos __P((DB_ENV *, DBT *, DB_LSN *, db_recops, void *));
|
||||
int __db_pg_alloc_print __P((DB_ENV *, DBT *, DB_LSN *, db_recops, void *));
|
||||
int __db_pg_alloc_read __P((DB_ENV *, void *, __db_pg_alloc_args **));
|
||||
int __db_pg_free_log __P((DB *, DB_TXN *, DB_LSN *, u_int32_t, db_pgno_t, DB_LSN *, db_pgno_t, const DBT *, db_pgno_t));
|
||||
int __db_pg_free_getpgnos __P((DB_ENV *, DBT *, DB_LSN *, db_recops, void *));
|
||||
int __db_pg_free_print __P((DB_ENV *, DBT *, DB_LSN *, db_recops, void *));
|
||||
int __db_pg_free_read __P((DB_ENV *, void *, __db_pg_free_args **));
|
||||
int __db_cksum_log __P((DB_ENV *, DB_TXN *, DB_LSN *, u_int32_t));
|
||||
int __db_cksum_getpgnos __P((DB_ENV *, DBT *, DB_LSN *, db_recops, void *));
|
||||
int __db_cksum_print __P((DB_ENV *, DBT *, DB_LSN *, db_recops, void *));
|
||||
int __db_cksum_read __P((DB_ENV *, void *, __db_cksum_args **));
|
||||
int __db_init_print __P((DB_ENV *, int (***)(DB_ENV *, DBT *, DB_LSN *, db_recops, void *), size_t *));
|
||||
int __db_init_getpgnos __P((DB_ENV *, int (***)(DB_ENV *, DBT *, DB_LSN *, db_recops, void *), size_t *));
|
||||
int __db_init_recover __P((DB_ENV *, int (***)(DB_ENV *, DBT *, DB_LSN *, db_recops, void *), size_t *));
|
||||
int __db_c_close __P((DBC *));
|
||||
int __db_c_destroy __P((DBC *));
|
||||
int __db_c_count __P((DBC *, db_recno_t *, u_int32_t));
|
||||
int __db_c_del __P((DBC *, u_int32_t));
|
||||
int __db_c_dup __P((DBC *, DBC **, u_int32_t));
|
||||
int __db_c_idup __P((DBC *, DBC **, u_int32_t));
|
||||
int __db_c_newopd __P((DBC *, db_pgno_t, DBC *, DBC **));
|
||||
int __db_c_get __P((DBC *, DBT *, DBT *, u_int32_t));
|
||||
int __db_c_put __P((DBC *, DBT *, DBT *, u_int32_t));
|
||||
int __db_duperr __P((DB *, u_int32_t));
|
||||
int __db_c_secondary_get __P((DBC *, DBT *, DBT *, u_int32_t));
|
||||
int __db_c_pget __P((DBC *, DBT *, DBT *, DBT *, u_int32_t));
|
||||
int __db_c_del_primary __P((DBC *));
|
||||
DB *__db_s_first __P((DB *));
|
||||
int __db_s_next __P((DB **));
|
||||
int __db_s_done __P((DB *));
|
||||
u_int32_t __db_partsize __P((u_int32_t, DBT *));
|
||||
int __db_pgin __P((DB_ENV *, db_pgno_t, void *, DBT *));
|
||||
int __db_pgout __P((DB_ENV *, db_pgno_t, void *, DBT *));
|
||||
void __db_metaswap __P((PAGE *));
|
||||
int __db_byteswap __P((DB_ENV *, DB *, db_pgno_t, PAGE *, size_t, int));
|
||||
int __db_dispatch __P((DB_ENV *, int (**)__P((DB_ENV *, DBT *, DB_LSN *, db_recops, void *)), size_t, DBT *, DB_LSN *, db_recops, void *));
|
||||
int __db_add_recovery __P((DB_ENV *, int (***)(DB_ENV *, DBT *, DB_LSN *, db_recops, void *), size_t *, int (*)(DB_ENV *, DBT *, DB_LSN *, db_recops, void *), u_int32_t));
|
||||
int __db_txnlist_init __P((DB_ENV *, u_int32_t, u_int32_t, DB_LSN *, void *));
|
||||
int __db_txnlist_add __P((DB_ENV *, void *, u_int32_t, int32_t, DB_LSN *));
|
||||
int __db_txnlist_remove __P((DB_ENV *, void *, u_int32_t));
|
||||
void __db_txnlist_ckp __P((DB_ENV *, void *, DB_LSN *));
|
||||
void __db_txnlist_end __P((DB_ENV *, void *));
|
||||
int __db_txnlist_find __P((DB_ENV *, void *, u_int32_t));
|
||||
int __db_txnlist_update __P((DB_ENV *, void *, u_int32_t, u_int32_t, DB_LSN *));
|
||||
int __db_txnlist_gen __P((DB_ENV *, void *, int, u_int32_t, u_int32_t));
|
||||
int __db_txnlist_lsnadd __P((DB_ENV *, void *, DB_LSN *, u_int32_t));
|
||||
int __db_txnlist_lsninit __P((DB_ENV *, DB_TXNHEAD *, DB_LSN *));
|
||||
int __db_add_limbo __P((DB_ENV *, void *, int32_t, db_pgno_t, int32_t));
|
||||
int __db_do_the_limbo __P((DB_ENV *, DB_TXN *, DB_TXN *, DB_TXNHEAD *));
|
||||
void __db_txnlist_print __P((void *));
|
||||
int __db_ditem __P((DBC *, PAGE *, u_int32_t, u_int32_t));
|
||||
int __db_pitem __P((DBC *, PAGE *, u_int32_t, u_int32_t, DBT *, DBT *));
|
||||
int __db_relink __P((DBC *, u_int32_t, PAGE *, PAGE **, int));
|
||||
int __db_cursorchk __P((const DB *, u_int32_t));
|
||||
int __db_ccountchk __P((const DB *, u_int32_t, int));
|
||||
int __db_cdelchk __P((const DB *, u_int32_t, int));
|
||||
int __db_cgetchk __P((const DB *, DBT *, DBT *, u_int32_t, int));
|
||||
int __db_cputchk __P((const DB *, const DBT *, DBT *, u_int32_t, int));
|
||||
int __db_pgetchk __P((const DB *, const DBT *, DBT *, DBT *, u_int32_t));
|
||||
int __db_cpgetchk __P((const DB *, DBT *, DBT *, DBT *, u_int32_t, int));
|
||||
int __db_delchk __P((const DB *, DBT *, u_int32_t));
|
||||
int __db_getchk __P((const DB *, const DBT *, DBT *, u_int32_t));
|
||||
int __db_joinchk __P((const DB *, DBC * const *, u_int32_t));
|
||||
int __db_joingetchk __P((const DB *, DBT *, u_int32_t));
|
||||
int __db_putchk __P((const DB *, DBT *, const DBT *, u_int32_t, int));
|
||||
int __db_statchk __P((const DB *, u_int32_t));
|
||||
int __db_syncchk __P((const DB *, u_int32_t));
|
||||
int __db_secondary_corrupt __P((DB *));
|
||||
int __db_associatechk __P((DB *, DB *, int (*)(DB *, const DBT *, const DBT *, DBT *), u_int32_t));
|
||||
int __db_txn_auto __P((DB *, DB_TXN **));
|
||||
int __db_join __P((DB *, DBC **, DBC **, u_int32_t));
|
||||
int __db_new __P((DBC *, u_int32_t, PAGE **));
|
||||
int __db_free __P((DBC *, PAGE *));
|
||||
int __db_lprint __P((DBC *));
|
||||
int __db_lget __P((DBC *, int, db_pgno_t, db_lockmode_t, u_int32_t, DB_LOCK *));
|
||||
int __db_lput __P((DBC *, DB_LOCK *));
|
||||
int __dbh_am_chk __P((DB *, u_int32_t));
|
||||
int __db_set_lorder __P((DB *, int));
|
||||
int __db_open __P((DB *, DB_TXN *, const char *, const char *, DBTYPE, u_int32_t, int));
|
||||
int __db_dbopen __P((DB *, DB_TXN *, const char *, const char *, u_int32_t, int, db_pgno_t));
|
||||
int __db_new_file __P((DB *, DB_TXN *, DB_FH *, const char *));
|
||||
int __db_init_subdb __P((DB *, DB *, const char *, DB_TXN *));
|
||||
int __db_chk_meta __P((DB_ENV *, DB *, DBMETA *, int));
|
||||
int __db_meta_setup __P((DB_ENV *, DB *, const char *, DBMETA *, u_int32_t, int));
|
||||
int __db_goff __P((DB *, DBT *, u_int32_t, db_pgno_t, void **, u_int32_t *));
|
||||
int __db_poff __P((DBC *, const DBT *, db_pgno_t *));
|
||||
int __db_ovref __P((DBC *, db_pgno_t, int32_t));
|
||||
int __db_doff __P((DBC *, db_pgno_t));
|
||||
int __db_moff __P((DB *, const DBT *, db_pgno_t, u_int32_t, int (*)(DB *, const DBT *, const DBT *), int *));
|
||||
int __db_vrfy_overflow __P((DB *, VRFY_DBINFO *, PAGE *, db_pgno_t, u_int32_t));
|
||||
int __db_vrfy_ovfl_structure __P((DB *, VRFY_DBINFO *, db_pgno_t, u_int32_t, u_int32_t));
|
||||
int __db_safe_goff __P((DB *, VRFY_DBINFO *, db_pgno_t, DBT *, void **, u_int32_t));
|
||||
void __db_loadme __P((void));
|
||||
int __db_dump __P((DB *, char *, char *));
|
||||
void __db_inmemdbflags __P((u_int32_t, void *, void (*)(u_int32_t, const FN *, void *)));
|
||||
int __db_prnpage __P((DB *, db_pgno_t, FILE *));
|
||||
int __db_prpage __P((DB *, PAGE *, FILE *, u_int32_t));
|
||||
void __db_pr __P((u_int8_t *, u_int32_t, FILE *));
|
||||
int __db_prdbt __P((DBT *, int, const char *, void *, int (*)(void *, const void *), int, VRFY_DBINFO *));
|
||||
void __db_prflags __P((u_int32_t, const FN *, void *));
|
||||
const char * __db_dbtype_to_string __P((DBTYPE));
|
||||
int __db_prheader __P((DB *, char *, int, int, void *, int (*)(void *, const void *), VRFY_DBINFO *, db_pgno_t));
|
||||
int __db_prfooter __P((void *, int (*)(void *, const void *)));
|
||||
int __db_addrem_recover __P((DB_ENV *, DBT *, DB_LSN *, db_recops, void *));
|
||||
int __db_big_recover __P((DB_ENV *, DBT *, DB_LSN *, db_recops, void *));
|
||||
int __db_ovref_recover __P((DB_ENV *, DBT *, DB_LSN *, db_recops, void *));
|
||||
int __db_relink_recover __P((DB_ENV *, DBT *, DB_LSN *, db_recops, void *));
|
||||
int __db_debug_recover __P((DB_ENV *, DBT *, DB_LSN *, db_recops, void *));
|
||||
int __db_noop_recover __P((DB_ENV *, DBT *, DB_LSN *, db_recops, void *));
|
||||
int __db_pg_alloc_recover __P((DB_ENV *, DBT *, DB_LSN *, db_recops, void *));
|
||||
int __db_pg_free_recover __P((DB_ENV *, DBT *, DB_LSN *, db_recops, void *));
|
||||
int __db_cksum_recover __P((DB_ENV *, DBT *, DB_LSN *, db_recops, void *));
|
||||
int __db_traverse_big __P((DB *, db_pgno_t, int (*)(DB *, PAGE *, void *, int *), void *));
|
||||
int __db_reclaim_callback __P((DB *, PAGE *, void *, int *));
|
||||
int __db_truncate_callback __P((DB *, PAGE *, void *, int *));
|
||||
int __dbenv_dbremove __P((DB_ENV *, DB_TXN *, const char *, const char *, u_int32_t));
|
||||
int __db_remove __P((DB *, const char *, const char *, u_int32_t));
|
||||
int __db_remove_i __P((DB *, DB_TXN *, const char *, const char *));
|
||||
int __dbenv_dbrename __P((DB_ENV *, DB_TXN *, const char *, const char *, const char *, u_int32_t));
|
||||
int __db_rename __P((DB *, const char *, const char *, const char *, u_int32_t));
|
||||
int __db_rename_i __P((DB *, DB_TXN *, const char *, const char *, const char *));
|
||||
int __db_ret __P((DB *, PAGE *, u_int32_t, DBT *, void **, u_int32_t *));
|
||||
int __db_retcopy __P((DB_ENV *, DBT *, void *, u_int32_t, void **, u_int32_t *));
|
||||
int __db_truncate __P((DB *, DB_TXN *, u_int32_t *, u_int32_t));
|
||||
int __db_upgrade __P((DB *, const char *, u_int32_t));
|
||||
int __db_lastpgno __P((DB *, char *, DB_FH *, db_pgno_t *));
|
||||
int __db_31_offdup __P((DB *, char *, DB_FH *, int, db_pgno_t *));
|
||||
int __db_verify __P((DB *, const char *, const char *, FILE *, u_int32_t));
|
||||
int __db_verify_callback __P((void *, const void *));
|
||||
int __db_verify_internal __P((DB *, const char *, const char *, void *, int (*)(void *, const void *), u_int32_t));
|
||||
int __db_vrfy_datapage __P((DB *, VRFY_DBINFO *, PAGE *, db_pgno_t, u_int32_t));
|
||||
int __db_vrfy_meta __P((DB *, VRFY_DBINFO *, DBMETA *, db_pgno_t, u_int32_t));
|
||||
void __db_vrfy_struct_feedback __P((DB *, VRFY_DBINFO *));
|
||||
int __db_vrfy_inpitem __P((DB *, PAGE *, db_pgno_t, u_int32_t, int, u_int32_t, u_int32_t *, u_int32_t *));
|
||||
int __db_vrfy_duptype __P((DB *, VRFY_DBINFO *, db_pgno_t, u_int32_t));
|
||||
int __db_salvage_duptree __P((DB *, VRFY_DBINFO *, db_pgno_t, DBT *, void *, int (*)(void *, const void *), u_int32_t));
|
||||
int __db_vrfy_dbinfo_create __P((DB_ENV *, u_int32_t, VRFY_DBINFO **));
|
||||
int __db_vrfy_dbinfo_destroy __P((DB_ENV *, VRFY_DBINFO *));
|
||||
int __db_vrfy_getpageinfo __P((VRFY_DBINFO *, db_pgno_t, VRFY_PAGEINFO **));
|
||||
int __db_vrfy_putpageinfo __P((DB_ENV *, VRFY_DBINFO *, VRFY_PAGEINFO *));
|
||||
int __db_vrfy_pgset __P((DB_ENV *, u_int32_t, DB **));
|
||||
int __db_vrfy_pgset_get __P((DB *, db_pgno_t, int *));
|
||||
int __db_vrfy_pgset_inc __P((DB *, db_pgno_t));
|
||||
int __db_vrfy_pgset_dec __P((DB *, db_pgno_t));
|
||||
int __db_vrfy_pgset_next __P((DBC *, db_pgno_t *));
|
||||
int __db_vrfy_childcursor __P((VRFY_DBINFO *, DBC **));
|
||||
int __db_vrfy_childput __P((VRFY_DBINFO *, db_pgno_t, VRFY_CHILDINFO *));
|
||||
int __db_vrfy_ccset __P((DBC *, db_pgno_t, VRFY_CHILDINFO **));
|
||||
int __db_vrfy_ccnext __P((DBC *, VRFY_CHILDINFO **));
|
||||
int __db_vrfy_ccclose __P((DBC *));
|
||||
int __db_salvage_init __P((VRFY_DBINFO *));
|
||||
void __db_salvage_destroy __P((VRFY_DBINFO *));
|
||||
int __db_salvage_getnext __P((VRFY_DBINFO *, db_pgno_t *, u_int32_t *));
|
||||
int __db_salvage_isdone __P((VRFY_DBINFO *, db_pgno_t));
|
||||
int __db_salvage_markdone __P((VRFY_DBINFO *, db_pgno_t));
|
||||
int __db_salvage_markneeded __P((VRFY_DBINFO *, db_pgno_t, u_int32_t));
|
||||
|
||||
#if defined(__cplusplus)
|
||||
}
|
||||
#endif
|
||||
#endif /* !_db_ext_h_ */
|
File diff suppressed because it is too large
Load Diff
@ -1,19 +0,0 @@
|
||||
/* Do not edit: automatically built by gen_rec.awk. */
|
||||
|
||||
#ifndef __dbreg_AUTO_H
|
||||
#define __dbreg_AUTO_H
|
||||
#define DB___dbreg_register 2
|
||||
typedef struct ___dbreg_register_args {
|
||||
u_int32_t type;
|
||||
DB_TXN *txnid;
|
||||
DB_LSN prev_lsn;
|
||||
u_int32_t opcode;
|
||||
DBT name;
|
||||
DBT uid;
|
||||
int32_t fileid;
|
||||
DBTYPE ftype;
|
||||
db_pgno_t meta_pgno;
|
||||
u_int32_t id;
|
||||
} __dbreg_register_args;
|
||||
|
||||
#endif
|
@ -1,43 +0,0 @@
|
||||
/* DO NOT EDIT: automatically built by dist/s_include. */
|
||||
#ifndef _dbreg_ext_h_
|
||||
#define _dbreg_ext_h_
|
||||
|
||||
#if defined(__cplusplus)
|
||||
extern "C" {
|
||||
#endif
|
||||
|
||||
int __dbreg_setup __P((DB *, const char *, u_int32_t));
|
||||
int __dbreg_teardown __P((DB *));
|
||||
int __dbreg_new_id __P((DB *, DB_TXN *));
|
||||
int __dbreg_assign_id __P((DB *, int32_t));
|
||||
int __dbreg_revoke_id __P((DB *, int));
|
||||
int __dbreg_close_id __P((DB *, DB_TXN *));
|
||||
int __dbreg_register_log __P((DB_ENV *, DB_TXN *, DB_LSN *, u_int32_t, u_int32_t, const DBT *, const DBT *, int32_t, DBTYPE, db_pgno_t, u_int32_t));
|
||||
int __dbreg_register_getpgnos __P((DB_ENV *, DBT *, DB_LSN *, db_recops, void *));
|
||||
int __dbreg_register_print __P((DB_ENV *, DBT *, DB_LSN *, db_recops, void *));
|
||||
int __dbreg_register_read __P((DB_ENV *, void *, __dbreg_register_args **));
|
||||
int __dbreg_init_print __P((DB_ENV *, int (***)(DB_ENV *, DBT *, DB_LSN *, db_recops, void *), size_t *));
|
||||
int __dbreg_init_getpgnos __P((DB_ENV *, int (***)(DB_ENV *, DBT *, DB_LSN *, db_recops, void *), size_t *));
|
||||
int __dbreg_init_recover __P((DB_ENV *, int (***)(DB_ENV *, DBT *, DB_LSN *, db_recops, void *), size_t *));
|
||||
int __dbreg_register_recover __P((DB_ENV *, DBT *, DB_LSN *, db_recops, void *));
|
||||
int __dbreg_add_dbentry __P((DB_ENV *, DB_LOG *, DB *, int32_t));
|
||||
void __dbreg_rem_dbentry __P((DB_LOG *, int32_t));
|
||||
int __dbreg_open_files __P((DB_ENV *));
|
||||
int __dbreg_close_files __P((DB_ENV *));
|
||||
int __dbreg_nofiles __P((DB_ENV *));
|
||||
int __dbreg_id_to_db __P((DB_ENV *, DB_TXN *, DB **, int32_t, int));
|
||||
int __dbreg_id_to_db_int __P((DB_ENV *, DB_TXN *, DB **, int32_t, int, int));
|
||||
int __dbreg_id_to_fname __P((DB_LOG *, int32_t, int, FNAME **));
|
||||
int __dbreg_fid_to_fname __P((DB_LOG *, u_int8_t *, int, FNAME **));
|
||||
int __dbreg_get_name __P((DB_ENV *, u_int8_t *, char **));
|
||||
int __dbreg_do_open __P((DB_ENV *, DB_TXN *, DB_LOG *, u_int8_t *, char *, DBTYPE, int32_t, db_pgno_t, void *, u_int32_t));
|
||||
int __dbreg_lazy_id __P((DB *));
|
||||
int __dbreg_push_id __P((DB_ENV *, int32_t));
|
||||
int __dbreg_pop_id __P((DB_ENV *, int32_t *));
|
||||
int __dbreg_pluck_id __P((DB_ENV *, int32_t));
|
||||
void __dbreg_print_dblist __P((DB_ENV *));
|
||||
|
||||
#if defined(__cplusplus)
|
||||
}
|
||||
#endif
|
||||
#endif /* !_dbreg_ext_h_ */
|
@ -1,39 +0,0 @@
|
||||
/* DO NOT EDIT: automatically built by dist/s_include. */
|
||||
#ifndef _env_ext_h_
|
||||
#define _env_ext_h_
|
||||
|
||||
#if defined(__cplusplus)
|
||||
extern "C" {
|
||||
#endif
|
||||
|
||||
void __db_shalloc_init __P((void *, size_t));
|
||||
int __db_shalloc_size __P((size_t, size_t));
|
||||
int __db_shalloc __P((void *, size_t, size_t, void *));
|
||||
void __db_shalloc_free __P((void *, void *));
|
||||
size_t __db_shsizeof __P((void *));
|
||||
void __db_shalloc_dump __P((void *, FILE *));
|
||||
int __db_tablesize __P((u_int32_t));
|
||||
void __db_hashinit __P((void *, u_int32_t));
|
||||
int __db_fileinit __P((DB_ENV *, DB_FH *, size_t, int));
|
||||
int __db_overwrite __P((DB_ENV *, const char *));
|
||||
int __db_mi_env __P((DB_ENV *, const char *));
|
||||
int __db_mi_open __P((DB_ENV *, const char *, int));
|
||||
int __db_env_config __P((DB_ENV *, char *, u_int32_t));
|
||||
int __dbenv_open __P((DB_ENV *, const char *, u_int32_t, int));
|
||||
int __dbenv_remove __P((DB_ENV *, const char *, u_int32_t));
|
||||
int __dbenv_close __P((DB_ENV *, u_int32_t));
|
||||
int __db_appname __P((DB_ENV *, APPNAME, const char *, u_int32_t, DB_FH *, char **));
|
||||
int __db_home __P((DB_ENV *, const char *, u_int32_t));
|
||||
int __db_apprec __P((DB_ENV *, DB_LSN *, u_int32_t));
|
||||
int __env_openfiles __P((DB_ENV *, DB_LOGC *, void *, DBT *, DB_LSN *, DB_LSN *, double, int));
|
||||
int __db_e_attach __P((DB_ENV *, u_int32_t *));
|
||||
int __db_e_detach __P((DB_ENV *, int));
|
||||
int __db_e_remove __P((DB_ENV *, u_int32_t));
|
||||
int __db_e_stat __P((DB_ENV *, REGENV *, REGION *, int *, u_int32_t));
|
||||
int __db_r_attach __P((DB_ENV *, REGINFO *, size_t));
|
||||
int __db_r_detach __P((DB_ENV *, REGINFO *, int));
|
||||
|
||||
#if defined(__cplusplus)
|
||||
}
|
||||
#endif
|
||||
#endif /* !_env_ext_h_ */
|
@ -1,12 +0,0 @@
|
||||
|
||||
/* DO NOT EDIT: automatically built by dist/s_include. */
|
||||
#ifndef _DB_EXT_185_DEF_IN_
|
||||
#define _DB_EXT_185_DEF_IN_
|
||||
|
||||
#ifdef _DB185_INT_H_
|
||||
#define __db185_open __db185_open@DB_VERSION_UNIQUE_NAME@
|
||||
#else
|
||||
#define __db185_open __db185_open@DB_VERSION_UNIQUE_NAME@
|
||||
#endif
|
||||
|
||||
#endif /* !_DB_EXT_185_DEF_IN_ */
|
@ -1,19 +0,0 @@
|
||||
|
||||
/* DO NOT EDIT: automatically built by dist/s_include. */
|
||||
#ifndef _DB_EXT_185_PROT_IN_
|
||||
#define _DB_EXT_185_PROT_IN_
|
||||
|
||||
#if defined(__cplusplus)
|
||||
extern "C" {
|
||||
#endif
|
||||
|
||||
#ifdef _DB185_INT_H_
|
||||
DB185 *__db185_open __P((const char *, int, int, DBTYPE, const void *));
|
||||
#else
|
||||
DB *__db185_open __P((const char *, int, int, DBTYPE, const void *));
|
||||
#endif
|
||||
|
||||
#if defined(__cplusplus)
|
||||
}
|
||||
#endif
|
||||
#endif /* !_DB_EXT_185_PROT_IN_ */
|
@ -1,61 +0,0 @@
|
||||
|
||||
/* DO NOT EDIT: automatically built by dist/s_include. */
|
||||
#ifndef _DB_EXT_DEF_IN_
|
||||
#define _DB_EXT_DEF_IN_
|
||||
|
||||
#define db_create db_create@DB_VERSION_UNIQUE_NAME@
|
||||
#define db_strerror db_strerror@DB_VERSION_UNIQUE_NAME@
|
||||
#define db_env_create db_env_create@DB_VERSION_UNIQUE_NAME@
|
||||
#define db_version db_version@DB_VERSION_UNIQUE_NAME@
|
||||
#define log_compare log_compare@DB_VERSION_UNIQUE_NAME@
|
||||
#define db_env_set_func_close db_env_set_func_close@DB_VERSION_UNIQUE_NAME@
|
||||
#define db_env_set_func_dirfree db_env_set_func_dirfree@DB_VERSION_UNIQUE_NAME@
|
||||
#define db_env_set_func_dirlist db_env_set_func_dirlist@DB_VERSION_UNIQUE_NAME@
|
||||
#define db_env_set_func_exists db_env_set_func_exists@DB_VERSION_UNIQUE_NAME@
|
||||
#define db_env_set_func_free db_env_set_func_free@DB_VERSION_UNIQUE_NAME@
|
||||
#define db_env_set_func_fsync db_env_set_func_fsync@DB_VERSION_UNIQUE_NAME@
|
||||
#define db_env_set_func_ioinfo db_env_set_func_ioinfo@DB_VERSION_UNIQUE_NAME@
|
||||
#define db_env_set_func_malloc db_env_set_func_malloc@DB_VERSION_UNIQUE_NAME@
|
||||
#define db_env_set_func_map db_env_set_func_map@DB_VERSION_UNIQUE_NAME@
|
||||
#define db_env_set_func_open db_env_set_func_open@DB_VERSION_UNIQUE_NAME@
|
||||
#define db_env_set_func_read db_env_set_func_read@DB_VERSION_UNIQUE_NAME@
|
||||
#define db_env_set_func_realloc db_env_set_func_realloc@DB_VERSION_UNIQUE_NAME@
|
||||
#define db_env_set_func_rename db_env_set_func_rename@DB_VERSION_UNIQUE_NAME@
|
||||
#define db_env_set_func_seek db_env_set_func_seek@DB_VERSION_UNIQUE_NAME@
|
||||
#define db_env_set_func_sleep db_env_set_func_sleep@DB_VERSION_UNIQUE_NAME@
|
||||
#define db_env_set_func_unlink db_env_set_func_unlink@DB_VERSION_UNIQUE_NAME@
|
||||
#define db_env_set_func_unmap db_env_set_func_unmap@DB_VERSION_UNIQUE_NAME@
|
||||
#define db_env_set_func_write db_env_set_func_write@DB_VERSION_UNIQUE_NAME@
|
||||
#define db_env_set_func_yield db_env_set_func_yield@DB_VERSION_UNIQUE_NAME@
|
||||
#if DB_DBM_HSEARCH != 0
|
||||
#define __db_ndbm_clearerr __db_ndbm_clearerr@DB_VERSION_UNIQUE_NAME@
|
||||
#define __db_ndbm_close __db_ndbm_close@DB_VERSION_UNIQUE_NAME@
|
||||
#define __db_ndbm_delete __db_ndbm_delete@DB_VERSION_UNIQUE_NAME@
|
||||
#define __db_ndbm_dirfno __db_ndbm_dirfno@DB_VERSION_UNIQUE_NAME@
|
||||
#define __db_ndbm_error __db_ndbm_error@DB_VERSION_UNIQUE_NAME@
|
||||
#define __db_ndbm_fetch __db_ndbm_fetch@DB_VERSION_UNIQUE_NAME@
|
||||
#define __db_ndbm_firstkey __db_ndbm_firstkey@DB_VERSION_UNIQUE_NAME@
|
||||
#define __db_ndbm_nextkey __db_ndbm_nextkey@DB_VERSION_UNIQUE_NAME@
|
||||
#define __db_ndbm_open __db_ndbm_open@DB_VERSION_UNIQUE_NAME@
|
||||
#define __db_ndbm_pagfno __db_ndbm_pagfno@DB_VERSION_UNIQUE_NAME@
|
||||
#define __db_ndbm_rdonly __db_ndbm_rdonly@DB_VERSION_UNIQUE_NAME@
|
||||
#define __db_ndbm_store __db_ndbm_store@DB_VERSION_UNIQUE_NAME@
|
||||
#define __db_dbm_close __db_dbm_close@DB_VERSION_UNIQUE_NAME@
|
||||
#define __db_dbm_dbrdonly __db_dbm_dbrdonly@DB_VERSION_UNIQUE_NAME@
|
||||
#define __db_dbm_delete __db_dbm_delete@DB_VERSION_UNIQUE_NAME@
|
||||
#define __db_dbm_dirf __db_dbm_dirf@DB_VERSION_UNIQUE_NAME@
|
||||
#define __db_dbm_fetch __db_dbm_fetch@DB_VERSION_UNIQUE_NAME@
|
||||
#define __db_dbm_firstkey __db_dbm_firstkey@DB_VERSION_UNIQUE_NAME@
|
||||
#define __db_dbm_init __db_dbm_init@DB_VERSION_UNIQUE_NAME@
|
||||
#define __db_dbm_nextkey __db_dbm_nextkey@DB_VERSION_UNIQUE_NAME@
|
||||
#define __db_dbm_pagf __db_dbm_pagf@DB_VERSION_UNIQUE_NAME@
|
||||
#define __db_dbm_store __db_dbm_store@DB_VERSION_UNIQUE_NAME@
|
||||
#endif
|
||||
#if DB_DBM_HSEARCH != 0
|
||||
#define __db_hcreate __db_hcreate@DB_VERSION_UNIQUE_NAME@
|
||||
#define __db_hsearch __db_hsearch@DB_VERSION_UNIQUE_NAME@
|
||||
#define __db_hdestroy __db_hdestroy@DB_VERSION_UNIQUE_NAME@
|
||||
#endif
|
||||
#define db_xa_switch db_xa_switch@DB_VERSION_UNIQUE_NAME@
|
||||
|
||||
#endif /* !_DB_EXT_DEF_IN_ */
|
@ -1,70 +0,0 @@
|
||||
|
||||
/* DO NOT EDIT: automatically built by dist/s_include. */
|
||||
#ifndef _DB_EXT_PROT_IN_
|
||||
#define _DB_EXT_PROT_IN_
|
||||
|
||||
#if defined(__cplusplus)
|
||||
extern "C" {
|
||||
#endif
|
||||
|
||||
int db_create __P((DB **, DB_ENV *, u_int32_t));
|
||||
char *db_strerror __P((int));
|
||||
int db_env_create __P((DB_ENV **, u_int32_t));
|
||||
char *db_version __P((int *, int *, int *));
|
||||
int log_compare __P((const DB_LSN *, const DB_LSN *));
|
||||
int db_env_set_func_close __P((int (*)(int)));
|
||||
int db_env_set_func_dirfree __P((void (*)(char **, int)));
|
||||
int db_env_set_func_dirlist __P((int (*)(const char *, char ***, int *)));
|
||||
int db_env_set_func_exists __P((int (*)(const char *, int *)));
|
||||
int db_env_set_func_free __P((void (*)(void *)));
|
||||
int db_env_set_func_fsync __P((int (*)(int)));
|
||||
int db_env_set_func_ioinfo __P((int (*)(const char *, int, u_int32_t *, u_int32_t *, u_int32_t *)));
|
||||
int db_env_set_func_malloc __P((void *(*)(size_t)));
|
||||
int db_env_set_func_map __P((int (*)(char *, size_t, int, int, void **)));
|
||||
int db_env_set_func_open __P((int (*)(const char *, int, ...)));
|
||||
int db_env_set_func_read __P((ssize_t (*)(int, void *, size_t)));
|
||||
int db_env_set_func_realloc __P((void *(*)(void *, size_t)));
|
||||
int db_env_set_func_rename __P((int (*)(const char *, const char *)));
|
||||
int db_env_set_func_seek __P((int (*)(int, size_t, db_pgno_t, u_int32_t, int, int)));
|
||||
int db_env_set_func_sleep __P((int (*)(u_long, u_long)));
|
||||
int db_env_set_func_unlink __P((int (*)(const char *)));
|
||||
int db_env_set_func_unmap __P((int (*)(void *, size_t)));
|
||||
int db_env_set_func_write __P((ssize_t (*)(int, const void *, size_t)));
|
||||
int db_env_set_func_yield __P((int (*)(void)));
|
||||
int txn_abort __P((DB_TXN *));
|
||||
int txn_begin __P((DB_ENV *, DB_TXN *, DB_TXN **, u_int32_t));
|
||||
int txn_commit __P((DB_TXN *, u_int32_t));
|
||||
#if DB_DBM_HSEARCH != 0
|
||||
int __db_ndbm_clearerr __P((DBM *));
|
||||
void __db_ndbm_close __P((DBM *));
|
||||
int __db_ndbm_delete __P((DBM *, datum));
|
||||
int __db_ndbm_dirfno __P((DBM *));
|
||||
int __db_ndbm_error __P((DBM *));
|
||||
datum __db_ndbm_fetch __P((DBM *, datum));
|
||||
datum __db_ndbm_firstkey __P((DBM *));
|
||||
datum __db_ndbm_nextkey __P((DBM *));
|
||||
DBM *__db_ndbm_open __P((const char *, int, int));
|
||||
int __db_ndbm_pagfno __P((DBM *));
|
||||
int __db_ndbm_rdonly __P((DBM *));
|
||||
int __db_ndbm_store __P((DBM *, datum, datum, int));
|
||||
int __db_dbm_close __P((void));
|
||||
int __db_dbm_dbrdonly __P((void));
|
||||
int __db_dbm_delete __P((datum));
|
||||
int __db_dbm_dirf __P((void));
|
||||
datum __db_dbm_fetch __P((datum));
|
||||
datum __db_dbm_firstkey __P((void));
|
||||
int __db_dbm_init __P((char *));
|
||||
datum __db_dbm_nextkey __P((datum));
|
||||
int __db_dbm_pagf __P((void));
|
||||
int __db_dbm_store __P((datum, datum));
|
||||
#endif
|
||||
#if DB_DBM_HSEARCH != 0
|
||||
int __db_hcreate __P((size_t));
|
||||
ENTRY *__db_hsearch __P((ENTRY, ACTION));
|
||||
void __db_hdestroy __P((void));
|
||||
#endif
|
||||
|
||||
#if defined(__cplusplus)
|
||||
}
|
||||
#endif
|
||||
#endif /* !_DB_EXT_PROT_IN_ */
|
@ -1,60 +0,0 @@
|
||||
/* Do not edit: automatically built by gen_rec.awk. */
|
||||
|
||||
#ifndef __fop_AUTO_H
|
||||
#define __fop_AUTO_H
|
||||
#define DB___fop_create 143
|
||||
typedef struct ___fop_create_args {
|
||||
u_int32_t type;
|
||||
DB_TXN *txnid;
|
||||
DB_LSN prev_lsn;
|
||||
DBT name;
|
||||
u_int32_t appname;
|
||||
u_int32_t mode;
|
||||
} __fop_create_args;
|
||||
|
||||
#define DB___fop_remove 144
|
||||
typedef struct ___fop_remove_args {
|
||||
u_int32_t type;
|
||||
DB_TXN *txnid;
|
||||
DB_LSN prev_lsn;
|
||||
DBT name;
|
||||
DBT fid;
|
||||
u_int32_t appname;
|
||||
} __fop_remove_args;
|
||||
|
||||
#define DB___fop_write 145
|
||||
typedef struct ___fop_write_args {
|
||||
u_int32_t type;
|
||||
DB_TXN *txnid;
|
||||
DB_LSN prev_lsn;
|
||||
DBT name;
|
||||
u_int32_t appname;
|
||||
u_int32_t offset;
|
||||
DBT page;
|
||||
u_int32_t flag;
|
||||
} __fop_write_args;
|
||||
|
||||
#define DB___fop_rename 146
|
||||
typedef struct ___fop_rename_args {
|
||||
u_int32_t type;
|
||||
DB_TXN *txnid;
|
||||
DB_LSN prev_lsn;
|
||||
DBT oldname;
|
||||
DBT newname;
|
||||
DBT fileid;
|
||||
u_int32_t appname;
|
||||
} __fop_rename_args;
|
||||
|
||||
#define DB___fop_file_remove 141
|
||||
typedef struct ___fop_file_remove_args {
|
||||
u_int32_t type;
|
||||
DB_TXN *txnid;
|
||||
DB_LSN prev_lsn;
|
||||
DBT real_fid;
|
||||
DBT tmp_fid;
|
||||
DBT name;
|
||||
u_int32_t appname;
|
||||
u_int32_t child;
|
||||
} __fop_file_remove_args;
|
||||
|
||||
#endif
|
@ -1,52 +0,0 @@
|
||||
/* DO NOT EDIT: automatically built by dist/s_include. */
|
||||
#ifndef _fileops_ext_h_
|
||||
#define _fileops_ext_h_
|
||||
|
||||
#if defined(__cplusplus)
|
||||
extern "C" {
|
||||
#endif
|
||||
|
||||
int __fop_create_log __P((DB_ENV *, DB_TXN *, DB_LSN *, u_int32_t, const DBT *, u_int32_t, u_int32_t));
|
||||
int __fop_create_getpgnos __P((DB_ENV *, DBT *, DB_LSN *, db_recops, void *));
|
||||
int __fop_create_print __P((DB_ENV *, DBT *, DB_LSN *, db_recops, void *));
|
||||
int __fop_create_read __P((DB_ENV *, void *, __fop_create_args **));
|
||||
int __fop_remove_log __P((DB_ENV *, DB_TXN *, DB_LSN *, u_int32_t, const DBT *, const DBT *, u_int32_t));
|
||||
int __fop_remove_getpgnos __P((DB_ENV *, DBT *, DB_LSN *, db_recops, void *));
|
||||
int __fop_remove_print __P((DB_ENV *, DBT *, DB_LSN *, db_recops, void *));
|
||||
int __fop_remove_read __P((DB_ENV *, void *, __fop_remove_args **));
|
||||
int __fop_write_log __P((DB_ENV *, DB_TXN *, DB_LSN *, u_int32_t, const DBT *, u_int32_t, u_int32_t, const DBT *, u_int32_t));
|
||||
int __fop_write_getpgnos __P((DB_ENV *, DBT *, DB_LSN *, db_recops, void *));
|
||||
int __fop_write_print __P((DB_ENV *, DBT *, DB_LSN *, db_recops, void *));
|
||||
int __fop_write_read __P((DB_ENV *, void *, __fop_write_args **));
|
||||
int __fop_rename_log __P((DB_ENV *, DB_TXN *, DB_LSN *, u_int32_t, const DBT *, const DBT *, const DBT *, u_int32_t));
|
||||
int __fop_rename_getpgnos __P((DB_ENV *, DBT *, DB_LSN *, db_recops, void *));
|
||||
int __fop_rename_print __P((DB_ENV *, DBT *, DB_LSN *, db_recops, void *));
|
||||
int __fop_rename_read __P((DB_ENV *, void *, __fop_rename_args **));
|
||||
int __fop_file_remove_log __P((DB_ENV *, DB_TXN *, DB_LSN *, u_int32_t, const DBT *, const DBT *, const DBT *, u_int32_t, u_int32_t));
|
||||
int __fop_file_remove_getpgnos __P((DB_ENV *, DBT *, DB_LSN *, db_recops, void *));
|
||||
int __fop_file_remove_print __P((DB_ENV *, DBT *, DB_LSN *, db_recops, void *));
|
||||
int __fop_file_remove_read __P((DB_ENV *, void *, __fop_file_remove_args **));
|
||||
int __fop_init_print __P((DB_ENV *, int (***)(DB_ENV *, DBT *, DB_LSN *, db_recops, void *), size_t *));
|
||||
int __fop_init_getpgnos __P((DB_ENV *, int (***)(DB_ENV *, DBT *, DB_LSN *, db_recops, void *), size_t *));
|
||||
int __fop_init_recover __P((DB_ENV *, int (***)(DB_ENV *, DBT *, DB_LSN *, db_recops, void *), size_t *));
|
||||
int __fop_create __P((DB_ENV *, DB_TXN *, DB_FH *, const char *, APPNAME, int));
|
||||
int __fop_remove __P((DB_ENV *, DB_TXN *, u_int8_t *, const char *, APPNAME));
|
||||
int __fop_write __P((DB_ENV *, DB_TXN *, const char *, APPNAME, DB_FH *, u_int32_t, u_int8_t *, u_int32_t, u_int32_t));
|
||||
int __fop_rename __P((DB_ENV *, DB_TXN *, const char *, const char *, u_int8_t *, APPNAME));
|
||||
int __fop_create_recover __P((DB_ENV *, DBT *, DB_LSN *, db_recops, void *));
|
||||
int __fop_remove_recover __P((DB_ENV *, DBT *, DB_LSN *, db_recops, void *));
|
||||
int __fop_write_recover __P((DB_ENV *, DBT *, DB_LSN *, db_recops, void *));
|
||||
int __fop_rename_recover __P((DB_ENV *, DBT *, DB_LSN *, db_recops, void *));
|
||||
int __fop_file_remove_recover __P((DB_ENV *, DBT *, DB_LSN *, db_recops, void *));
|
||||
int __fop_lock_handle __P((DB_ENV *, DB *, u_int32_t, db_lockmode_t, DB_LOCK *, u_int32_t));
|
||||
int __fop_file_setup __P((DB *, DB_TXN *, const char *, int, u_int32_t, u_int32_t *));
|
||||
int __fop_subdb_setup __P((DB *, DB_TXN *, const char *, const char *, int, u_int32_t));
|
||||
int __fop_remove_setup __P((DB *, DB_TXN *, const char *, u_int32_t));
|
||||
int __fop_read_meta __P((DB_ENV *, const char *, u_int8_t *, size_t, DB_FH *, int, u_int32_t));
|
||||
int __fop_dummy __P((DB *, DB_TXN *, const char *, const char *, u_int32_t));
|
||||
int __fop_dbrename __P((DB *, const char *, const char *));
|
||||
|
||||
#if defined(__cplusplus)
|
||||
}
|
||||
#endif
|
||||
#endif /* !_fileops_ext_h_ */
|
@ -1,132 +0,0 @@
|
||||
/* Do not edit: automatically built by gen_rec.awk. */
|
||||
|
||||
#ifndef __ham_AUTO_H
|
||||
#define __ham_AUTO_H
|
||||
#define DB___ham_insdel 21
|
||||
typedef struct ___ham_insdel_args {
|
||||
u_int32_t type;
|
||||
DB_TXN *txnid;
|
||||
DB_LSN prev_lsn;
|
||||
u_int32_t opcode;
|
||||
int32_t fileid;
|
||||
db_pgno_t pgno;
|
||||
u_int32_t ndx;
|
||||
DB_LSN pagelsn;
|
||||
DBT key;
|
||||
DBT data;
|
||||
} __ham_insdel_args;
|
||||
|
||||
#define DB___ham_newpage 22
|
||||
typedef struct ___ham_newpage_args {
|
||||
u_int32_t type;
|
||||
DB_TXN *txnid;
|
||||
DB_LSN prev_lsn;
|
||||
u_int32_t opcode;
|
||||
int32_t fileid;
|
||||
db_pgno_t prev_pgno;
|
||||
DB_LSN prevlsn;
|
||||
db_pgno_t new_pgno;
|
||||
DB_LSN pagelsn;
|
||||
db_pgno_t next_pgno;
|
||||
DB_LSN nextlsn;
|
||||
} __ham_newpage_args;
|
||||
|
||||
#define DB___ham_splitdata 24
|
||||
typedef struct ___ham_splitdata_args {
|
||||
u_int32_t type;
|
||||
DB_TXN *txnid;
|
||||
DB_LSN prev_lsn;
|
||||
int32_t fileid;
|
||||
u_int32_t opcode;
|
||||
db_pgno_t pgno;
|
||||
DBT pageimage;
|
||||
DB_LSN pagelsn;
|
||||
} __ham_splitdata_args;
|
||||
|
||||
#define DB___ham_replace 25
|
||||
typedef struct ___ham_replace_args {
|
||||
u_int32_t type;
|
||||
DB_TXN *txnid;
|
||||
DB_LSN prev_lsn;
|
||||
int32_t fileid;
|
||||
db_pgno_t pgno;
|
||||
u_int32_t ndx;
|
||||
DB_LSN pagelsn;
|
||||
int32_t off;
|
||||
DBT olditem;
|
||||
DBT newitem;
|
||||
u_int32_t makedup;
|
||||
} __ham_replace_args;
|
||||
|
||||
#define DB___ham_copypage 28
|
||||
typedef struct ___ham_copypage_args {
|
||||
u_int32_t type;
|
||||
DB_TXN *txnid;
|
||||
DB_LSN prev_lsn;
|
||||
int32_t fileid;
|
||||
db_pgno_t pgno;
|
||||
DB_LSN pagelsn;
|
||||
db_pgno_t next_pgno;
|
||||
DB_LSN nextlsn;
|
||||
db_pgno_t nnext_pgno;
|
||||
DB_LSN nnextlsn;
|
||||
DBT page;
|
||||
} __ham_copypage_args;
|
||||
|
||||
#define DB___ham_metagroup 29
|
||||
typedef struct ___ham_metagroup_args {
|
||||
u_int32_t type;
|
||||
DB_TXN *txnid;
|
||||
DB_LSN prev_lsn;
|
||||
int32_t fileid;
|
||||
u_int32_t bucket;
|
||||
db_pgno_t mmpgno;
|
||||
DB_LSN mmetalsn;
|
||||
db_pgno_t mpgno;
|
||||
DB_LSN metalsn;
|
||||
db_pgno_t pgno;
|
||||
DB_LSN pagelsn;
|
||||
u_int32_t newalloc;
|
||||
} __ham_metagroup_args;
|
||||
|
||||
#define DB___ham_groupalloc 32
|
||||
typedef struct ___ham_groupalloc_args {
|
||||
u_int32_t type;
|
||||
DB_TXN *txnid;
|
||||
DB_LSN prev_lsn;
|
||||
int32_t fileid;
|
||||
DB_LSN meta_lsn;
|
||||
db_pgno_t start_pgno;
|
||||
u_int32_t num;
|
||||
db_pgno_t free;
|
||||
} __ham_groupalloc_args;
|
||||
|
||||
#define DB___ham_curadj 33
|
||||
typedef struct ___ham_curadj_args {
|
||||
u_int32_t type;
|
||||
DB_TXN *txnid;
|
||||
DB_LSN prev_lsn;
|
||||
int32_t fileid;
|
||||
db_pgno_t pgno;
|
||||
u_int32_t indx;
|
||||
u_int32_t len;
|
||||
u_int32_t dup_off;
|
||||
int add;
|
||||
int is_dup;
|
||||
u_int32_t order;
|
||||
} __ham_curadj_args;
|
||||
|
||||
#define DB___ham_chgpg 34
|
||||
typedef struct ___ham_chgpg_args {
|
||||
u_int32_t type;
|
||||
DB_TXN *txnid;
|
||||
DB_LSN prev_lsn;
|
||||
int32_t fileid;
|
||||
db_ham_mode mode;
|
||||
db_pgno_t old_pgno;
|
||||
db_pgno_t new_pgno;
|
||||
u_int32_t old_indx;
|
||||
u_int32_t new_indx;
|
||||
} __ham_chgpg_args;
|
||||
|
||||
#endif
|
@ -1,125 +0,0 @@
|
||||
/* DO NOT EDIT: automatically built by dist/s_include. */
|
||||
#ifndef _hash_ext_h_
|
||||
#define _hash_ext_h_
|
||||
|
||||
#if defined(__cplusplus)
|
||||
extern "C" {
|
||||
#endif
|
||||
|
||||
int __ham_quick_delete __P((DBC *));
|
||||
int __ham_c_init __P((DBC *));
|
||||
int __ham_c_count __P((DBC *, db_recno_t *));
|
||||
int __ham_c_dup __P((DBC *, DBC *));
|
||||
u_int32_t __ham_call_hash __P((DBC *, u_int8_t *, int32_t));
|
||||
int __ham_init_dbt __P((DB_ENV *, DBT *, u_int32_t, void **, u_int32_t *));
|
||||
int __ham_c_update __P((DBC *, u_int32_t, int, int));
|
||||
int __ham_get_clist __P((DB *, db_pgno_t, u_int32_t, DBC ***));
|
||||
int __ham_insdel_log __P((DB *, DB_TXN *, DB_LSN *, u_int32_t, u_int32_t, db_pgno_t, u_int32_t, DB_LSN *, const DBT *, const DBT *));
|
||||
int __ham_insdel_getpgnos __P((DB_ENV *, DBT *, DB_LSN *, db_recops, void *));
|
||||
int __ham_insdel_print __P((DB_ENV *, DBT *, DB_LSN *, db_recops, void *));
|
||||
int __ham_insdel_read __P((DB_ENV *, void *, __ham_insdel_args **));
|
||||
int __ham_newpage_log __P((DB *, DB_TXN *, DB_LSN *, u_int32_t, u_int32_t, db_pgno_t, DB_LSN *, db_pgno_t, DB_LSN *, db_pgno_t, DB_LSN *));
|
||||
int __ham_newpage_getpgnos __P((DB_ENV *, DBT *, DB_LSN *, db_recops, void *));
|
||||
int __ham_newpage_print __P((DB_ENV *, DBT *, DB_LSN *, db_recops, void *));
|
||||
int __ham_newpage_read __P((DB_ENV *, void *, __ham_newpage_args **));
|
||||
int __ham_splitdata_log __P((DB *, DB_TXN *, DB_LSN *, u_int32_t, u_int32_t, db_pgno_t, const DBT *, DB_LSN *));
|
||||
int __ham_splitdata_getpgnos __P((DB_ENV *, DBT *, DB_LSN *, db_recops, void *));
|
||||
int __ham_splitdata_print __P((DB_ENV *, DBT *, DB_LSN *, db_recops, void *));
|
||||
int __ham_splitdata_read __P((DB_ENV *, void *, __ham_splitdata_args **));
|
||||
int __ham_replace_log __P((DB *, DB_TXN *, DB_LSN *, u_int32_t, db_pgno_t, u_int32_t, DB_LSN *, int32_t, const DBT *, const DBT *, u_int32_t));
|
||||
int __ham_replace_getpgnos __P((DB_ENV *, DBT *, DB_LSN *, db_recops, void *));
|
||||
int __ham_replace_print __P((DB_ENV *, DBT *, DB_LSN *, db_recops, void *));
|
||||
int __ham_replace_read __P((DB_ENV *, void *, __ham_replace_args **));
|
||||
int __ham_copypage_log __P((DB *, DB_TXN *, DB_LSN *, u_int32_t, db_pgno_t, DB_LSN *, db_pgno_t, DB_LSN *, db_pgno_t, DB_LSN *, const DBT *));
|
||||
int __ham_copypage_getpgnos __P((DB_ENV *, DBT *, DB_LSN *, db_recops, void *));
|
||||
int __ham_copypage_print __P((DB_ENV *, DBT *, DB_LSN *, db_recops, void *));
|
||||
int __ham_copypage_read __P((DB_ENV *, void *, __ham_copypage_args **));
|
||||
int __ham_metagroup_log __P((DB *, DB_TXN *, DB_LSN *, u_int32_t, u_int32_t, db_pgno_t, DB_LSN *, db_pgno_t, DB_LSN *, db_pgno_t, DB_LSN *, u_int32_t));
|
||||
int __ham_metagroup_getpgnos __P((DB_ENV *, DBT *, DB_LSN *, db_recops, void *));
|
||||
int __ham_metagroup_print __P((DB_ENV *, DBT *, DB_LSN *, db_recops, void *));
|
||||
int __ham_metagroup_read __P((DB_ENV *, void *, __ham_metagroup_args **));
|
||||
int __ham_groupalloc_log __P((DB *, DB_TXN *, DB_LSN *, u_int32_t, DB_LSN *, db_pgno_t, u_int32_t, db_pgno_t));
|
||||
int __ham_groupalloc_getpgnos __P((DB_ENV *, DBT *, DB_LSN *, db_recops, void *));
|
||||
int __ham_groupalloc_print __P((DB_ENV *, DBT *, DB_LSN *, db_recops, void *));
|
||||
int __ham_groupalloc_read __P((DB_ENV *, void *, __ham_groupalloc_args **));
|
||||
int __ham_curadj_log __P((DB *, DB_TXN *, DB_LSN *, u_int32_t, db_pgno_t, u_int32_t, u_int32_t, u_int32_t, int, int, u_int32_t));
|
||||
int __ham_curadj_getpgnos __P((DB_ENV *, DBT *, DB_LSN *, db_recops, void *));
|
||||
int __ham_curadj_print __P((DB_ENV *, DBT *, DB_LSN *, db_recops, void *));
|
||||
int __ham_curadj_read __P((DB_ENV *, void *, __ham_curadj_args **));
|
||||
int __ham_chgpg_log __P((DB *, DB_TXN *, DB_LSN *, u_int32_t, db_ham_mode, db_pgno_t, db_pgno_t, u_int32_t, u_int32_t));
|
||||
int __ham_chgpg_getpgnos __P((DB_ENV *, DBT *, DB_LSN *, db_recops, void *));
|
||||
int __ham_chgpg_print __P((DB_ENV *, DBT *, DB_LSN *, db_recops, void *));
|
||||
int __ham_chgpg_read __P((DB_ENV *, void *, __ham_chgpg_args **));
|
||||
int __ham_init_print __P((DB_ENV *, int (***)(DB_ENV *, DBT *, DB_LSN *, db_recops, void *), size_t *));
|
||||
int __ham_init_getpgnos __P((DB_ENV *, int (***)(DB_ENV *, DBT *, DB_LSN *, db_recops, void *), size_t *));
|
||||
int __ham_init_recover __P((DB_ENV *, int (***)(DB_ENV *, DBT *, DB_LSN *, db_recops, void *), size_t *));
|
||||
int __ham_pgin __P((DB_ENV *, DB *, db_pgno_t, void *, DBT *));
|
||||
int __ham_pgout __P((DB_ENV *, DB *, db_pgno_t, void *, DBT *));
|
||||
int __ham_mswap __P((void *));
|
||||
int __ham_add_dup __P((DBC *, DBT *, u_int32_t, db_pgno_t *));
|
||||
int __ham_dup_convert __P((DBC *));
|
||||
int __ham_make_dup __P((DB_ENV *, const DBT *, DBT *d, void **, u_int32_t *));
|
||||
void __ham_dsearch __P((DBC *, DBT *, u_int32_t *, int *, u_int32_t));
|
||||
void __ham_cprint __P((DBC *));
|
||||
u_int32_t __ham_func2 __P((DB *, const void *, u_int32_t));
|
||||
u_int32_t __ham_func3 __P((DB *, const void *, u_int32_t));
|
||||
u_int32_t __ham_func4 __P((DB *, const void *, u_int32_t));
|
||||
u_int32_t __ham_func5 __P((DB *, const void *, u_int32_t));
|
||||
u_int32_t __ham_test __P((DB *, const void *, u_int32_t));
|
||||
int __ham_get_meta __P((DBC *));
|
||||
int __ham_release_meta __P((DBC *));
|
||||
int __ham_dirty_meta __P((DBC *));
|
||||
int __ham_db_create __P((DB *));
|
||||
int __ham_db_close __P((DB *));
|
||||
int __ham_open __P((DB *, DB_TXN *, const char * name, db_pgno_t, u_int32_t));
|
||||
int __ham_metachk __P((DB *, const char *, HMETA *));
|
||||
int __ham_new_file __P((DB *, DB_TXN *, DB_FH *, const char *));
|
||||
int __ham_new_subdb __P((DB *, DB *, DB_TXN *));
|
||||
int __ham_item __P((DBC *, db_lockmode_t, db_pgno_t *));
|
||||
int __ham_item_reset __P((DBC *));
|
||||
void __ham_item_init __P((DBC *));
|
||||
int __ham_item_last __P((DBC *, db_lockmode_t, db_pgno_t *));
|
||||
int __ham_item_first __P((DBC *, db_lockmode_t, db_pgno_t *));
|
||||
int __ham_item_prev __P((DBC *, db_lockmode_t, db_pgno_t *));
|
||||
int __ham_item_next __P((DBC *, db_lockmode_t, db_pgno_t *));
|
||||
void __ham_putitem __P((DB *, PAGE *p, const DBT *, int));
|
||||
void __ham_reputpair __P((DB *, PAGE *, u_int32_t, const DBT *, const DBT *));
|
||||
int __ham_del_pair __P((DBC *, int));
|
||||
int __ham_replpair __P((DBC *, DBT *, u_int32_t));
|
||||
void __ham_onpage_replace __P((DB *, PAGE *, u_int32_t, int32_t, int32_t, DBT *));
|
||||
int __ham_split_page __P((DBC *, u_int32_t, u_int32_t));
|
||||
int __ham_add_el __P((DBC *, const DBT *, const DBT *, int));
|
||||
void __ham_copy_item __P((DB *, PAGE *, u_int32_t, PAGE *));
|
||||
int __ham_add_ovflpage __P((DBC *, PAGE *, int, PAGE **));
|
||||
int __ham_get_cpage __P((DBC *, db_lockmode_t));
|
||||
int __ham_next_cpage __P((DBC *, db_pgno_t, int));
|
||||
int __ham_lock_bucket __P((DBC *, db_lockmode_t));
|
||||
void __ham_dpair __P((DB *, PAGE *, u_int32_t));
|
||||
int __ham_insdel_recover __P((DB_ENV *, DBT *, DB_LSN *, db_recops, void *));
|
||||
int __ham_newpage_recover __P((DB_ENV *, DBT *, DB_LSN *, db_recops, void *));
|
||||
int __ham_replace_recover __P((DB_ENV *, DBT *, DB_LSN *, db_recops, void *));
|
||||
int __ham_splitdata_recover __P((DB_ENV *, DBT *, DB_LSN *, db_recops, void *));
|
||||
int __ham_copypage_recover __P((DB_ENV *, DBT *, DB_LSN *, db_recops, void *));
|
||||
int __ham_metagroup_recover __P((DB_ENV *, DBT *, DB_LSN *, db_recops, void *));
|
||||
int __ham_groupalloc_recover __P((DB_ENV *, DBT *, DB_LSN *, db_recops, void *));
|
||||
int __ham_curadj_recover __P((DB_ENV *, DBT *, DB_LSN *, db_recops, void *));
|
||||
int __ham_chgpg_recover __P((DB_ENV *, DBT *, DB_LSN *, db_recops, void *));
|
||||
int __ham_reclaim __P((DB *, DB_TXN *txn));
|
||||
int __ham_truncate __P((DB *, DB_TXN *txn, u_int32_t *));
|
||||
int __ham_stat __P((DB *, void *, u_int32_t));
|
||||
int __ham_traverse __P((DBC *, db_lockmode_t, int (*)(DB *, PAGE *, void *, int *), void *, int));
|
||||
int __ham_30_hashmeta __P((DB *, char *, u_int8_t *));
|
||||
int __ham_30_sizefix __P((DB *, DB_FH *, char *, u_int8_t *));
|
||||
int __ham_31_hashmeta __P((DB *, char *, u_int32_t, DB_FH *, PAGE *, int *));
|
||||
int __ham_31_hash __P((DB *, char *, u_int32_t, DB_FH *, PAGE *, int *));
|
||||
int __ham_vrfy_meta __P((DB *, VRFY_DBINFO *, HMETA *, db_pgno_t, u_int32_t));
|
||||
int __ham_vrfy __P((DB *, VRFY_DBINFO *, PAGE *, db_pgno_t, u_int32_t));
|
||||
int __ham_vrfy_structure __P((DB *, VRFY_DBINFO *, db_pgno_t, u_int32_t));
|
||||
int __ham_vrfy_hashing __P((DB *, u_int32_t, HMETA *, u_int32_t, db_pgno_t, u_int32_t, u_int32_t (*) __P((DB *, const void *, u_int32_t))));
|
||||
int __ham_salvage __P((DB *, VRFY_DBINFO *, db_pgno_t, PAGE *, void *, int (*)(void *, const void *), u_int32_t));
|
||||
int __ham_meta2pgset __P((DB *, VRFY_DBINFO *, HMETA *, u_int32_t, DB *));
|
||||
|
||||
#if defined(__cplusplus)
|
||||
}
|
||||
#endif
|
||||
#endif /* !_hash_ext_h_ */
|
@ -1,20 +0,0 @@
|
||||
/* DO NOT EDIT: automatically built by dist/s_include. */
|
||||
#ifndef _hmac_ext_h_
|
||||
#define _hmac_ext_h_
|
||||
|
||||
#if defined(__cplusplus)
|
||||
extern "C" {
|
||||
#endif
|
||||
|
||||
void __db_chksum __P((u_int8_t *, size_t, u_int8_t *, u_int8_t *));
|
||||
void __db_derive_mac __P((u_int8_t *, size_t, u_int8_t *));
|
||||
int __db_check_chksum __P((DB_ENV *, DB_CIPHER *, u_int8_t *, void *, size_t, int));
|
||||
void __db_SHA1Transform __P((u_int32_t *, unsigned char *));
|
||||
void __db_SHA1Init __P((SHA1_CTX *));
|
||||
void __db_SHA1Update __P((SHA1_CTX *, unsigned char *, size_t));
|
||||
void __db_SHA1Final __P((unsigned char *, SHA1_CTX *));
|
||||
|
||||
#if defined(__cplusplus)
|
||||
}
|
||||
#endif
|
||||
#endif /* !_hmac_ext_h_ */
|
@ -1,41 +0,0 @@
|
||||
/* DO NOT EDIT: automatically built by dist/s_include. */
|
||||
#ifndef _lock_ext_h_
|
||||
#define _lock_ext_h_
|
||||
|
||||
#if defined(__cplusplus)
|
||||
extern "C" {
|
||||
#endif
|
||||
|
||||
int __lock_id __P((DB_ENV *, u_int32_t *));
|
||||
int __lock_id_free __P((DB_ENV *, u_int32_t));
|
||||
int __lock_vec __P((DB_ENV *, u_int32_t, u_int32_t, DB_LOCKREQ *, int, DB_LOCKREQ **));
|
||||
int __lock_get __P((DB_ENV *, u_int32_t, u_int32_t, const DBT *, db_lockmode_t, DB_LOCK *));
|
||||
int __lock_put __P((DB_ENV *, DB_LOCK *));
|
||||
int __lock_downgrade __P((DB_ENV *, DB_LOCK *, db_lockmode_t, u_int32_t));
|
||||
int __lock_addfamilylocker __P((DB_ENV *, u_int32_t, u_int32_t));
|
||||
int __lock_freefamilylocker __P((DB_LOCKTAB *, u_int32_t));
|
||||
int __lock_set_timeout __P(( DB_ENV *, u_int32_t, db_timeout_t, u_int32_t));
|
||||
int __lock_inherit_timeout __P(( DB_ENV *, u_int32_t, u_int32_t));
|
||||
int __lock_getlocker __P((DB_LOCKTAB *, u_int32_t, u_int32_t, int, DB_LOCKER **));
|
||||
int __lock_promote __P((DB_LOCKTAB *, DB_LOCKOBJ *, u_int32_t));
|
||||
int __lock_expired __P((DB_ENV *, db_timeval_t *, db_timeval_t *));
|
||||
int __lock_detect __P((DB_ENV *, u_int32_t, u_int32_t, int *));
|
||||
void __lock_dbenv_create __P((DB_ENV *));
|
||||
void __lock_dbenv_close __P((DB_ENV *));
|
||||
int __lock_open __P((DB_ENV *));
|
||||
int __lock_dbenv_refresh __P((DB_ENV *));
|
||||
void __lock_region_destroy __P((DB_ENV *, REGINFO *));
|
||||
int __lock_id_set __P((DB_ENV *, u_int32_t, u_int32_t));
|
||||
int __lock_stat __P((DB_ENV *, DB_LOCK_STAT **, u_int32_t));
|
||||
int __lock_dump_region __P((DB_ENV *, char *, FILE *));
|
||||
void __lock_printlock __P((DB_LOCKTAB *, struct __db_lock *, int));
|
||||
int __lock_cmp __P((const DBT *, DB_LOCKOBJ *));
|
||||
int __lock_locker_cmp __P((u_int32_t, DB_LOCKER *));
|
||||
u_int32_t __lock_ohash __P((const DBT *));
|
||||
u_int32_t __lock_lhash __P((DB_LOCKOBJ *));
|
||||
u_int32_t __lock_locker_hash __P((u_int32_t));
|
||||
|
||||
#if defined(__cplusplus)
|
||||
}
|
||||
#endif
|
||||
#endif /* !_lock_ext_h_ */
|
@ -1,32 +0,0 @@
|
||||
/* DO NOT EDIT: automatically built by dist/s_include. */
|
||||
#ifndef _log_ext_h_
|
||||
#define _log_ext_h_
|
||||
|
||||
#if defined(__cplusplus)
|
||||
extern "C" {
|
||||
#endif
|
||||
|
||||
int __log_open __P((DB_ENV *));
|
||||
int __log_find __P((DB_LOG *, int, u_int32_t *, logfile_validity *));
|
||||
int __log_valid __P((DB_LOG *, u_int32_t, int, logfile_validity *));
|
||||
int __log_dbenv_refresh __P((DB_ENV *));
|
||||
int __log_stat __P((DB_ENV *, DB_LOG_STAT **, u_int32_t));
|
||||
void __log_get_cached_ckp_lsn __P((DB_ENV *, DB_LSN *));
|
||||
void __log_region_destroy __P((DB_ENV *, REGINFO *));
|
||||
int __log_vtruncate __P((DB_ENV *, DB_LSN *, DB_LSN *));
|
||||
int __log_is_outdated __P((DB_ENV *dbenv, u_int32_t fnum, int *outdatedp));
|
||||
int __log_archive __P((DB_ENV *, char **[], u_int32_t));
|
||||
int __log_cursor __P((DB_ENV *, DB_LOGC **, u_int32_t));
|
||||
void __log_dbenv_create __P((DB_ENV *));
|
||||
int __log_put __P((DB_ENV *, DB_LSN *, const DBT *, u_int32_t));
|
||||
void __log_txn_lsn __P((DB_ENV *, DB_LSN *, u_int32_t *, u_int32_t *));
|
||||
int __log_newfile __P((DB_LOG *, DB_LSN *));
|
||||
int __log_flush __P((DB_ENV *, const DB_LSN *));
|
||||
int __log_file __P((DB_ENV *, const DB_LSN *, char *, size_t));
|
||||
int __log_name __P((DB_LOG *, u_int32_t, char **, DB_FH *, u_int32_t));
|
||||
int __log_rep_put __P((DB_ENV *, DB_LSN *, const DBT *));
|
||||
|
||||
#if defined(__cplusplus)
|
||||
}
|
||||
#endif
|
||||
#endif /* !_log_ext_h_ */
|
@ -1,44 +0,0 @@
|
||||
/* DO NOT EDIT: automatically built by dist/s_include. */
|
||||
#ifndef _mp_ext_h_
|
||||
#define _mp_ext_h_
|
||||
|
||||
#if defined(__cplusplus)
|
||||
extern "C" {
|
||||
#endif
|
||||
|
||||
int __memp_alloc __P((DB_MPOOL *, REGINFO *, MPOOLFILE *, size_t, roff_t *, void *));
|
||||
#ifdef DIAGNOSTIC
|
||||
void __memp_check_order __P((DB_MPOOL_HASH *));
|
||||
#endif
|
||||
int __memp_bhwrite __P((DB_MPOOL *, DB_MPOOL_HASH *, MPOOLFILE *, BH *, int));
|
||||
int __memp_pgread __P((DB_MPOOLFILE *, DB_MUTEX *, BH *, int));
|
||||
int __memp_pg __P((DB_MPOOLFILE *, BH *, int));
|
||||
void __memp_bhfree __P((DB_MPOOL *, DB_MPOOL_HASH *, BH *, int));
|
||||
int __memp_fget __P((DB_MPOOLFILE *, db_pgno_t *, u_int32_t, void *));
|
||||
int __memp_fcreate __P((DB_ENV *, DB_MPOOLFILE **, u_int32_t));
|
||||
int __memp_fopen_int __P((DB_MPOOLFILE *, MPOOLFILE *, const char *, u_int32_t, int, size_t));
|
||||
int __memp_fclose_int __P((DB_MPOOLFILE *, u_int32_t));
|
||||
int __memp_mf_discard __P((DB_MPOOL *, MPOOLFILE *));
|
||||
char * __memp_fn __P((DB_MPOOLFILE *));
|
||||
char * __memp_fns __P((DB_MPOOL *, MPOOLFILE *));
|
||||
int __memp_fput __P((DB_MPOOLFILE *, void *, u_int32_t));
|
||||
int __memp_fset __P((DB_MPOOLFILE *, void *, u_int32_t));
|
||||
void __memp_dbenv_create __P((DB_ENV *));
|
||||
int __memp_open __P((DB_ENV *));
|
||||
int __memp_dbenv_refresh __P((DB_ENV *));
|
||||
void __mpool_region_destroy __P((DB_ENV *, REGINFO *));
|
||||
int __memp_nameop __P((DB_ENV *, u_int8_t *, const char *, const char *, const char *));
|
||||
int __memp_register __P((DB_ENV *, int, int (*)(DB_ENV *, db_pgno_t, void *, DBT *), int (*)(DB_ENV *, db_pgno_t, void *, DBT *)));
|
||||
int __memp_stat __P((DB_ENV *, DB_MPOOL_STAT **, DB_MPOOL_FSTAT ***, u_int32_t));
|
||||
int __memp_dump_region __P((DB_ENV *, char *, FILE *));
|
||||
void __memp_stat_hash __P((REGINFO *, MPOOL *, u_int32_t *));
|
||||
int __memp_sync __P((DB_ENV *, DB_LSN *));
|
||||
int __memp_fsync __P((DB_MPOOLFILE *));
|
||||
int __mp_xxx_fh __P((DB_MPOOLFILE *, DB_FH **));
|
||||
int __memp_sync_int __P((DB_ENV *, DB_MPOOLFILE *, int, db_sync_op, int *));
|
||||
int __memp_trickle __P((DB_ENV *, int, int *));
|
||||
|
||||
#if defined(__cplusplus)
|
||||
}
|
||||
#endif
|
||||
#endif /* !_mp_ext_h_ */
|
Some files were not shown because too many files have changed in this diff Show More
Reference in New Issue
Block a user