Commit d3494570 authored by unknown's avatar unknown

autogenerated files removed

scripts we don't need commented out
s_dir script for creating directories bdb build process requires


BitKeeper/deleted/.del-BerkeleyDB.wpj~a2a0abe09f33bb61:
  Delete: bdb/build_vxworks/BerkeleyDB.wpj
BitKeeper/deleted/.del-Makefile.custom~2b8f324317bef7ad:
  Delete: bdb/build_vxworks/BerkeleyDB/Makefile.custom
BitKeeper/deleted/.del-Makefile.custom~683fd022553cf846:
  Delete: bdb/build_vxworks/db_archive/db_archive/Makefile.custom
BitKeeper/deleted/.del-component.cdf~42d5e09d10a4debd:
  Delete: bdb/build_vxworks/BerkeleyDB/component.cdf
BitKeeper/deleted/.del-component.cdf~7713d5d32b01239:
  Delete: bdb/build_vxworks/db_archive/db_archive/component.cdf
BitKeeper/deleted/.del-component.wpj~13c8b25bc88a79a5:
  Delete: bdb/build_vxworks/BerkeleyDB/component.wpj
BitKeeper/deleted/.del-component.wpj~8f2eae1d43fc8a33:
  Delete: bdb/build_vxworks/db_archive/db_archive/component.wpj
BitKeeper/deleted/.del-db_archive.c~aa2f07eacf30fed:
  Delete: bdb/build_vxworks/db_archive/db_archive.c
BitKeeper/deleted/.del-db_archive.wpj~9b2944550502e15:
  Delete: bdb/build_vxworks/db_archive/db_archive.wpj
BitKeeper/deleted/.del-db_checkpoint.c~9a0937113e3c2aaa:
  Delete: bdb/build_vxworks/db_checkpoint/db_checkpoint.c
BitKeeper/deleted/.del-Makefile.custom~1cc8c2668b709944:
  Delete: bdb/build_vxworks/db_load/db_load/Makefile.custom
BitKeeper/deleted/.del-Makefile.custom~37a5b23498b0cb1b:
  Delete: bdb/build_vxworks/db_deadlock/db_deadlock/Makefile.custom
BitKeeper/deleted/.del-Makefile.custom~6698b0966cb9896e:
  Delete: bdb/build_vxworks/db_dump/db_dump/Makefile.custom
BitKeeper/deleted/.del-Makefile.custom~e2919df8b5a5d18:
  Delete: bdb/build_vxworks/db_checkpoint/db_checkpoint/Makefile.custom
BitKeeper/deleted/.del-component.cdf~88d94c29a18784f3:
  Delete: bdb/build_vxworks/db_deadlock/db_deadlock/component.cdf
BitKeeper/deleted/.del-component.cdf~acf828ccb25f2e7a:
  Delete: bdb/build_vxworks/db_checkpoint/db_checkpoint/component.cdf
BitKeeper/deleted/.del-component.cdf~cbedb82f353d0922:
  Delete: bdb/build_vxworks/db_load/db_load/component.cdf
BitKeeper/deleted/.del-component.cdf~d2507fbdc31adf16:
  Delete: bdb/build_vxworks/db_dump/db_dump/component.cdf
BitKeeper/deleted/.del-component.wpj~5f1cc866f2597c5b:
  Delete: bdb/build_vxworks/db_dump/db_dump/component.wpj
BitKeeper/deleted/.del-component.wpj~7bbc0dcd2221ac89:
  Delete: bdb/build_vxworks/db_checkpoint/db_checkpoint/component.wpj
BitKeeper/deleted/.del-component.wpj~dda5a2a73736e0f9:
  Delete: bdb/build_vxworks/db_deadlock/db_deadlock/component.wpj
BitKeeper/deleted/.del-db_checkpoint.wpj~c11939cdaad080:
  Delete: bdb/build_vxworks/db_checkpoint/db_checkpoint.wpj
BitKeeper/deleted/.del-db_config.h~f0ffd61a4c4dcc10:
  Delete: bdb/build_vxworks/db_config.h
BitKeeper/deleted/.del-db_deadlock.c~b110945da1356bd3:
  Delete: bdb/build_vxworks/db_deadlock/db_deadlock.c
BitKeeper/deleted/.del-db_deadlock.wpj~b8617495863e87b3:
  Delete: bdb/build_vxworks/db_deadlock/db_deadlock.wpj
BitKeeper/deleted/.del-db_dump.c~aa0bdb027bcc79:
  Delete: bdb/build_vxworks/db_dump/db_dump.c
BitKeeper/deleted/.del-db_dump.wpj~7e28dd5799ef9d7:
  Delete: bdb/build_vxworks/db_dump/db_dump.wpj
BitKeeper/deleted/.del-db_load.c~1dd647c9c5863378:
  Delete: bdb/build_vxworks/db_load/db_load.c
BitKeeper/deleted/.del-db_load.wpj~67c6c653a9bea870:
  Delete: bdb/build_vxworks/db_load/db_load.wpj
BitKeeper/deleted/.del-Makefile.custom~1a5a0a49a86a3f28:
  Delete: bdb/build_vxworks/db_upgrade/db_upgrade/Makefile.custom
BitKeeper/deleted/.del-Makefile.custom~afc05029de4bf10:
  Delete: bdb/build_vxworks/db_printlog/db_printlog/Makefile.custom
BitKeeper/deleted/.del-Makefile.custom~b56acb71917c4d78:
  Delete: bdb/build_vxworks/db_recover/db_recover/Makefile.custom
BitKeeper/deleted/.del-Makefile.custom~ead532061f2a01a7:
  Delete: bdb/build_vxworks/db_stat/db_stat/Makefile.custom
BitKeeper/deleted/.del-component.cdf~169be941a9ccfe77:
  Delete: bdb/build_vxworks/db_printlog/db_printlog/component.cdf
BitKeeper/deleted/.del-component.cdf~41e8ac6e554a2c0a:
  Delete: bdb/build_vxworks/db_upgrade/db_upgrade/component.cdf
BitKeeper/deleted/.del-component.cdf~8dfd6cea1eb16ffb:
  Delete: bdb/build_vxworks/db_recover/db_recover/component.cdf
BitKeeper/deleted/.del-component.cdf~c6f1a7b0c99c5a:
  Delete: bdb/build_vxworks/db_stat/db_stat/component.cdf
BitKeeper/deleted/.del-component.wpj~2b0236f9e7d93c0e:
  Delete: bdb/build_vxworks/db_load/db_load/component.wpj
BitKeeper/deleted/.del-component.wpj~65b35a15fb66fbf4:
  Delete: bdb/build_vxworks/db_recover/db_recover/component.wpj
BitKeeper/deleted/.del-component.wpj~ab56c607b6f675f0:
  Delete: bdb/build_vxworks/db_printlog/db_printlog/component.wpj
BitKeeper/deleted/.del-component.wpj~b569f98cbb9764e4:
  Delete: bdb/build_vxworks/db_stat/db_stat/component.wpj
BitKeeper/deleted/.del-db_printlog.c~577c296df84c5d5e:
  Delete: bdb/build_vxworks/db_printlog/db_printlog.c
BitKeeper/deleted/.del-db_printlog.wpj~a3d309da1bcfd90d:
  Delete: bdb/build_vxworks/db_printlog/db_printlog.wpj
BitKeeper/deleted/.del-db_recover.c~91a305ab726bdd8:
  Delete: bdb/build_vxworks/db_recover/db_recover.c
BitKeeper/deleted/.del-db_recover.wpj~8ad42e5de67901e2:
  Delete: bdb/build_vxworks/db_recover/db_recover.wpj
BitKeeper/deleted/.del-db_stat.c~4dcfe3213db403f7:
  Delete: bdb/build_vxworks/db_stat/db_stat.c
BitKeeper/deleted/.del-db_stat.wpj~77f17910b9a94f85:
  Delete: bdb/build_vxworks/db_stat/db_stat.wpj
BitKeeper/deleted/.del-db_upgrade.c~e7cda8f222da34a7:
  Delete: bdb/build_vxworks/db_upgrade/db_upgrade.c
BitKeeper/deleted/.del-db_upgrade.wpj~d36d961b31f59dda:
  Delete: bdb/build_vxworks/db_upgrade/db_upgrade.wpj
BitKeeper/deleted/.del-Makefile.custom~885ead3079a0a779:
  Delete: bdb/build_vxworks/db_verify/db_verify/Makefile.custom
BitKeeper/deleted/.del-Makefile.custom~a1a4e96924c2bc16:
  Delete: bdb/build_vxworks/dbdemo/dbdemo/Makefile.custom
BitKeeper/deleted/.del-component.cdf~4e48fb1399b97382:
  Delete: bdb/build_vxworks/dbdemo/dbdemo/component.cdf
BitKeeper/deleted/.del-component.cdf~7949208c42787c23:
  Delete: bdb/build_vxworks/db_verify/db_verify/component.cdf
BitKeeper/deleted/.del-component.wpj~33b7238376fc4675:
  Delete: bdb/build_vxworks/db_verify/db_verify/component.wpj
BitKeeper/deleted/.del-component.wpj~94039e6651ac117:
  Delete: bdb/build_vxworks/db_upgrade/db_upgrade/component.wpj
BitKeeper/deleted/.del-component.wpj~b4f7a191ebb2b1e7:
  Delete: bdb/build_vxworks/dbdemo/dbdemo/component.wpj
BitKeeper/deleted/.del-db_verify.c~1b3e9cc5c17323eb:
  Delete: bdb/build_vxworks/db_verify/db_verify.c
BitKeeper/deleted/.del-db_verify.wpj~1fa472e1eeecb396:
  Delete: bdb/build_vxworks/db_verify/db_verify.wpj
BitKeeper/deleted/.del-dbdemo.c~e754acbbacde488:
  Delete: bdb/build_vxworks/dbdemo/dbdemo.c
BitKeeper/deleted/.del-dbdemo.wpj~c8d2fa5d14674437:
  Delete: bdb/build_vxworks/dbdemo/dbdemo.wpj
bdb/dist/s_all:
  move mkdir stuff to a separate file
  comment out scripts we don't need
parent 5a70f257
Document file - DO NOT EDIT
<BEGIN> BUILD_PENTIUM_debug_BUILDRULE
BerkeleyDB.out
<END>
<BEGIN> BUILD_PENTIUM_debug_MACRO_AR
ar386
<END>
<BEGIN> BUILD_PENTIUM_debug_MACRO_ARCHIVE
$(PRJ_DIR)/PENTIUMgnu/BerkeleyDB_sim.a
<END>
<BEGIN> BUILD_PENTIUM_debug_MACRO_AS
cc386
<END>
<BEGIN> BUILD_PENTIUM_debug_MACRO_CC
cc386
<END>
<BEGIN> BUILD_PENTIUM_debug_MACRO_CFLAGS
-g \
-mpentium \
-ansi \
-nostdinc \
-DRW_MULTI_THREAD \
-D_REENTRANT \
-fvolatile \
-nostdlib \
-fno-builtin \
-fno-defer-pop \
-I. \
-I$(WIND_BASE)/target/h \
-DCPU=PENTIUM \
-O0 \
-I$(PRJ_DIR) \
-I$(PRJ_DIR)/.. \
-DDIAGNOSTIC \
-DDEBUG
<END>
<BEGIN> BUILD_PENTIUM_debug_MACRO_CFLAGS_AS
-g \
-mpentium \
-ansi \
-nostdinc \
-fvolatile \
-nostdlib \
-fno-builtin \
-fno-defer-pop \
-P \
-x \
assembler-with-cpp \
-I. \
-I$(WIND_BASE)/target/h \
-DCPU=PENTIUM
<END>
<BEGIN> BUILD_PENTIUM_debug_MACRO_CPP
cc386 -E -P -xc
<END>
<BEGIN> BUILD_PENTIUM_debug_MACRO_LD
ld386
<END>
<BEGIN> BUILD_PENTIUM_debug_MACRO_LDFLAGS
-X -N
<END>
<BEGIN> BUILD_PENTIUM_debug_MACRO_LD_PARTIAL_FLAGS
-X -r
<END>
<BEGIN> BUILD_PENTIUM_debug_MACRO_NM
nm386 -g
<END>
<BEGIN> BUILD_PENTIUM_debug_MACRO_OPTION_DEFINE_MACRO
-D
<END>
<BEGIN> BUILD_PENTIUM_debug_MACRO_OPTION_INCLUDE_DIR
-I
<END>
<BEGIN> BUILD_PENTIUM_debug_MACRO_POST_BUILD_RULE
<END>
<BEGIN> BUILD_PENTIUM_debug_MACRO_PRJ_LIBS
<END>
<BEGIN> BUILD_PENTIUM_debug_MACRO_SIZE
size386
<END>
<BEGIN> BUILD_PENTIUM_debug_RO_DEPEND_PATH
{$(WIND_BASE)/target/h/} \
{$(WIND_BASE)/target/src/} \
{$(WIND_BASE)/target/config/}
<END>
<BEGIN> BUILD_PENTIUM_debug_TC
::tc_PENTIUMgnu
<END>
<BEGIN> BUILD_PENTIUM_release_BUILDRULE
BerkeleyDB.out
<END>
<BEGIN> BUILD_PENTIUM_release_MACRO_AR
ar386
<END>
<BEGIN> BUILD_PENTIUM_release_MACRO_ARCHIVE
$(PRJ_DIR)/PENTIUMgnu/BerkeleyDB_sim.a
<END>
<BEGIN> BUILD_PENTIUM_release_MACRO_AS
cc386
<END>
<BEGIN> BUILD_PENTIUM_release_MACRO_CC
cc386
<END>
<BEGIN> BUILD_PENTIUM_release_MACRO_CFLAGS
-mpentium \
-ansi \
-nostdinc \
-DRW_MULTI_THREAD \
-D_REENTRANT \
-fvolatile \
-nostdlib \
-fno-builtin \
-fno-defer-pop \
-I. \
-I$(WIND_BASE)/target/h \
-DCPU=PENTIUM \
-O2 \
-I$(PRJ_DIR) \
-I$(PRJ_DIR)/..
<END>
<BEGIN> BUILD_PENTIUM_release_MACRO_CFLAGS_AS
-g \
-mpentium \
-ansi \
-nostdinc \
-fvolatile \
-nostdlib \
-fno-builtin \
-fno-defer-pop \
-P \
-x \
assembler-with-cpp \
-I. \
-I$(WIND_BASE)/target/h \
-DCPU=PENTIUM
<END>
<BEGIN> BUILD_PENTIUM_release_MACRO_CPP
cc386 -E -P -xc
<END>
<BEGIN> BUILD_PENTIUM_release_MACRO_LD
ld386
<END>
<BEGIN> BUILD_PENTIUM_release_MACRO_LDDEPS
<END>
<BEGIN> BUILD_PENTIUM_release_MACRO_LDFLAGS
-X -N
<END>
<BEGIN> BUILD_PENTIUM_release_MACRO_LD_PARTIAL_FLAGS
-X -r
<END>
<BEGIN> BUILD_PENTIUM_release_MACRO_NM
nm386 -g
<END>
<BEGIN> BUILD_PENTIUM_release_MACRO_OPTION_DEFINE_MACRO
-D
<END>
<BEGIN> BUILD_PENTIUM_release_MACRO_OPTION_INCLUDE_DIR
-I
<END>
<BEGIN> BUILD_PENTIUM_release_MACRO_POST_BUILD_RULE
<END>
<BEGIN> BUILD_PENTIUM_release_MACRO_PRJ_LIBS
<END>
<BEGIN> BUILD_PENTIUM_release_MACRO_SIZE
size386
<END>
<BEGIN> BUILD_PENTIUM_release_RO_DEPEND_PATH
{$(WIND_BASE)/target/h/} \
{$(WIND_BASE)/target/src/} \
{$(WIND_BASE)/target/config/}
<END>
<BEGIN> BUILD_PENTIUM_release_TC
::tc_PENTIUMgnu
<END>
<BEGIN> BUILD_RULE_BerkeleyDB.out
<END>
<BEGIN> BUILD_RULE_BerkeleyDB_sim.out
<END>
<BEGIN> BUILD_RULE_archive
<END>
<BEGIN> BUILD_RULE_objects
<END>
<BEGIN> BUILD__CURRENT
PENTIUM_debug
<END>
<BEGIN> BUILD__LIST
PENTIUM_release PENTIUM_debug
<END>
<BEGIN> CORE_INFO_TYPE
::prj_vxApp
<END>
<BEGIN> CORE_INFO_VERSION
2.0
<END>
<BEGIN> FILE_$(PRJ_DIR)/../btree/bt_compare.c_dependDone
TRUE
<END>
<BEGIN> FILE_$(PRJ_DIR)/../btree/bt_compare.c_dependencies
$(PRJ_DIR)/db_config.h \
$(PRJ_DIR)/db_int.h \
$(PRJ_DIR)/db.h
<END>
<BEGIN> FILE_$(PRJ_DIR)/../btree/bt_compare.c_objects
bt_compare.o
<END>
<BEGIN> FILE_$(PRJ_DIR)/../btree/bt_compare.c_tool
C/C++ compiler
<END>
<BEGIN> FILE_$(PRJ_DIR)/../btree/bt_conv.c_dependDone
TRUE
<END>
<BEGIN> FILE_$(PRJ_DIR)/../btree/bt_conv.c_dependencies
$(PRJ_DIR)/db_config.h \
$(PRJ_DIR)/db_int.h \
$(PRJ_DIR)/db.h
<END>
<BEGIN> FILE_$(PRJ_DIR)/../btree/bt_conv.c_objects
bt_conv.o
<END>
<BEGIN> FILE_$(PRJ_DIR)/../btree/bt_conv.c_tool
C/C++ compiler
<END>
<BEGIN> FILE_$(PRJ_DIR)/../btree/bt_curadj.c_dependDone
TRUE
<END>
<BEGIN> FILE_$(PRJ_DIR)/../btree/bt_curadj.c_dependencies
$(PRJ_DIR)/db_config.h \
$(PRJ_DIR)/db_int.h \
$(PRJ_DIR)/db.h
<END>
<BEGIN> FILE_$(PRJ_DIR)/../btree/bt_curadj.c_objects
bt_curadj.o
<END>
<BEGIN> FILE_$(PRJ_DIR)/../btree/bt_curadj.c_tool
C/C++ compiler
<END>
<BEGIN> FILE_$(PRJ_DIR)/../btree/bt_cursor.c_dependDone
TRUE
<END>
<BEGIN> FILE_$(PRJ_DIR)/../btree/bt_cursor.c_dependencies
$(PRJ_DIR)/db_config.h \
$(PRJ_DIR)/db_int.h \
$(PRJ_DIR)/db.h
<END>
<BEGIN> FILE_$(PRJ_DIR)/../btree/bt_cursor.c_objects
bt_cursor.o
<END>
<BEGIN> FILE_$(PRJ_DIR)/../btree/bt_cursor.c_tool
C/C++ compiler
<END>
<BEGIN> FILE_$(PRJ_DIR)/../btree/bt_delete.c_dependDone
TRUE
<END>
<BEGIN> FILE_$(PRJ_DIR)/../btree/bt_delete.c_dependencies
$(PRJ_DIR)/db_config.h \
$(PRJ_DIR)/db_int.h \
$(PRJ_DIR)/db.h
<END>
<BEGIN> FILE_$(PRJ_DIR)/../btree/bt_delete.c_objects
bt_delete.o
<END>
<BEGIN> FILE_$(PRJ_DIR)/../btree/bt_delete.c_tool
C/C++ compiler
<END>
<BEGIN> FILE_$(PRJ_DIR)/../btree/bt_method.c_dependDone
TRUE
<END>
<BEGIN> FILE_$(PRJ_DIR)/../btree/bt_method.c_dependencies
$(PRJ_DIR)/db_config.h \
$(PRJ_DIR)/db_int.h \
$(PRJ_DIR)/db.h
<END>
<BEGIN> FILE_$(PRJ_DIR)/../btree/bt_method.c_objects
bt_method.o
<END>
<BEGIN> FILE_$(PRJ_DIR)/../btree/bt_method.c_tool
C/C++ compiler
<END>
<BEGIN> FILE_$(PRJ_DIR)/../btree/bt_open.c_dependDone
TRUE
<END>
<BEGIN> FILE_$(PRJ_DIR)/../btree/bt_open.c_dependencies
$(PRJ_DIR)/db_config.h \
$(PRJ_DIR)/db_int.h \
$(PRJ_DIR)/db.h
<END>
<BEGIN> FILE_$(PRJ_DIR)/../btree/bt_open.c_objects
bt_open.o
<END>
<BEGIN> FILE_$(PRJ_DIR)/../btree/bt_open.c_tool
C/C++ compiler
<END>
<BEGIN> FILE_$(PRJ_DIR)/../btree/bt_put.c_dependDone
TRUE
<END>
<BEGIN> FILE_$(PRJ_DIR)/../btree/bt_put.c_dependencies
$(PRJ_DIR)/db_config.h \
$(PRJ_DIR)/db_int.h \
$(PRJ_DIR)/db.h
<END>
<BEGIN> FILE_$(PRJ_DIR)/../btree/bt_put.c_objects
bt_put.o
<END>
<BEGIN> FILE_$(PRJ_DIR)/../btree/bt_put.c_tool
C/C++ compiler
<END>
<BEGIN> FILE_$(PRJ_DIR)/../btree/bt_rec.c_dependDone
TRUE
<END>
<BEGIN> FILE_$(PRJ_DIR)/../btree/bt_rec.c_dependencies
$(PRJ_DIR)/db_config.h \
$(PRJ_DIR)/db_int.h \
$(PRJ_DIR)/db.h
<END>
<BEGIN> FILE_$(PRJ_DIR)/../btree/bt_rec.c_objects
bt_rec.o
<END>
<BEGIN> FILE_$(PRJ_DIR)/../btree/bt_rec.c_tool
C/C++ compiler
<END>
<BEGIN> FILE_$(PRJ_DIR)/../btree/bt_reclaim.c_dependDone
TRUE
<END>
<BEGIN> FILE_$(PRJ_DIR)/../btree/bt_reclaim.c_dependencies
$(PRJ_DIR)/db_config.h \
$(PRJ_DIR)/db_int.h \
$(PRJ_DIR)/db.h
<END>
<BEGIN> FILE_$(PRJ_DIR)/../btree/bt_reclaim.c_objects
bt_reclaim.o
<END>
<BEGIN> FILE_$(PRJ_DIR)/../btree/bt_reclaim.c_tool
C/C++ compiler
<END>
<BEGIN> FILE_$(PRJ_DIR)/../btree/bt_recno.c_dependDone
TRUE
<END>
<BEGIN> FILE_$(PRJ_DIR)/../btree/bt_recno.c_dependencies
$(PRJ_DIR)/db_config.h \
$(PRJ_DIR)/db_int.h \
$(PRJ_DIR)/db.h
<END>
<BEGIN> FILE_$(PRJ_DIR)/../btree/bt_recno.c_objects
bt_recno.o
<END>
<BEGIN> FILE_$(PRJ_DIR)/../btree/bt_recno.c_tool
C/C++ compiler
<END>
<BEGIN> FILE_$(PRJ_DIR)/../btree/bt_rsearch.c_dependDone
TRUE
<END>
<BEGIN> FILE_$(PRJ_DIR)/../btree/bt_rsearch.c_dependencies
$(PRJ_DIR)/db_config.h \
$(PRJ_DIR)/db_int.h \
$(PRJ_DIR)/db.h
<END>
<BEGIN> FILE_$(PRJ_DIR)/../btree/bt_rsearch.c_objects
bt_rsearch.o
<END>
<BEGIN> FILE_$(PRJ_DIR)/../btree/bt_rsearch.c_tool
C/C++ compiler
<END>
<BEGIN> FILE_$(PRJ_DIR)/../btree/bt_search.c_dependDone
TRUE
<END>
<BEGIN> FILE_$(PRJ_DIR)/../btree/bt_search.c_dependencies
$(PRJ_DIR)/db_config.h \
$(PRJ_DIR)/db_int.h \
$(PRJ_DIR)/db.h
<END>
<BEGIN> FILE_$(PRJ_DIR)/../btree/bt_search.c_objects
bt_search.o
<END>
<BEGIN> FILE_$(PRJ_DIR)/../btree/bt_search.c_tool
C/C++ compiler
<END>
<BEGIN> FILE_$(PRJ_DIR)/../btree/bt_split.c_dependDone
TRUE
<END>
<BEGIN> FILE_$(PRJ_DIR)/../btree/bt_split.c_dependencies
$(PRJ_DIR)/db_config.h \
$(PRJ_DIR)/db_int.h \
$(PRJ_DIR)/db.h
<END>
<BEGIN> FILE_$(PRJ_DIR)/../btree/bt_split.c_objects
bt_split.o
<END>
<BEGIN> FILE_$(PRJ_DIR)/../btree/bt_split.c_tool
C/C++ compiler
<END>
<BEGIN> FILE_$(PRJ_DIR)/../btree/bt_stat.c_dependDone
TRUE
<END>
<BEGIN> FILE_$(PRJ_DIR)/../btree/bt_stat.c_dependencies
$(PRJ_DIR)/db_config.h \
$(PRJ_DIR)/db_int.h \
$(PRJ_DIR)/db.h
<END>
<BEGIN> FILE_$(PRJ_DIR)/../btree/bt_stat.c_objects
bt_stat.o
<END>
<BEGIN> FILE_$(PRJ_DIR)/../btree/bt_stat.c_tool
C/C++ compiler
<END>
<BEGIN> FILE_$(PRJ_DIR)/../btree/bt_upgrade.c_dependDone
TRUE
<END>
<BEGIN> FILE_$(PRJ_DIR)/../btree/bt_upgrade.c_dependencies
$(PRJ_DIR)/db_config.h \
$(PRJ_DIR)/db_int.h \
$(PRJ_DIR)/db.h
<END>
<BEGIN> FILE_$(PRJ_DIR)/../btree/bt_upgrade.c_objects
bt_upgrade.o
<END>
<BEGIN> FILE_$(PRJ_DIR)/../btree/bt_upgrade.c_tool
C/C++ compiler
<END>
<BEGIN> FILE_$(PRJ_DIR)/../btree/bt_verify.c_dependDone
TRUE
<END>
<BEGIN> FILE_$(PRJ_DIR)/../btree/bt_verify.c_dependencies
$(PRJ_DIR)/db_config.h \
$(PRJ_DIR)/db_int.h \
$(PRJ_DIR)/db.h
<END>
<BEGIN> FILE_$(PRJ_DIR)/../btree/bt_verify.c_objects
bt_verify.o
<END>
<BEGIN> FILE_$(PRJ_DIR)/../btree/bt_verify.c_tool
C/C++ compiler
<END>
<BEGIN> FILE_$(PRJ_DIR)/../btree/btree_auto.c_dependDone
TRUE
<END>
<BEGIN> FILE_$(PRJ_DIR)/../btree/btree_auto.c_dependencies
$(PRJ_DIR)/db_config.h \
$(PRJ_DIR)/db_int.h \
$(PRJ_DIR)/db.h
<END>
<BEGIN> FILE_$(PRJ_DIR)/../btree/btree_auto.c_objects
btree_auto.o
<END>
<BEGIN> FILE_$(PRJ_DIR)/../btree/btree_auto.c_tool
C/C++ compiler
<END>
<BEGIN> FILE_$(PRJ_DIR)/../clib/getopt.c_dependDone
TRUE
<END>
<BEGIN> FILE_$(PRJ_DIR)/../clib/getopt.c_dependencies
$(PRJ_DIR)/db_config.h \
$(PRJ_DIR)/db_int.h \
$(PRJ_DIR)/db.h
<END>
<BEGIN> FILE_$(PRJ_DIR)/../clib/getopt.c_objects
getopt.o
<END>
<BEGIN> FILE_$(PRJ_DIR)/../clib/getopt.c_tool
C/C++ compiler
<END>
<BEGIN> FILE_$(PRJ_DIR)/../clib/snprintf.c_dependDone
TRUE
<END>
<BEGIN> FILE_$(PRJ_DIR)/../clib/snprintf.c_dependencies
$(PRJ_DIR)/db_config.h \
$(PRJ_DIR)/db_int.h \
$(PRJ_DIR)/db.h
<END>
<BEGIN> FILE_$(PRJ_DIR)/../clib/snprintf.c_objects
snprintf.o
<END>
<BEGIN> FILE_$(PRJ_DIR)/../clib/snprintf.c_tool
C/C++ compiler
<END>
<BEGIN> FILE_$(PRJ_DIR)/../clib/strcasecmp.c_dependDone
TRUE
<END>
<BEGIN> FILE_$(PRJ_DIR)/../clib/strcasecmp.c_dependencies
$(PRJ_DIR)/db_config.h \
$(PRJ_DIR)/db_int.h \
$(PRJ_DIR)/db.h
<END>
<BEGIN> FILE_$(PRJ_DIR)/../clib/strcasecmp.c_objects
strcasecmp.o
<END>
<BEGIN> FILE_$(PRJ_DIR)/../clib/strcasecmp.c_tool
C/C++ compiler
<END>
<BEGIN> FILE_$(PRJ_DIR)/../clib/strdup.c_dependDone
TRUE
<END>
<BEGIN> FILE_$(PRJ_DIR)/../clib/strdup.c_dependencies
$(PRJ_DIR)/db_config.h \
$(PRJ_DIR)/db_int.h \
$(PRJ_DIR)/db.h
<END>
<BEGIN> FILE_$(PRJ_DIR)/../clib/strdup.c_objects
strdup.o
<END>
<BEGIN> FILE_$(PRJ_DIR)/../clib/strdup.c_tool
C/C++ compiler
<END>
<BEGIN> FILE_$(PRJ_DIR)/../clib/vsnprintf.c_dependDone
TRUE
<END>
<BEGIN> FILE_$(PRJ_DIR)/../clib/vsnprintf.c_dependencies
$(PRJ_DIR)/db_config.h \
$(PRJ_DIR)/db_int.h \
$(PRJ_DIR)/db.h
<END>
<BEGIN> FILE_$(PRJ_DIR)/../clib/vsnprintf.c_objects
vsnprintf.o
<END>
<BEGIN> FILE_$(PRJ_DIR)/../clib/vsnprintf.c_tool
C/C++ compiler
<END>
<BEGIN> FILE_$(PRJ_DIR)/../common/db_byteorder.c_dependDone
TRUE
<END>
<BEGIN> FILE_$(PRJ_DIR)/../common/db_byteorder.c_dependencies
$(PRJ_DIR)/db_config.h \
$(PRJ_DIR)/db_int.h \
$(PRJ_DIR)/db.h
<END>
<BEGIN> FILE_$(PRJ_DIR)/../common/db_byteorder.c_objects
db_byteorder.o
<END>
<BEGIN> FILE_$(PRJ_DIR)/../common/db_byteorder.c_tool
C/C++ compiler
<END>
<BEGIN> FILE_$(PRJ_DIR)/../common/db_err.c_dependDone
TRUE
<END>
<BEGIN> FILE_$(PRJ_DIR)/../common/db_err.c_dependencies
$(PRJ_DIR)/db_config.h \
$(PRJ_DIR)/db_int.h \
$(PRJ_DIR)/db.h
<END>
<BEGIN> FILE_$(PRJ_DIR)/../common/db_err.c_objects
db_err.o
<END>
<BEGIN> FILE_$(PRJ_DIR)/../common/db_err.c_tool
C/C++ compiler
<END>
<BEGIN> FILE_$(PRJ_DIR)/../common/db_getlong.c_dependDone
TRUE
<END>
<BEGIN> FILE_$(PRJ_DIR)/../common/db_getlong.c_dependencies
$(PRJ_DIR)/db_config.h \
$(PRJ_DIR)/db_int.h \
$(PRJ_DIR)/db.h
<END>
<BEGIN> FILE_$(PRJ_DIR)/../common/db_getlong.c_objects
db_getlong.o
<END>
<BEGIN> FILE_$(PRJ_DIR)/../common/db_getlong.c_tool
C/C++ compiler
<END>
<BEGIN> FILE_$(PRJ_DIR)/../common/db_idspace.c_dependDone
TRUE
<END>
<BEGIN> FILE_$(PRJ_DIR)/../common/db_idspace.c_dependencies
$(PRJ_DIR)/db_config.h \
$(PRJ_DIR)/db_int.h \
$(PRJ_DIR)/db.h
<END>
<BEGIN> FILE_$(PRJ_DIR)/../common/db_idspace.c_objects
db_idspace.o
<END>
<BEGIN> FILE_$(PRJ_DIR)/../common/db_idspace.c_tool
C/C++ compiler
<END>
<BEGIN> FILE_$(PRJ_DIR)/../common/db_log2.c_dependDone
TRUE
<END>
<BEGIN> FILE_$(PRJ_DIR)/../common/db_log2.c_dependencies
$(PRJ_DIR)/db_config.h \
$(PRJ_DIR)/db_int.h \
$(PRJ_DIR)/db.h
<END>
<BEGIN> FILE_$(PRJ_DIR)/../common/db_log2.c_objects
db_log2.o
<END>
<BEGIN> FILE_$(PRJ_DIR)/../common/db_log2.c_tool
C/C++ compiler
<END>
<BEGIN> FILE_$(PRJ_DIR)/../common/util_arg.c_dependDone
TRUE
<END>
<BEGIN> FILE_$(PRJ_DIR)/../common/util_arg.c_dependencies
$(PRJ_DIR)/db_config.h \
$(PRJ_DIR)/db_int.h \
$(PRJ_DIR)/db.h
<END>
<BEGIN> FILE_$(PRJ_DIR)/../common/util_arg.c_objects
util_arg.o
<END>
<BEGIN> FILE_$(PRJ_DIR)/../common/util_arg.c_tool
C/C++ compiler
<END>
<BEGIN> FILE_$(PRJ_DIR)/../common/util_cache.c_dependDone
TRUE
<END>
<BEGIN> FILE_$(PRJ_DIR)/../common/util_cache.c_dependencies
$(PRJ_DIR)/db_config.h \
$(PRJ_DIR)/db_int.h \
$(PRJ_DIR)/db.h
<END>
<BEGIN> FILE_$(PRJ_DIR)/../common/util_cache.c_objects
util_cache.o
<END>
<BEGIN> FILE_$(PRJ_DIR)/../common/util_cache.c_tool
C/C++ compiler
<END>
<BEGIN> FILE_$(PRJ_DIR)/../common/util_log.c_dependDone
TRUE
<END>
<BEGIN> FILE_$(PRJ_DIR)/../common/util_log.c_dependencies
$(PRJ_DIR)/db_config.h \
$(PRJ_DIR)/db_int.h \
$(PRJ_DIR)/db.h
<END>
<BEGIN> FILE_$(PRJ_DIR)/../common/util_log.c_objects
util_log.o
<END>
<BEGIN> FILE_$(PRJ_DIR)/../common/util_log.c_tool
C/C++ compiler
<END>
<BEGIN> FILE_$(PRJ_DIR)/../common/util_sig.c_dependDone
TRUE
<END>
<BEGIN> FILE_$(PRJ_DIR)/../common/util_sig.c_dependencies
$(PRJ_DIR)/db_config.h \
$(PRJ_DIR)/db_int.h \
$(PRJ_DIR)/db.h
<END>
<BEGIN> FILE_$(PRJ_DIR)/../common/util_sig.c_objects
util_sig.o
<END>
<BEGIN> FILE_$(PRJ_DIR)/../common/util_sig.c_tool
C/C++ compiler
<END>
<BEGIN> FILE_$(PRJ_DIR)/../db/crdel_auto.c_dependDone
TRUE
<END>
<BEGIN> FILE_$(PRJ_DIR)/../db/crdel_auto.c_dependencies
$(PRJ_DIR)/db_config.h \
$(PRJ_DIR)/db_int.h \
$(PRJ_DIR)/db.h
<END>
<BEGIN> FILE_$(PRJ_DIR)/../db/crdel_auto.c_objects
crdel_auto.o
<END>
<BEGIN> FILE_$(PRJ_DIR)/../db/crdel_auto.c_tool
C/C++ compiler
<END>
<BEGIN> FILE_$(PRJ_DIR)/../db/crdel_rec.c_dependDone
TRUE
<END>
<BEGIN> FILE_$(PRJ_DIR)/../db/crdel_rec.c_dependencies
$(PRJ_DIR)/db_config.h \
$(PRJ_DIR)/db_int.h \
$(PRJ_DIR)/db.h
<END>
<BEGIN> FILE_$(PRJ_DIR)/../db/crdel_rec.c_objects
crdel_rec.o
<END>
<BEGIN> FILE_$(PRJ_DIR)/../db/crdel_rec.c_tool
C/C++ compiler
<END>
<BEGIN> FILE_$(PRJ_DIR)/../db/db.c_dependDone
TRUE
<END>
<BEGIN> FILE_$(PRJ_DIR)/../db/db.c_dependencies
$(PRJ_DIR)/db_config.h \
$(PRJ_DIR)/db_int.h \
$(PRJ_DIR)/db.h
<END>
<BEGIN> FILE_$(PRJ_DIR)/../db/db.c_objects
db.o
<END>
<BEGIN> FILE_$(PRJ_DIR)/../db/db.c_tool
C/C++ compiler
<END>
<BEGIN> FILE_$(PRJ_DIR)/../db/db_am.c_dependDone
TRUE
<END>
<BEGIN> FILE_$(PRJ_DIR)/../db/db_am.c_dependencies
$(PRJ_DIR)/db_config.h \
$(PRJ_DIR)/db_int.h \
$(PRJ_DIR)/db.h
<END>
<BEGIN> FILE_$(PRJ_DIR)/../db/db_am.c_objects
db_am.o
<END>
<BEGIN> FILE_$(PRJ_DIR)/../db/db_am.c_tool
C/C++ compiler
<END>
<BEGIN> FILE_$(PRJ_DIR)/../db/db_auto.c_dependDone
TRUE
<END>
<BEGIN> FILE_$(PRJ_DIR)/../db/db_auto.c_dependencies
$(PRJ_DIR)/db_config.h \
$(PRJ_DIR)/db_int.h \
$(PRJ_DIR)/db.h
<END>
<BEGIN> FILE_$(PRJ_DIR)/../db/db_auto.c_objects
db_auto.o
<END>
<BEGIN> FILE_$(PRJ_DIR)/../db/db_auto.c_tool
C/C++ compiler
<END>
<BEGIN> FILE_$(PRJ_DIR)/../db/db_cam.c_dependDone
TRUE
<END>
<BEGIN> FILE_$(PRJ_DIR)/../db/db_cam.c_dependencies
$(PRJ_DIR)/db_config.h \
$(PRJ_DIR)/db_int.h \
$(PRJ_DIR)/db.h
<END>
<BEGIN> FILE_$(PRJ_DIR)/../db/db_cam.c_objects
db_cam.o
<END>
<BEGIN> FILE_$(PRJ_DIR)/../db/db_cam.c_tool
C/C++ compiler
<END>
<BEGIN> FILE_$(PRJ_DIR)/../db/db_conv.c_dependDone
TRUE
<END>
<BEGIN> FILE_$(PRJ_DIR)/../db/db_conv.c_dependencies
$(PRJ_DIR)/db_config.h \
$(PRJ_DIR)/db_int.h \
$(PRJ_DIR)/db.h
<END>
<BEGIN> FILE_$(PRJ_DIR)/../db/db_conv.c_objects
db_conv.o
<END>
<BEGIN> FILE_$(PRJ_DIR)/../db/db_conv.c_tool
C/C++ compiler
<END>
<BEGIN> FILE_$(PRJ_DIR)/../db/db_dispatch.c_dependDone
TRUE
<END>
<BEGIN> FILE_$(PRJ_DIR)/../db/db_dispatch.c_dependencies
$(PRJ_DIR)/db_config.h \
$(PRJ_DIR)/db_int.h \
$(PRJ_DIR)/db.h
<END>
<BEGIN> FILE_$(PRJ_DIR)/../db/db_dispatch.c_objects
db_dispatch.o
<END>
<BEGIN> FILE_$(PRJ_DIR)/../db/db_dispatch.c_tool
C/C++ compiler
<END>
<BEGIN> FILE_$(PRJ_DIR)/../db/db_dup.c_dependDone
TRUE
<END>
<BEGIN> FILE_$(PRJ_DIR)/../db/db_dup.c_dependencies
$(PRJ_DIR)/db_config.h \
$(PRJ_DIR)/db_int.h \
$(PRJ_DIR)/db.h
<END>
<BEGIN> FILE_$(PRJ_DIR)/../db/db_dup.c_objects
db_dup.o
<END>
<BEGIN> FILE_$(PRJ_DIR)/../db/db_dup.c_tool
C/C++ compiler
<END>
<BEGIN> FILE_$(PRJ_DIR)/../db/db_iface.c_dependDone
TRUE
<END>
<BEGIN> FILE_$(PRJ_DIR)/../db/db_iface.c_dependencies
$(PRJ_DIR)/db_config.h \
$(PRJ_DIR)/db_int.h \
$(PRJ_DIR)/db.h
<END>
<BEGIN> FILE_$(PRJ_DIR)/../db/db_iface.c_objects
db_iface.o
<END>
<BEGIN> FILE_$(PRJ_DIR)/../db/db_iface.c_tool
C/C++ compiler
<END>
<BEGIN> FILE_$(PRJ_DIR)/../db/db_join.c_dependDone
TRUE
<END>
<BEGIN> FILE_$(PRJ_DIR)/../db/db_join.c_dependencies
$(PRJ_DIR)/db_config.h \
$(PRJ_DIR)/db_int.h \
$(PRJ_DIR)/db.h
<END>
<BEGIN> FILE_$(PRJ_DIR)/../db/db_join.c_objects
db_join.o
<END>
<BEGIN> FILE_$(PRJ_DIR)/../db/db_join.c_tool
C/C++ compiler
<END>
<BEGIN> FILE_$(PRJ_DIR)/../db/db_meta.c_dependDone
TRUE
<END>
<BEGIN> FILE_$(PRJ_DIR)/../db/db_meta.c_dependencies
$(PRJ_DIR)/db_config.h \
$(PRJ_DIR)/db_int.h \
$(PRJ_DIR)/db.h
<END>
<BEGIN> FILE_$(PRJ_DIR)/../db/db_meta.c_objects
db_meta.o
<END>
<BEGIN> FILE_$(PRJ_DIR)/../db/db_meta.c_tool
C/C++ compiler
<END>
<BEGIN> FILE_$(PRJ_DIR)/../db/db_method.c_dependDone
TRUE
<END>
<BEGIN> FILE_$(PRJ_DIR)/../db/db_method.c_dependencies
$(PRJ_DIR)/db_config.h \
$(PRJ_DIR)/db_int.h \
$(PRJ_DIR)/db.h
<END>
<BEGIN> FILE_$(PRJ_DIR)/../db/db_method.c_objects
db_method.o
<END>
<BEGIN> FILE_$(PRJ_DIR)/../db/db_method.c_tool
C/C++ compiler
<END>
<BEGIN> FILE_$(PRJ_DIR)/../db/db_open.c_dependDone
TRUE
<END>
<BEGIN> FILE_$(PRJ_DIR)/../db/db_open.c_dependencies
$(PRJ_DIR)/db_config.h \
$(PRJ_DIR)/db_int.h \
$(PRJ_DIR)/db.h
<END>
<BEGIN> FILE_$(PRJ_DIR)/../db/db_open.c_objects
db_open.o
<END>
<BEGIN> FILE_$(PRJ_DIR)/../db/db_open.c_tool
C/C++ compiler
<END>
<BEGIN> FILE_$(PRJ_DIR)/../db/db_overflow.c_dependDone
TRUE
<END>
<BEGIN> FILE_$(PRJ_DIR)/../db/db_overflow.c_dependencies
$(PRJ_DIR)/db_config.h \
$(PRJ_DIR)/db_int.h \
$(PRJ_DIR)/db.h
<END>
<BEGIN> FILE_$(PRJ_DIR)/../db/db_overflow.c_objects
db_overflow.o
<END>
<BEGIN> FILE_$(PRJ_DIR)/../db/db_overflow.c_tool
C/C++ compiler
<END>
<BEGIN> FILE_$(PRJ_DIR)/../db/db_pr.c_dependDone
TRUE
<END>
<BEGIN> FILE_$(PRJ_DIR)/../db/db_pr.c_dependencies
$(PRJ_DIR)/db_config.h \
$(PRJ_DIR)/db_int.h \
$(PRJ_DIR)/db.h
<END>
<BEGIN> FILE_$(PRJ_DIR)/../db/db_pr.c_objects
db_pr.o
<END>
<BEGIN> FILE_$(PRJ_DIR)/../db/db_pr.c_tool
C/C++ compiler
<END>
<BEGIN> FILE_$(PRJ_DIR)/../db/db_rec.c_dependDone
TRUE
<END>
<BEGIN> FILE_$(PRJ_DIR)/../db/db_rec.c_dependencies
$(PRJ_DIR)/db_config.h \
$(PRJ_DIR)/db_int.h \
$(PRJ_DIR)/db.h
<END>
<BEGIN> FILE_$(PRJ_DIR)/../db/db_rec.c_objects
db_rec.o
<END>
<BEGIN> FILE_$(PRJ_DIR)/../db/db_rec.c_tool
C/C++ compiler
<END>
<BEGIN> FILE_$(PRJ_DIR)/../db/db_reclaim.c_dependDone
TRUE
<END>
<BEGIN> FILE_$(PRJ_DIR)/../db/db_reclaim.c_dependencies
$(PRJ_DIR)/db_config.h \
$(PRJ_DIR)/db_int.h \
$(PRJ_DIR)/db.h
<END>
<BEGIN> FILE_$(PRJ_DIR)/../db/db_reclaim.c_objects
db_reclaim.o
<END>
<BEGIN> FILE_$(PRJ_DIR)/../db/db_reclaim.c_tool
C/C++ compiler
<END>
<BEGIN> FILE_$(PRJ_DIR)/../db/db_remove.c_dependDone
TRUE
<END>
<BEGIN> FILE_$(PRJ_DIR)/../db/db_remove.c_dependencies
$(PRJ_DIR)/db_config.h \
$(PRJ_DIR)/db_int.h \
$(PRJ_DIR)/db.h
<END>
<BEGIN> FILE_$(PRJ_DIR)/../db/db_remove.c_objects
db_remove.o
<END>
<BEGIN> FILE_$(PRJ_DIR)/../db/db_remove.c_tool
C/C++ compiler
<END>
<BEGIN> FILE_$(PRJ_DIR)/../db/db_rename.c_dependDone
TRUE
<END>
<BEGIN> FILE_$(PRJ_DIR)/../db/db_rename.c_dependencies
$(PRJ_DIR)/db_config.h \
$(PRJ_DIR)/db_int.h \
$(PRJ_DIR)/db.h
<END>
<BEGIN> FILE_$(PRJ_DIR)/../db/db_rename.c_objects
db_rename.o
<END>
<BEGIN> FILE_$(PRJ_DIR)/../db/db_rename.c_tool
C/C++ compiler
<END>
<BEGIN> FILE_$(PRJ_DIR)/../db/db_ret.c_dependDone
TRUE
<END>
<BEGIN> FILE_$(PRJ_DIR)/../db/db_ret.c_dependencies
$(PRJ_DIR)/db_config.h \
$(PRJ_DIR)/db_int.h \
$(PRJ_DIR)/db.h
<END>
<BEGIN> FILE_$(PRJ_DIR)/../db/db_ret.c_objects
db_ret.o
<END>
<BEGIN> FILE_$(PRJ_DIR)/../db/db_ret.c_tool
C/C++ compiler
<END>
<BEGIN> FILE_$(PRJ_DIR)/../db/db_truncate.c_dependDone
TRUE
<END>
<BEGIN> FILE_$(PRJ_DIR)/../db/db_truncate.c_dependencies
$(PRJ_DIR)/db_config.h \
$(PRJ_DIR)/db_int.h \
$(PRJ_DIR)/db.h
<END>
<BEGIN> FILE_$(PRJ_DIR)/../db/db_truncate.c_objects
db_truncate.o
<END>
<BEGIN> FILE_$(PRJ_DIR)/../db/db_truncate.c_tool
C/C++ compiler
<END>
<BEGIN> FILE_$(PRJ_DIR)/../db/db_upg.c_dependDone
TRUE
<END>
<BEGIN> FILE_$(PRJ_DIR)/../db/db_upg.c_dependencies
$(PRJ_DIR)/db_config.h \
$(PRJ_DIR)/db_int.h \
$(PRJ_DIR)/db.h
<END>
<BEGIN> FILE_$(PRJ_DIR)/../db/db_upg.c_objects
db_upg.o
<END>
<BEGIN> FILE_$(PRJ_DIR)/../db/db_upg.c_tool
C/C++ compiler
<END>
<BEGIN> FILE_$(PRJ_DIR)/../db/db_upg_opd.c_dependDone
TRUE
<END>
<BEGIN> FILE_$(PRJ_DIR)/../db/db_upg_opd.c_dependencies
$(PRJ_DIR)/db_config.h \
$(PRJ_DIR)/db_int.h \
$(PRJ_DIR)/db.h
<END>
<BEGIN> FILE_$(PRJ_DIR)/../db/db_upg_opd.c_objects
db_upg_opd.o
<END>
<BEGIN> FILE_$(PRJ_DIR)/../db/db_upg_opd.c_tool
C/C++ compiler
<END>
<BEGIN> FILE_$(PRJ_DIR)/../db/db_vrfy.c_dependDone
TRUE
<END>
<BEGIN> FILE_$(PRJ_DIR)/../db/db_vrfy.c_dependencies
$(PRJ_DIR)/db_config.h \
$(PRJ_DIR)/db_int.h \
$(PRJ_DIR)/db.h
<END>
<BEGIN> FILE_$(PRJ_DIR)/../db/db_vrfy.c_objects
db_vrfy.o
<END>
<BEGIN> FILE_$(PRJ_DIR)/../db/db_vrfy.c_tool
C/C++ compiler
<END>
<BEGIN> FILE_$(PRJ_DIR)/../db/db_vrfyutil.c_dependDone
TRUE
<END>
<BEGIN> FILE_$(PRJ_DIR)/../db/db_vrfyutil.c_dependencies
$(PRJ_DIR)/db_config.h \
$(PRJ_DIR)/db_int.h \
$(PRJ_DIR)/db.h
<END>
<BEGIN> FILE_$(PRJ_DIR)/../db/db_vrfyutil.c_objects
db_vrfyutil.o
<END>
<BEGIN> FILE_$(PRJ_DIR)/../db/db_vrfyutil.c_tool
C/C++ compiler
<END>
<BEGIN> FILE_$(PRJ_DIR)/../dbreg/dbreg.c_dependDone
TRUE
<END>
<BEGIN> FILE_$(PRJ_DIR)/../dbreg/dbreg.c_dependencies
$(PRJ_DIR)/db_config.h \
$(PRJ_DIR)/db_int.h \
$(PRJ_DIR)/db.h
<END>
<BEGIN> FILE_$(PRJ_DIR)/../dbreg/dbreg.c_objects
dbreg.o
<END>
<BEGIN> FILE_$(PRJ_DIR)/../dbreg/dbreg.c_tool
C/C++ compiler
<END>
<BEGIN> FILE_$(PRJ_DIR)/../dbreg/dbreg_auto.c_dependDone
TRUE
<END>
<BEGIN> FILE_$(PRJ_DIR)/../dbreg/dbreg_auto.c_dependencies
$(PRJ_DIR)/db_config.h \
$(PRJ_DIR)/db_int.h \
$(PRJ_DIR)/db.h
<END>
<BEGIN> FILE_$(PRJ_DIR)/../dbreg/dbreg_auto.c_objects
dbreg_auto.o
<END>
<BEGIN> FILE_$(PRJ_DIR)/../dbreg/dbreg_auto.c_tool
C/C++ compiler
<END>
<BEGIN> FILE_$(PRJ_DIR)/../dbreg/dbreg_rec.c_dependDone
TRUE
<END>
<BEGIN> FILE_$(PRJ_DIR)/../dbreg/dbreg_rec.c_dependencies
$(PRJ_DIR)/db_config.h \
$(PRJ_DIR)/db_int.h \
$(PRJ_DIR)/db.h
<END>
<BEGIN> FILE_$(PRJ_DIR)/../dbreg/dbreg_rec.c_objects
dbreg_rec.o
<END>
<BEGIN> FILE_$(PRJ_DIR)/../dbreg/dbreg_rec.c_tool
C/C++ compiler
<END>
<BEGIN> FILE_$(PRJ_DIR)/../dbreg/dbreg_util.c_dependDone
TRUE
<END>
<BEGIN> FILE_$(PRJ_DIR)/../dbreg/dbreg_util.c_dependencies
$(PRJ_DIR)/db_config.h \
$(PRJ_DIR)/db_int.h \
$(PRJ_DIR)/db.h
<END>
<BEGIN> FILE_$(PRJ_DIR)/../dbreg/dbreg_util.c_objects
dbreg_util.o
<END>
<BEGIN> FILE_$(PRJ_DIR)/../dbreg/dbreg_util.c_tool
C/C++ compiler
<END>
<BEGIN> FILE_$(PRJ_DIR)/../env/db_salloc.c_dependDone
TRUE
<END>
<BEGIN> FILE_$(PRJ_DIR)/../env/db_salloc.c_dependencies
$(PRJ_DIR)/db_config.h \
$(PRJ_DIR)/db_int.h \
$(PRJ_DIR)/db.h
<END>
<BEGIN> FILE_$(PRJ_DIR)/../env/db_salloc.c_objects
db_salloc.o
<END>
<BEGIN> FILE_$(PRJ_DIR)/../env/db_salloc.c_tool
C/C++ compiler
<END>
<BEGIN> FILE_$(PRJ_DIR)/../env/db_shash.c_dependDone
TRUE
<END>
<BEGIN> FILE_$(PRJ_DIR)/../env/db_shash.c_dependencies
$(PRJ_DIR)/db_config.h \
$(PRJ_DIR)/db_int.h \
$(PRJ_DIR)/db.h
<END>
<BEGIN> FILE_$(PRJ_DIR)/../env/db_shash.c_objects
db_shash.o
<END>
<BEGIN> FILE_$(PRJ_DIR)/../env/db_shash.c_tool
C/C++ compiler
<END>
<BEGIN> FILE_$(PRJ_DIR)/../env/env_file.c_dependDone
TRUE
<END>
<BEGIN> FILE_$(PRJ_DIR)/../env/env_file.c_dependencies
$(PRJ_DIR)/db_config.h \
$(PRJ_DIR)/db_int.h \
$(PRJ_DIR)/db.h
<END>
<BEGIN> FILE_$(PRJ_DIR)/../env/env_file.c_objects
env_file.o
<END>
<BEGIN> FILE_$(PRJ_DIR)/../env/env_file.c_tool
C/C++ compiler
<END>
<BEGIN> FILE_$(PRJ_DIR)/../env/env_method.c_dependDone
TRUE
<END>
<BEGIN> FILE_$(PRJ_DIR)/../env/env_method.c_dependencies
$(PRJ_DIR)/db_config.h \
$(PRJ_DIR)/db_int.h \
$(PRJ_DIR)/db.h
<END>
<BEGIN> FILE_$(PRJ_DIR)/../env/env_method.c_objects
env_method.o
<END>
<BEGIN> FILE_$(PRJ_DIR)/../env/env_method.c_tool
C/C++ compiler
<END>
<BEGIN> FILE_$(PRJ_DIR)/../env/env_open.c_dependDone
TRUE
<END>
<BEGIN> FILE_$(PRJ_DIR)/../env/env_open.c_dependencies
$(PRJ_DIR)/db_config.h \
$(PRJ_DIR)/db_int.h \
$(PRJ_DIR)/db.h
<END>
<BEGIN> FILE_$(PRJ_DIR)/../env/env_open.c_objects
env_open.o
<END>
<BEGIN> FILE_$(PRJ_DIR)/../env/env_open.c_tool
C/C++ compiler
<END>
<BEGIN> FILE_$(PRJ_DIR)/../env/env_recover.c_dependDone
TRUE
<END>
<BEGIN> FILE_$(PRJ_DIR)/../env/env_recover.c_dependencies
$(PRJ_DIR)/db_config.h \
$(PRJ_DIR)/db_int.h \
$(PRJ_DIR)/db.h
<END>
<BEGIN> FILE_$(PRJ_DIR)/../env/env_recover.c_objects
env_recover.o
<END>
<BEGIN> FILE_$(PRJ_DIR)/../env/env_recover.c_tool
C/C++ compiler
<END>
<BEGIN> FILE_$(PRJ_DIR)/../env/env_region.c_dependDone
TRUE
<END>
<BEGIN> FILE_$(PRJ_DIR)/../env/env_region.c_dependencies
$(PRJ_DIR)/db_config.h \
$(PRJ_DIR)/db_int.h \
$(PRJ_DIR)/db.h
<END>
<BEGIN> FILE_$(PRJ_DIR)/../env/env_region.c_objects
env_region.o
<END>
<BEGIN> FILE_$(PRJ_DIR)/../env/env_region.c_tool
C/C++ compiler
<END>
<BEGIN> FILE_$(PRJ_DIR)/../fileops/fileops_auto.c_dependDone
TRUE
<END>
<BEGIN> FILE_$(PRJ_DIR)/../fileops/fileops_auto.c_dependencies
$(PRJ_DIR)/db_config.h \
$(PRJ_DIR)/db_int.h \
$(PRJ_DIR)/db.h
<END>
<BEGIN> FILE_$(PRJ_DIR)/../fileops/fileops_auto.c_objects
fileops_auto.o
<END>
<BEGIN> FILE_$(PRJ_DIR)/../fileops/fileops_auto.c_tool
C/C++ compiler
<END>
<BEGIN> FILE_$(PRJ_DIR)/../fileops/fop_basic.c_dependDone
TRUE
<END>
<BEGIN> FILE_$(PRJ_DIR)/../fileops/fop_basic.c_dependencies
$(PRJ_DIR)/db_config.h \
$(PRJ_DIR)/db_int.h \
$(PRJ_DIR)/db.h
<END>
<BEGIN> FILE_$(PRJ_DIR)/../fileops/fop_basic.c_objects
fop_basic.o
<END>
<BEGIN> FILE_$(PRJ_DIR)/../fileops/fop_basic.c_tool
C/C++ compiler
<END>
<BEGIN> FILE_$(PRJ_DIR)/../fileops/fop_rec.c_dependDone
TRUE
<END>
<BEGIN> FILE_$(PRJ_DIR)/../fileops/fop_rec.c_dependencies
$(PRJ_DIR)/db_config.h \
$(PRJ_DIR)/db_int.h \
$(PRJ_DIR)/db.h
<END>
<BEGIN> FILE_$(PRJ_DIR)/../fileops/fop_rec.c_objects
fop_rec.o
<END>
<BEGIN> FILE_$(PRJ_DIR)/../fileops/fop_rec.c_tool
C/C++ compiler
<END>
<BEGIN> FILE_$(PRJ_DIR)/../fileops/fop_util.c_dependDone
TRUE
<END>
<BEGIN> FILE_$(PRJ_DIR)/../fileops/fop_util.c_dependencies
$(PRJ_DIR)/db_config.h \
$(PRJ_DIR)/db_int.h \
$(PRJ_DIR)/db.h
<END>
<BEGIN> FILE_$(PRJ_DIR)/../fileops/fop_util.c_objects
fop_util.o
<END>
<BEGIN> FILE_$(PRJ_DIR)/../fileops/fop_util.c_tool
C/C++ compiler
<END>
<BEGIN> FILE_$(PRJ_DIR)/../hash/hash.c_dependDone
TRUE
<END>
<BEGIN> FILE_$(PRJ_DIR)/../hash/hash.c_dependencies
$(PRJ_DIR)/db_config.h \
$(PRJ_DIR)/db_int.h \
$(PRJ_DIR)/db.h
<END>
<BEGIN> FILE_$(PRJ_DIR)/../hash/hash.c_objects
hash.o
<END>
<BEGIN> FILE_$(PRJ_DIR)/../hash/hash.c_tool
C/C++ compiler
<END>
<BEGIN> FILE_$(PRJ_DIR)/../hash/hash_auto.c_dependDone
TRUE
<END>
<BEGIN> FILE_$(PRJ_DIR)/../hash/hash_auto.c_dependencies
$(PRJ_DIR)/db_config.h \
$(PRJ_DIR)/db_int.h \
$(PRJ_DIR)/db.h
<END>
<BEGIN> FILE_$(PRJ_DIR)/../hash/hash_auto.c_objects
hash_auto.o
<END>
<BEGIN> FILE_$(PRJ_DIR)/../hash/hash_auto.c_tool
C/C++ compiler
<END>
<BEGIN> FILE_$(PRJ_DIR)/../hash/hash_conv.c_dependDone
TRUE
<END>
<BEGIN> FILE_$(PRJ_DIR)/../hash/hash_conv.c_dependencies
$(PRJ_DIR)/db_config.h \
$(PRJ_DIR)/db_int.h \
$(PRJ_DIR)/db.h
<END>
<BEGIN> FILE_$(PRJ_DIR)/../hash/hash_conv.c_objects
hash_conv.o
<END>
<BEGIN> FILE_$(PRJ_DIR)/../hash/hash_conv.c_tool
C/C++ compiler
<END>
<BEGIN> FILE_$(PRJ_DIR)/../hash/hash_dup.c_dependDone
TRUE
<END>
<BEGIN> FILE_$(PRJ_DIR)/../hash/hash_dup.c_dependencies
$(PRJ_DIR)/db_config.h \
$(PRJ_DIR)/db_int.h \
$(PRJ_DIR)/db.h
<END>
<BEGIN> FILE_$(PRJ_DIR)/../hash/hash_dup.c_objects
hash_dup.o
<END>
<BEGIN> FILE_$(PRJ_DIR)/../hash/hash_dup.c_tool
C/C++ compiler
<END>
<BEGIN> FILE_$(PRJ_DIR)/../hash/hash_func.c_dependDone
TRUE
<END>
<BEGIN> FILE_$(PRJ_DIR)/../hash/hash_func.c_dependencies
$(PRJ_DIR)/db_config.h \
$(PRJ_DIR)/db_int.h \
$(PRJ_DIR)/db.h
<END>
<BEGIN> FILE_$(PRJ_DIR)/../hash/hash_func.c_objects
hash_func.o
<END>
<BEGIN> FILE_$(PRJ_DIR)/../hash/hash_func.c_tool
C/C++ compiler
<END>
<BEGIN> FILE_$(PRJ_DIR)/../hash/hash_meta.c_dependDone
TRUE
<END>
<BEGIN> FILE_$(PRJ_DIR)/../hash/hash_meta.c_dependencies
$(PRJ_DIR)/db_config.h \
$(PRJ_DIR)/db_int.h \
$(PRJ_DIR)/db.h
<END>
<BEGIN> FILE_$(PRJ_DIR)/../hash/hash_meta.c_objects
hash_meta.o
<END>
<BEGIN> FILE_$(PRJ_DIR)/../hash/hash_meta.c_tool
C/C++ compiler
<END>
<BEGIN> FILE_$(PRJ_DIR)/../hash/hash_method.c_dependDone
TRUE
<END>
<BEGIN> FILE_$(PRJ_DIR)/../hash/hash_method.c_dependencies
$(PRJ_DIR)/db_config.h \
$(PRJ_DIR)/db_int.h \
$(PRJ_DIR)/db.h
<END>
<BEGIN> FILE_$(PRJ_DIR)/../hash/hash_method.c_objects
hash_method.o
<END>
<BEGIN> FILE_$(PRJ_DIR)/../hash/hash_method.c_tool
C/C++ compiler
<END>
<BEGIN> FILE_$(PRJ_DIR)/../hash/hash_open.c_dependDone
TRUE
<END>
<BEGIN> FILE_$(PRJ_DIR)/../hash/hash_open.c_dependencies
$(PRJ_DIR)/db_config.h \
$(PRJ_DIR)/db_int.h \
$(PRJ_DIR)/db.h
<END>
<BEGIN> FILE_$(PRJ_DIR)/../hash/hash_open.c_objects
hash_open.o
<END>
<BEGIN> FILE_$(PRJ_DIR)/../hash/hash_open.c_tool
C/C++ compiler
<END>
<BEGIN> FILE_$(PRJ_DIR)/../hash/hash_page.c_dependDone
TRUE
<END>
<BEGIN> FILE_$(PRJ_DIR)/../hash/hash_page.c_dependencies
$(PRJ_DIR)/db_config.h \
$(PRJ_DIR)/db_int.h \
$(PRJ_DIR)/db.h
<END>
<BEGIN> FILE_$(PRJ_DIR)/../hash/hash_page.c_objects
hash_page.o
<END>
<BEGIN> FILE_$(PRJ_DIR)/../hash/hash_page.c_tool
C/C++ compiler
<END>
<BEGIN> FILE_$(PRJ_DIR)/../hash/hash_rec.c_dependDone
TRUE
<END>
<BEGIN> FILE_$(PRJ_DIR)/../hash/hash_rec.c_dependencies
$(PRJ_DIR)/db_config.h \
$(PRJ_DIR)/db_int.h \
$(PRJ_DIR)/db.h
<END>
<BEGIN> FILE_$(PRJ_DIR)/../hash/hash_rec.c_objects
hash_rec.o
<END>
<BEGIN> FILE_$(PRJ_DIR)/../hash/hash_rec.c_tool
C/C++ compiler
<END>
<BEGIN> FILE_$(PRJ_DIR)/../hash/hash_reclaim.c_dependDone
TRUE
<END>
<BEGIN> FILE_$(PRJ_DIR)/../hash/hash_reclaim.c_dependencies
$(PRJ_DIR)/db_config.h \
$(PRJ_DIR)/db_int.h \
$(PRJ_DIR)/db.h
<END>
<BEGIN> FILE_$(PRJ_DIR)/../hash/hash_reclaim.c_objects
hash_reclaim.o
<END>
<BEGIN> FILE_$(PRJ_DIR)/../hash/hash_reclaim.c_tool
C/C++ compiler
<END>
<BEGIN> FILE_$(PRJ_DIR)/../hash/hash_stat.c_dependDone
TRUE
<END>
<BEGIN> FILE_$(PRJ_DIR)/../hash/hash_stat.c_dependencies
$(PRJ_DIR)/db_config.h \
$(PRJ_DIR)/db_int.h \
$(PRJ_DIR)/db.h
<END>
<BEGIN> FILE_$(PRJ_DIR)/../hash/hash_stat.c_objects
hash_stat.o
<END>
<BEGIN> FILE_$(PRJ_DIR)/../hash/hash_stat.c_tool
C/C++ compiler
<END>
<BEGIN> FILE_$(PRJ_DIR)/../hash/hash_upgrade.c_dependDone
TRUE
<END>
<BEGIN> FILE_$(PRJ_DIR)/../hash/hash_upgrade.c_dependencies
$(PRJ_DIR)/db_config.h \
$(PRJ_DIR)/db_int.h \
$(PRJ_DIR)/db.h
<END>
<BEGIN> FILE_$(PRJ_DIR)/../hash/hash_upgrade.c_objects
hash_upgrade.o
<END>
<BEGIN> FILE_$(PRJ_DIR)/../hash/hash_upgrade.c_tool
C/C++ compiler
<END>
<BEGIN> FILE_$(PRJ_DIR)/../hash/hash_verify.c_dependDone
TRUE
<END>
<BEGIN> FILE_$(PRJ_DIR)/../hash/hash_verify.c_dependencies
$(PRJ_DIR)/db_config.h \
$(PRJ_DIR)/db_int.h \
$(PRJ_DIR)/db.h
<END>
<BEGIN> FILE_$(PRJ_DIR)/../hash/hash_verify.c_objects
hash_verify.o
<END>
<BEGIN> FILE_$(PRJ_DIR)/../hash/hash_verify.c_tool
C/C++ compiler
<END>
<BEGIN> FILE_$(PRJ_DIR)/../hmac/hmac.c_dependDone
TRUE
<END>
<BEGIN> FILE_$(PRJ_DIR)/../hmac/hmac.c_dependencies
$(PRJ_DIR)/db_config.h \
$(PRJ_DIR)/db_int.h \
$(PRJ_DIR)/db.h
<END>
<BEGIN> FILE_$(PRJ_DIR)/../hmac/hmac.c_objects
hmac.o
<END>
<BEGIN> FILE_$(PRJ_DIR)/../hmac/hmac.c_tool
C/C++ compiler
<END>
<BEGIN> FILE_$(PRJ_DIR)/../hmac/sha1.c_dependDone
TRUE
<END>
<BEGIN> FILE_$(PRJ_DIR)/../hmac/sha1.c_dependencies
$(PRJ_DIR)/db_config.h \
$(PRJ_DIR)/db_int.h \
$(PRJ_DIR)/db.h
<END>
<BEGIN> FILE_$(PRJ_DIR)/../hmac/sha1.c_objects
sha1.o
<END>
<BEGIN> FILE_$(PRJ_DIR)/../hmac/sha1.c_tool
C/C++ compiler
<END>
<BEGIN> FILE_$(PRJ_DIR)/../hsearch/hsearch.c_dependDone
TRUE
<END>
<BEGIN> FILE_$(PRJ_DIR)/../hsearch/hsearch.c_dependencies
$(PRJ_DIR)/db_config.h \
$(PRJ_DIR)/db_int.h \
$(PRJ_DIR)/db.h
<END>
<BEGIN> FILE_$(PRJ_DIR)/../hsearch/hsearch.c_objects
hsearch.o
<END>
<BEGIN> FILE_$(PRJ_DIR)/../hsearch/hsearch.c_tool
C/C++ compiler
<END>
<BEGIN> FILE_$(PRJ_DIR)/../lock/lock.c_dependDone
TRUE
<END>
<BEGIN> FILE_$(PRJ_DIR)/../lock/lock.c_dependencies
$(PRJ_DIR)/db_config.h \
$(PRJ_DIR)/db_int.h \
$(PRJ_DIR)/db.h
<END>
<BEGIN> FILE_$(PRJ_DIR)/../lock/lock.c_objects
lock.o
<END>
<BEGIN> FILE_$(PRJ_DIR)/../lock/lock.c_tool
C/C++ compiler
<END>
<BEGIN> FILE_$(PRJ_DIR)/../lock/lock_deadlock.c_dependDone
TRUE
<END>
<BEGIN> FILE_$(PRJ_DIR)/../lock/lock_deadlock.c_dependencies
$(PRJ_DIR)/db_config.h \
$(PRJ_DIR)/db_int.h \
$(PRJ_DIR)/db.h
<END>
<BEGIN> FILE_$(PRJ_DIR)/../lock/lock_deadlock.c_objects
lock_deadlock.o
<END>
<BEGIN> FILE_$(PRJ_DIR)/../lock/lock_deadlock.c_tool
C/C++ compiler
<END>
<BEGIN> FILE_$(PRJ_DIR)/../lock/lock_method.c_dependDone
TRUE
<END>
<BEGIN> FILE_$(PRJ_DIR)/../lock/lock_method.c_dependencies
$(PRJ_DIR)/db_config.h \
$(PRJ_DIR)/db_int.h \
$(PRJ_DIR)/db.h
<END>
<BEGIN> FILE_$(PRJ_DIR)/../lock/lock_method.c_objects
lock_method.o
<END>
<BEGIN> FILE_$(PRJ_DIR)/../lock/lock_method.c_tool
C/C++ compiler
<END>
<BEGIN> FILE_$(PRJ_DIR)/../lock/lock_region.c_dependDone
TRUE
<END>
<BEGIN> FILE_$(PRJ_DIR)/../lock/lock_region.c_dependencies
$(PRJ_DIR)/db_config.h \
$(PRJ_DIR)/db_int.h \
$(PRJ_DIR)/db.h
<END>
<BEGIN> FILE_$(PRJ_DIR)/../lock/lock_region.c_objects
lock_region.o
<END>
<BEGIN> FILE_$(PRJ_DIR)/../lock/lock_region.c_tool
C/C++ compiler
<END>
<BEGIN> FILE_$(PRJ_DIR)/../lock/lock_stat.c_dependDone
TRUE
<END>
<BEGIN> FILE_$(PRJ_DIR)/../lock/lock_stat.c_dependencies
$(PRJ_DIR)/db_config.h \
$(PRJ_DIR)/db_int.h \
$(PRJ_DIR)/db.h
<END>
<BEGIN> FILE_$(PRJ_DIR)/../lock/lock_stat.c_objects
lock_stat.o
<END>
<BEGIN> FILE_$(PRJ_DIR)/../lock/lock_stat.c_tool
C/C++ compiler
<END>
<BEGIN> FILE_$(PRJ_DIR)/../lock/lock_util.c_dependDone
TRUE
<END>
<BEGIN> FILE_$(PRJ_DIR)/../lock/lock_util.c_dependencies
$(PRJ_DIR)/db_config.h \
$(PRJ_DIR)/db_int.h \
$(PRJ_DIR)/db.h
<END>
<BEGIN> FILE_$(PRJ_DIR)/../lock/lock_util.c_objects
lock_util.o
<END>
<BEGIN> FILE_$(PRJ_DIR)/../lock/lock_util.c_tool
C/C++ compiler
<END>
<BEGIN> FILE_$(PRJ_DIR)/../log/log.c_dependDone
TRUE
<END>
<BEGIN> FILE_$(PRJ_DIR)/../log/log.c_dependencies
$(PRJ_DIR)/db_config.h \
$(PRJ_DIR)/db_int.h \
$(PRJ_DIR)/db.h
<END>
<BEGIN> FILE_$(PRJ_DIR)/../log/log.c_objects
log.o
<END>
<BEGIN> FILE_$(PRJ_DIR)/../log/log.c_tool
C/C++ compiler
<END>
<BEGIN> FILE_$(PRJ_DIR)/../log/log_archive.c_dependDone
TRUE
<END>
<BEGIN> FILE_$(PRJ_DIR)/../log/log_archive.c_dependencies
$(PRJ_DIR)/db_config.h \
$(PRJ_DIR)/db_int.h \
$(PRJ_DIR)/db.h
<END>
<BEGIN> FILE_$(PRJ_DIR)/../log/log_archive.c_objects
log_archive.o
<END>
<BEGIN> FILE_$(PRJ_DIR)/../log/log_archive.c_tool
C/C++ compiler
<END>
<BEGIN> FILE_$(PRJ_DIR)/../log/log_compare.c_dependDone
TRUE
<END>
<BEGIN> FILE_$(PRJ_DIR)/../log/log_compare.c_dependencies
$(PRJ_DIR)/db_config.h \
$(PRJ_DIR)/db_int.h \
$(PRJ_DIR)/db.h
<END>
<BEGIN> FILE_$(PRJ_DIR)/../log/log_compare.c_objects
log_compare.o
<END>
<BEGIN> FILE_$(PRJ_DIR)/../log/log_compare.c_tool
C/C++ compiler
<END>
<BEGIN> FILE_$(PRJ_DIR)/../log/log_get.c_dependDone
TRUE
<END>
<BEGIN> FILE_$(PRJ_DIR)/../log/log_get.c_dependencies
$(PRJ_DIR)/db_config.h \
$(PRJ_DIR)/db_int.h \
$(PRJ_DIR)/db.h
<END>
<BEGIN> FILE_$(PRJ_DIR)/../log/log_get.c_objects
log_get.o
<END>
<BEGIN> FILE_$(PRJ_DIR)/../log/log_get.c_tool
C/C++ compiler
<END>
<BEGIN> FILE_$(PRJ_DIR)/../log/log_method.c_dependDone
TRUE
<END>
<BEGIN> FILE_$(PRJ_DIR)/../log/log_method.c_dependencies
$(PRJ_DIR)/db_config.h \
$(PRJ_DIR)/db_int.h \
$(PRJ_DIR)/db.h
<END>
<BEGIN> FILE_$(PRJ_DIR)/../log/log_method.c_objects
log_method.o
<END>
<BEGIN> FILE_$(PRJ_DIR)/../log/log_method.c_tool
C/C++ compiler
<END>
<BEGIN> FILE_$(PRJ_DIR)/../log/log_put.c_dependDone
TRUE
<END>
<BEGIN> FILE_$(PRJ_DIR)/../log/log_put.c_dependencies
$(PRJ_DIR)/db_config.h \
$(PRJ_DIR)/db_int.h \
$(PRJ_DIR)/db.h
<END>
<BEGIN> FILE_$(PRJ_DIR)/../log/log_put.c_objects
log_put.o
<END>
<BEGIN> FILE_$(PRJ_DIR)/../log/log_put.c_tool
C/C++ compiler
<END>
<BEGIN> FILE_$(PRJ_DIR)/../mp/mp_alloc.c_dependDone
TRUE
<END>
<BEGIN> FILE_$(PRJ_DIR)/../mp/mp_alloc.c_dependencies
$(PRJ_DIR)/db_config.h \
$(PRJ_DIR)/db_int.h \
$(PRJ_DIR)/db.h
<END>
<BEGIN> FILE_$(PRJ_DIR)/../mp/mp_alloc.c_objects
mp_alloc.o
<END>
<BEGIN> FILE_$(PRJ_DIR)/../mp/mp_alloc.c_tool
C/C++ compiler
<END>
<BEGIN> FILE_$(PRJ_DIR)/../mp/mp_bh.c_dependDone
TRUE
<END>
<BEGIN> FILE_$(PRJ_DIR)/../mp/mp_bh.c_dependencies
$(PRJ_DIR)/db_config.h \
$(PRJ_DIR)/db_int.h \
$(PRJ_DIR)/db.h
<END>
<BEGIN> FILE_$(PRJ_DIR)/../mp/mp_bh.c_objects
mp_bh.o
<END>
<BEGIN> FILE_$(PRJ_DIR)/../mp/mp_bh.c_tool
C/C++ compiler
<END>
<BEGIN> FILE_$(PRJ_DIR)/../mp/mp_fget.c_dependDone
TRUE
<END>
<BEGIN> FILE_$(PRJ_DIR)/../mp/mp_fget.c_dependencies
$(PRJ_DIR)/db_config.h \
$(PRJ_DIR)/db_int.h \
$(PRJ_DIR)/db.h
<END>
<BEGIN> FILE_$(PRJ_DIR)/../mp/mp_fget.c_objects
mp_fget.o
<END>
<BEGIN> FILE_$(PRJ_DIR)/../mp/mp_fget.c_tool
C/C++ compiler
<END>
<BEGIN> FILE_$(PRJ_DIR)/../mp/mp_fopen.c_dependDone
TRUE
<END>
<BEGIN> FILE_$(PRJ_DIR)/../mp/mp_fopen.c_dependencies
$(PRJ_DIR)/db_config.h \
$(PRJ_DIR)/db_int.h \
$(PRJ_DIR)/db.h
<END>
<BEGIN> FILE_$(PRJ_DIR)/../mp/mp_fopen.c_objects
mp_fopen.o
<END>
<BEGIN> FILE_$(PRJ_DIR)/../mp/mp_fopen.c_tool
C/C++ compiler
<END>
<BEGIN> FILE_$(PRJ_DIR)/../mp/mp_fput.c_dependDone
TRUE
<END>
<BEGIN> FILE_$(PRJ_DIR)/../mp/mp_fput.c_dependencies
$(PRJ_DIR)/db_config.h \
$(PRJ_DIR)/db_int.h \
$(PRJ_DIR)/db.h
<END>
<BEGIN> FILE_$(PRJ_DIR)/../mp/mp_fput.c_objects
mp_fput.o
<END>
<BEGIN> FILE_$(PRJ_DIR)/../mp/mp_fput.c_tool
C/C++ compiler
<END>
<BEGIN> FILE_$(PRJ_DIR)/../mp/mp_fset.c_dependDone
TRUE
<END>
<BEGIN> FILE_$(PRJ_DIR)/../mp/mp_fset.c_dependencies
$(PRJ_DIR)/db_config.h \
$(PRJ_DIR)/db_int.h \
$(PRJ_DIR)/db.h
<END>
<BEGIN> FILE_$(PRJ_DIR)/../mp/mp_fset.c_objects
mp_fset.o
<END>
<BEGIN> FILE_$(PRJ_DIR)/../mp/mp_fset.c_tool
C/C++ compiler
<END>
<BEGIN> FILE_$(PRJ_DIR)/../mp/mp_method.c_dependDone
TRUE
<END>
<BEGIN> FILE_$(PRJ_DIR)/../mp/mp_method.c_dependencies
$(PRJ_DIR)/db_config.h \
$(PRJ_DIR)/db_int.h \
$(PRJ_DIR)/db.h
<END>
<BEGIN> FILE_$(PRJ_DIR)/../mp/mp_method.c_objects
mp_method.o
<END>
<BEGIN> FILE_$(PRJ_DIR)/../mp/mp_method.c_tool
C/C++ compiler
<END>
<BEGIN> FILE_$(PRJ_DIR)/../mp/mp_region.c_dependDone
TRUE
<END>
<BEGIN> FILE_$(PRJ_DIR)/../mp/mp_region.c_dependencies
$(PRJ_DIR)/db_config.h \
$(PRJ_DIR)/db_int.h \
$(PRJ_DIR)/db.h
<END>
<BEGIN> FILE_$(PRJ_DIR)/../mp/mp_region.c_objects
mp_region.o
<END>
<BEGIN> FILE_$(PRJ_DIR)/../mp/mp_region.c_tool
C/C++ compiler
<END>
<BEGIN> FILE_$(PRJ_DIR)/../mp/mp_register.c_dependDone
TRUE
<END>
<BEGIN> FILE_$(PRJ_DIR)/../mp/mp_register.c_dependencies
$(PRJ_DIR)/db_config.h \
$(PRJ_DIR)/db_int.h \
$(PRJ_DIR)/db.h
<END>
<BEGIN> FILE_$(PRJ_DIR)/../mp/mp_register.c_objects
mp_register.o
<END>
<BEGIN> FILE_$(PRJ_DIR)/../mp/mp_register.c_tool
C/C++ compiler
<END>
<BEGIN> FILE_$(PRJ_DIR)/../mp/mp_stat.c_dependDone
TRUE
<END>
<BEGIN> FILE_$(PRJ_DIR)/../mp/mp_stat.c_dependencies
$(PRJ_DIR)/db_config.h \
$(PRJ_DIR)/db_int.h \
$(PRJ_DIR)/db.h
<END>
<BEGIN> FILE_$(PRJ_DIR)/../mp/mp_stat.c_objects
mp_stat.o
<END>
<BEGIN> FILE_$(PRJ_DIR)/../mp/mp_stat.c_tool
C/C++ compiler
<END>
<BEGIN> FILE_$(PRJ_DIR)/../mp/mp_sync.c_dependDone
TRUE
<END>
<BEGIN> FILE_$(PRJ_DIR)/../mp/mp_sync.c_dependencies
$(PRJ_DIR)/db_config.h \
$(PRJ_DIR)/db_int.h \
$(PRJ_DIR)/db.h
<END>
<BEGIN> FILE_$(PRJ_DIR)/../mp/mp_sync.c_objects
mp_sync.o
<END>
<BEGIN> FILE_$(PRJ_DIR)/../mp/mp_sync.c_tool
C/C++ compiler
<END>
<BEGIN> FILE_$(PRJ_DIR)/../mp/mp_trickle.c_dependDone
TRUE
<END>
<BEGIN> FILE_$(PRJ_DIR)/../mp/mp_trickle.c_dependencies
$(PRJ_DIR)/db_config.h \
$(PRJ_DIR)/db_int.h \
$(PRJ_DIR)/db.h
<END>
<BEGIN> FILE_$(PRJ_DIR)/../mp/mp_trickle.c_objects
mp_trickle.o
<END>
<BEGIN> FILE_$(PRJ_DIR)/../mp/mp_trickle.c_tool
C/C++ compiler
<END>
<BEGIN> FILE_$(PRJ_DIR)/../mutex/mut_tas.c_dependDone
TRUE
<END>
<BEGIN> FILE_$(PRJ_DIR)/../mutex/mut_tas.c_dependencies
$(PRJ_DIR)/db_config.h \
$(PRJ_DIR)/db_int.h \
$(PRJ_DIR)/db.h
<END>
<BEGIN> FILE_$(PRJ_DIR)/../mutex/mut_tas.c_objects
mut_tas.o
<END>
<BEGIN> FILE_$(PRJ_DIR)/../mutex/mut_tas.c_tool
C/C++ compiler
<END>
<BEGIN> FILE_$(PRJ_DIR)/../mutex/mutex.c_dependDone
TRUE
<END>
<BEGIN> FILE_$(PRJ_DIR)/../mutex/mutex.c_dependencies
$(PRJ_DIR)/db_config.h \
$(PRJ_DIR)/db_int.h \
$(PRJ_DIR)/db.h
<END>
<BEGIN> FILE_$(PRJ_DIR)/../mutex/mutex.c_objects
mutex.o
<END>
<BEGIN> FILE_$(PRJ_DIR)/../mutex/mutex.c_tool
C/C++ compiler
<END>
<BEGIN> FILE_$(PRJ_DIR)/../os/os_alloc.c_dependDone
TRUE
<END>
<BEGIN> FILE_$(PRJ_DIR)/../os/os_alloc.c_dependencies
$(PRJ_DIR)/db_config.h \
$(PRJ_DIR)/db_int.h \
$(PRJ_DIR)/db.h
<END>
<BEGIN> FILE_$(PRJ_DIR)/../os/os_alloc.c_objects
os_alloc.o
<END>
<BEGIN> FILE_$(PRJ_DIR)/../os/os_alloc.c_tool
C/C++ compiler
<END>
<BEGIN> FILE_$(PRJ_DIR)/../os/os_clock.c_dependDone
TRUE
<END>
<BEGIN> FILE_$(PRJ_DIR)/../os/os_clock.c_dependencies
$(PRJ_DIR)/db_config.h \
$(PRJ_DIR)/db_int.h \
$(PRJ_DIR)/db.h
<END>
<BEGIN> FILE_$(PRJ_DIR)/../os/os_clock.c_objects
os_clock.o
<END>
<BEGIN> FILE_$(PRJ_DIR)/../os/os_clock.c_tool
C/C++ compiler
<END>
<BEGIN> FILE_$(PRJ_DIR)/../os/os_dir.c_dependDone
TRUE
<END>
<BEGIN> FILE_$(PRJ_DIR)/../os/os_dir.c_dependencies
$(PRJ_DIR)/db_config.h \
$(PRJ_DIR)/db_int.h \
$(PRJ_DIR)/db.h
<END>
<BEGIN> FILE_$(PRJ_DIR)/../os/os_dir.c_objects
os_dir.o
<END>
<BEGIN> FILE_$(PRJ_DIR)/../os/os_dir.c_tool
C/C++ compiler
<END>
<BEGIN> FILE_$(PRJ_DIR)/../os/os_errno.c_dependDone
TRUE
<END>
<BEGIN> FILE_$(PRJ_DIR)/../os/os_errno.c_dependencies
$(PRJ_DIR)/db_config.h \
$(PRJ_DIR)/db_int.h \
$(PRJ_DIR)/db.h
<END>
<BEGIN> FILE_$(PRJ_DIR)/../os/os_errno.c_objects
os_errno.o
<END>
<BEGIN> FILE_$(PRJ_DIR)/../os/os_errno.c_tool
C/C++ compiler
<END>
<BEGIN> FILE_$(PRJ_DIR)/../os/os_fid.c_dependDone
TRUE
<END>
<BEGIN> FILE_$(PRJ_DIR)/../os/os_fid.c_dependencies
$(PRJ_DIR)/db_config.h \
$(PRJ_DIR)/db_int.h \
$(PRJ_DIR)/db.h
<END>
<BEGIN> FILE_$(PRJ_DIR)/../os/os_fid.c_objects
os_fid.o
<END>
<BEGIN> FILE_$(PRJ_DIR)/../os/os_fid.c_tool
C/C++ compiler
<END>
<BEGIN> FILE_$(PRJ_DIR)/../os/os_fsync.c_dependDone
TRUE
<END>
<BEGIN> FILE_$(PRJ_DIR)/../os/os_fsync.c_dependencies
$(PRJ_DIR)/db_config.h \
$(PRJ_DIR)/db_int.h \
$(PRJ_DIR)/db.h
<END>
<BEGIN> FILE_$(PRJ_DIR)/../os/os_fsync.c_objects
os_fsync.o
<END>
<BEGIN> FILE_$(PRJ_DIR)/../os/os_fsync.c_tool
C/C++ compiler
<END>
<BEGIN> FILE_$(PRJ_DIR)/../os/os_handle.c_dependDone
TRUE
<END>
<BEGIN> FILE_$(PRJ_DIR)/../os/os_handle.c_dependencies
$(PRJ_DIR)/db_config.h \
$(PRJ_DIR)/db_int.h \
$(PRJ_DIR)/db.h
<END>
<BEGIN> FILE_$(PRJ_DIR)/../os/os_handle.c_objects
os_handle.o
<END>
<BEGIN> FILE_$(PRJ_DIR)/../os/os_handle.c_tool
C/C++ compiler
<END>
<BEGIN> FILE_$(PRJ_DIR)/../os/os_id.c_dependDone
TRUE
<END>
<BEGIN> FILE_$(PRJ_DIR)/../os/os_id.c_dependencies
$(PRJ_DIR)/db_config.h \
$(PRJ_DIR)/db_int.h \
$(PRJ_DIR)/db.h
<END>
<BEGIN> FILE_$(PRJ_DIR)/../os/os_id.c_objects
os_id.o
<END>
<BEGIN> FILE_$(PRJ_DIR)/../os/os_id.c_tool
C/C++ compiler
<END>
<BEGIN> FILE_$(PRJ_DIR)/../os/os_method.c_dependDone
TRUE
<END>
<BEGIN> FILE_$(PRJ_DIR)/../os/os_method.c_dependencies
$(PRJ_DIR)/db_config.h \
$(PRJ_DIR)/db_int.h \
$(PRJ_DIR)/db.h
<END>
<BEGIN> FILE_$(PRJ_DIR)/../os/os_method.c_objects
os_method.o
<END>
<BEGIN> FILE_$(PRJ_DIR)/../os/os_method.c_tool
C/C++ compiler
<END>
<BEGIN> FILE_$(PRJ_DIR)/../os/os_oflags.c_dependDone
TRUE
<END>
<BEGIN> FILE_$(PRJ_DIR)/../os/os_oflags.c_dependencies
$(PRJ_DIR)/db_config.h \
$(PRJ_DIR)/db_int.h \
$(PRJ_DIR)/db.h
<END>
<BEGIN> FILE_$(PRJ_DIR)/../os/os_oflags.c_objects
os_oflags.o
<END>
<BEGIN> FILE_$(PRJ_DIR)/../os/os_oflags.c_tool
C/C++ compiler
<END>
<BEGIN> FILE_$(PRJ_DIR)/../os/os_open.c_dependDone
TRUE
<END>
<BEGIN> FILE_$(PRJ_DIR)/../os/os_open.c_dependencies
$(PRJ_DIR)/db_config.h \
$(PRJ_DIR)/db_int.h \
$(PRJ_DIR)/db.h
<END>
<BEGIN> FILE_$(PRJ_DIR)/../os/os_open.c_objects
os_open.o
<END>
<BEGIN> FILE_$(PRJ_DIR)/../os/os_open.c_tool
C/C++ compiler
<END>
<BEGIN> FILE_$(PRJ_DIR)/../os/os_region.c_dependDone
TRUE
<END>
<BEGIN> FILE_$(PRJ_DIR)/../os/os_region.c_dependencies
$(PRJ_DIR)/db_config.h \
$(PRJ_DIR)/db_int.h \
$(PRJ_DIR)/db.h
<END>
<BEGIN> FILE_$(PRJ_DIR)/../os/os_region.c_objects
os_region.o
<END>
<BEGIN> FILE_$(PRJ_DIR)/../os/os_region.c_tool
C/C++ compiler
<END>
<BEGIN> FILE_$(PRJ_DIR)/../os/os_rename.c_dependDone
TRUE
<END>
<BEGIN> FILE_$(PRJ_DIR)/../os/os_rename.c_dependencies
$(PRJ_DIR)/db_config.h \
$(PRJ_DIR)/db_int.h \
$(PRJ_DIR)/db.h
<END>
<BEGIN> FILE_$(PRJ_DIR)/../os/os_rename.c_objects
os_rename.o
<END>
<BEGIN> FILE_$(PRJ_DIR)/../os/os_rename.c_tool
C/C++ compiler
<END>
<BEGIN> FILE_$(PRJ_DIR)/../os/os_root.c_dependDone
TRUE
<END>
<BEGIN> FILE_$(PRJ_DIR)/../os/os_root.c_dependencies
$(PRJ_DIR)/db_config.h \
$(PRJ_DIR)/db_int.h \
$(PRJ_DIR)/db.h
<END>
<BEGIN> FILE_$(PRJ_DIR)/../os/os_root.c_objects
os_root.o
<END>
<BEGIN> FILE_$(PRJ_DIR)/../os/os_root.c_tool
C/C++ compiler
<END>
<BEGIN> FILE_$(PRJ_DIR)/../os/os_rpath.c_dependDone
TRUE
<END>
<BEGIN> FILE_$(PRJ_DIR)/../os/os_rpath.c_dependencies
$(PRJ_DIR)/db_config.h \
$(PRJ_DIR)/db_int.h \
$(PRJ_DIR)/db.h
<END>
<BEGIN> FILE_$(PRJ_DIR)/../os/os_rpath.c_objects
os_rpath.o
<END>
<BEGIN> FILE_$(PRJ_DIR)/../os/os_rpath.c_tool
C/C++ compiler
<END>
<BEGIN> FILE_$(PRJ_DIR)/../os/os_rw.c_dependDone
TRUE
<END>
<BEGIN> FILE_$(PRJ_DIR)/../os/os_rw.c_dependencies
$(PRJ_DIR)/db_config.h \
$(PRJ_DIR)/db_int.h \
$(PRJ_DIR)/db.h
<END>
<BEGIN> FILE_$(PRJ_DIR)/../os/os_rw.c_objects
os_rw.o
<END>
<BEGIN> FILE_$(PRJ_DIR)/../os/os_rw.c_tool
C/C++ compiler
<END>
<BEGIN> FILE_$(PRJ_DIR)/../os/os_seek.c_dependDone
TRUE
<END>
<BEGIN> FILE_$(PRJ_DIR)/../os/os_seek.c_dependencies
$(PRJ_DIR)/db_config.h \
$(PRJ_DIR)/db_int.h \
$(PRJ_DIR)/db.h
<END>
<BEGIN> FILE_$(PRJ_DIR)/../os/os_seek.c_objects
os_seek.o
<END>
<BEGIN> FILE_$(PRJ_DIR)/../os/os_seek.c_tool
C/C++ compiler
<END>
<BEGIN> FILE_$(PRJ_DIR)/../os/os_sleep.c_dependDone
TRUE
<END>
<BEGIN> FILE_$(PRJ_DIR)/../os/os_sleep.c_dependencies
$(PRJ_DIR)/db_config.h \
$(PRJ_DIR)/db_int.h \
$(PRJ_DIR)/db.h
<END>
<BEGIN> FILE_$(PRJ_DIR)/../os/os_sleep.c_objects
os_sleep.o
<END>
<BEGIN> FILE_$(PRJ_DIR)/../os/os_sleep.c_tool
C/C++ compiler
<END>
<BEGIN> FILE_$(PRJ_DIR)/../os/os_spin.c_dependDone
TRUE
<END>
<BEGIN> FILE_$(PRJ_DIR)/../os/os_spin.c_dependencies
$(PRJ_DIR)/db_config.h \
$(PRJ_DIR)/db_int.h \
$(PRJ_DIR)/db.h
<END>
<BEGIN> FILE_$(PRJ_DIR)/../os/os_spin.c_objects
os_spin.o
<END>
<BEGIN> FILE_$(PRJ_DIR)/../os/os_spin.c_tool
C/C++ compiler
<END>
<BEGIN> FILE_$(PRJ_DIR)/../os/os_stat.c_dependDone
TRUE
<END>
<BEGIN> FILE_$(PRJ_DIR)/../os/os_stat.c_dependencies
$(PRJ_DIR)/db_config.h \
$(PRJ_DIR)/db_int.h \
$(PRJ_DIR)/db.h
<END>
<BEGIN> FILE_$(PRJ_DIR)/../os/os_stat.c_objects
os_stat.o
<END>
<BEGIN> FILE_$(PRJ_DIR)/../os/os_stat.c_tool
C/C++ compiler
<END>
<BEGIN> FILE_$(PRJ_DIR)/../os/os_tmpdir.c_dependDone
TRUE
<END>
<BEGIN> FILE_$(PRJ_DIR)/../os/os_tmpdir.c_dependencies
$(PRJ_DIR)/db_config.h \
$(PRJ_DIR)/db_int.h \
$(PRJ_DIR)/db.h
<END>
<BEGIN> FILE_$(PRJ_DIR)/../os/os_tmpdir.c_objects
os_tmpdir.o
<END>
<BEGIN> FILE_$(PRJ_DIR)/../os/os_tmpdir.c_tool
C/C++ compiler
<END>
<BEGIN> FILE_$(PRJ_DIR)/../os/os_unlink.c_dependDone
TRUE
<END>
<BEGIN> FILE_$(PRJ_DIR)/../os/os_unlink.c_dependencies
$(PRJ_DIR)/db_config.h \
$(PRJ_DIR)/db_int.h \
$(PRJ_DIR)/db.h
<END>
<BEGIN> FILE_$(PRJ_DIR)/../os/os_unlink.c_objects
os_unlink.o
<END>
<BEGIN> FILE_$(PRJ_DIR)/../os/os_unlink.c_tool
C/C++ compiler
<END>
<BEGIN> FILE_$(PRJ_DIR)/../os_vxworks/os_vx_abs.c_dependDone
TRUE
<END>
<BEGIN> FILE_$(PRJ_DIR)/../os_vxworks/os_vx_abs.c_dependencies
$(PRJ_DIR)/db_config.h \
$(PRJ_DIR)/db_int.h \
$(PRJ_DIR)/db.h
<END>
<BEGIN> FILE_$(PRJ_DIR)/../os_vxworks/os_vx_abs.c_objects
os_vx_abs.o
<END>
<BEGIN> FILE_$(PRJ_DIR)/../os_vxworks/os_vx_abs.c_tool
C/C++ compiler
<END>
<BEGIN> FILE_$(PRJ_DIR)/../os_vxworks/os_vx_config.c_dependDone
TRUE
<END>
<BEGIN> FILE_$(PRJ_DIR)/../os_vxworks/os_vx_config.c_dependencies
$(PRJ_DIR)/db_config.h \
$(PRJ_DIR)/db_int.h \
$(PRJ_DIR)/db.h
<END>
<BEGIN> FILE_$(PRJ_DIR)/../os_vxworks/os_vx_config.c_objects
os_vx_config.o
<END>
<BEGIN> FILE_$(PRJ_DIR)/../os_vxworks/os_vx_config.c_tool
C/C++ compiler
<END>
<BEGIN> FILE_$(PRJ_DIR)/../os_vxworks/os_vx_map.c_dependDone
TRUE
<END>
<BEGIN> FILE_$(PRJ_DIR)/../os_vxworks/os_vx_map.c_dependencies
$(PRJ_DIR)/db_config.h \
$(PRJ_DIR)/db_int.h \
$(PRJ_DIR)/db.h
<END>
<BEGIN> FILE_$(PRJ_DIR)/../os_vxworks/os_vx_map.c_objects
os_vx_map.o
<END>
<BEGIN> FILE_$(PRJ_DIR)/../os_vxworks/os_vx_map.c_tool
C/C++ compiler
<END>
<BEGIN> FILE_$(PRJ_DIR)/../qam/qam.c_dependDone
TRUE
<END>
<BEGIN> FILE_$(PRJ_DIR)/../qam/qam.c_dependencies
$(PRJ_DIR)/db_config.h \
$(PRJ_DIR)/db_int.h \
$(PRJ_DIR)/db.h
<END>
<BEGIN> FILE_$(PRJ_DIR)/../qam/qam.c_objects
qam.o
<END>
<BEGIN> FILE_$(PRJ_DIR)/../qam/qam.c_tool
C/C++ compiler
<END>
<BEGIN> FILE_$(PRJ_DIR)/../qam/qam_auto.c_dependDone
TRUE
<END>
<BEGIN> FILE_$(PRJ_DIR)/../qam/qam_auto.c_dependencies
$(PRJ_DIR)/db_config.h \
$(PRJ_DIR)/db_int.h \
$(PRJ_DIR)/db.h
<END>
<BEGIN> FILE_$(PRJ_DIR)/../qam/qam_auto.c_objects
qam_auto.o
<END>
<BEGIN> FILE_$(PRJ_DIR)/../qam/qam_auto.c_tool
C/C++ compiler
<END>
<BEGIN> FILE_$(PRJ_DIR)/../qam/qam_conv.c_dependDone
TRUE
<END>
<BEGIN> FILE_$(PRJ_DIR)/../qam/qam_conv.c_dependencies
$(PRJ_DIR)/db_config.h \
$(PRJ_DIR)/db_int.h \
$(PRJ_DIR)/db.h
<END>
<BEGIN> FILE_$(PRJ_DIR)/../qam/qam_conv.c_objects
qam_conv.o
<END>
<BEGIN> FILE_$(PRJ_DIR)/../qam/qam_conv.c_tool
C/C++ compiler
<END>
<BEGIN> FILE_$(PRJ_DIR)/../qam/qam_files.c_dependDone
TRUE
<END>
<BEGIN> FILE_$(PRJ_DIR)/../qam/qam_files.c_dependencies
$(PRJ_DIR)/db_config.h \
$(PRJ_DIR)/db_int.h \
$(PRJ_DIR)/db.h
<END>
<BEGIN> FILE_$(PRJ_DIR)/../qam/qam_files.c_objects
qam_files.o
<END>
<BEGIN> FILE_$(PRJ_DIR)/../qam/qam_files.c_tool
C/C++ compiler
<END>
<BEGIN> FILE_$(PRJ_DIR)/../qam/qam_method.c_dependDone
TRUE
<END>
<BEGIN> FILE_$(PRJ_DIR)/../qam/qam_method.c_dependencies
$(PRJ_DIR)/db_config.h \
$(PRJ_DIR)/db_int.h \
$(PRJ_DIR)/db.h
<END>
<BEGIN> FILE_$(PRJ_DIR)/../qam/qam_method.c_objects
qam_method.o
<END>
<BEGIN> FILE_$(PRJ_DIR)/../qam/qam_method.c_tool
C/C++ compiler
<END>
<BEGIN> FILE_$(PRJ_DIR)/../qam/qam_open.c_dependDone
TRUE
<END>
<BEGIN> FILE_$(PRJ_DIR)/../qam/qam_open.c_dependencies
$(PRJ_DIR)/db_config.h \
$(PRJ_DIR)/db_int.h \
$(PRJ_DIR)/db.h
<END>
<BEGIN> FILE_$(PRJ_DIR)/../qam/qam_open.c_objects
qam_open.o
<END>
<BEGIN> FILE_$(PRJ_DIR)/../qam/qam_open.c_tool
C/C++ compiler
<END>
<BEGIN> FILE_$(PRJ_DIR)/../qam/qam_rec.c_dependDone
TRUE
<END>
<BEGIN> FILE_$(PRJ_DIR)/../qam/qam_rec.c_dependencies
$(PRJ_DIR)/db_config.h \
$(PRJ_DIR)/db_int.h \
$(PRJ_DIR)/db.h
<END>
<BEGIN> FILE_$(PRJ_DIR)/../qam/qam_rec.c_objects
qam_rec.o
<END>
<BEGIN> FILE_$(PRJ_DIR)/../qam/qam_rec.c_tool
C/C++ compiler
<END>
<BEGIN> FILE_$(PRJ_DIR)/../qam/qam_stat.c_dependDone
TRUE
<END>
<BEGIN> FILE_$(PRJ_DIR)/../qam/qam_stat.c_dependencies
$(PRJ_DIR)/db_config.h \
$(PRJ_DIR)/db_int.h \
$(PRJ_DIR)/db.h
<END>
<BEGIN> FILE_$(PRJ_DIR)/../qam/qam_stat.c_objects
qam_stat.o
<END>
<BEGIN> FILE_$(PRJ_DIR)/../qam/qam_stat.c_tool
C/C++ compiler
<END>
<BEGIN> FILE_$(PRJ_DIR)/../qam/qam_upgrade.c_dependDone
TRUE
<END>
<BEGIN> FILE_$(PRJ_DIR)/../qam/qam_upgrade.c_dependencies
$(PRJ_DIR)/db_config.h \
$(PRJ_DIR)/db_int.h \
$(PRJ_DIR)/db.h
<END>
<BEGIN> FILE_$(PRJ_DIR)/../qam/qam_upgrade.c_objects
qam_upgrade.o
<END>
<BEGIN> FILE_$(PRJ_DIR)/../qam/qam_upgrade.c_tool
C/C++ compiler
<END>
<BEGIN> FILE_$(PRJ_DIR)/../qam/qam_verify.c_dependDone
TRUE
<END>
<BEGIN> FILE_$(PRJ_DIR)/../qam/qam_verify.c_dependencies
$(PRJ_DIR)/db_config.h \
$(PRJ_DIR)/db_int.h \
$(PRJ_DIR)/db.h
<END>
<BEGIN> FILE_$(PRJ_DIR)/../qam/qam_verify.c_objects
qam_verify.o
<END>
<BEGIN> FILE_$(PRJ_DIR)/../qam/qam_verify.c_tool
C/C++ compiler
<END>
<BEGIN> FILE_$(PRJ_DIR)/../rep/rep_method.c_dependDone
TRUE
<END>
<BEGIN> FILE_$(PRJ_DIR)/../rep/rep_method.c_dependencies
$(PRJ_DIR)/db_config.h \
$(PRJ_DIR)/db_int.h \
$(PRJ_DIR)/db.h
<END>
<BEGIN> FILE_$(PRJ_DIR)/../rep/rep_method.c_objects
rep_method.o
<END>
<BEGIN> FILE_$(PRJ_DIR)/../rep/rep_method.c_tool
C/C++ compiler
<END>
<BEGIN> FILE_$(PRJ_DIR)/../rep/rep_record.c_dependDone
TRUE
<END>
<BEGIN> FILE_$(PRJ_DIR)/../rep/rep_record.c_dependencies
$(PRJ_DIR)/db_config.h \
$(PRJ_DIR)/db_int.h \
$(PRJ_DIR)/db.h
<END>
<BEGIN> FILE_$(PRJ_DIR)/../rep/rep_record.c_objects
rep_record.o
<END>
<BEGIN> FILE_$(PRJ_DIR)/../rep/rep_record.c_tool
C/C++ compiler
<END>
<BEGIN> FILE_$(PRJ_DIR)/../rep/rep_region.c_dependDone
TRUE
<END>
<BEGIN> FILE_$(PRJ_DIR)/../rep/rep_region.c_dependencies
$(PRJ_DIR)/db_config.h \
$(PRJ_DIR)/db_int.h \
$(PRJ_DIR)/db.h
<END>
<BEGIN> FILE_$(PRJ_DIR)/../rep/rep_region.c_objects
rep_region.o
<END>
<BEGIN> FILE_$(PRJ_DIR)/../rep/rep_region.c_tool
C/C++ compiler
<END>
<BEGIN> FILE_$(PRJ_DIR)/../rep/rep_util.c_dependDone
TRUE
<END>
<BEGIN> FILE_$(PRJ_DIR)/../rep/rep_util.c_dependencies
$(PRJ_DIR)/db_config.h \
$(PRJ_DIR)/db_int.h \
$(PRJ_DIR)/db.h
<END>
<BEGIN> FILE_$(PRJ_DIR)/../rep/rep_util.c_objects
rep_util.o
<END>
<BEGIN> FILE_$(PRJ_DIR)/../rep/rep_util.c_tool
C/C++ compiler
<END>
<BEGIN> FILE_$(PRJ_DIR)/../rpc_client/client.c_dependDone
TRUE
<END>
<BEGIN> FILE_$(PRJ_DIR)/../rpc_client/client.c_dependencies
$(PRJ_DIR)/db_config.h \
$(PRJ_DIR)/db_int.h \
$(PRJ_DIR)/db.h
<END>
<BEGIN> FILE_$(PRJ_DIR)/../rpc_client/client.c_objects
client.o
<END>
<BEGIN> FILE_$(PRJ_DIR)/../rpc_client/client.c_tool
C/C++ compiler
<END>
<BEGIN> FILE_$(PRJ_DIR)/../rpc_client/db_server_clnt.c_dependDone
TRUE
<END>
<BEGIN> FILE_$(PRJ_DIR)/../rpc_client/db_server_clnt.c_dependencies
$(PRJ_DIR)/db_config.h \
$(PRJ_DIR)/db_int.h \
$(PRJ_DIR)/db.h
<END>
<BEGIN> FILE_$(PRJ_DIR)/../rpc_client/db_server_clnt.c_objects
db_server_clnt.o
<END>
<BEGIN> FILE_$(PRJ_DIR)/../rpc_client/db_server_clnt.c_tool
C/C++ compiler
<END>
<BEGIN> FILE_$(PRJ_DIR)/../rpc_client/gen_client.c_dependDone
TRUE
<END>
<BEGIN> FILE_$(PRJ_DIR)/../rpc_client/gen_client.c_dependencies
$(PRJ_DIR)/db_config.h \
$(PRJ_DIR)/db_int.h \
$(PRJ_DIR)/db.h
<END>
<BEGIN> FILE_$(PRJ_DIR)/../rpc_client/gen_client.c_objects
gen_client.o
<END>
<BEGIN> FILE_$(PRJ_DIR)/../rpc_client/gen_client.c_tool
C/C++ compiler
<END>
<BEGIN> FILE_$(PRJ_DIR)/../rpc_client/gen_client_ret.c_dependDone
TRUE
<END>
<BEGIN> FILE_$(PRJ_DIR)/../rpc_client/gen_client_ret.c_dependencies
$(PRJ_DIR)/db_config.h \
$(PRJ_DIR)/db_int.h \
$(PRJ_DIR)/db.h
<END>
<BEGIN> FILE_$(PRJ_DIR)/../rpc_client/gen_client_ret.c_objects
gen_client_ret.o
<END>
<BEGIN> FILE_$(PRJ_DIR)/../rpc_client/gen_client_ret.c_tool
C/C++ compiler
<END>
<BEGIN> FILE_$(PRJ_DIR)/../rpc_server/c/db_server_xdr.c_dependDone
TRUE
<END>
<BEGIN> FILE_$(PRJ_DIR)/../rpc_server/c/db_server_xdr.c_dependencies
$(PRJ_DIR)/db_config.h \
$(PRJ_DIR)/db_int.h \
$(PRJ_DIR)/db.h
<END>
<BEGIN> FILE_$(PRJ_DIR)/../rpc_server/c/db_server_xdr.c_objects
db_server_xdr.o
<END>
<BEGIN> FILE_$(PRJ_DIR)/../rpc_server/c/db_server_xdr.c_tool
C/C++ compiler
<END>
<BEGIN> FILE_$(PRJ_DIR)/../txn/txn.c_dependDone
TRUE
<END>
<BEGIN> FILE_$(PRJ_DIR)/../txn/txn.c_dependencies
$(PRJ_DIR)/db_config.h \
$(PRJ_DIR)/db_int.h \
$(PRJ_DIR)/db.h
<END>
<BEGIN> FILE_$(PRJ_DIR)/../txn/txn.c_objects
txn.o
<END>
<BEGIN> FILE_$(PRJ_DIR)/../txn/txn.c_tool
C/C++ compiler
<END>
<BEGIN> FILE_$(PRJ_DIR)/../txn/txn_auto.c_dependDone
TRUE
<END>
<BEGIN> FILE_$(PRJ_DIR)/../txn/txn_auto.c_dependencies
$(PRJ_DIR)/db_config.h \
$(PRJ_DIR)/db_int.h \
$(PRJ_DIR)/db.h
<END>
<BEGIN> FILE_$(PRJ_DIR)/../txn/txn_auto.c_objects
txn_auto.o
<END>
<BEGIN> FILE_$(PRJ_DIR)/../txn/txn_auto.c_tool
C/C++ compiler
<END>
<BEGIN> FILE_$(PRJ_DIR)/../txn/txn_method.c_dependDone
TRUE
<END>
<BEGIN> FILE_$(PRJ_DIR)/../txn/txn_method.c_dependencies
$(PRJ_DIR)/db_config.h \
$(PRJ_DIR)/db_int.h \
$(PRJ_DIR)/db.h
<END>
<BEGIN> FILE_$(PRJ_DIR)/../txn/txn_method.c_objects
txn_method.o
<END>
<BEGIN> FILE_$(PRJ_DIR)/../txn/txn_method.c_tool
C/C++ compiler
<END>
<BEGIN> FILE_$(PRJ_DIR)/../txn/txn_rec.c_dependDone
TRUE
<END>
<BEGIN> FILE_$(PRJ_DIR)/../txn/txn_rec.c_dependencies
$(PRJ_DIR)/db_config.h \
$(PRJ_DIR)/db_int.h \
$(PRJ_DIR)/db.h
<END>
<BEGIN> FILE_$(PRJ_DIR)/../txn/txn_rec.c_objects
txn_rec.o
<END>
<BEGIN> FILE_$(PRJ_DIR)/../txn/txn_rec.c_tool
C/C++ compiler
<END>
<BEGIN> FILE_$(PRJ_DIR)/../txn/txn_recover.c_dependDone
TRUE
<END>
<BEGIN> FILE_$(PRJ_DIR)/../txn/txn_recover.c_dependencies
$(PRJ_DIR)/db_config.h \
$(PRJ_DIR)/db_int.h \
$(PRJ_DIR)/db.h
<END>
<BEGIN> FILE_$(PRJ_DIR)/../txn/txn_recover.c_objects
txn_recover.o
<END>
<BEGIN> FILE_$(PRJ_DIR)/../txn/txn_recover.c_tool
C/C++ compiler
<END>
<BEGIN> FILE_$(PRJ_DIR)/../txn/txn_region.c_dependDone
TRUE
<END>
<BEGIN> FILE_$(PRJ_DIR)/../txn/txn_region.c_dependencies
$(PRJ_DIR)/db_config.h \
$(PRJ_DIR)/db_int.h \
$(PRJ_DIR)/db.h
<END>
<BEGIN> FILE_$(PRJ_DIR)/../txn/txn_region.c_objects
txn_region.o
<END>
<BEGIN> FILE_$(PRJ_DIR)/../txn/txn_region.c_tool
C/C++ compiler
<END>
<BEGIN> FILE_$(PRJ_DIR)/../txn/txn_stat.c_dependDone
TRUE
<END>
<BEGIN> FILE_$(PRJ_DIR)/../txn/txn_stat.c_dependencies
$(PRJ_DIR)/db_config.h \
$(PRJ_DIR)/db_int.h \
$(PRJ_DIR)/db.h
<END>
<BEGIN> FILE_$(PRJ_DIR)/../txn/txn_stat.c_objects
txn_stat.o
<END>
<BEGIN> FILE_$(PRJ_DIR)/../txn/txn_stat.c_tool
C/C++ compiler
<END>
<BEGIN> FILE_$(PRJ_DIR)/../txn/txn_util.c_dependDone
TRUE
<END>
<BEGIN> FILE_$(PRJ_DIR)/../txn/txn_util.c_dependencies
$(PRJ_DIR)/db_config.h \
$(PRJ_DIR)/db_int.h \
$(PRJ_DIR)/db.h
<END>
<BEGIN> FILE_$(PRJ_DIR)/../txn/txn_util.c_objects
txn_util.o
<END>
<BEGIN> FILE_$(PRJ_DIR)/../txn/txn_util.c_tool
C/C++ compiler
<END>
<BEGIN> FILE_$(PRJ_DIR)/../xa/xa.c_dependDone
TRUE
<END>
<BEGIN> FILE_$(PRJ_DIR)/../xa/xa.c_dependencies
$(PRJ_DIR)/db_config.h \
$(PRJ_DIR)/db_int.h \
$(PRJ_DIR)/db.h
<END>
<BEGIN> FILE_$(PRJ_DIR)/../xa/xa.c_objects
xa.o
<END>
<BEGIN> FILE_$(PRJ_DIR)/../xa/xa.c_tool
C/C++ compiler
<END>
<BEGIN> FILE_$(PRJ_DIR)/../xa/xa_db.c_dependDone
TRUE
<END>
<BEGIN> FILE_$(PRJ_DIR)/../xa/xa_db.c_dependencies
$(PRJ_DIR)/db_config.h \
$(PRJ_DIR)/db_int.h \
$(PRJ_DIR)/db.h
<END>
<BEGIN> FILE_$(PRJ_DIR)/../xa/xa_db.c_objects
xa_db.o
<END>
<BEGIN> FILE_$(PRJ_DIR)/../xa/xa_db.c_tool
C/C++ compiler
<END>
<BEGIN> FILE_$(PRJ_DIR)/../xa/xa_map.c_dependDone
TRUE
<END>
<BEGIN> FILE_$(PRJ_DIR)/../xa/xa_map.c_dependencies
$(PRJ_DIR)/db_config.h \
$(PRJ_DIR)/db_int.h \
$(PRJ_DIR)/db.h
<END>
<BEGIN> FILE_$(PRJ_DIR)/../xa/xa_map.c_objects
xa_map.o
<END>
<BEGIN> FILE_$(PRJ_DIR)/../xa/xa_map.c_tool
C/C++ compiler
<END>
<BEGIN> PROJECT_FILES
$(PRJ_DIR)/../btree/bt_compare.c \
$(PRJ_DIR)/../btree/bt_conv.c \
$(PRJ_DIR)/../btree/bt_curadj.c \
$(PRJ_DIR)/../btree/bt_cursor.c \
$(PRJ_DIR)/../btree/bt_delete.c \
$(PRJ_DIR)/../btree/bt_method.c \
$(PRJ_DIR)/../btree/bt_open.c \
$(PRJ_DIR)/../btree/bt_put.c \
$(PRJ_DIR)/../btree/bt_rec.c \
$(PRJ_DIR)/../btree/bt_reclaim.c \
$(PRJ_DIR)/../btree/bt_recno.c \
$(PRJ_DIR)/../btree/bt_rsearch.c \
$(PRJ_DIR)/../btree/bt_search.c \
$(PRJ_DIR)/../btree/bt_split.c \
$(PRJ_DIR)/../btree/bt_stat.c \
$(PRJ_DIR)/../btree/bt_upgrade.c \
$(PRJ_DIR)/../btree/bt_verify.c \
$(PRJ_DIR)/../btree/btree_auto.c \
$(PRJ_DIR)/../clib/getopt.c \
$(PRJ_DIR)/../clib/snprintf.c \
$(PRJ_DIR)/../clib/strcasecmp.c \
$(PRJ_DIR)/../clib/strdup.c \
$(PRJ_DIR)/../clib/vsnprintf.c \
$(PRJ_DIR)/../common/db_byteorder.c \
$(PRJ_DIR)/../common/db_err.c \
$(PRJ_DIR)/../common/db_getlong.c \
$(PRJ_DIR)/../common/db_idspace.c \
$(PRJ_DIR)/../common/db_log2.c \
$(PRJ_DIR)/../common/util_arg.c \
$(PRJ_DIR)/../common/util_cache.c \
$(PRJ_DIR)/../common/util_log.c \
$(PRJ_DIR)/../common/util_sig.c \
$(PRJ_DIR)/../db/crdel_auto.c \
$(PRJ_DIR)/../db/crdel_rec.c \
$(PRJ_DIR)/../db/db.c \
$(PRJ_DIR)/../db/db_am.c \
$(PRJ_DIR)/../db/db_auto.c \
$(PRJ_DIR)/../db/db_cam.c \
$(PRJ_DIR)/../db/db_conv.c \
$(PRJ_DIR)/../db/db_dispatch.c \
$(PRJ_DIR)/../db/db_dup.c \
$(PRJ_DIR)/../db/db_iface.c \
$(PRJ_DIR)/../db/db_join.c \
$(PRJ_DIR)/../db/db_meta.c \
$(PRJ_DIR)/../db/db_method.c \
$(PRJ_DIR)/../db/db_open.c \
$(PRJ_DIR)/../db/db_overflow.c \
$(PRJ_DIR)/../db/db_pr.c \
$(PRJ_DIR)/../db/db_rec.c \
$(PRJ_DIR)/../db/db_reclaim.c \
$(PRJ_DIR)/../db/db_remove.c \
$(PRJ_DIR)/../db/db_rename.c \
$(PRJ_DIR)/../db/db_ret.c \
$(PRJ_DIR)/../db/db_truncate.c \
$(PRJ_DIR)/../db/db_upg.c \
$(PRJ_DIR)/../db/db_upg_opd.c \
$(PRJ_DIR)/../db/db_vrfy.c \
$(PRJ_DIR)/../db/db_vrfyutil.c \
$(PRJ_DIR)/../dbreg/dbreg.c \
$(PRJ_DIR)/../dbreg/dbreg_auto.c \
$(PRJ_DIR)/../dbreg/dbreg_rec.c \
$(PRJ_DIR)/../dbreg/dbreg_util.c \
$(PRJ_DIR)/../env/db_salloc.c \
$(PRJ_DIR)/../env/db_shash.c \
$(PRJ_DIR)/../env/env_file.c \
$(PRJ_DIR)/../env/env_method.c \
$(PRJ_DIR)/../env/env_open.c \
$(PRJ_DIR)/../env/env_recover.c \
$(PRJ_DIR)/../env/env_region.c \
$(PRJ_DIR)/../fileops/fileops_auto.c \
$(PRJ_DIR)/../fileops/fop_basic.c \
$(PRJ_DIR)/../fileops/fop_rec.c \
$(PRJ_DIR)/../fileops/fop_util.c \
$(PRJ_DIR)/../hash/hash.c \
$(PRJ_DIR)/../hash/hash_auto.c \
$(PRJ_DIR)/../hash/hash_conv.c \
$(PRJ_DIR)/../hash/hash_dup.c \
$(PRJ_DIR)/../hash/hash_func.c \
$(PRJ_DIR)/../hash/hash_meta.c \
$(PRJ_DIR)/../hash/hash_method.c \
$(PRJ_DIR)/../hash/hash_open.c \
$(PRJ_DIR)/../hash/hash_page.c \
$(PRJ_DIR)/../hash/hash_rec.c \
$(PRJ_DIR)/../hash/hash_reclaim.c \
$(PRJ_DIR)/../hash/hash_stat.c \
$(PRJ_DIR)/../hash/hash_upgrade.c \
$(PRJ_DIR)/../hash/hash_verify.c \
$(PRJ_DIR)/../hmac/hmac.c \
$(PRJ_DIR)/../hmac/sha1.c \
$(PRJ_DIR)/../hsearch/hsearch.c \
$(PRJ_DIR)/../lock/lock.c \
$(PRJ_DIR)/../lock/lock_deadlock.c \
$(PRJ_DIR)/../lock/lock_method.c \
$(PRJ_DIR)/../lock/lock_region.c \
$(PRJ_DIR)/../lock/lock_stat.c \
$(PRJ_DIR)/../lock/lock_util.c \
$(PRJ_DIR)/../log/log.c \
$(PRJ_DIR)/../log/log_archive.c \
$(PRJ_DIR)/../log/log_compare.c \
$(PRJ_DIR)/../log/log_get.c \
$(PRJ_DIR)/../log/log_method.c \
$(PRJ_DIR)/../log/log_put.c \
$(PRJ_DIR)/../mp/mp_alloc.c \
$(PRJ_DIR)/../mp/mp_bh.c \
$(PRJ_DIR)/../mp/mp_fget.c \
$(PRJ_DIR)/../mp/mp_fopen.c \
$(PRJ_DIR)/../mp/mp_fput.c \
$(PRJ_DIR)/../mp/mp_fset.c \
$(PRJ_DIR)/../mp/mp_method.c \
$(PRJ_DIR)/../mp/mp_region.c \
$(PRJ_DIR)/../mp/mp_register.c \
$(PRJ_DIR)/../mp/mp_stat.c \
$(PRJ_DIR)/../mp/mp_sync.c \
$(PRJ_DIR)/../mp/mp_trickle.c \
$(PRJ_DIR)/../mutex/mut_tas.c \
$(PRJ_DIR)/../mutex/mutex.c \
$(PRJ_DIR)/../os/os_alloc.c \
$(PRJ_DIR)/../os/os_clock.c \
$(PRJ_DIR)/../os/os_dir.c \
$(PRJ_DIR)/../os/os_errno.c \
$(PRJ_DIR)/../os/os_fid.c \
$(PRJ_DIR)/../os/os_fsync.c \
$(PRJ_DIR)/../os/os_handle.c \
$(PRJ_DIR)/../os/os_id.c \
$(PRJ_DIR)/../os/os_method.c \
$(PRJ_DIR)/../os/os_oflags.c \
$(PRJ_DIR)/../os/os_open.c \
$(PRJ_DIR)/../os/os_region.c \
$(PRJ_DIR)/../os/os_rename.c \
$(PRJ_DIR)/../os/os_root.c \
$(PRJ_DIR)/../os/os_rpath.c \
$(PRJ_DIR)/../os/os_rw.c \
$(PRJ_DIR)/../os/os_seek.c \
$(PRJ_DIR)/../os/os_sleep.c \
$(PRJ_DIR)/../os/os_spin.c \
$(PRJ_DIR)/../os/os_stat.c \
$(PRJ_DIR)/../os/os_tmpdir.c \
$(PRJ_DIR)/../os/os_unlink.c \
$(PRJ_DIR)/../os_vxworks/os_vx_abs.c \
$(PRJ_DIR)/../os_vxworks/os_vx_config.c \
$(PRJ_DIR)/../os_vxworks/os_vx_map.c \
$(PRJ_DIR)/../qam/qam.c \
$(PRJ_DIR)/../qam/qam_auto.c \
$(PRJ_DIR)/../qam/qam_conv.c \
$(PRJ_DIR)/../qam/qam_files.c \
$(PRJ_DIR)/../qam/qam_method.c \
$(PRJ_DIR)/../qam/qam_open.c \
$(PRJ_DIR)/../qam/qam_rec.c \
$(PRJ_DIR)/../qam/qam_stat.c \
$(PRJ_DIR)/../qam/qam_upgrade.c \
$(PRJ_DIR)/../qam/qam_verify.c \
$(PRJ_DIR)/../rep/rep_method.c \
$(PRJ_DIR)/../rep/rep_record.c \
$(PRJ_DIR)/../rep/rep_region.c \
$(PRJ_DIR)/../rep/rep_util.c \
$(PRJ_DIR)/../rpc_client/client.c \
$(PRJ_DIR)/../rpc_client/db_server_clnt.c \
$(PRJ_DIR)/../rpc_client/gen_client.c \
$(PRJ_DIR)/../rpc_client/gen_client_ret.c \
$(PRJ_DIR)/../rpc_server/c/db_server_xdr.c \
$(PRJ_DIR)/../txn/txn.c \
$(PRJ_DIR)/../txn/txn_auto.c \
$(PRJ_DIR)/../txn/txn_method.c \
$(PRJ_DIR)/../txn/txn_rec.c \
$(PRJ_DIR)/../txn/txn_recover.c \
$(PRJ_DIR)/../txn/txn_region.c \
$(PRJ_DIR)/../txn/txn_stat.c \
$(PRJ_DIR)/../txn/txn_util.c \
$(PRJ_DIR)/../xa/xa.c \
$(PRJ_DIR)/../xa/xa_db.c \
$(PRJ_DIR)/../xa/xa_map.c
<END>
<BEGIN> userComments
BerkeleyDB
<END>
#
# 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
/* 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_BERKELEYDB {
ENTRY_POINTS ALL_GLOBAL_SYMBOLS
MODULES bt_compare.o \
bt_conv.o \
bt_curadj.o \
bt_cursor.o \
bt_delete.o \
bt_method.o \
bt_open.o \
bt_put.o \
bt_rec.o \
bt_reclaim.o \
bt_recno.o \
bt_rsearch.o \
bt_search.o \
bt_split.o \
bt_stat.o \
bt_upgrade.o \
bt_verify.o \
btree_auto.o \
client.o \
crdel_auto.o \
crdel_rec.o \
db.o \
db_am.o \
db_auto.o \
db_byteorder.o \
db_cam.o \
db_conv.o \
db_dispatch.o \
db_dup.o \
db_err.o \
db_getlong.o \
db_idspace.o \
db_iface.o \
db_join.o \
db_log2.o \
db_meta.o \
db_method.o \
db_open.o \
db_overflow.o \
db_pr.o \
db_rec.o \
db_reclaim.o \
db_remove.o \
db_rename.o \
db_ret.o \
db_salloc.o \
db_server_clnt.o \
db_server_xdr.o \
db_shash.o \
db_truncate.o \
db_upg.o \
db_upg_opd.o \
db_vrfy.o \
db_vrfyutil.o \
dbreg.o \
dbreg_auto.o \
dbreg_rec.o \
dbreg_util.o \
env_file.o \
env_method.o \
env_open.o \
env_recover.o \
env_region.o \
fileops_auto.o \
fop_basic.o \
fop_rec.o \
fop_util.o \
gen_client.o \
gen_client_ret.o \
getopt.o \
hash.o \
hash_auto.o \
hash_conv.o \
hash_dup.o \
hash_func.o \
hash_meta.o \
hash_method.o \
hash_open.o \
hash_page.o \
hash_rec.o \
hash_reclaim.o \
hash_stat.o \
hash_upgrade.o \
hash_verify.o \
hmac.o \
hsearch.o \
lock.o \
lock_deadlock.o \
lock_method.o \
lock_region.o \
lock_stat.o \
lock_util.o \
log.o \
log_archive.o \
log_compare.o \
log_get.o \
log_method.o \
log_put.o \
mp_alloc.o \
mp_bh.o \
mp_fget.o \
mp_fopen.o \
mp_fput.o \
mp_fset.o \
mp_method.o \
mp_region.o \
mp_register.o \
mp_stat.o \
mp_sync.o \
mp_trickle.o \
mut_tas.o \
mutex.o \
os_alloc.o \
os_clock.o \
os_dir.o \
os_errno.o \
os_fid.o \
os_fsync.o \
os_handle.o \
os_id.o \
os_method.o \
os_oflags.o \
os_open.o \
os_region.o \
os_rename.o \
os_root.o \
os_rpath.o \
os_rw.o \
os_seek.o \
os_sleep.o \
os_spin.o \
os_stat.o \
os_tmpdir.o \
os_unlink.o \
os_vx_abs.o \
os_vx_config.o \
os_vx_map.o \
qam.o \
qam_auto.o \
qam_conv.o \
qam_files.o \
qam_method.o \
qam_open.o \
qam_rec.o \
qam_stat.o \
qam_upgrade.o \
qam_verify.o \
rep_method.o \
rep_record.o \
rep_region.o \
rep_util.o \
sha1.o \
snprintf.o \
strcasecmp.o \
strdup.o \
txn.o \
txn_auto.o \
txn_method.o \
txn_rec.o \
txn_recover.o \
txn_region.o \
txn_stat.o \
txn_util.o \
util_arg.o \
util_cache.o \
util_log.o \
util_sig.o \
vsnprintf.o \
xa.o \
xa_db.o \
xa_map.o
NAME BerkeleyDB
PREF_DOMAIN ANY
_INIT_ORDER usrComponentsInit
}
/* EntryPoint information */
/* Module information */
Module bt_compare.o {
NAME bt_compare.o
SRC_PATH_NAME $(PRJ_DIR)/../../btree/bt_compare.c
}
Module bt_conv.o {
NAME bt_conv.o
SRC_PATH_NAME $(PRJ_DIR)/../../btree/bt_conv.c
}
Module bt_curadj.o {
NAME bt_curadj.o
SRC_PATH_NAME $(PRJ_DIR)/../../btree/bt_curadj.c
}
Module bt_cursor.o {
NAME bt_cursor.o
SRC_PATH_NAME $(PRJ_DIR)/../../btree/bt_cursor.c
}
Module bt_delete.o {
NAME bt_delete.o
SRC_PATH_NAME $(PRJ_DIR)/../../btree/bt_delete.c
}
Module bt_method.o {
NAME bt_method.o
SRC_PATH_NAME $(PRJ_DIR)/../../btree/bt_method.c
}
Module bt_open.o {
NAME bt_open.o
SRC_PATH_NAME $(PRJ_DIR)/../../btree/bt_open.c
}
Module bt_put.o {
NAME bt_put.o
SRC_PATH_NAME $(PRJ_DIR)/../../btree/bt_put.c
}
Module bt_rec.o {
NAME bt_rec.o
SRC_PATH_NAME $(PRJ_DIR)/../../btree/bt_rec.c
}
Module bt_reclaim.o {
NAME bt_reclaim.o
SRC_PATH_NAME $(PRJ_DIR)/../../btree/bt_reclaim.c
}
Module bt_recno.o {
NAME bt_recno.o
SRC_PATH_NAME $(PRJ_DIR)/../../btree/bt_recno.c
}
Module bt_rsearch.o {
NAME bt_rsearch.o
SRC_PATH_NAME $(PRJ_DIR)/../../btree/bt_rsearch.c
}
Module bt_search.o {
NAME bt_search.o
SRC_PATH_NAME $(PRJ_DIR)/../../btree/bt_search.c
}
Module bt_split.o {
NAME bt_split.o
SRC_PATH_NAME $(PRJ_DIR)/../../btree/bt_split.c
}
Module bt_stat.o {
NAME bt_stat.o
SRC_PATH_NAME $(PRJ_DIR)/../../btree/bt_stat.c
}
Module bt_upgrade.o {
NAME bt_upgrade.o
SRC_PATH_NAME $(PRJ_DIR)/../../btree/bt_upgrade.c
}
Module bt_verify.o {
NAME bt_verify.o
SRC_PATH_NAME $(PRJ_DIR)/../../btree/bt_verify.c
}
Module btree_auto.o {
NAME btree_auto.o
SRC_PATH_NAME $(PRJ_DIR)/../../btree/btree_auto.c
}
Module getopt.o {
NAME getopt.o
SRC_PATH_NAME $(PRJ_DIR)/../../clib/getopt.c
}
Module snprintf.o {
NAME snprintf.o
SRC_PATH_NAME $(PRJ_DIR)/../../clib/snprintf.c
}
Module strcasecmp.o {
NAME strcasecmp.o
SRC_PATH_NAME $(PRJ_DIR)/../../clib/strcasecmp.c
}
Module strdup.o {
NAME strdup.o
SRC_PATH_NAME $(PRJ_DIR)/../../clib/strdup.c
}
Module vsnprintf.o {
NAME vsnprintf.o
SRC_PATH_NAME $(PRJ_DIR)/../../clib/vsnprintf.c
}
Module db_byteorder.o {
NAME db_byteorder.o
SRC_PATH_NAME $(PRJ_DIR)/../../common/db_byteorder.c
}
Module db_err.o {
NAME db_err.o
SRC_PATH_NAME $(PRJ_DIR)/../../common/db_err.c
}
Module db_getlong.o {
NAME db_getlong.o
SRC_PATH_NAME $(PRJ_DIR)/../../common/db_getlong.c
}
Module db_idspace.o {
NAME db_idspace.o
SRC_PATH_NAME $(PRJ_DIR)/../../common/db_idspace.c
}
Module db_log2.o {
NAME db_log2.o
SRC_PATH_NAME $(PRJ_DIR)/../../common/db_log2.c
}
Module util_arg.o {
NAME util_arg.o
SRC_PATH_NAME $(PRJ_DIR)/../../common/util_arg.c
}
Module util_cache.o {
NAME util_cache.o
SRC_PATH_NAME $(PRJ_DIR)/../../common/util_cache.c
}
Module util_log.o {
NAME util_log.o
SRC_PATH_NAME $(PRJ_DIR)/../../common/util_log.c
}
Module util_sig.o {
NAME util_sig.o
SRC_PATH_NAME $(PRJ_DIR)/../../common/util_sig.c
}
Module crdel_auto.o {
NAME crdel_auto.o
SRC_PATH_NAME $(PRJ_DIR)/../../db/crdel_auto.c
}
Module crdel_rec.o {
NAME crdel_rec.o
SRC_PATH_NAME $(PRJ_DIR)/../../db/crdel_rec.c
}
Module db.o {
NAME db.o
SRC_PATH_NAME $(PRJ_DIR)/../../db/db.c
}
Module db_am.o {
NAME db_am.o
SRC_PATH_NAME $(PRJ_DIR)/../../db/db_am.c
}
Module db_auto.o {
NAME db_auto.o
SRC_PATH_NAME $(PRJ_DIR)/../../db/db_auto.c
}
Module db_cam.o {
NAME db_cam.o
SRC_PATH_NAME $(PRJ_DIR)/../../db/db_cam.c
}
Module db_conv.o {
NAME db_conv.o
SRC_PATH_NAME $(PRJ_DIR)/../../db/db_conv.c
}
Module db_dispatch.o {
NAME db_dispatch.o
SRC_PATH_NAME $(PRJ_DIR)/../../db/db_dispatch.c
}
Module db_dup.o {
NAME db_dup.o
SRC_PATH_NAME $(PRJ_DIR)/../../db/db_dup.c
}
Module db_iface.o {
NAME db_iface.o
SRC_PATH_NAME $(PRJ_DIR)/../../db/db_iface.c
}
Module db_join.o {
NAME db_join.o
SRC_PATH_NAME $(PRJ_DIR)/../../db/db_join.c
}
Module db_meta.o {
NAME db_meta.o
SRC_PATH_NAME $(PRJ_DIR)/../../db/db_meta.c
}
Module db_method.o {
NAME db_method.o
SRC_PATH_NAME $(PRJ_DIR)/../../db/db_method.c
}
Module db_open.o {
NAME db_open.o
SRC_PATH_NAME $(PRJ_DIR)/../../db/db_open.c
}
Module db_overflow.o {
NAME db_overflow.o
SRC_PATH_NAME $(PRJ_DIR)/../../db/db_overflow.c
}
Module db_pr.o {
NAME db_pr.o
SRC_PATH_NAME $(PRJ_DIR)/../../db/db_pr.c
}
Module db_rec.o {
NAME db_rec.o
SRC_PATH_NAME $(PRJ_DIR)/../../db/db_rec.c
}
Module db_reclaim.o {
NAME db_reclaim.o
SRC_PATH_NAME $(PRJ_DIR)/../../db/db_reclaim.c
}
Module db_remove.o {
NAME db_remove.o
SRC_PATH_NAME $(PRJ_DIR)/../../db/db_remove.c
}
Module db_rename.o {
NAME db_rename.o
SRC_PATH_NAME $(PRJ_DIR)/../../db/db_rename.c
}
Module db_ret.o {
NAME db_ret.o
SRC_PATH_NAME $(PRJ_DIR)/../../db/db_ret.c
}
Module db_truncate.o {
NAME db_truncate.o
SRC_PATH_NAME $(PRJ_DIR)/../../db/db_truncate.c
}
Module db_upg.o {
NAME db_upg.o
SRC_PATH_NAME $(PRJ_DIR)/../../db/db_upg.c
}
Module db_upg_opd.o {
NAME db_upg_opd.o
SRC_PATH_NAME $(PRJ_DIR)/../../db/db_upg_opd.c
}
Module db_vrfy.o {
NAME db_vrfy.o
SRC_PATH_NAME $(PRJ_DIR)/../../db/db_vrfy.c
}
Module db_vrfyutil.o {
NAME db_vrfyutil.o
SRC_PATH_NAME $(PRJ_DIR)/../../db/db_vrfyutil.c
}
Module dbreg.o {
NAME dbreg.o
SRC_PATH_NAME $(PRJ_DIR)/../../dbreg/dbreg.c
}
Module dbreg_auto.o {
NAME dbreg_auto.o
SRC_PATH_NAME $(PRJ_DIR)/../../dbreg/dbreg_auto.c
}
Module dbreg_rec.o {
NAME dbreg_rec.o
SRC_PATH_NAME $(PRJ_DIR)/../../dbreg/dbreg_rec.c
}
Module dbreg_util.o {
NAME dbreg_util.o
SRC_PATH_NAME $(PRJ_DIR)/../../dbreg/dbreg_util.c
}
Module db_salloc.o {
NAME db_salloc.o
SRC_PATH_NAME $(PRJ_DIR)/../../env/db_salloc.c
}
Module db_shash.o {
NAME db_shash.o
SRC_PATH_NAME $(PRJ_DIR)/../../env/db_shash.c
}
Module env_file.o {
NAME env_file.o
SRC_PATH_NAME $(PRJ_DIR)/../../env/env_file.c
}
Module env_method.o {
NAME env_method.o
SRC_PATH_NAME $(PRJ_DIR)/../../env/env_method.c
}
Module env_open.o {
NAME env_open.o
SRC_PATH_NAME $(PRJ_DIR)/../../env/env_open.c
}
Module env_recover.o {
NAME env_recover.o
SRC_PATH_NAME $(PRJ_DIR)/../../env/env_recover.c
}
Module env_region.o {
NAME env_region.o
SRC_PATH_NAME $(PRJ_DIR)/../../env/env_region.c
}
Module fileops_auto.o {
NAME fileops_auto.o
SRC_PATH_NAME $(PRJ_DIR)/../../fileops/fileops_auto.c
}
Module fop_basic.o {
NAME fop_basic.o
SRC_PATH_NAME $(PRJ_DIR)/../../fileops/fop_basic.c
}
Module fop_rec.o {
NAME fop_rec.o
SRC_PATH_NAME $(PRJ_DIR)/../../fileops/fop_rec.c
}
Module fop_util.o {
NAME fop_util.o
SRC_PATH_NAME $(PRJ_DIR)/../../fileops/fop_util.c
}
Module hash.o {
NAME hash.o
SRC_PATH_NAME $(PRJ_DIR)/../../hash/hash.c
}
Module hash_auto.o {
NAME hash_auto.o
SRC_PATH_NAME $(PRJ_DIR)/../../hash/hash_auto.c
}
Module hash_conv.o {
NAME hash_conv.o
SRC_PATH_NAME $(PRJ_DIR)/../../hash/hash_conv.c
}
Module hash_dup.o {
NAME hash_dup.o
SRC_PATH_NAME $(PRJ_DIR)/../../hash/hash_dup.c
}
Module hash_func.o {
NAME hash_func.o
SRC_PATH_NAME $(PRJ_DIR)/../../hash/hash_func.c
}
Module hash_meta.o {
NAME hash_meta.o
SRC_PATH_NAME $(PRJ_DIR)/../../hash/hash_meta.c
}
Module hash_method.o {
NAME hash_method.o
SRC_PATH_NAME $(PRJ_DIR)/../../hash/hash_method.c
}
Module hash_open.o {
NAME hash_open.o
SRC_PATH_NAME $(PRJ_DIR)/../../hash/hash_open.c
}
Module hash_page.o {
NAME hash_page.o
SRC_PATH_NAME $(PRJ_DIR)/../../hash/hash_page.c
}
Module hash_rec.o {
NAME hash_rec.o
SRC_PATH_NAME $(PRJ_DIR)/../../hash/hash_rec.c
}
Module hash_reclaim.o {
NAME hash_reclaim.o
SRC_PATH_NAME $(PRJ_DIR)/../../hash/hash_reclaim.c
}
Module hash_stat.o {
NAME hash_stat.o
SRC_PATH_NAME $(PRJ_DIR)/../../hash/hash_stat.c
}
Module hash_upgrade.o {
NAME hash_upgrade.o
SRC_PATH_NAME $(PRJ_DIR)/../../hash/hash_upgrade.c
}
Module hash_verify.o {
NAME hash_verify.o
SRC_PATH_NAME $(PRJ_DIR)/../../hash/hash_verify.c
}
Module hmac.o {
NAME hmac.o
SRC_PATH_NAME $(PRJ_DIR)/../../hmac/hmac.c
}
Module sha1.o {
NAME sha1.o
SRC_PATH_NAME $(PRJ_DIR)/../../hmac/sha1.c
}
Module hsearch.o {
NAME hsearch.o
SRC_PATH_NAME $(PRJ_DIR)/../../hsearch/hsearch.c
}
Module lock.o {
NAME lock.o
SRC_PATH_NAME $(PRJ_DIR)/../../lock/lock.c
}
Module lock_deadlock.o {
NAME lock_deadlock.o
SRC_PATH_NAME $(PRJ_DIR)/../../lock/lock_deadlock.c
}
Module lock_method.o {
NAME lock_method.o
SRC_PATH_NAME $(PRJ_DIR)/../../lock/lock_method.c
}
Module lock_region.o {
NAME lock_region.o
SRC_PATH_NAME $(PRJ_DIR)/../../lock/lock_region.c
}
Module lock_stat.o {
NAME lock_stat.o
SRC_PATH_NAME $(PRJ_DIR)/../../lock/lock_stat.c
}
Module lock_util.o {
NAME lock_util.o
SRC_PATH_NAME $(PRJ_DIR)/../../lock/lock_util.c
}
Module log.o {
NAME log.o
SRC_PATH_NAME $(PRJ_DIR)/../../log/log.c
}
Module log_archive.o {
NAME log_archive.o
SRC_PATH_NAME $(PRJ_DIR)/../../log/log_archive.c
}
Module log_compare.o {
NAME log_compare.o
SRC_PATH_NAME $(PRJ_DIR)/../../log/log_compare.c
}
Module log_get.o {
NAME log_get.o
SRC_PATH_NAME $(PRJ_DIR)/../../log/log_get.c
}
Module log_method.o {
NAME log_method.o
SRC_PATH_NAME $(PRJ_DIR)/../../log/log_method.c
}
Module log_put.o {
NAME log_put.o
SRC_PATH_NAME $(PRJ_DIR)/../../log/log_put.c
}
Module mp_alloc.o {
NAME mp_alloc.o
SRC_PATH_NAME $(PRJ_DIR)/../../mp/mp_alloc.c
}
Module mp_bh.o {
NAME mp_bh.o
SRC_PATH_NAME $(PRJ_DIR)/../../mp/mp_bh.c
}
Module mp_fget.o {
NAME mp_fget.o
SRC_PATH_NAME $(PRJ_DIR)/../../mp/mp_fget.c
}
Module mp_fopen.o {
NAME mp_fopen.o
SRC_PATH_NAME $(PRJ_DIR)/../../mp/mp_fopen.c
}
Module mp_fput.o {
NAME mp_fput.o
SRC_PATH_NAME $(PRJ_DIR)/../../mp/mp_fput.c
}
Module mp_fset.o {
NAME mp_fset.o
SRC_PATH_NAME $(PRJ_DIR)/../../mp/mp_fset.c
}
Module mp_method.o {
NAME mp_method.o
SRC_PATH_NAME $(PRJ_DIR)/../../mp/mp_method.c
}
Module mp_region.o {
NAME mp_region.o
SRC_PATH_NAME $(PRJ_DIR)/../../mp/mp_region.c
}
Module mp_register.o {
NAME mp_register.o
SRC_PATH_NAME $(PRJ_DIR)/../../mp/mp_register.c
}
Module mp_stat.o {
NAME mp_stat.o
SRC_PATH_NAME $(PRJ_DIR)/../../mp/mp_stat.c
}
Module mp_sync.o {
NAME mp_sync.o
SRC_PATH_NAME $(PRJ_DIR)/../../mp/mp_sync.c
}
Module mp_trickle.o {
NAME mp_trickle.o
SRC_PATH_NAME $(PRJ_DIR)/../../mp/mp_trickle.c
}
Module mut_tas.o {
NAME mut_tas.o
SRC_PATH_NAME $(PRJ_DIR)/../../mutex/mut_tas.c
}
Module mutex.o {
NAME mutex.o
SRC_PATH_NAME $(PRJ_DIR)/../../mutex/mutex.c
}
Module os_alloc.o {
NAME os_alloc.o
SRC_PATH_NAME $(PRJ_DIR)/../../os/os_alloc.c
}
Module os_clock.o {
NAME os_clock.o
SRC_PATH_NAME $(PRJ_DIR)/../../os/os_clock.c
}
Module os_dir.o {
NAME os_dir.o
SRC_PATH_NAME $(PRJ_DIR)/../../os/os_dir.c
}
Module os_errno.o {
NAME os_errno.o
SRC_PATH_NAME $(PRJ_DIR)/../../os/os_errno.c
}
Module os_fid.o {
NAME os_fid.o
SRC_PATH_NAME $(PRJ_DIR)/../../os/os_fid.c
}
Module os_fsync.o {
NAME os_fsync.o
SRC_PATH_NAME $(PRJ_DIR)/../../os/os_fsync.c
}
Module os_handle.o {
NAME os_handle.o
SRC_PATH_NAME $(PRJ_DIR)/../../os/os_handle.c
}
Module os_id.o {
NAME os_id.o
SRC_PATH_NAME $(PRJ_DIR)/../../os/os_id.c
}
Module os_method.o {
NAME os_method.o
SRC_PATH_NAME $(PRJ_DIR)/../../os/os_method.c
}
Module os_oflags.o {
NAME os_oflags.o
SRC_PATH_NAME $(PRJ_DIR)/../../os/os_oflags.c
}
Module os_open.o {
NAME os_open.o
SRC_PATH_NAME $(PRJ_DIR)/../../os/os_open.c
}
Module os_region.o {
NAME os_region.o
SRC_PATH_NAME $(PRJ_DIR)/../../os/os_region.c
}
Module os_rename.o {
NAME os_rename.o
SRC_PATH_NAME $(PRJ_DIR)/../../os/os_rename.c
}
Module os_root.o {
NAME os_root.o
SRC_PATH_NAME $(PRJ_DIR)/../../os/os_root.c
}
Module os_rpath.o {
NAME os_rpath.o
SRC_PATH_NAME $(PRJ_DIR)/../../os/os_rpath.c
}
Module os_rw.o {
NAME os_rw.o
SRC_PATH_NAME $(PRJ_DIR)/../../os/os_rw.c
}
Module os_seek.o {
NAME os_seek.o
SRC_PATH_NAME $(PRJ_DIR)/../../os/os_seek.c
}
Module os_sleep.o {
NAME os_sleep.o
SRC_PATH_NAME $(PRJ_DIR)/../../os/os_sleep.c
}
Module os_spin.o {
NAME os_spin.o
SRC_PATH_NAME $(PRJ_DIR)/../../os/os_spin.c
}
Module os_stat.o {
NAME os_stat.o
SRC_PATH_NAME $(PRJ_DIR)/../../os/os_stat.c
}
Module os_tmpdir.o {
NAME os_tmpdir.o
SRC_PATH_NAME $(PRJ_DIR)/../../os/os_tmpdir.c
}
Module os_unlink.o {
NAME os_unlink.o
SRC_PATH_NAME $(PRJ_DIR)/../../os/os_unlink.c
}
Module os_vx_abs.o {
NAME os_vx_abs.o
SRC_PATH_NAME $(PRJ_DIR)/../../os_vxworks/os_vx_abs.c
}
Module os_vx_config.o {
NAME os_vx_config.o
SRC_PATH_NAME $(PRJ_DIR)/../../os_vxworks/os_vx_config.c
}
Module os_vx_map.o {
NAME os_vx_map.o
SRC_PATH_NAME $(PRJ_DIR)/../../os_vxworks/os_vx_map.c
}
Module qam.o {
NAME qam.o
SRC_PATH_NAME $(PRJ_DIR)/../../qam/qam.c
}
Module qam_auto.o {
NAME qam_auto.o
SRC_PATH_NAME $(PRJ_DIR)/../../qam/qam_auto.c
}
Module qam_conv.o {
NAME qam_conv.o
SRC_PATH_NAME $(PRJ_DIR)/../../qam/qam_conv.c
}
Module qam_files.o {
NAME qam_files.o
SRC_PATH_NAME $(PRJ_DIR)/../../qam/qam_files.c
}
Module qam_method.o {
NAME qam_method.o
SRC_PATH_NAME $(PRJ_DIR)/../../qam/qam_method.c
}
Module qam_open.o {
NAME qam_open.o
SRC_PATH_NAME $(PRJ_DIR)/../../qam/qam_open.c
}
Module qam_rec.o {
NAME qam_rec.o
SRC_PATH_NAME $(PRJ_DIR)/../../qam/qam_rec.c
}
Module qam_stat.o {
NAME qam_stat.o
SRC_PATH_NAME $(PRJ_DIR)/../../qam/qam_stat.c
}
Module qam_upgrade.o {
NAME qam_upgrade.o
SRC_PATH_NAME $(PRJ_DIR)/../../qam/qam_upgrade.c
}
Module qam_verify.o {
NAME qam_verify.o
SRC_PATH_NAME $(PRJ_DIR)/../../qam/qam_verify.c
}
Module rep_method.o {
NAME rep_method.o
SRC_PATH_NAME $(PRJ_DIR)/../../rep/rep_method.c
}
Module rep_record.o {
NAME rep_record.o
SRC_PATH_NAME $(PRJ_DIR)/../../rep/rep_record.c
}
Module rep_region.o {
NAME rep_region.o
SRC_PATH_NAME $(PRJ_DIR)/../../rep/rep_region.c
}
Module rep_util.o {
NAME rep_util.o
SRC_PATH_NAME $(PRJ_DIR)/../../rep/rep_util.c
}
Module client.o {
NAME client.o
SRC_PATH_NAME $(PRJ_DIR)/../../rpc_client/client.c
}
Module db_server_clnt.o {
NAME db_server_clnt.o
SRC_PATH_NAME $(PRJ_DIR)/../../rpc_client/db_server_clnt.c
}
Module gen_client.o {
NAME gen_client.o
SRC_PATH_NAME $(PRJ_DIR)/../../rpc_client/gen_client.c
}
Module gen_client_ret.o {
NAME gen_client_ret.o
SRC_PATH_NAME $(PRJ_DIR)/../../rpc_client/gen_client_ret.c
}
Module db_server_xdr.o {
NAME db_server_xdr.o
SRC_PATH_NAME $(PRJ_DIR)/../../rpc_server/c/db_server_xdr.c
}
Module txn.o {
NAME txn.o
SRC_PATH_NAME $(PRJ_DIR)/../../txn/txn.c
}
Module txn_auto.o {
NAME txn_auto.o
SRC_PATH_NAME $(PRJ_DIR)/../../txn/txn_auto.c
}
Module txn_method.o {
NAME txn_method.o
SRC_PATH_NAME $(PRJ_DIR)/../../txn/txn_method.c
}
Module txn_rec.o {
NAME txn_rec.o
SRC_PATH_NAME $(PRJ_DIR)/../../txn/txn_rec.c
}
Module txn_recover.o {
NAME txn_recover.o
SRC_PATH_NAME $(PRJ_DIR)/../../txn/txn_recover.c
}
Module txn_region.o {
NAME txn_region.o
SRC_PATH_NAME $(PRJ_DIR)/../../txn/txn_region.c
}
Module txn_stat.o {
NAME txn_stat.o
SRC_PATH_NAME $(PRJ_DIR)/../../txn/txn_stat.c
}
Module txn_util.o {
NAME txn_util.o
SRC_PATH_NAME $(PRJ_DIR)/../../txn/txn_util.c
}
Module xa.o {
NAME xa.o
SRC_PATH_NAME $(PRJ_DIR)/../../xa/xa.c
}
Module xa_db.o {
NAME xa_db.o
SRC_PATH_NAME $(PRJ_DIR)/../../xa/xa_db.c
}
Module xa_map.o {
NAME xa_map.o
SRC_PATH_NAME $(PRJ_DIR)/../../xa/xa_map.c
}
/* Parameter information */
This source diff could not be displayed because it is too large. You can view the blob instead.
/*-
* 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);
}
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>
#
# 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
/* 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 */
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>
/*-
* 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);
}
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>
#
# 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
/* 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 */
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>
/* 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"
/*-
* 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);
}
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>
#
# 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
/* 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 */
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>
/*-
* 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);
}
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>
#
# 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
/* 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 */
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>
/*-
* 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_load.c,v 11.71 2002/08/08 03:50:36 bostic Exp $";
#endif
#ifndef NO_SYSTEM_INCLUDES
#include <sys/types.h>
#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"
typedef struct { /* XXX: Globals. */
const char *progname; /* Program name. */
char *hdrbuf; /* Input file header. */
u_long lineno; /* Input file line number. */
u_long origline; /* Original file line number. */
int endodata; /* Reached the end of a database. */
int endofile; /* Reached the end of the input. */
int version; /* Input version. */
char *home; /* Env home. */
char *passwd; /* Env passwd. */
int private; /* Private env. */
u_int32_t cache; /* Env cache size. */
} LDG;
void db_load_badend __P((DB_ENV *));
void db_load_badnum __P((DB_ENV *));
int db_load_configure __P((DB_ENV *, DB *, char **, char **, int *));
int db_load_convprintable __P((DB_ENV *, char *, char **));
int db_load_db_init __P((DB_ENV *, char *, u_int32_t, int *));
int db_load_dbt_rdump __P((DB_ENV *, DBT *));
int db_load_dbt_rprint __P((DB_ENV *, DBT *));
int db_load_dbt_rrecno __P((DB_ENV *, DBT *, int));
int db_load_digitize __P((DB_ENV *, int, int *));
int db_load_env_create __P((DB_ENV **, LDG *));
int db_load_load __P((DB_ENV *, char *, DBTYPE, char **, u_int, LDG *, int *));
int db_load_main __P((int, char *[]));
int db_load_rheader __P((DB_ENV *, DB *, DBTYPE *, char **, int *, int *));
int db_load_usage __P((void));
int db_load_version_check __P((const char *));
#define G(f) ((LDG *)dbenv->app_private)->f
/* Flags to the load function. */
#define LDF_NOHEADER 0x01 /* No dump header. */
#define LDF_NOOVERWRITE 0x02 /* Don't overwrite existing rows. */
#define LDF_PASSWORD 0x04 /* Encrypt created databases. */
int
db_load(args)
char *args;
{
int argc;
char **argv;
__db_util_arg("db_load", args, &argc, &argv);
return (db_load_main(argc, argv) ? EXIT_FAILURE : EXIT_SUCCESS);
}
#include <stdio.h>
#define ERROR_RETURN ERROR
int
db_load_main(argc, argv)
int argc;
char *argv[];
{
extern char *optarg;
extern int optind, __db_getopt_reset;
DBTYPE dbtype;
DB_ENV *dbenv;
LDG ldg;
u_int32_t ldf;
int ch, existed, exitval, ret;
char **clist, **clp;
ldg.progname = "db_load";
ldg.lineno = 0;
ldg.endodata = ldg.endofile = 0;
ldg.version = 1;
ldg.cache = MEGABYTE;
ldg.hdrbuf = NULL;
ldg.home = NULL;
ldg.passwd = NULL;
if ((ret = db_load_version_check(ldg.progname)) != 0)
return (ret);
ldf = 0;
exitval = 0;
dbtype = DB_UNKNOWN;
/* Allocate enough room for configuration arguments. */
if ((clp = clist = (char **)calloc(argc + 1, sizeof(char *))) == NULL) {
fprintf(stderr, "%s: %s\n", ldg.progname, strerror(ENOMEM));
return (EXIT_FAILURE);
}
__db_getopt_reset = 1;
while ((ch = getopt(argc, argv, "c:f:h:nP:Tt:V")) != EOF)
switch (ch) {
case 'c':
*clp++ = optarg;
break;
case 'f':
if (freopen(optarg, "r", stdin) == NULL) {
fprintf(stderr, "%s: %s: reopen: %s\n",
ldg.progname, optarg, strerror(errno));
return (EXIT_FAILURE);
}
break;
case 'h':
ldg.home = optarg;
break;
case 'n':
ldf |= LDF_NOOVERWRITE;
break;
case 'P':
ldg.passwd = strdup(optarg);
memset(optarg, 0, strlen(optarg));
if (ldg.passwd == NULL) {
fprintf(stderr, "%s: strdup: %s\n",
ldg.progname, strerror(errno));
return (EXIT_FAILURE);
}
ldf |= LDF_PASSWORD;
break;
case 'T':
ldf |= LDF_NOHEADER;
break;
case 't':
if (strcmp(optarg, "btree") == 0) {
dbtype = DB_BTREE;
break;
}
if (strcmp(optarg, "hash") == 0) {
dbtype = DB_HASH;
break;
}
if (strcmp(optarg, "recno") == 0) {
dbtype = DB_RECNO;
break;
}
if (strcmp(optarg, "queue") == 0) {
dbtype = DB_QUEUE;
break;
}
return (db_load_usage());
case 'V':
printf("%s\n", db_version(NULL, NULL, NULL));
return (EXIT_SUCCESS);
case '?':
default:
return (db_load_usage());
}
argc -= optind;
argv += optind;
if (argc != 1)
return (db_load_usage());
/* Handle possible interruptions. */
__db_util_siginit();
/*
* Create an environment object initialized for error reporting, and
* then open it.
*/
if (db_load_env_create(&dbenv, &ldg) != 0)
goto shutdown;
while (!ldg.endofile)
if (db_load_load(dbenv, argv[0], dbtype, clist, ldf,
&ldg, &existed) != 0)
goto shutdown;
if (0) {
shutdown: exitval = 1;
}
if ((ret = dbenv->close(dbenv, 0)) != 0) {
exitval = 1;
fprintf(stderr,
"%s: dbenv->close: %s\n", ldg.progname, db_strerror(ret));
}
/* Resend any caught signal. */
__db_util_sigresend();
free(clist);
/*
* Return 0 on success, 1 if keys existed already, and 2 on failure.
*
* Technically, this is wrong, because exit of anything other than
* 0 is implementation-defined by the ANSI C standard. I don't see
* any good solutions that don't involve API changes.
*/
return (exitval == 0 ? (existed == 0 ? 0 : 1) : 2);
}
/*
* load --
* Load a database.
*/
int
db_load_load(dbenv, name, argtype, clist, flags, ldg, existedp)
DB_ENV *dbenv;
char *name, **clist;
DBTYPE argtype;
u_int flags;
LDG *ldg;
int *existedp;
{
DB *dbp;
DBT key, rkey, data, *readp, *writep;
DBTYPE dbtype;
DB_TXN *ctxn, *txn;
db_recno_t recno, datarecno;
u_int32_t put_flags;
int ascii_recno, checkprint, hexkeys, keyflag, keys, resize, ret, rval;
char *subdb;
*existedp = 0;
put_flags = LF_ISSET(LDF_NOOVERWRITE) ? DB_NOOVERWRITE : 0;
G(endodata) = 0;
subdb = NULL;
ctxn = txn = NULL;
memset(&key, 0, sizeof(DBT));
memset(&data, 0, sizeof(DBT));
memset(&rkey, 0, sizeof(DBT));
retry_db:
/* Create the DB object. */
if ((ret = db_create(&dbp, dbenv, 0)) != 0) {
dbenv->err(dbenv, ret, "db_create");
goto err;
}
dbtype = DB_UNKNOWN;
keys = -1;
hexkeys = -1;
keyflag = -1;
/* Read the header -- if there's no header, we expect flat text. */
if (LF_ISSET(LDF_NOHEADER)) {
checkprint = 1;
dbtype = argtype;
} else {
if (db_load_rheader(dbenv,
dbp, &dbtype, &subdb, &checkprint, &keys) != 0)
goto err;
if (G(endofile))
goto done;
}
/*
* Apply command-line configuration changes. (We apply command-line
* configuration changes to all databases that are loaded, e.g., all
* subdatabases.)
*/
if (db_load_configure(dbenv, dbp, clist, &subdb, &keyflag))
goto err;
if (keys != 1) {
if (keyflag == 1) {
dbp->err(dbp, EINVAL, "No keys specified in file");
goto err;
}
}
else if (keyflag == 0) {
dbp->err(dbp, EINVAL, "Keys specified in file");
goto err;
}
else
keyflag = 1;
if (dbtype == DB_BTREE || dbtype == DB_HASH) {
if (keyflag == 0)
dbp->err(dbp,
EINVAL, "Btree and Hash must specify keys");
else
keyflag = 1;
}
if (argtype != DB_UNKNOWN) {
if (dbtype == DB_RECNO || dbtype == DB_QUEUE)
if (keyflag != 1 && argtype != DB_RECNO &&
argtype != DB_QUEUE) {
dbenv->errx(dbenv,
"improper database type conversion specified");
goto err;
}
dbtype = argtype;
}
if (dbtype == DB_UNKNOWN) {
dbenv->errx(dbenv, "no database type specified");
goto err;
}
if (keyflag == -1)
keyflag = 0;
/*
* Recno keys have only been printed in hexadecimal starting
* with db_dump format version 3 (DB 3.2).
*
* !!!
* Note that version is set in db_load_rheader(), which must be called before
* this assignment.
*/
hexkeys = (G(version) >= 3 && keyflag == 1 && checkprint == 0);
if (keyflag == 1 && (dbtype == DB_RECNO || dbtype == DB_QUEUE))
ascii_recno = 1;
else
ascii_recno = 0;
/* If configured with a password, encrypt databases we create. */
if (LF_ISSET(LDF_PASSWORD) &&
(ret = dbp->set_flags(dbp, DB_ENCRYPT)) != 0) {
dbp->err(dbp, ret, "DB->set_flags: DB_ENCRYPT");
goto err;
}
/* Open the DB file. */
if ((ret = dbp->open(dbp, NULL, name, subdb, dbtype,
DB_CREATE | (TXN_ON(dbenv) ? DB_AUTO_COMMIT : 0),
__db_omode("rwrwrw"))) != 0) {
dbp->err(dbp, ret, "DB->open: %s", name);
goto err;
}
if (ldg->private != 0) {
if ((ret =
__db_util_cache(dbenv, dbp, &ldg->cache, &resize)) != 0)
goto err;
if (resize) {
dbp->close(dbp, 0);
dbp = NULL;
dbenv->close(dbenv, 0);
if ((ret = db_load_env_create(&dbenv, ldg)) != 0)
goto err;
goto retry_db;
}
}
/* Initialize the key/data pair. */
readp = &key;
writep = &key;
if (dbtype == DB_RECNO || dbtype == DB_QUEUE) {
key.size = sizeof(recno);
if (keyflag) {
key.data = &datarecno;
if (checkprint) {
readp = &rkey;
goto key_data;
}
}
else
key.data = &recno;
} else
key_data: if ((readp->data =
(void *)malloc(readp->ulen = 1024)) == NULL) {
dbenv->err(dbenv, ENOMEM, NULL);
goto err;
}
if ((data.data = (void *)malloc(data.ulen = 1024)) == NULL) {
dbenv->err(dbenv, ENOMEM, NULL);
goto err;
}
if (TXN_ON(dbenv) &&
(ret = dbenv->txn_begin(dbenv, NULL, &txn, 0)) != 0)
goto err;
/* Get each key/data pair and add them to the database. */
for (recno = 1; !__db_util_interrupted(); ++recno) {
if (!keyflag)
if (checkprint) {
if (db_load_dbt_rprint(dbenv, &data))
goto err;
} else {
if (db_load_dbt_rdump(dbenv, &data))
goto err;
}
else
if (checkprint) {
if (db_load_dbt_rprint(dbenv, readp))
goto err;
if (!G(endodata) && db_load_dbt_rprint(dbenv, &data))
goto fmt;
} else {
if (ascii_recno) {
if (db_load_dbt_rrecno(dbenv, readp, hexkeys))
goto err;
} else
if (db_load_dbt_rdump(dbenv, readp))
goto err;
if (!G(endodata) && db_load_dbt_rdump(dbenv, &data)) {
fmt: dbenv->errx(dbenv,
"odd number of key/data pairs");
goto err;
}
}
if (G(endodata))
break;
if (readp != writep) {
if (sscanf(readp->data, "%ud", &datarecno) != 1)
dbenv->errx(dbenv,
"%s: non-integer key at line: %d",
name, !keyflag ? recno : recno * 2 - 1);
if (datarecno == 0)
dbenv->errx(dbenv, "%s: zero key at line: %d",
name,
!keyflag ? recno : recno * 2 - 1);
}
retry: if (txn != NULL)
if ((ret = dbenv->txn_begin(dbenv, txn, &ctxn, 0)) != 0)
goto err;
switch (ret = dbp->put(dbp, ctxn, writep, &data, put_flags)) {
case 0:
if (ctxn != NULL) {
if ((ret =
ctxn->commit(ctxn, DB_TXN_NOSYNC)) != 0)
goto err;
ctxn = NULL;
}
break;
case DB_KEYEXIST:
*existedp = 1;
dbenv->errx(dbenv,
"%s: line %d: key already exists, not loaded:",
name,
!keyflag ? recno : recno * 2 - 1);
(void)__db_prdbt(&key, checkprint, 0, stderr,
__db_verify_callback, 0, NULL);
break;
case DB_LOCK_DEADLOCK:
/* If we have a child txn, retry--else it's fatal. */
if (ctxn != NULL) {
if ((ret = ctxn->abort(ctxn)) != 0)
goto err;
ctxn = NULL;
goto retry;
}
/* FALLTHROUGH */
default:
dbenv->err(dbenv, ret, NULL);
if (ctxn != NULL) {
(void)ctxn->abort(ctxn);
ctxn = NULL;
}
goto err;
}
if (ctxn != NULL) {
if ((ret = ctxn->abort(ctxn)) != 0)
goto err;
ctxn = NULL;
}
}
done: rval = 0;
DB_ASSERT(ctxn == NULL);
if (txn != NULL && (ret = txn->commit(txn, 0)) != 0) {
txn = NULL;
goto err;
}
if (0) {
err: rval = 1;
DB_ASSERT(ctxn == NULL);
if (txn != NULL)
(void)txn->abort(txn);
}
/* Close the database. */
if (dbp != NULL && (ret = dbp->close(dbp, 0)) != 0) {
dbenv->err(dbenv, ret, "DB->close");
rval = 1;
}
if (G(hdrbuf) != NULL)
free(G(hdrbuf));
G(hdrbuf) = NULL;
/* Free allocated memory. */
if (subdb != NULL)
free(subdb);
if (dbtype != DB_RECNO && dbtype != DB_QUEUE)
free(key.data);
if (rkey.data != NULL)
free(rkey.data);
free(data.data);
return (rval);
}
/*
* db_init --
* Initialize the environment.
*/
int
db_load_db_init(dbenv, home, cache, is_private)
DB_ENV *dbenv;
char *home;
u_int32_t cache;
int *is_private;
{
u_int32_t flags;
int ret;
*is_private = 0;
/* We may be loading into a live environment. Try and join. */
flags = DB_USE_ENVIRON |
DB_INIT_LOCK | DB_INIT_LOG | DB_INIT_MPOOL | DB_INIT_TXN;
if (dbenv->open(dbenv, home, flags, 0) == 0)
return (0);
/*
* We're trying to load a database.
*
* 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.
*/
LF_CLR(DB_INIT_LOCK | DB_INIT_LOG | DB_INIT_TXN);
LF_SET(DB_CREATE | DB_PRIVATE);
*is_private = 1;
if ((ret = dbenv->set_cachesize(dbenv, 0, cache, 1)) != 0) {
dbenv->err(dbenv, ret, "set_cachesize");
return (1);
}
if ((ret = dbenv->open(dbenv, home, flags, 0)) == 0)
return (0);
/* An environment is required. */
dbenv->err(dbenv, ret, "DB_ENV->open");
return (1);
}
#define FLAG(name, value, keyword, flag) \
if (strcmp(name, keyword) == 0) { \
switch (*value) { \
case '1': \
if ((ret = dbp->set_flags(dbp, flag)) != 0) { \
dbp->err(dbp, ret, "%s: set_flags: %s", \
G(progname), name); \
return (1); \
} \
break; \
case '0': \
break; \
default: \
db_load_badnum(dbenv); \
return (1); \
} \
continue; \
}
#define NUMBER(name, value, keyword, func) \
if (strcmp(name, keyword) == 0) { \
if (__db_getlong(dbp, \
NULL, value, 1, LONG_MAX, &val) != 0) \
return (1); \
if ((ret = dbp->func(dbp, val)) != 0) \
goto nameerr; \
continue; \
}
#define STRING(name, value, keyword, func) \
if (strcmp(name, keyword) == 0) { \
if ((ret = dbp->func(dbp, value[0])) != 0) \
goto nameerr; \
continue; \
}
/*
* configure --
* Handle command-line configuration options.
*/
int
db_load_configure(dbenv, dbp, clp, subdbp, keysp)
DB_ENV *dbenv;
DB *dbp;
char **clp, **subdbp;
int *keysp;
{
long val;
int ret, savech;
char *name, *value;
for (; (name = *clp) != NULL; *--value = savech, ++clp) {
if ((value = strchr(name, '=')) == NULL) {
dbp->errx(dbp,
"command-line configuration uses name=value format");
return (1);
}
savech = *value;
*value++ = '\0';
if (strcmp(name, "database") == 0 ||
strcmp(name, "subdatabase") == 0) {
if (*subdbp != NULL)
free(*subdbp);
if ((*subdbp = strdup(value)) == NULL) {
dbp->err(dbp, ENOMEM, NULL);
return (1);
}
continue;
}
if (strcmp(name, "keys") == 0) {
if (strcmp(value, "1") == 0)
*keysp = 1;
else if (strcmp(value, "0") == 0)
*keysp = 0;
else {
db_load_badnum(dbenv);
return (1);
}
continue;
}
#ifdef notyet
NUMBER(name, value, "bt_maxkey", set_bt_maxkey);
#endif
NUMBER(name, value, "bt_minkey", set_bt_minkey);
NUMBER(name, value, "db_lorder", set_lorder);
NUMBER(name, value, "db_pagesize", set_pagesize);
FLAG(name, value, "chksum", DB_CHKSUM_SHA1);
FLAG(name, value, "duplicates", DB_DUP);
FLAG(name, value, "dupsort", DB_DUPSORT);
NUMBER(name, value, "h_ffactor", set_h_ffactor);
NUMBER(name, value, "h_nelem", set_h_nelem);
NUMBER(name, value, "re_len", set_re_len);
STRING(name, value, "re_pad", set_re_pad);
FLAG(name, value, "recnum", DB_RECNUM);
FLAG(name, value, "renumber", DB_RENUMBER);
dbp->errx(dbp,
"unknown command-line configuration keyword \"%s\"", name);
return (1);
}
return (0);
nameerr:
dbp->err(dbp, ret, "%s: %s=%s", G(progname), name, value);
return (1);
}
/*
* rheader --
* Read the header message.
*/
int
db_load_rheader(dbenv, dbp, dbtypep, subdbp, checkprintp, keysp)
DB_ENV *dbenv;
DB *dbp;
DBTYPE *dbtypep;
char **subdbp;
int *checkprintp, *keysp;
{
long val;
int ch, first, hdr, linelen, buflen, ret, start;
char *buf, *name, *p, *value;
*dbtypep = DB_UNKNOWN;
*checkprintp = 0;
name = p = NULL;
/*
* We start with a smallish buffer; most headers are small.
* We may need to realloc it for a large subdatabase name.
*/
buflen = 4096;
if (G(hdrbuf) == NULL) {
hdr = 0;
if ((buf = (char *)malloc(buflen)) == NULL) {
memerr: dbp->errx(dbp, "could not allocate buffer %d", buflen);
return (1);
}
G(hdrbuf) = buf;
G(origline) = G(lineno);
} else {
hdr = 1;
buf = G(hdrbuf);
G(lineno) = G(origline);
}
start = 0;
for (first = 1;; first = 0) {
++G(lineno);
/* Read a line, which may be of arbitrary length, into buf. */
linelen = 0;
buf = &G(hdrbuf)[start];
if (hdr == 0) {
for (;;) {
if ((ch = getchar()) == EOF) {
if (!first || ferror(stdin))
goto badfmt;
G(endofile) = 1;
break;
}
if (ch == '\n')
break;
buf[linelen++] = ch;
/* If the buffer is too small, double it. */
if (linelen + start == buflen) {
G(hdrbuf) = (char *)realloc(G(hdrbuf),
buflen *= 2);
if (G(hdrbuf) == NULL)
goto memerr;
buf = &G(hdrbuf)[start];
}
}
if (G(endofile) == 1)
break;
buf[linelen++] = '\0';
} else
linelen = strlen(buf) + 1;
start += linelen;
if (name != NULL) {
*p = '=';
free(name);
name = NULL;
}
/* If we don't see the expected information, it's an error. */
if ((name = strdup(buf)) == NULL)
goto memerr;
if ((p = strchr(name, '=')) == NULL)
goto badfmt;
*p++ = '\0';
value = p--;
if (name[0] == '\0' || value[0] == '\0')
goto badfmt;
if (strcmp(name, "HEADER") == 0)
break;
if (strcmp(name, "VERSION") == 0) {
/*
* Version 1 didn't have a "VERSION" header line. We
* only support versions 1, 2, and 3 of the dump format.
*/
G(version) = atoi(value);
if (G(version) > 3) {
dbp->errx(dbp,
"line %lu: VERSION %d is unsupported",
G(lineno), G(version));
goto err;
}
continue;
}
if (strcmp(name, "format") == 0) {
if (strcmp(value, "bytevalue") == 0) {
*checkprintp = 0;
continue;
}
if (strcmp(value, "print") == 0) {
*checkprintp = 1;
continue;
}
goto badfmt;
}
if (strcmp(name, "type") == 0) {
if (strcmp(value, "btree") == 0) {
*dbtypep = DB_BTREE;
continue;
}
if (strcmp(value, "hash") == 0) {
*dbtypep = DB_HASH;
continue;
}
if (strcmp(value, "recno") == 0) {
*dbtypep = DB_RECNO;
continue;
}
if (strcmp(value, "queue") == 0) {
*dbtypep = DB_QUEUE;
continue;
}
dbp->errx(dbp, "line %lu: unknown type", G(lineno));
goto err;
}
if (strcmp(name, "database") == 0 ||
strcmp(name, "subdatabase") == 0) {
if ((ret = db_load_convprintable(dbenv, value, subdbp)) != 0) {
dbp->err(dbp, ret, "error reading db name");
goto err;
}
continue;
}
if (strcmp(name, "keys") == 0) {
if (strcmp(value, "1") == 0)
*keysp = 1;
else if (strcmp(value, "0") == 0)
*keysp = 0;
else {
db_load_badnum(dbenv);
goto err;
}
continue;
}
#ifdef notyet
NUMBER(name, value, "bt_maxkey", set_bt_maxkey);
#endif
NUMBER(name, value, "bt_minkey", set_bt_minkey);
NUMBER(name, value, "db_lorder", set_lorder);
NUMBER(name, value, "db_pagesize", set_pagesize);
NUMBER(name, value, "extentsize", set_q_extentsize);
FLAG(name, value, "chksum", DB_CHKSUM_SHA1);
FLAG(name, value, "duplicates", DB_DUP);
FLAG(name, value, "dupsort", DB_DUPSORT);
NUMBER(name, value, "h_ffactor", set_h_ffactor);
NUMBER(name, value, "h_nelem", set_h_nelem);
NUMBER(name, value, "re_len", set_re_len);
STRING(name, value, "re_pad", set_re_pad);
FLAG(name, value, "recnum", DB_RECNUM);
FLAG(name, value, "renumber", DB_RENUMBER);
dbp->errx(dbp,
"unknown input-file header configuration keyword \"%s\"",
name);
goto err;
}
ret = 0;
if (0) {
nameerr:
dbp->err(dbp, ret, "%s: %s=%s", G(progname), name, value);
ret = 1;
}
if (0)
err: ret = 1;
if (0) {
badfmt:
dbp->errx(dbp, "line %lu: unexpected format", G(lineno));
ret = 1;
}
if (name != NULL) {
*p = '=';
free(name);
}
return (ret);
}
/*
* convprintable --
* Convert a printable-encoded string into a newly allocated string.
*
* In an ideal world, this would probably share code with dbt_rprint, but
* that's set up to read character-by-character (to avoid large memory
* allocations that aren't likely to be a problem here), and this has fewer
* special cases to deal with.
*
* Note that despite the printable encoding, the char * interface to this
* function (which is, not coincidentally, also used for database naming)
* means that outstr cannot contain any nuls.
*/
int
db_load_convprintable(dbenv, instr, outstrp)
DB_ENV *dbenv;
char *instr, **outstrp;
{
char c, *outstr;
int e1, e2;
/*
* Just malloc a string big enough for the whole input string;
* the output string will be smaller (or of equal length).
*/
if ((outstr = (char *)malloc(strlen(instr))) == NULL)
return (ENOMEM);
*outstrp = outstr;
e1 = e2 = 0;
for ( ; *instr != '\0'; instr++)
if (*instr == '\\') {
if (*++instr == '\\') {
*outstr++ = '\\';
continue;
}
c = db_load_digitize(dbenv, *instr, &e1) << 4;
c |= db_load_digitize(dbenv, *++instr, &e2);
if (e1 || e2) {
db_load_badend(dbenv);
return (EINVAL);
}
*outstr++ = c;
} else
*outstr++ = *instr;
*outstr = '\0';
return (0);
}
/*
* dbt_rprint --
* Read a printable line into a DBT structure.
*/
int
db_load_dbt_rprint(dbenv, dbtp)
DB_ENV *dbenv;
DBT *dbtp;
{
u_int32_t len;
u_int8_t *p;
int c1, c2, e, escape, first;
char buf[32];
++G(lineno);
first = 1;
e = escape = 0;
for (p = dbtp->data, len = 0; (c1 = getchar()) != '\n';) {
if (c1 == EOF) {
if (len == 0) {
G(endofile) = G(endodata) = 1;
return (0);
}
db_load_badend(dbenv);
return (1);
}
if (first) {
first = 0;
if (G(version) > 1) {
if (c1 != ' ') {
buf[0] = c1;
if (fgets(buf + 1,
sizeof(buf) - 1, stdin) == NULL ||
strcmp(buf, "DATA=END\n") != 0) {
db_load_badend(dbenv);
return (1);
}
G(endodata) = 1;
return (0);
}
continue;
}
}
if (escape) {
if (c1 != '\\') {
if ((c2 = getchar()) == EOF) {
db_load_badend(dbenv);
return (1);
}
c1 = db_load_digitize(dbenv,
c1, &e) << 4 | db_load_digitize(dbenv, c2, &e);
if (e)
return (1);
}
escape = 0;
} else
if (c1 == '\\') {
escape = 1;
continue;
}
if (len >= dbtp->ulen - 10) {
dbtp->ulen *= 2;
if ((dbtp->data =
(void *)realloc(dbtp->data, dbtp->ulen)) == NULL) {
dbenv->err(dbenv, ENOMEM, NULL);
return (1);
}
p = (u_int8_t *)dbtp->data + len;
}
++len;
*p++ = c1;
}
dbtp->size = len;
return (0);
}
/*
* dbt_rdump --
* Read a byte dump line into a DBT structure.
*/
int
db_load_dbt_rdump(dbenv, dbtp)
DB_ENV *dbenv;
DBT *dbtp;
{
u_int32_t len;
u_int8_t *p;
int c1, c2, e, first;
char buf[32];
++G(lineno);
first = 1;
e = 0;
for (p = dbtp->data, len = 0; (c1 = getchar()) != '\n';) {
if (c1 == EOF) {
if (len == 0) {
G(endofile) = G(endodata) = 1;
return (0);
}
db_load_badend(dbenv);
return (1);
}
if (first) {
first = 0;
if (G(version) > 1) {
if (c1 != ' ') {
buf[0] = c1;
if (fgets(buf + 1,
sizeof(buf) - 1, stdin) == NULL ||
strcmp(buf, "DATA=END\n") != 0) {
db_load_badend(dbenv);
return (1);
}
G(endodata) = 1;
return (0);
}
continue;
}
}
if ((c2 = getchar()) == EOF) {
db_load_badend(dbenv);
return (1);
}
if (len >= dbtp->ulen - 10) {
dbtp->ulen *= 2;
if ((dbtp->data =
(void *)realloc(dbtp->data, dbtp->ulen)) == NULL) {
dbenv->err(dbenv, ENOMEM, NULL);
return (1);
}
p = (u_int8_t *)dbtp->data + len;
}
++len;
*p++ = db_load_digitize(dbenv, c1, &e) << 4 | db_load_digitize(dbenv, c2, &e);
if (e)
return (1);
}
dbtp->size = len;
return (0);
}
/*
* dbt_rrecno --
* Read a record number dump line into a DBT structure.
*/
int
db_load_dbt_rrecno(dbenv, dbtp, ishex)
DB_ENV *dbenv;
DBT *dbtp;
int ishex;
{
char buf[32], *p, *q;
++G(lineno);
if (fgets(buf, sizeof(buf), stdin) == NULL) {
G(endofile) = G(endodata) = 1;
return (0);
}
if (strcmp(buf, "DATA=END\n") == 0) {
G(endodata) = 1;
return (0);
}
if (buf[0] != ' ')
goto bad;
/*
* If we're expecting a hex key, do an in-place conversion
* of hex to straight ASCII before calling __db_getulong().
*/
if (ishex) {
for (p = q = buf + 1; *q != '\0' && *q != '\n';) {
/*
* 0-9 in hex are 0x30-0x39, so this is easy.
* We should alternate between 3's and [0-9], and
* if the [0-9] are something unexpected,
* __db_getulong will fail, so we only need to catch
* end-of-string conditions.
*/
if (*q++ != '3')
goto bad;
if (*q == '\n' || *q == '\0')
goto bad;
*p++ = *q++;
}
*p = '\0';
}
if (__db_getulong(NULL,
G(progname), buf + 1, 0, 0, (u_long *)dbtp->data)) {
bad: db_load_badend(dbenv);
return (1);
}
dbtp->size = sizeof(db_recno_t);
return (0);
}
/*
* digitize --
* Convert a character to an integer.
*/
int
db_load_digitize(dbenv, c, errorp)
DB_ENV *dbenv;
int c, *errorp;
{
switch (c) { /* Don't depend on ASCII ordering. */
case '0': return (0);
case '1': return (1);
case '2': return (2);
case '3': return (3);
case '4': return (4);
case '5': return (5);
case '6': return (6);
case '7': return (7);
case '8': return (8);
case '9': return (9);
case 'a': return (10);
case 'b': return (11);
case 'c': return (12);
case 'd': return (13);
case 'e': return (14);
case 'f': return (15);
}
dbenv->errx(dbenv, "unexpected hexadecimal value");
*errorp = 1;
return (0);
}
/*
* badnum --
* Display the bad number message.
*/
void
db_load_badnum(dbenv)
DB_ENV *dbenv;
{
dbenv->errx(dbenv,
"boolean name=value pairs require a value of 0 or 1");
}
/*
* badend --
* Display the bad end to input message.
*/
void
db_load_badend(dbenv)
DB_ENV *dbenv;
{
dbenv->errx(dbenv, "unexpected end of input data or key/data pair");
}
/*
* usage --
* Display the usage message.
*/
int
db_load_usage()
{
(void)fprintf(stderr, "%s\n\t%s\n",
"usage: db_load [-nTV] [-c name=value] [-f file]",
"[-h home] [-P password] [-t btree | hash | recno | queue] db_file");
return (EXIT_FAILURE);
}
int
db_load_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);
}
int
db_load_env_create(dbenvp, ldg)
DB_ENV **dbenvp;
LDG *ldg;
{
DB_ENV *dbenv;
int ret;
if ((ret = db_env_create(dbenvp, 0)) != 0) {
fprintf(stderr,
"%s: db_env_create: %s\n", ldg->progname, db_strerror(ret));
return (ret);
}
dbenv = *dbenvp;
dbenv->set_errfile(dbenv, stderr);
dbenv->set_errpfx(dbenv, ldg->progname);
if (ldg->passwd != NULL && (ret = dbenv->set_encrypt(dbenv,
ldg->passwd, DB_ENCRYPT_AES)) != 0) {
dbenv->err(dbenv, ret, "set_passwd");
return (ret);
}
if ((ret = db_load_db_init(dbenv, ldg->home, ldg->cache, &ldg->private)) != 0)
return (ret);
dbenv->app_private = ldg;
return (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>
#
# 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
/* 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 */
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>
/*-
* 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);
}
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>
#
# 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
/* 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 */
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>
/*-
* 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, &timestamp)) != 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, &timestamp)) != 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);
}
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>
#
# 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
/* 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 */
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>
/*-
* 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_stat.c,v 11.125 2002/08/08 15:26:15 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 <ctype.h>
#include <stdlib.h>
#include <string.h>
#include <unistd.h>
#endif
#include "db_int.h"
#include "dbinc/db_page.h"
#define PCT(f, t, pgsize) \
((t) == 0 ? 0 : \
(((double)(((t) * (pgsize)) - (f)) / ((t) * (pgsize))) * 100))
typedef enum { T_NOTSET,
T_DB, T_ENV, T_LOCK, T_LOG, T_MPOOL, T_REP, T_TXN } test_t;
int db_stat_argcheck __P((char *, const char *));
int db_stat_btree_stats __P((DB_ENV *, DB *, DB_BTREE_STAT *, int));
int db_stat_db_init __P((DB_ENV *, char *, test_t, u_int32_t, int *));
void db_stat_dl __P((const char *, u_long));
void db_stat_dl_bytes __P((const char *, u_long, u_long, u_long));
int db_stat_env_stats __P((DB_ENV *, u_int32_t));
int db_stat_hash_stats __P((DB_ENV *, DB *, int));
int db_stat_lock_stats __P((DB_ENV *, char *, u_int32_t));
int db_stat_log_stats __P((DB_ENV *, u_int32_t));
int db_stat_main __P((int, char *[]));
int db_stat_mpool_stats __P((DB_ENV *, char *, u_int32_t));
void db_stat_prflags __P((u_int32_t, const FN *));
int db_stat_queue_stats __P((DB_ENV *, DB *, int));
int db_stat_rep_stats __P((DB_ENV *, u_int32_t));
int db_stat_txn_compare __P((const void *, const void *));
int db_stat_txn_stats __P((DB_ENV *, u_int32_t));
int db_stat_usage __P((void));
int db_stat_version_check __P((const char *));
int
db_stat(args)
char *args;
{
int argc;
char **argv;
__db_util_arg("db_stat", args, &argc, &argv);
return (db_stat_main(argc, argv) ? EXIT_FAILURE : EXIT_SUCCESS);
}
#include <stdio.h>
#define ERROR_RETURN ERROR
int
db_stat_main(argc, argv)
int argc;
char *argv[];
{
extern char *optarg;
extern int optind, __db_getopt_reset;
const char *progname = "db_stat";
DB_ENV *dbenv;
DB_BTREE_STAT *sp;
DB *alt_dbp, *dbp;
test_t ttype;
u_int32_t cache;
int ch, checked, d_close, e_close, exitval, fast, flags;
int nflag, private, resize, ret;
char *db, *home, *internal, *passwd, *subdb;
if ((ret = db_stat_version_check(progname)) != 0)
return (ret);
dbp = NULL;
ttype = T_NOTSET;
cache = MEGABYTE;
d_close = e_close = exitval = fast = flags = nflag = private = 0;
db = home = internal = passwd = subdb = NULL;
__db_getopt_reset = 1;
while ((ch = getopt(argc, argv, "C:cd:efh:lM:mNP:rs:tVZ")) != EOF)
switch (ch) {
case 'C':
if (ttype != T_NOTSET)
goto argcombo;
ttype = T_LOCK;
if (!db_stat_argcheck(internal = optarg, "Aclmop"))
return (db_stat_usage());
break;
case 'c':
if (ttype != T_NOTSET)
goto argcombo;
ttype = T_LOCK;
break;
case 'd':
if (ttype != T_DB && ttype != T_NOTSET)
goto argcombo;
ttype = T_DB;
db = optarg;
break;
case 'e':
if (ttype != T_NOTSET)
goto argcombo;
ttype = T_ENV;
break;
case 'f':
fast = DB_FAST_STAT;
break;
case 'h':
home = optarg;
break;
case 'l':
if (ttype != T_NOTSET)
goto argcombo;
ttype = T_LOG;
break;
case 'M':
if (ttype != T_NOTSET)
goto argcombo;
ttype = T_MPOOL;
if (!db_stat_argcheck(internal = optarg, "Ahm"))
return (db_stat_usage());
break;
case 'm':
if (ttype != T_NOTSET)
goto argcombo;
ttype = T_MPOOL;
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':
if (ttype != T_NOTSET)
goto argcombo;
ttype = T_REP;
break;
case 's':
if (ttype != T_DB && ttype != T_NOTSET)
goto argcombo;
ttype = T_DB;
subdb = optarg;
break;
case 't':
if (ttype != T_NOTSET) {
argcombo: fprintf(stderr,
"%s: illegal option combination\n",
progname);
return (EXIT_FAILURE);
}
ttype = T_TXN;
break;
case 'V':
printf("%s\n", db_version(NULL, NULL, NULL));
return (EXIT_SUCCESS);
case 'Z':
flags |= DB_STAT_CLEAR;
break;
case '?':
default:
return (db_stat_usage());
}
argc -= optind;
argv += optind;
switch (ttype) {
case T_DB:
if (db == NULL)
return (db_stat_usage());
break;
case T_NOTSET:
return (db_stat_usage());
/* NOTREACHED */
default:
if (fast != 0)
return (db_stat_usage());
break;
}
/* 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;
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;
}
/* Initialize the environment. */
if (db_stat_db_init(dbenv, home, ttype, cache, &private) != 0)
goto shutdown;
switch (ttype) {
case T_DB:
/* Create the DB object and open the file. */
if (flags != 0)
return (db_stat_usage());
if ((ret = db_create(&dbp, dbenv, 0)) != 0) {
dbenv->err(dbenv, ret, "db_create");
goto shutdown;
}
d_close = 1;
if ((ret = dbp->open(dbp,
NULL, db, subdb, DB_UNKNOWN, DB_RDONLY, 0)) != 0) {
dbp->err(dbp, ret, "DB->open: %s", db);
goto shutdown;
}
/* Check if cache is too small for this DB's pagesize. */
if (private) {
if ((ret =
__db_util_cache(dbenv, dbp, &cache, &resize)) != 0)
goto shutdown;
if (resize) {
(void)dbp->close(dbp, 0);
d_close = 0;
(void)dbenv->close(dbenv, 0);
e_close = 0;
goto retry;
}
}
/*
* See if we can open this db read/write to update counts.
* If its a master-db then we cannot. So check to see,
* if its btree then it might be.
*/
checked = 0;
if (subdb == NULL && dbp->type == DB_BTREE) {
if ((ret = dbp->stat(dbp, &sp, DB_FAST_STAT)) != 0) {
dbp->err(dbp, ret, "DB->stat");
goto shutdown;
}
checked = 1;
}
if (subdb != NULL ||
dbp->type != DB_BTREE ||
(sp->bt_metaflags & BTM_SUBDB) == 0) {
if ((ret = db_create(&alt_dbp, dbenv, 0)) != 0) {
dbenv->err(dbenv, ret, "db_create");
goto shutdown;
}
if ((ret = dbp->open(alt_dbp, NULL,
db, subdb, DB_UNKNOWN, 0, 0)) != 0) {
dbenv->err(dbenv,
ret, "DB->open: %s:%s", db, subdb);
(void)alt_dbp->close(alt_dbp, 0);
goto shutdown;
}
(void)dbp->close(dbp, 0);
dbp = alt_dbp;
/* Need to run again to update counts */
checked = 0;
}
switch (dbp->type) {
case DB_BTREE:
case DB_RECNO:
if (db_stat_btree_stats(
dbenv, dbp, checked == 1 ? sp : NULL, fast))
goto shutdown;
break;
case DB_HASH:
if (db_stat_hash_stats(dbenv, dbp, fast))
goto shutdown;
break;
case DB_QUEUE:
if (db_stat_queue_stats(dbenv, dbp, fast))
goto shutdown;
break;
case DB_UNKNOWN:
dbenv->errx(dbenv, "Unknown database type.");
goto shutdown;
}
break;
case T_ENV:
if (db_stat_env_stats(dbenv, flags))
goto shutdown;
break;
case T_LOCK:
if (db_stat_lock_stats(dbenv, internal, flags))
goto shutdown;
break;
case T_LOG:
if (db_stat_log_stats(dbenv, flags))
goto shutdown;
break;
case T_MPOOL:
if (db_stat_mpool_stats(dbenv, internal, flags))
goto shutdown;
break;
case T_REP:
if (db_stat_rep_stats(dbenv, flags))
goto shutdown;
break;
case T_TXN:
if (db_stat_txn_stats(dbenv, flags))
goto shutdown;
break;
case T_NOTSET:
dbenv->errx(dbenv, "Unknown statistics flag.");
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);
}
/*
* env_stats --
* Display environment statistics.
*/
int
db_stat_env_stats(dbenv, flags)
DB_ENV *dbenv;
u_int32_t flags;
{
REGENV renv;
REGION *rp, regs[1024];
int n, ret;
const char *lable;
n = sizeof(regs) / sizeof(regs[0]);
if ((ret = __db_e_stat(dbenv, &renv, regs, &n, flags)) != 0) {
dbenv->err(dbenv, ret, "__db_e_stat");
return (1);
}
printf("%d.%d.%d\tEnvironment version.\n",
renv.majver, renv.minver, renv.patch);
printf("%lx\tMagic number.\n", (u_long)renv.magic);
printf("%d\tPanic value.\n", renv.envpanic);
/* Adjust the reference count for us... */
printf("%d\tReferences.\n", renv.refcnt - 1);
db_stat_dl("Locks granted without waiting.\n",
(u_long)renv.mutex.mutex_set_nowait);
db_stat_dl("Locks granted after waiting.\n",
(u_long)renv.mutex.mutex_set_wait);
while (n > 0) {
printf("%s\n", DB_LINE);
rp = &regs[--n];
switch (rp->type) {
case REGION_TYPE_ENV:
lable = "Environment";
break;
case REGION_TYPE_LOCK:
lable = "Lock";
break;
case REGION_TYPE_LOG:
lable = "Log";
break;
case REGION_TYPE_MPOOL:
lable = "Mpool";
break;
case REGION_TYPE_MUTEX:
lable = "Mutex";
break;
case REGION_TYPE_TXN:
lable = "Txn";
break;
case INVALID_REGION_TYPE:
default:
lable = "Invalid";
break;
}
printf("%s Region: %d.\n", lable, rp->id);
db_stat_dl_bytes("Size", (u_long)0, (u_long)0, (u_long)rp->size);
printf("%ld\tSegment ID.\n", rp->segid);
db_stat_dl("Locks granted without waiting.\n",
(u_long)rp->mutex.mutex_set_nowait);
db_stat_dl("Locks granted after waiting.\n",
(u_long)rp->mutex.mutex_set_wait);
}
return (0);
}
/*
* btree_stats --
* Display btree/recno statistics.
*/
int
db_stat_btree_stats(dbenv, dbp, msp, fast)
DB_ENV *dbenv;
DB *dbp;
DB_BTREE_STAT *msp;
int fast;
{
static const FN fn[] = {
{ BTM_DUP, "duplicates" },
{ BTM_FIXEDLEN, "fixed-length" },
{ BTM_RECNO, "recno" },
{ BTM_RECNUM, "record-numbers" },
{ BTM_RENUMBER, "renumber" },
{ BTM_SUBDB, "multiple-databases" },
{ 0, NULL }
};
DB_BTREE_STAT *sp;
int ret;
COMPQUIET(dbenv, NULL);
if (msp != NULL)
sp = msp;
else if ((ret = dbp->stat(dbp, &sp, fast)) != 0) {
dbp->err(dbp, ret, "DB->stat");
return (1);
}
printf("%lx\tBtree magic number.\n", (u_long)sp->bt_magic);
printf("%lu\tBtree version number.\n", (u_long)sp->bt_version);
db_stat_prflags(sp->bt_metaflags, fn);
if (dbp->type == DB_BTREE) {
#ifdef NOT_IMPLEMENTED
db_stat_dl("Maximum keys per-page.\n", (u_long)sp->bt_maxkey);
#endif
db_stat_dl("Minimum keys per-page.\n", (u_long)sp->bt_minkey);
}
if (dbp->type == DB_RECNO) {
db_stat_dl("Fixed-length record size.\n", (u_long)sp->bt_re_len);
if (isprint(sp->bt_re_pad) && !isspace(sp->bt_re_pad))
printf("%c\tFixed-length record pad.\n",
(int)sp->bt_re_pad);
else
printf("0x%x\tFixed-length record pad.\n",
(int)sp->bt_re_pad);
}
db_stat_dl("Underlying database page size.\n", (u_long)sp->bt_pagesize);
db_stat_dl("Number of levels in the tree.\n", (u_long)sp->bt_levels);
db_stat_dl(dbp->type == DB_BTREE ?
"Number of unique keys in the tree.\n" :
"Number of records in the tree.\n", (u_long)sp->bt_nkeys);
db_stat_dl("Number of data items in the tree.\n", (u_long)sp->bt_ndata);
db_stat_dl("Number of tree internal pages.\n", (u_long)sp->bt_int_pg);
db_stat_dl("Number of bytes free in tree internal pages",
(u_long)sp->bt_int_pgfree);
printf(" (%.0f%% ff).\n",
PCT(sp->bt_int_pgfree, sp->bt_int_pg, sp->bt_pagesize));
db_stat_dl("Number of tree leaf pages.\n", (u_long)sp->bt_leaf_pg);
db_stat_dl("Number of bytes free in tree leaf pages",
(u_long)sp->bt_leaf_pgfree);
printf(" (%.0f%% ff).\n",
PCT(sp->bt_leaf_pgfree, sp->bt_leaf_pg, sp->bt_pagesize));
db_stat_dl("Number of tree duplicate pages.\n", (u_long)sp->bt_dup_pg);
db_stat_dl("Number of bytes free in tree duplicate pages",
(u_long)sp->bt_dup_pgfree);
printf(" (%.0f%% ff).\n",
PCT(sp->bt_dup_pgfree, sp->bt_dup_pg, sp->bt_pagesize));
db_stat_dl("Number of tree overflow pages.\n", (u_long)sp->bt_over_pg);
db_stat_dl("Number of bytes free in tree overflow pages",
(u_long)sp->bt_over_pgfree);
printf(" (%.0f%% ff).\n",
PCT(sp->bt_over_pgfree, sp->bt_over_pg, sp->bt_pagesize));
db_stat_dl("Number of pages on the free list.\n", (u_long)sp->bt_free);
free(sp);
return (0);
}
/*
* hash_stats --
* Display hash statistics.
*/
int
db_stat_hash_stats(dbenv, dbp, fast)
DB_ENV *dbenv;
DB *dbp;
int fast;
{
static const FN fn[] = {
{ DB_HASH_DUP, "duplicates" },
{ DB_HASH_SUBDB,"multiple-databases" },
{ 0, NULL }
};
DB_HASH_STAT *sp;
int ret;
COMPQUIET(dbenv, NULL);
if ((ret = dbp->stat(dbp, &sp, fast)) != 0) {
dbp->err(dbp, ret, "DB->stat");
return (1);
}
printf("%lx\tHash magic number.\n", (u_long)sp->hash_magic);
printf("%lu\tHash version number.\n", (u_long)sp->hash_version);
db_stat_prflags(sp->hash_metaflags, fn);
db_stat_dl("Underlying database page size.\n", (u_long)sp->hash_pagesize);
db_stat_dl("Specified fill factor.\n", (u_long)sp->hash_ffactor);
db_stat_dl("Number of keys in the database.\n", (u_long)sp->hash_nkeys);
db_stat_dl("Number of data items in the database.\n", (u_long)sp->hash_ndata);
db_stat_dl("Number of hash buckets.\n", (u_long)sp->hash_buckets);
db_stat_dl("Number of bytes free on bucket pages", (u_long)sp->hash_bfree);
printf(" (%.0f%% ff).\n",
PCT(sp->hash_bfree, sp->hash_buckets, sp->hash_pagesize));
db_stat_dl("Number of overflow pages.\n", (u_long)sp->hash_bigpages);
db_stat_dl("Number of bytes free in overflow pages",
(u_long)sp->hash_big_bfree);
printf(" (%.0f%% ff).\n",
PCT(sp->hash_big_bfree, sp->hash_bigpages, sp->hash_pagesize));
db_stat_dl("Number of bucket overflow pages.\n", (u_long)sp->hash_overflows);
db_stat_dl("Number of bytes free in bucket overflow pages",
(u_long)sp->hash_ovfl_free);
printf(" (%.0f%% ff).\n",
PCT(sp->hash_ovfl_free, sp->hash_overflows, sp->hash_pagesize));
db_stat_dl("Number of duplicate pages.\n", (u_long)sp->hash_dup);
db_stat_dl("Number of bytes free in duplicate pages",
(u_long)sp->hash_dup_free);
printf(" (%.0f%% ff).\n",
PCT(sp->hash_dup_free, sp->hash_dup, sp->hash_pagesize));
db_stat_dl("Number of pages on the free list.\n", (u_long)sp->hash_free);
free(sp);
return (0);
}
/*
* queue_stats --
* Display queue statistics.
*/
int
db_stat_queue_stats(dbenv, dbp, fast)
DB_ENV *dbenv;
DB *dbp;
int fast;
{
DB_QUEUE_STAT *sp;
int ret;
COMPQUIET(dbenv, NULL);
if ((ret = dbp->stat(dbp, &sp, fast)) != 0) {
dbp->err(dbp, ret, "DB->stat");
return (1);
}
printf("%lx\tQueue magic number.\n", (u_long)sp->qs_magic);
printf("%lu\tQueue version number.\n", (u_long)sp->qs_version);
db_stat_dl("Fixed-length record size.\n", (u_long)sp->qs_re_len);
if (isprint(sp->qs_re_pad) && !isspace(sp->qs_re_pad))
printf("%c\tFixed-length record pad.\n", (int)sp->qs_re_pad);
else
printf("0x%x\tFixed-length record pad.\n", (int)sp->qs_re_pad);
db_stat_dl("Underlying database page size.\n", (u_long)sp->qs_pagesize);
if (sp->qs_extentsize != 0)
db_stat_dl("Underlying database extent size.\n",
(u_long)sp->qs_extentsize);
db_stat_dl("Number of records in the database.\n", (u_long)sp->qs_nkeys);
db_stat_dl("Number of database pages.\n", (u_long)sp->qs_pages);
db_stat_dl("Number of bytes free in database pages", (u_long)sp->qs_pgfree);
printf(" (%.0f%% ff).\n",
PCT(sp->qs_pgfree, sp->qs_pages, sp->qs_pagesize));
printf("%lu\tFirst undeleted record.\n", (u_long)sp->qs_first_recno);
printf(
"%lu\tNext available record number.\n", (u_long)sp->qs_cur_recno);
free(sp);
return (0);
}
/*
* lock_stats --
* Display lock statistics.
*/
int
db_stat_lock_stats(dbenv, internal, flags)
DB_ENV *dbenv;
char *internal;
u_int32_t flags;
{
DB_LOCK_STAT *sp;
int ret;
if (internal != NULL) {
if ((ret =
dbenv->lock_dump_region(dbenv, internal, stdout)) != 0) {
dbenv->err(dbenv, ret, NULL);
return (1);
}
return (0);
}
if ((ret = dbenv->lock_stat(dbenv, &sp, flags)) != 0) {
dbenv->err(dbenv, ret, NULL);
return (1);
}
db_stat_dl("Last allocated locker ID.\n", (u_long)sp->st_id);
db_stat_dl("Current maximum unused locker ID.\n", (u_long)sp->st_cur_maxid);
db_stat_dl("Number of lock modes.\n", (u_long)sp->st_nmodes);
db_stat_dl("Maximum number of locks possible.\n", (u_long)sp->st_maxlocks);
db_stat_dl("Maximum number of lockers possible.\n", (u_long)sp->st_maxlockers);
db_stat_dl("Maximum number of lock objects possible.\n",
(u_long)sp->st_maxobjects);
db_stat_dl("Number of current locks.\n", (u_long)sp->st_nlocks);
db_stat_dl("Maximum number of locks at any one time.\n",
(u_long)sp->st_maxnlocks);
db_stat_dl("Number of current lockers.\n", (u_long)sp->st_nlockers);
db_stat_dl("Maximum number of lockers at any one time.\n",
(u_long)sp->st_maxnlockers);
db_stat_dl("Number of current lock objects.\n", (u_long)sp->st_nobjects);
db_stat_dl("Maximum number of lock objects at any one time.\n",
(u_long)sp->st_maxnobjects);
db_stat_dl("Total number of locks requested.\n", (u_long)sp->st_nrequests);
db_stat_dl("Total number of locks released.\n", (u_long)sp->st_nreleases);
db_stat_dl(
"Total number of lock requests failing because DB_LOCK_NOWAIT was set.\n",
(u_long)sp->st_nnowaits);
db_stat_dl(
"Total number of locks not immediately available due to conflicts.\n",
(u_long)sp->st_nconflicts);
db_stat_dl("Number of deadlocks.\n", (u_long)sp->st_ndeadlocks);
db_stat_dl("Lock timeout value.\n", (u_long)sp->st_locktimeout);
db_stat_dl("Number of locks that have timed out.\n",
(u_long)sp->st_nlocktimeouts);
db_stat_dl("Transaction timeout value.\n", (u_long)sp->st_txntimeout);
db_stat_dl("Number of transactions that have timed out.\n",
(u_long)sp->st_ntxntimeouts);
db_stat_dl_bytes("The size of the lock region.",
(u_long)0, (u_long)0, (u_long)sp->st_regsize);
db_stat_dl("The number of region locks granted after waiting.\n",
(u_long)sp->st_region_wait);
db_stat_dl("The number of region locks granted without waiting.\n",
(u_long)sp->st_region_nowait);
free(sp);
return (0);
}
/*
* log_stats --
* Display log statistics.
*/
int
db_stat_log_stats(dbenv, flags)
DB_ENV *dbenv;
u_int32_t flags;
{
DB_LOG_STAT *sp;
int ret;
if ((ret = dbenv->log_stat(dbenv, &sp, flags)) != 0) {
dbenv->err(dbenv, ret, NULL);
return (1);
}
printf("%lx\tLog magic number.\n", (u_long)sp->st_magic);
printf("%lu\tLog version number.\n", (u_long)sp->st_version);
db_stat_dl_bytes("Log record cache size",
(u_long)0, (u_long)0, (u_long)sp->st_lg_bsize);
printf("%#o\tLog file mode.\n", sp->st_mode);
if (sp->st_lg_size % MEGABYTE == 0)
printf("%luMb\tCurrent log file size.\n",
(u_long)sp->st_lg_size / MEGABYTE);
else if (sp->st_lg_size % 1024 == 0)
printf("%luKb\tCurrent log file size.\n",
(u_long)sp->st_lg_size / 1024);
else
printf("%lu\tCurrent log file size.\n",
(u_long)sp->st_lg_size);
db_stat_dl_bytes("Log bytes written",
(u_long)0, (u_long)sp->st_w_mbytes, (u_long)sp->st_w_bytes);
db_stat_dl_bytes("Log bytes written since last checkpoint",
(u_long)0, (u_long)sp->st_wc_mbytes, (u_long)sp->st_wc_bytes);
db_stat_dl("Total log file writes.\n", (u_long)sp->st_wcount);
db_stat_dl("Total log file write due to overflow.\n",
(u_long)sp->st_wcount_fill);
db_stat_dl("Total log file flushes.\n", (u_long)sp->st_scount);
printf("%lu\tCurrent log file number.\n", (u_long)sp->st_cur_file);
printf("%lu\tCurrent log file offset.\n", (u_long)sp->st_cur_offset);
printf("%lu\tOn-disk log file number.\n", (u_long)sp->st_disk_file);
printf("%lu\tOn-disk log file offset.\n", (u_long)sp->st_disk_offset);
db_stat_dl("Max commits in a log flush.\n", (u_long)sp->st_maxcommitperflush);
db_stat_dl("Min commits in a log flush.\n", (u_long)sp->st_mincommitperflush);
db_stat_dl_bytes("Log region size",
(u_long)0, (u_long)0, (u_long)sp->st_regsize);
db_stat_dl("The number of region locks granted after waiting.\n",
(u_long)sp->st_region_wait);
db_stat_dl("The number of region locks granted without waiting.\n",
(u_long)sp->st_region_nowait);
free(sp);
return (0);
}
/*
* mpool_stats --
* Display mpool statistics.
*/
int
db_stat_mpool_stats(dbenv, internal, flags)
DB_ENV *dbenv;
char *internal;
u_int32_t flags;
{
DB_MPOOL_FSTAT **fsp;
DB_MPOOL_STAT *gsp;
int ret;
if (internal != NULL) {
if ((ret =
dbenv->memp_dump_region(dbenv, internal, stdout)) != 0) {
dbenv->err(dbenv, ret, NULL);
return (1);
}
return (0);
}
if ((ret = dbenv->memp_stat(dbenv, &gsp, &fsp, flags)) != 0) {
dbenv->err(dbenv, ret, NULL);
return (1);
}
db_stat_dl_bytes("Total cache size",
(u_long)gsp->st_gbytes, (u_long)0, (u_long)gsp->st_bytes);
db_stat_dl("Number of caches.\n", (u_long)gsp->st_ncache);
db_stat_dl_bytes("Pool individual cache size",
(u_long)0, (u_long)0, (u_long)gsp->st_regsize);
db_stat_dl("Requested pages mapped into the process' address space.\n",
(u_long)gsp->st_map);
db_stat_dl("Requested pages found in the cache", (u_long)gsp->st_cache_hit);
if (gsp->st_cache_hit + gsp->st_cache_miss != 0)
printf(" (%.0f%%)", ((double)gsp->st_cache_hit /
(gsp->st_cache_hit + gsp->st_cache_miss)) * 100);
printf(".\n");
db_stat_dl("Requested pages not found in the cache.\n",
(u_long)gsp->st_cache_miss);
db_stat_dl("Pages created in the cache.\n", (u_long)gsp->st_page_create);
db_stat_dl("Pages read into the cache.\n", (u_long)gsp->st_page_in);
db_stat_dl("Pages written from the cache to the backing file.\n",
(u_long)gsp->st_page_out);
db_stat_dl("Clean pages forced from the cache.\n",
(u_long)gsp->st_ro_evict);
db_stat_dl("Dirty pages forced from the cache.\n",
(u_long)gsp->st_rw_evict);
db_stat_dl("Dirty pages written by trickle-sync thread.\n",
(u_long)gsp->st_page_trickle);
db_stat_dl("Current total page count.\n",
(u_long)gsp->st_pages);
db_stat_dl("Current clean page count.\n",
(u_long)gsp->st_page_clean);
db_stat_dl("Current dirty page count.\n",
(u_long)gsp->st_page_dirty);
db_stat_dl("Number of hash buckets used for page location.\n",
(u_long)gsp->st_hash_buckets);
db_stat_dl("Total number of times hash chains searched for a page.\n",
(u_long)gsp->st_hash_searches);
db_stat_dl("The longest hash chain searched for a page.\n",
(u_long)gsp->st_hash_longest);
db_stat_dl("Total number of hash buckets examined for page location.\n",
(u_long)gsp->st_hash_examined);
db_stat_dl("The number of hash bucket locks granted without waiting.\n",
(u_long)gsp->st_hash_nowait);
db_stat_dl("The number of hash bucket locks granted after waiting.\n",
(u_long)gsp->st_hash_wait);
db_stat_dl("The maximum number of times any hash bucket lock was waited for.\n",
(u_long)gsp->st_hash_max_wait);
db_stat_dl("The number of region locks granted without waiting.\n",
(u_long)gsp->st_region_nowait);
db_stat_dl("The number of region locks granted after waiting.\n",
(u_long)gsp->st_region_wait);
db_stat_dl("The number of page allocations.\n",
(u_long)gsp->st_alloc);
db_stat_dl("The number of hash buckets examined during allocations\n",
(u_long)gsp->st_alloc_buckets);
db_stat_dl("The max number of hash buckets examined for an allocation\n",
(u_long)gsp->st_alloc_max_buckets);
db_stat_dl("The number of pages examined during allocations\n",
(u_long)gsp->st_alloc_pages);
db_stat_dl("The max number of pages examined for an allocation\n",
(u_long)gsp->st_alloc_max_pages);
for (; fsp != NULL && *fsp != NULL; ++fsp) {
printf("%s\n", DB_LINE);
printf("Pool File: %s\n", (*fsp)->file_name);
db_stat_dl("Page size.\n", (u_long)(*fsp)->st_pagesize);
db_stat_dl("Requested pages mapped into the process' address space.\n",
(u_long)(*fsp)->st_map);
db_stat_dl("Requested pages found in the cache",
(u_long)(*fsp)->st_cache_hit);
if ((*fsp)->st_cache_hit + (*fsp)->st_cache_miss != 0)
printf(" (%.0f%%)", ((double)(*fsp)->st_cache_hit /
((*fsp)->st_cache_hit + (*fsp)->st_cache_miss)) *
100);
printf(".\n");
db_stat_dl("Requested pages not found in the cache.\n",
(u_long)(*fsp)->st_cache_miss);
db_stat_dl("Pages created in the cache.\n",
(u_long)(*fsp)->st_page_create);
db_stat_dl("Pages read into the cache.\n",
(u_long)(*fsp)->st_page_in);
db_stat_dl("Pages written from the cache to the backing file.\n",
(u_long)(*fsp)->st_page_out);
}
free(gsp);
return (0);
}
/*
* rep_stats --
* Display replication statistics.
*/
int
db_stat_rep_stats(dbenv, flags)
DB_ENV *dbenv;
u_int32_t flags;
{
DB_REP_STAT *sp;
int is_client, ret;
const char *p;
if ((ret = dbenv->rep_stat(dbenv, &sp, flags)) != 0) {
dbenv->err(dbenv, ret, NULL);
return (1);
}
is_client = 0;
switch (sp->st_status) {
case DB_REP_MASTER:
printf("Environment configured as a replication master.\n");
break;
case DB_REP_CLIENT:
printf("Environment configured as a replication client.\n");
is_client = 1;
break;
case DB_REP_LOGSONLY:
printf("Environment configured as a logs-only replica.\n");
is_client = 1;
break;
default:
printf("Environment not configured for replication.\n");
break;
}
printf("%lu/%lu\t%s\n",
(u_long)sp->st_next_lsn.file, (u_long)sp->st_next_lsn.offset,
is_client ? "Next LSN expected." : "Next LSN to be used.");
p = sp->st_waiting_lsn.file == 0 ?
"Not waiting for any missed log records." :
"LSN of first missed log record being waited for.";
printf("%lu/%lu\t%s\n",
(u_long)sp->st_waiting_lsn.file, (u_long)sp->st_waiting_lsn.offset,
p);
db_stat_dl("Number of duplicate master conditions detected.\n",
(u_long)sp->st_dupmasters);
if (sp->st_env_id != DB_EID_INVALID)
db_stat_dl("Current environment ID.\n", (u_long)sp->st_env_id);
else
printf("No current environment ID.\n");
db_stat_dl("Current environment priority.\n", (u_long)sp->st_env_priority);
db_stat_dl("Current generation number.\n", (u_long)sp->st_gen);
db_stat_dl("Number of duplicate log records received.\n",
(u_long)sp->st_log_duplicated);
db_stat_dl("Number of log records currently queued.\n",
(u_long)sp->st_log_queued);
db_stat_dl("Maximum number of log records ever queued at once.\n",
(u_long)sp->st_log_queued_max);
db_stat_dl("Total number of log records queued.\n",
(u_long)sp->st_log_queued_total);
db_stat_dl("Number of log records received and appended to the log.\n",
(u_long)sp->st_log_records);
db_stat_dl("Number of log records missed and requested.\n",
(u_long)sp->st_log_requested);
if (sp->st_master != DB_EID_INVALID)
db_stat_dl("Current master ID.\n", (u_long)sp->st_master);
else
printf("No current master ID.\n");
db_stat_dl("Number of times the master has changed.\n",
(u_long)sp->st_master_changes);
db_stat_dl("Number of messages received with a bad generation number.\n",
(u_long)sp->st_msgs_badgen);
db_stat_dl("Number of messages received and processed.\n",
(u_long)sp->st_msgs_processed);
db_stat_dl("Number of messages ignored due to pending recovery.\n",
(u_long)sp->st_msgs_recover);
db_stat_dl("Number of failed message sends.\n",
(u_long)sp->st_msgs_send_failures);
db_stat_dl("Number of messages sent.\n", (u_long)sp->st_msgs_sent);
db_stat_dl("Number of new site messages received.\n", (u_long)sp->st_newsites);
db_stat_dl("Transmission limited.\n", (u_long)sp->st_nthrottles);
db_stat_dl("Number of outdated conditions detected.\n",
(u_long)sp->st_outdated);
db_stat_dl("Number of transactions applied.\n", (u_long)sp->st_txns_applied);
db_stat_dl("Number of elections held.\n", (u_long)sp->st_elections);
db_stat_dl("Number of elections won.\n", (u_long)sp->st_elections_won);
if (sp->st_election_status == 0)
printf("No election in progress.\n");
else {
db_stat_dl("Current election phase.\n", (u_long)sp->st_election_status);
db_stat_dl("Election winner.\n",
(u_long)sp->st_election_cur_winner);
db_stat_dl("Election generation number.\n",
(u_long)sp->st_election_gen);
printf("%lu/%lu\tMaximum LSN of election winner.\n",
(u_long)sp->st_election_lsn.file,
(u_long)sp->st_election_lsn.offset);
db_stat_dl("Number of sites expected to participate in elections.\n",
(u_long)sp->st_election_nsites);
db_stat_dl("Election priority.\n", (u_long)sp->st_election_priority);
db_stat_dl("Election tiebreaker value.\n",
(u_long)sp->st_election_tiebreaker);
db_stat_dl("Votes received this election round.\n",
(u_long)sp->st_election_votes);
}
free(sp);
return (0);
}
/*
* txn_stats --
* Display transaction statistics.
*/
int
db_stat_txn_stats(dbenv, flags)
DB_ENV *dbenv;
u_int32_t flags;
{
DB_TXN_STAT *sp;
u_int32_t i;
int ret;
const char *p;
if ((ret = dbenv->txn_stat(dbenv, &sp, flags)) != 0) {
dbenv->err(dbenv, ret, NULL);
return (1);
}
p = sp->st_last_ckp.file == 0 ?
"No checkpoint LSN." : "File/offset for last checkpoint LSN.";
printf("%lu/%lu\t%s\n",
(u_long)sp->st_last_ckp.file, (u_long)sp->st_last_ckp.offset, p);
if (sp->st_time_ckp == 0)
printf("0\tNo checkpoint timestamp.\n");
else
printf("%.24s\tCheckpoint timestamp.\n",
ctime(&sp->st_time_ckp));
printf("%lx\tLast transaction ID allocated.\n",
(u_long)sp->st_last_txnid);
db_stat_dl("Maximum number of active transactions possible.\n",
(u_long)sp->st_maxtxns);
db_stat_dl("Active transactions.\n", (u_long)sp->st_nactive);
db_stat_dl("Maximum active transactions.\n", (u_long)sp->st_maxnactive);
db_stat_dl("Number of transactions begun.\n", (u_long)sp->st_nbegins);
db_stat_dl("Number of transactions aborted.\n", (u_long)sp->st_naborts);
db_stat_dl("Number of transactions committed.\n", (u_long)sp->st_ncommits);
db_stat_dl("Number of transactions restored.\n", (u_long)sp->st_nrestores);
db_stat_dl_bytes("Transaction region size",
(u_long)0, (u_long)0, (u_long)sp->st_regsize);
db_stat_dl("The number of region locks granted after waiting.\n",
(u_long)sp->st_region_wait);
db_stat_dl("The number of region locks granted without waiting.\n",
(u_long)sp->st_region_nowait);
qsort(sp->st_txnarray,
sp->st_nactive, sizeof(sp->st_txnarray[0]), db_stat_txn_compare);
for (i = 0; i < sp->st_nactive; ++i) {
printf("\tid: %lx; begin LSN: file/offset %lu/%lu",
(u_long)sp->st_txnarray[i].txnid,
(u_long)sp->st_txnarray[i].lsn.file,
(u_long)sp->st_txnarray[i].lsn.offset);
if (sp->st_txnarray[i].parentid == 0)
printf("\n");
else
printf(" parent: %lx\n",
(u_long)sp->st_txnarray[i].parentid);
}
free(sp);
return (0);
}
int
db_stat_txn_compare(a1, b1)
const void *a1, *b1;
{
const DB_TXN_ACTIVE *a, *b;
a = a1;
b = b1;
if (a->txnid > b->txnid)
return (1);
if (a->txnid < b->txnid)
return (-1);
return (0);
}
/*
* dl --
* Display a big value.
*/
void
db_stat_dl(msg, value)
const char *msg;
u_long value;
{
/*
* Two formats: if less than 10 million, display as the number, if
* greater than 10 million display as ###M.
*/
if (value < 10000000)
printf("%lu\t%s", value, msg);
else
printf("%luM\t%s", value / 1000000, msg);
}
/*
* dl_bytes --
* Display a big number of bytes.
*/
void
db_stat_dl_bytes(msg, gbytes, mbytes, bytes)
const char *msg;
u_long gbytes, mbytes, bytes;
{
const char *sep;
/* Normalize the values. */
while (bytes >= MEGABYTE) {
++mbytes;
bytes -= MEGABYTE;
}
while (mbytes >= GIGABYTE / MEGABYTE) {
++gbytes;
mbytes -= GIGABYTE / MEGABYTE;
}
sep = "";
if (gbytes > 0) {
printf("%luGB", gbytes);
sep = " ";
}
if (mbytes > 0) {
printf("%s%luMB", sep, mbytes);
sep = " ";
}
if (bytes >= 1024) {
printf("%s%luKB", sep, bytes / 1024);
bytes %= 1024;
sep = " ";
}
if (bytes > 0)
printf("%s%luB", sep, bytes);
printf("\t%s.\n", msg);
}
/*
* prflags --
* Print out flag values.
*/
void
db_stat_prflags(flags, fnp)
u_int32_t flags;
const FN *fnp;
{
const char *sep;
sep = "\t";
printf("Flags:");
for (; fnp->mask != 0; ++fnp)
if (fnp->mask & flags) {
printf("%s%s", sep, fnp->name);
sep = ", ";
}
printf("\n");
}
/*
* db_init --
* Initialize the environment.
*/
int
db_stat_db_init(dbenv, home, ttype, cache, is_private)
DB_ENV *dbenv;
char *home;
test_t ttype;
u_int32_t cache;
int *is_private;
{
u_int32_t oflags;
int ret;
/*
* If our environment open fails, and we're trying to look at a
* shared region, it's a hard failure.
*
* We will probably just drop core if the environment we join does
* not include a memory pool. This is probably acceptable; trying
* to use an existing environment that does not contain a memory
* pool to look at a database can be safely construed as operator
* error, I think.
*/
*is_private = 0;
if ((ret =
dbenv->open(dbenv, home, DB_JOINENV | DB_USE_ENVIRON, 0)) == 0)
return (0);
if (ttype != T_DB && ttype != T_LOG) {
dbenv->err(dbenv, ret, "DB_ENV->open%s%s",
home == NULL ? "" : ": ", home == NULL ? "" : home);
return (1);
}
/*
* We're looking at a database or set of log files and no environment
* exists. Create one, but make it private so no files are actually
* created. Declare a reasonably large cache so that we don't fail
* when reporting statistics on large databases.
*
* An environment is required to look at databases because we may be
* trying to look at databases in directories other than the current
* one.
*/
if ((ret = dbenv->set_cachesize(dbenv, 0, cache, 1)) != 0) {
dbenv->err(dbenv, ret, "set_cachesize");
return (1);
}
*is_private = 1;
oflags = DB_CREATE | DB_PRIVATE | DB_USE_ENVIRON;
if (ttype == T_DB)
oflags |= DB_INIT_MPOOL;
if (ttype == T_LOG)
oflags |= DB_INIT_LOG;
if ((ret = dbenv->open(dbenv, home, oflags, 0)) == 0)
return (0);
/* An environment is required. */
dbenv->err(dbenv, ret, "open");
return (1);
}
/*
* argcheck --
* Return if argument flags are okay.
*/
int
db_stat_argcheck(arg, ok_args)
char *arg;
const char *ok_args;
{
for (; *arg != '\0'; ++arg)
if (strchr(ok_args, *arg) == NULL)
return (0);
return (1);
}
int
db_stat_usage()
{
fprintf(stderr, "%s\n\t%s\n",
"usage: db_stat [-celmNrtVZ] [-C Aclmop]",
"[-d file [-f] [-s database]] [-h home] [-M Ahlm] [-P password]");
return (EXIT_FAILURE);
}
int
db_stat_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);
}
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>
#
# 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
/* 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 */
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>
/*-
* 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);
}
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>
#
# 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
/* 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 */
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>
/*-
* 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);
}
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>
#
# 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
/* 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 */
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>
/*-
* 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);
}
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>
#
# 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
/* 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 */
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>
#!/bin/sh - #!/bin/sh -
# $Id: s_all,v 1.10 2001/08/04 14:01:44 bostic Exp $ # $Id: s_all,v 1.10 2001/08/04 14:01:44 bostic Exp $
make_dir() sh s_dir
{
if test ! -d $1; then
echo "mkdir $1"
mkdir $1
status=$?
if test $status -ne 0 && test ! -d $1; then
echo "error: $status"
fi
fi
}
make_dir ../test_server
make_dir ../dbinc_auto
#sh s_perm # permissions. #sh s_perm # permissions.
sh s_symlink # symbolic links. sh s_symlink # symbolic links.
...@@ -30,7 +17,7 @@ sh s_include # standard include files. ...@@ -30,7 +17,7 @@ sh s_include # standard include files.
sh s_win32 # Win32 include files. sh s_win32 # Win32 include files.
sh s_win32_dsp # Win32 build environment. sh s_win32_dsp # Win32 build environment.
sh s_vxworks # VxWorks include files. #sh s_vxworks # VxWorks include files.
sh s_java # Java support. #sh s_java # Java support.
sh s_test # Test suite support. #sh s_test # Test suite support.
sh s_tags # Tags files. #sh s_tags # Tags files.
#!/bin/sh -
make_dir()
{
if test ! -d $1; then
echo "mkdir $1"
mkdir $1
status=$?
if test $status -ne 0 && test ! -d $1; then
echo "error: $status"
fi
fi
}
echo "Creating directories..."
make_dir ../test_server
make_dir ../dbinc_auto
make_dir ../build_vxworks/BerkeleyDB
make_dir ../build_vxworks/db_archive
make_dir ../build_vxworks/db_archive/db_archive
make_dir ../build_vxworks/db_checkpoint
make_dir ../build_vxworks/db_checkpoint/db_checkpoint
make_dir ../build_vxworks/db_deadlock
make_dir ../build_vxworks/db_deadlock/db_deadlock
make_dir ../build_vxworks/db_dump
make_dir ../build_vxworks/db_dump/db_dump
make_dir ../build_vxworks/db_load
make_dir ../build_vxworks/db_load/db_load
make_dir ../build_vxworks/db_printlog
make_dir ../build_vxworks/db_printlog/db_printlog
make_dir ../build_vxworks/db_recover
make_dir ../build_vxworks/db_recover/db_recover
make_dir ../build_vxworks/db_stat
make_dir ../build_vxworks/db_stat/db_stat
make_dir ../build_vxworks/db_upgrade
make_dir ../build_vxworks/db_upgrade/db_upgrade
make_dir ../build_vxworks/db_verify
make_dir ../build_vxworks/db_verify/db_verify
make_dir ../build_vxworks/dbdemo/dbdemo
make_dir ../dbinc_auto
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment