autogenerated files removed
scripts we don't need commented out s_dir script for creating directories bdb build process requires
This commit is contained in:
parent
b201dfece4
commit
9f04cfa8e9
File diff suppressed because it is too large
Load Diff
@ -1,51 +0,0 @@
|
||||
#
|
||||
# Custom Makefile shell
|
||||
#
|
||||
# This file may be edited freely, since it will not be regenerated
|
||||
# by the project manager.
|
||||
#
|
||||
# Use this makefile to define rules to make external binaries
|
||||
# and deposit them in the $(EXTERNAL_BINARIES_DIR) directory.
|
||||
#
|
||||
# If you have specified external modules during your component
|
||||
# creation, you will find make rules already in place below.
|
||||
# You will likely have to edit these to suit your individual
|
||||
# build setup.
|
||||
#
|
||||
# You may wish to use the CPU, BUILD_SPEC or TOOL make variables in
|
||||
# your Makefile to support builds for different architectures. Use
|
||||
# the FORCE_EXTERNAL_MAKE phony target to ensure that your external
|
||||
# make always runs.
|
||||
#
|
||||
# The example below assumes that your custom makefile is in the
|
||||
# mySourceTree directory, and that the binary file it produces
|
||||
# is placed into the $(BUILD_SPEC) sub-directory.
|
||||
#
|
||||
# EXTERNAL_SOURCE_BASE = /folk/me/mySourceTree
|
||||
# EXTERNAL_MODULE = myLibrary.o
|
||||
# EXTERNAL_MAKE = make
|
||||
#
|
||||
# $(EXTERNAL_BINARIES_DIR)/$(EXTERNAL_MODULE) : FORCE_EXTERNAL_MAKE
|
||||
# $(EXTERNAL_MAKE) -C $(EXTERNAL_SOURCE_BASE) \
|
||||
# -f $(EXTERNAL_SOURCE_BASE)/Makefile \
|
||||
# CPU=$(CPU) BUILD_SPEC=$(BUILD_SPEC) $(@F)
|
||||
# $(CP) $(subst /,$(DIRCHAR),$(EXTERNAL_SOURCE_BASE)/$(BUILD_SPEC)/$(@F) $@)
|
||||
#
|
||||
# If you are not adding your external modules from the component wizard,
|
||||
# you will have to include them in your component yourself:
|
||||
#
|
||||
# From the GUI, you can do this with the Component's 'Add external module'
|
||||
# dialog.
|
||||
#
|
||||
# If you are using the command line, add the module(s) by editing the
|
||||
# MODULES line in component.cdf file, e.g.
|
||||
#
|
||||
# Component INCLUDE_MYCOMPONENT {
|
||||
#
|
||||
# MODULES foo.o goo.o \
|
||||
# myLibrary.o
|
||||
#
|
||||
|
||||
|
||||
# rules to build custom libraries
|
||||
|
File diff suppressed because it is too large
Load Diff
File diff suppressed because it is too large
Load Diff
@ -1,195 +0,0 @@
|
||||
/*-
|
||||
* See the file LICENSE for redistribution information.
|
||||
*
|
||||
* Copyright (c) 1996-2002
|
||||
* Sleepycat Software. All rights reserved.
|
||||
*/
|
||||
|
||||
#include "db_config.h"
|
||||
|
||||
#ifndef lint
|
||||
static const char copyright[] =
|
||||
"Copyright (c) 1996-2002\nSleepycat Software Inc. All rights reserved.\n";
|
||||
static const char revid[] =
|
||||
"$Id: db_archive.c,v 11.36 2002/03/28 20:13:34 bostic Exp $";
|
||||
#endif
|
||||
|
||||
#ifndef NO_SYSTEM_INCLUDES
|
||||
#include <sys/types.h>
|
||||
|
||||
#include <stdio.h>
|
||||
#include <stdlib.h>
|
||||
#include <string.h>
|
||||
#include <unistd.h>
|
||||
#endif
|
||||
|
||||
#include "db_int.h"
|
||||
|
||||
int db_archive_main __P((int, char *[]));
|
||||
int db_archive_usage __P((void));
|
||||
int db_archive_version_check __P((const char *));
|
||||
|
||||
int
|
||||
db_archive(args)
|
||||
char *args;
|
||||
{
|
||||
int argc;
|
||||
char **argv;
|
||||
|
||||
__db_util_arg("db_archive", args, &argc, &argv);
|
||||
return (db_archive_main(argc, argv) ? EXIT_FAILURE : EXIT_SUCCESS);
|
||||
}
|
||||
|
||||
#include <stdio.h>
|
||||
#define ERROR_RETURN ERROR
|
||||
|
||||
int
|
||||
db_archive_main(argc, argv)
|
||||
int argc;
|
||||
char *argv[];
|
||||
{
|
||||
extern char *optarg;
|
||||
extern int optind, __db_getopt_reset;
|
||||
const char *progname = "db_archive";
|
||||
DB_ENV *dbenv;
|
||||
u_int32_t flags;
|
||||
int ch, e_close, exitval, ret, verbose;
|
||||
char **file, *home, **list, *passwd;
|
||||
|
||||
if ((ret = db_archive_version_check(progname)) != 0)
|
||||
return (ret);
|
||||
|
||||
flags = 0;
|
||||
e_close = exitval = verbose = 0;
|
||||
home = passwd = NULL;
|
||||
__db_getopt_reset = 1;
|
||||
while ((ch = getopt(argc, argv, "ah:lP:sVv")) != EOF)
|
||||
switch (ch) {
|
||||
case 'a':
|
||||
LF_SET(DB_ARCH_ABS);
|
||||
break;
|
||||
case 'h':
|
||||
home = optarg;
|
||||
break;
|
||||
case 'l':
|
||||
LF_SET(DB_ARCH_LOG);
|
||||
break;
|
||||
case 'P':
|
||||
passwd = strdup(optarg);
|
||||
memset(optarg, 0, strlen(optarg));
|
||||
if (passwd == NULL) {
|
||||
fprintf(stderr, "%s: strdup: %s\n",
|
||||
progname, strerror(errno));
|
||||
return (EXIT_FAILURE);
|
||||
}
|
||||
break;
|
||||
case 's':
|
||||
LF_SET(DB_ARCH_DATA);
|
||||
break;
|
||||
case 'V':
|
||||
printf("%s\n", db_version(NULL, NULL, NULL));
|
||||
return (EXIT_SUCCESS);
|
||||
case 'v':
|
||||
verbose = 1;
|
||||
break;
|
||||
case '?':
|
||||
default:
|
||||
return (db_archive_usage());
|
||||
}
|
||||
argc -= optind;
|
||||
argv += optind;
|
||||
|
||||
if (argc != 0)
|
||||
return (db_archive_usage());
|
||||
|
||||
/* Handle possible interruptions. */
|
||||
__db_util_siginit();
|
||||
|
||||
/*
|
||||
* Create an environment object and initialize it for error
|
||||
* reporting.
|
||||
*/
|
||||
if ((ret = db_env_create(&dbenv, 0)) != 0) {
|
||||
fprintf(stderr,
|
||||
"%s: db_env_create: %s\n", progname, db_strerror(ret));
|
||||
goto shutdown;
|
||||
}
|
||||
e_close = 1;
|
||||
|
||||
dbenv->set_errfile(dbenv, stderr);
|
||||
dbenv->set_errpfx(dbenv, progname);
|
||||
|
||||
if (verbose)
|
||||
(void)dbenv->set_verbose(dbenv, DB_VERB_CHKPOINT, 1);
|
||||
|
||||
if (passwd != NULL && (ret = dbenv->set_encrypt(dbenv,
|
||||
passwd, DB_ENCRYPT_AES)) != 0) {
|
||||
dbenv->err(dbenv, ret, "set_passwd");
|
||||
goto shutdown;
|
||||
}
|
||||
/*
|
||||
* If attaching to a pre-existing environment fails, create a
|
||||
* private one and try again.
|
||||
*/
|
||||
if ((ret = dbenv->open(dbenv,
|
||||
home, DB_JOINENV | DB_USE_ENVIRON, 0)) != 0 &&
|
||||
(ret = dbenv->open(dbenv, home, DB_CREATE |
|
||||
DB_INIT_LOG | DB_INIT_TXN | DB_PRIVATE | DB_USE_ENVIRON, 0)) != 0) {
|
||||
dbenv->err(dbenv, ret, "open");
|
||||
goto shutdown;
|
||||
}
|
||||
|
||||
/* Get the list of names. */
|
||||
if ((ret = dbenv->log_archive(dbenv, &list, flags)) != 0) {
|
||||
dbenv->err(dbenv, ret, "DB_ENV->log_archive");
|
||||
goto shutdown;
|
||||
}
|
||||
|
||||
/* Print the list of names. */
|
||||
if (list != NULL) {
|
||||
for (file = list; *file != NULL; ++file)
|
||||
printf("%s\n", *file);
|
||||
free(list);
|
||||
}
|
||||
|
||||
if (0) {
|
||||
shutdown: exitval = 1;
|
||||
}
|
||||
if (e_close && (ret = dbenv->close(dbenv, 0)) != 0) {
|
||||
exitval = 1;
|
||||
fprintf(stderr,
|
||||
"%s: dbenv->close: %s\n", progname, db_strerror(ret));
|
||||
}
|
||||
|
||||
/* Resend any caught signal. */
|
||||
__db_util_sigresend();
|
||||
|
||||
return (exitval == 0 ? EXIT_SUCCESS : EXIT_FAILURE);
|
||||
}
|
||||
|
||||
int
|
||||
db_archive_usage()
|
||||
{
|
||||
(void)fprintf(stderr,
|
||||
"usage: db_archive [-alsVv] [-h home] [-P password]\n");
|
||||
return (EXIT_FAILURE);
|
||||
}
|
||||
|
||||
int
|
||||
db_archive_version_check(progname)
|
||||
const char *progname;
|
||||
{
|
||||
int v_major, v_minor, v_patch;
|
||||
|
||||
/* Make sure we're loaded with the right version of the DB library. */
|
||||
(void)db_version(&v_major, &v_minor, &v_patch);
|
||||
if (v_major != DB_VERSION_MAJOR ||
|
||||
v_minor != DB_VERSION_MINOR || v_patch != DB_VERSION_PATCH) {
|
||||
fprintf(stderr,
|
||||
"%s: version %d.%d.%d doesn't match library version %d.%d.%d\n",
|
||||
progname, DB_VERSION_MAJOR, DB_VERSION_MINOR,
|
||||
DB_VERSION_PATCH, v_major, v_minor, v_patch);
|
||||
return (EXIT_FAILURE);
|
||||
}
|
||||
return (0);
|
||||
}
|
@ -1,160 +0,0 @@
|
||||
Document file - DO NOT EDIT
|
||||
|
||||
<BEGIN> BUILD_PENTIUMgnu_BUILDRULE
|
||||
db_archive.out
|
||||
<END>
|
||||
|
||||
<BEGIN> BUILD_PENTIUMgnu_MACRO_AR
|
||||
ar386
|
||||
<END>
|
||||
|
||||
<BEGIN> BUILD_PENTIUMgnu_MACRO_ARCHIVE
|
||||
$(PRJ_DIR)/PENTIUMgnu/db_archive.a
|
||||
<END>
|
||||
|
||||
<BEGIN> BUILD_PENTIUMgnu_MACRO_AS
|
||||
cc386
|
||||
<END>
|
||||
|
||||
<BEGIN> BUILD_PENTIUMgnu_MACRO_CC
|
||||
cc386
|
||||
<END>
|
||||
|
||||
<BEGIN> BUILD_PENTIUMgnu_MACRO_CFLAGS
|
||||
-g \
|
||||
-mpentium \
|
||||
-ansi \
|
||||
-nostdinc \
|
||||
-DRW_MULTI_THREAD \
|
||||
-D_REENTRANT \
|
||||
-fvolatile \
|
||||
-nostdlib \
|
||||
-fno-builtin \
|
||||
-fno-defer-pop \
|
||||
-I$(PRJ_DIR)/.. \
|
||||
-I$(PRJ_DIR)/../.. \
|
||||
-I$(WIND_BASE)/target/h \
|
||||
-DCPU=PENTIUM
|
||||
<END>
|
||||
|
||||
<BEGIN> BUILD_PENTIUMgnu_MACRO_CFLAGS_AS
|
||||
-g \
|
||||
-mpentium \
|
||||
-ansi \
|
||||
-nostdinc \
|
||||
-fvolatile \
|
||||
-nostdlib \
|
||||
-fno-builtin \
|
||||
-fno-defer-pop \
|
||||
-P \
|
||||
-x \
|
||||
assembler-with-cpp \
|
||||
-I$(WIND_BASE)/target/h \
|
||||
-DCPU=PENTIUM
|
||||
<END>
|
||||
|
||||
<BEGIN> BUILD_PENTIUMgnu_MACRO_CPP
|
||||
cc386 -E -P -xc
|
||||
<END>
|
||||
|
||||
<BEGIN> BUILD_PENTIUMgnu_MACRO_LD
|
||||
ld386
|
||||
<END>
|
||||
|
||||
<BEGIN> BUILD_PENTIUMgnu_MACRO_LDDEPS
|
||||
|
||||
<END>
|
||||
|
||||
<BEGIN> BUILD_PENTIUMgnu_MACRO_LDFLAGS
|
||||
-X -N
|
||||
<END>
|
||||
|
||||
<BEGIN> BUILD_PENTIUMgnu_MACRO_LD_PARTIAL_FLAGS
|
||||
-X -r
|
||||
<END>
|
||||
|
||||
<BEGIN> BUILD_PENTIUMgnu_MACRO_NM
|
||||
nm386 -g
|
||||
<END>
|
||||
|
||||
<BEGIN> BUILD_PENTIUMgnu_MACRO_OPTION_DEFINE_MACRO
|
||||
-D
|
||||
<END>
|
||||
|
||||
<BEGIN> BUILD_PENTIUMgnu_MACRO_OPTION_INCLUDE_DIR
|
||||
-I
|
||||
<END>
|
||||
|
||||
<BEGIN> BUILD_PENTIUMgnu_MACRO_POST_BUILD_RULE
|
||||
|
||||
<END>
|
||||
|
||||
<BEGIN> BUILD_PENTIUMgnu_MACRO_PRJ_LIBS
|
||||
|
||||
<END>
|
||||
|
||||
<BEGIN> BUILD_PENTIUMgnu_MACRO_SIZE
|
||||
size386
|
||||
<END>
|
||||
|
||||
<BEGIN> BUILD_PENTIUMgnu_RO_DEPEND_PATH
|
||||
{$(WIND_BASE)/target/h/} \
|
||||
{$(WIND_BASE)/target/src/} \
|
||||
{$(WIND_BASE)/target/config/}
|
||||
<END>
|
||||
|
||||
<BEGIN> BUILD_PENTIUMgnu_TC
|
||||
::tc_PENTIUMgnu
|
||||
<END>
|
||||
|
||||
<BEGIN> BUILD_RULE_archive
|
||||
|
||||
<END>
|
||||
|
||||
<BEGIN> BUILD_RULE_db_archive.out
|
||||
|
||||
<END>
|
||||
|
||||
<BEGIN> BUILD_RULE_objects
|
||||
|
||||
<END>
|
||||
|
||||
<BEGIN> BUILD__CURRENT
|
||||
PENTIUMgnu
|
||||
<END>
|
||||
|
||||
<BEGIN> BUILD__LIST
|
||||
PENTIUMgnu
|
||||
<END>
|
||||
|
||||
<BEGIN> CORE_INFO_TYPE
|
||||
::prj_vxApp
|
||||
<END>
|
||||
|
||||
<BEGIN> CORE_INFO_VERSION
|
||||
2.0
|
||||
<END>
|
||||
|
||||
<BEGIN> FILE_db_archive.c_dependDone
|
||||
FALSE
|
||||
<END>
|
||||
|
||||
<BEGIN> FILE_db_archive.c_dependencies
|
||||
|
||||
<END>
|
||||
|
||||
<BEGIN> FILE_db_archive.c_objects
|
||||
db_archive.o
|
||||
<END>
|
||||
|
||||
<BEGIN> FILE_db_archive.c_tool
|
||||
C/C++ compiler
|
||||
<END>
|
||||
|
||||
<BEGIN> PROJECT_FILES
|
||||
$(PRJ_DIR)/db_archive.c
|
||||
<END>
|
||||
|
||||
<BEGIN> userComments
|
||||
db_archive
|
||||
<END>
|
@ -1,51 +0,0 @@
|
||||
#
|
||||
# Custom Makefile shell
|
||||
#
|
||||
# This file may be edited freely, since it will not be regenerated
|
||||
# by the project manager.
|
||||
#
|
||||
# Use this makefile to define rules to make external binaries
|
||||
# and deposit them in the $(EXTERNAL_BINARIES_DIR) directory.
|
||||
#
|
||||
# If you have specified external modules during your component
|
||||
# creation, you will find make rules already in place below.
|
||||
# You will likely have to edit these to suit your individual
|
||||
# build setup.
|
||||
#
|
||||
# You may wish to use the CPU, BUILD_SPEC or TOOL make variables in
|
||||
# your Makefile to support builds for different architectures. Use
|
||||
# the FORCE_EXTERNAL_MAKE phony target to ensure that your external
|
||||
# make always runs.
|
||||
#
|
||||
# The example below assumes that your custom makefile is in the
|
||||
# mySourceTree directory, and that the binary file it produces
|
||||
# is placed into the $(BUILD_SPEC) sub-directory.
|
||||
#
|
||||
# EXTERNAL_SOURCE_BASE = /folk/me/mySourceTree
|
||||
# EXTERNAL_MODULE = myLibrary.o
|
||||
# EXTERNAL_MAKE = make
|
||||
#
|
||||
# $(EXTERNAL_BINARIES_DIR)/$(EXTERNAL_MODULE) : FORCE_EXTERNAL_MAKE
|
||||
# $(EXTERNAL_MAKE) -C $(EXTERNAL_SOURCE_BASE) \
|
||||
# -f $(EXTERNAL_SOURCE_BASE)/Makefile \
|
||||
# CPU=$(CPU) BUILD_SPEC=$(BUILD_SPEC) $(@F)
|
||||
# $(CP) $(subst /,$(DIRCHAR),$(EXTERNAL_SOURCE_BASE)/$(BUILD_SPEC)/$(@F) $@)
|
||||
#
|
||||
# If you are not adding your external modules from the component wizard,
|
||||
# you will have to include them in your component yourself:
|
||||
#
|
||||
# From the GUI, you can do this with the Component's 'Add external module'
|
||||
# dialog.
|
||||
#
|
||||
# If you are using the command line, add the module(s) by editing the
|
||||
# MODULES line in component.cdf file, e.g.
|
||||
#
|
||||
# Component INCLUDE_MYCOMPONENT {
|
||||
#
|
||||
# MODULES foo.o goo.o \
|
||||
# myLibrary.o
|
||||
#
|
||||
|
||||
|
||||
# rules to build custom libraries
|
||||
|
@ -1,30 +0,0 @@
|
||||
/* component.cdf - dynamically updated configuration */
|
||||
|
||||
/*
|
||||
* NOTE: you may edit this file to alter the configuration
|
||||
* But all non-configuration information, including comments,
|
||||
* will be lost upon rebuilding this project.
|
||||
*/
|
||||
|
||||
/* Component information */
|
||||
|
||||
Component INCLUDE_DB_ARCHIVE {
|
||||
ENTRY_POINTS ALL_GLOBAL_SYMBOLS
|
||||
MODULES db_archive.o
|
||||
NAME db_archive
|
||||
PREF_DOMAIN ANY
|
||||
_INIT_ORDER usrComponentsInit
|
||||
}
|
||||
|
||||
/* EntryPoint information */
|
||||
|
||||
/* Module information */
|
||||
|
||||
Module db_archive.o {
|
||||
|
||||
NAME db_archive.o
|
||||
SRC_PATH_NAME $PRJ_DIR/../db_archive.c
|
||||
}
|
||||
|
||||
/* Parameter information */
|
||||
|
@ -1,475 +0,0 @@
|
||||
Document file - DO NOT EDIT
|
||||
|
||||
<BEGIN> CORE_INFO_TYPE
|
||||
::prj_component
|
||||
<END>
|
||||
|
||||
<BEGIN> CORE_INFO_VERSION
|
||||
AE1.1
|
||||
<END>
|
||||
|
||||
<BEGIN> BUILD__CURRENT
|
||||
PENTIUM2gnu.debug
|
||||
<END>
|
||||
|
||||
<BEGIN> BUILD_PENTIUM2gnu.debug_CURRENT_TARGET
|
||||
default
|
||||
<END>
|
||||
|
||||
<BEGIN> BUILD_PENTIUM2gnu.debug_DEFAULTFORCPU
|
||||
1
|
||||
<END>
|
||||
|
||||
<BEGIN> BUILD_PENTIUM2gnu.debug_FILE_$(PRJ_DIR)/../db_archive.c_infoTags
|
||||
toolMacro objects
|
||||
<END>
|
||||
|
||||
<BEGIN> BUILD_PENTIUM2gnu.debug_FILE_$(PRJ_DIR)/../db_archive.c_objects
|
||||
db_archive.o
|
||||
<END>
|
||||
|
||||
<BEGIN> BUILD_PENTIUM2gnu.debug_FILE_$(PRJ_DIR)/../db_archive.c_toolMacro
|
||||
CC
|
||||
<END>
|
||||
|
||||
<BEGIN> BUILD_PENTIUM2gnu.debug_FILE_$(PRJ_DIR)/../db_archive.c_objects
|
||||
db_archive.o
|
||||
<END>
|
||||
|
||||
<BEGIN> BUILD_PENTIUM2gnu.debug_FILE_$(PRJ_DIR)/../db_archive.c_toolMacro
|
||||
CC
|
||||
<END>
|
||||
|
||||
<BEGIN> BUILD_PENTIUM2gnu.debug_FILE_$(PRJ_DIR)/compConfig.c_infoTags
|
||||
toolMacro objects
|
||||
<END>
|
||||
|
||||
<BEGIN> BUILD_PENTIUM2gnu.debug_FILE_$(PRJ_DIR)/compConfig.c_objects
|
||||
compConfig.o
|
||||
<END>
|
||||
|
||||
<BEGIN> BUILD_PENTIUM2gnu.debug_FILE_$(PRJ_DIR)/compConfig.c_toolMacro
|
||||
CC
|
||||
<END>
|
||||
|
||||
<BEGIN> BUILD_PENTIUM2gnu.debug_MACRO_AR
|
||||
arpentium
|
||||
<END>
|
||||
|
||||
<BEGIN> BUILD_PENTIUM2gnu.debug_MACRO_AS
|
||||
ccpentium
|
||||
<END>
|
||||
|
||||
<BEGIN> BUILD_PENTIUM2gnu.debug_MACRO_CC
|
||||
ccpentium
|
||||
<END>
|
||||
|
||||
<BEGIN> BUILD_PENTIUM2gnu.debug_MACRO_CFLAGS
|
||||
-mcpu=pentiumpro \
|
||||
-march=pentiumpro \
|
||||
-ansi \
|
||||
-DRW_MULTI_THREAD \
|
||||
-D_REENTRANT \
|
||||
-g \
|
||||
-nostdlib \
|
||||
-fno-builtin \
|
||||
-fno-defer-pop \
|
||||
-MD \
|
||||
-Wall \
|
||||
-I. \
|
||||
-I$(WIND_BASE)/target/h \
|
||||
-I$(PRJ_DIR)/../.. \
|
||||
-I$(PRJ_DIR)/../../.. \
|
||||
-DCPU=PENTIUM2
|
||||
<END>
|
||||
|
||||
<BEGIN> BUILD_PENTIUM2gnu.debug_MACRO_CFLAGS_AS
|
||||
-mcpu=pentiumpro \
|
||||
-march=pentiumpro \
|
||||
-ansi \
|
||||
-g \
|
||||
-nostdlib \
|
||||
-fno-builtin \
|
||||
-fno-defer-pop \
|
||||
-P \
|
||||
-x \
|
||||
assembler-with-cpp \
|
||||
-Wall \
|
||||
-I. \
|
||||
-I$(WIND_BASE)/target/h \
|
||||
-DCPU=PENTIUM2
|
||||
<END>
|
||||
|
||||
<BEGIN> BUILD_PENTIUM2gnu.debug_MACRO_CPP
|
||||
ccpentium -E -P
|
||||
<END>
|
||||
|
||||
<BEGIN> BUILD_PENTIUM2gnu.debug_MACRO_CPPFILT
|
||||
c++filtpentium --strip-underscores
|
||||
<END>
|
||||
|
||||
<BEGIN> BUILD_PENTIUM2gnu.debug_MACRO_LD
|
||||
ldpentium
|
||||
<END>
|
||||
|
||||
<BEGIN> BUILD_PENTIUM2gnu.debug_MACRO_LDFLAGS
|
||||
-X
|
||||
<END>
|
||||
|
||||
<BEGIN> BUILD_PENTIUM2gnu.debug_MACRO_LDPARTIAL
|
||||
ccpentium \
|
||||
-B$(WIND_BASE)/host/$(WIND_HOST_TYPE)/lib/gcc-lib/ \
|
||||
-nostdlib \
|
||||
-r \
|
||||
-Wl,-X
|
||||
<END>
|
||||
|
||||
<BEGIN> BUILD_PENTIUM2gnu.debug_MACRO_LD_PARTIAL_FLAGS
|
||||
-X -r
|
||||
<END>
|
||||
|
||||
<BEGIN> BUILD_PENTIUM2gnu.debug_MACRO_NM
|
||||
nmpentium -g
|
||||
<END>
|
||||
|
||||
<BEGIN> BUILD_PENTIUM2gnu.debug_MACRO_OPTION_DEFINE_MACRO
|
||||
-D
|
||||
<END>
|
||||
|
||||
<BEGIN> BUILD_PENTIUM2gnu.debug_MACRO_OPTION_GENERATE_DEPENDENCY_FILE
|
||||
-MD
|
||||
<END>
|
||||
|
||||
<BEGIN> BUILD_PENTIUM2gnu.debug_MACRO_OPTION_INCLUDE_DIR
|
||||
-I
|
||||
<END>
|
||||
|
||||
<BEGIN> BUILD_PENTIUM2gnu.debug_MACRO_RELEASE
|
||||
0
|
||||
<END>
|
||||
|
||||
<BEGIN> BUILD_PENTIUM2gnu.debug_MACRO_SIZE
|
||||
sizepentium
|
||||
<END>
|
||||
|
||||
<BEGIN> BUILD_PENTIUM2gnu.debug_RELEASE
|
||||
0
|
||||
<END>
|
||||
|
||||
<BEGIN> BUILD_PENTIUM2gnu.debug_RO_DEPEND_PATH
|
||||
$(WIND_BASE)/target/h/
|
||||
<END>
|
||||
|
||||
<BEGIN> BUILD_PENTIUM2gnu.debug_TC
|
||||
::tc_PENTIUM2gnu.debug
|
||||
<END>
|
||||
|
||||
<BEGIN> BUILD_PENTIUM2gnu.release_DEFAULTFORCPU
|
||||
0
|
||||
<END>
|
||||
|
||||
<BEGIN> BUILD_PENTIUM2gnu.release_FILE_$(PRJ_DIR)/../db_archive.c_infoTags
|
||||
toolMacro objects
|
||||
<END>
|
||||
|
||||
<BEGIN> BUILD_PENTIUM2gnu.release_FILE_$(PRJ_DIR)/../db_archive.c_objects
|
||||
db_archive.o
|
||||
<END>
|
||||
|
||||
<BEGIN> BUILD_PENTIUM2gnu.release_FILE_$(PRJ_DIR)/../db_archive.c_toolMacro
|
||||
CC
|
||||
<END>
|
||||
|
||||
<BEGIN> BUILD_PENTIUM2gnu.release_FILE_$(PRJ_DIR)/compConfig.c_infoTags
|
||||
toolMacro objects
|
||||
<END>
|
||||
|
||||
<BEGIN> BUILD_PENTIUM2gnu.release_FILE_$(PRJ_DIR)/compConfig.c_objects
|
||||
compConfig.o
|
||||
<END>
|
||||
|
||||
<BEGIN> BUILD_PENTIUM2gnu.release_FILE_$(PRJ_DIR)/compConfig.c_toolMacro
|
||||
CC
|
||||
<END>
|
||||
|
||||
<BEGIN> BUILD_PENTIUM2gnu.release_MACRO_AR
|
||||
arpentium
|
||||
<END>
|
||||
|
||||
<BEGIN> BUILD_PENTIUM2gnu.release_MACRO_AS
|
||||
ccpentium
|
||||
<END>
|
||||
|
||||
<BEGIN> BUILD_PENTIUM2gnu.release_MACRO_CC
|
||||
ccpentium
|
||||
<END>
|
||||
|
||||
<BEGIN> BUILD_PENTIUM2gnu.release_MACRO_CFLAGS
|
||||
-mcpu=pentiumpro \
|
||||
-march=pentiumpro \
|
||||
-ansi \
|
||||
-DRW_MULTI_THREAD \
|
||||
-D_REENTRANT \
|
||||
-O2 \
|
||||
-nostdlib \
|
||||
-fno-builtin \
|
||||
-fno-defer-pop \
|
||||
-MD \
|
||||
-Wall \
|
||||
-I. \
|
||||
-I$(WIND_BASE)/target/h \
|
||||
-I$(PRJ_DIR)/../.. \
|
||||
-I$(PRJ_DIR)/../../.. \
|
||||
-DCPU=PENTIUM2
|
||||
<END>
|
||||
|
||||
<BEGIN> BUILD_PENTIUM2gnu.release_MACRO_CFLAGS_AS
|
||||
-mcpu=pentiumpro \
|
||||
-march=pentiumpro \
|
||||
-ansi \
|
||||
-O2 \
|
||||
-nostdlib \
|
||||
-fno-builtin \
|
||||
-fno-defer-pop \
|
||||
-P \
|
||||
-x \
|
||||
assembler-with-cpp \
|
||||
-Wall \
|
||||
-I. \
|
||||
-I$(WIND_BASE)/target/h \
|
||||
-DCPU=PENTIUM2
|
||||
<END>
|
||||
|
||||
<BEGIN> BUILD_PENTIUM2gnu.release_MACRO_CPP
|
||||
ccpentium -E -P
|
||||
<END>
|
||||
|
||||
<BEGIN> BUILD_PENTIUM2gnu.release_MACRO_CPPFILT
|
||||
c++filtpentium --strip-underscores
|
||||
<END>
|
||||
|
||||
<BEGIN> BUILD_PENTIUM2gnu.release_MACRO_LD
|
||||
ldpentium
|
||||
<END>
|
||||
|
||||
<BEGIN> BUILD_PENTIUM2gnu.release_MACRO_LDFLAGS
|
||||
-X
|
||||
<END>
|
||||
|
||||
<BEGIN> BUILD_PENTIUM2gnu.release_MACRO_LDPARTIAL
|
||||
ccpentium \
|
||||
-B$(WIND_BASE)/host/$(WIND_HOST_TYPE)/lib/gcc-lib/ \
|
||||
-nostdlib \
|
||||
-r \
|
||||
-Wl,-X
|
||||
<END>
|
||||
|
||||
<BEGIN> BUILD_PENTIUM2gnu.release_MACRO_LD_PARTIAL_FLAGS
|
||||
-X -r
|
||||
<END>
|
||||
|
||||
<BEGIN> BUILD_PENTIUM2gnu.release_MACRO_NM
|
||||
nmpentium -g
|
||||
<END>
|
||||
|
||||
<BEGIN> BUILD_PENTIUM2gnu.release_MACRO_OPTION_DEFINE_MACRO
|
||||
-D
|
||||
<END>
|
||||
|
||||
<BEGIN> BUILD_PENTIUM2gnu.release_MACRO_OPTION_GENERATE_DEPENDENCY_FILE
|
||||
-MD
|
||||
<END>
|
||||
|
||||
<BEGIN> BUILD_PENTIUM2gnu.release_MACRO_OPTION_INCLUDE_DIR
|
||||
-I
|
||||
<END>
|
||||
|
||||
<BEGIN> BUILD_PENTIUM2gnu.release_MACRO_RELEASE
|
||||
1
|
||||
<END>
|
||||
|
||||
<BEGIN> BUILD_PENTIUM2gnu.release_MACRO_SIZE
|
||||
sizepentium
|
||||
<END>
|
||||
|
||||
<BEGIN> BUILD_PENTIUM2gnu.release_RELEASE
|
||||
1
|
||||
<END>
|
||||
|
||||
<BEGIN> BUILD_PENTIUM2gnu.release_RO_DEPEND_PATH
|
||||
$(WIND_BASE)/target/h/
|
||||
<END>
|
||||
|
||||
<BEGIN> BUILD_PENTIUM2gnu.release_TC
|
||||
::tc_PENTIUM2gnu.release
|
||||
<END>
|
||||
|
||||
<BEGIN> BUILD_PENTIUMgnu.debug_DEFAULTFORCPU
|
||||
1
|
||||
<END>
|
||||
|
||||
<BEGIN> BUILD_PENTIUMgnu.debug_FILE_$(PRJ_DIR)/../db_archive.c_infoTags
|
||||
toolMacro objects
|
||||
<END>
|
||||
|
||||
<BEGIN> BUILD_PENTIUMgnu.debug_FILE_$(PRJ_DIR)/../db_archive.c_objects
|
||||
db_archive.o
|
||||
<END>
|
||||
|
||||
<BEGIN> BUILD_PENTIUMgnu.debug_FILE_$(PRJ_DIR)/../db_archive.c_toolMacro
|
||||
CC
|
||||
<END>
|
||||
|
||||
<BEGIN> BUILD_PENTIUMgnu.debug_FILE_$(PRJ_DIR)/compConfig.c_infoTags
|
||||
toolMacro objects
|
||||
<END>
|
||||
|
||||
<BEGIN> BUILD_PENTIUMgnu.debug_FILE_$(PRJ_DIR)/compConfig.c_objects
|
||||
compConfig.o
|
||||
<END>
|
||||
|
||||
<BEGIN> BUILD_PENTIUMgnu.debug_FILE_$(PRJ_DIR)/compConfig.c_toolMacro
|
||||
CC
|
||||
<END>
|
||||
|
||||
<BEGIN> BUILD_PENTIUMgnu.debug_MACRO_AR
|
||||
arpentium
|
||||
<END>
|
||||
|
||||
<BEGIN> BUILD_PENTIUMgnu.debug_MACRO_AS
|
||||
ccpentium
|
||||
<END>
|
||||
|
||||
<BEGIN> BUILD_PENTIUMgnu.debug_MACRO_CC
|
||||
ccpentium
|
||||
<END>
|
||||
|
||||
<BEGIN> BUILD_PENTIUMgnu.debug_MACRO_CFLAGS
|
||||
-mcpu=pentium \
|
||||
-march=pentium \
|
||||
-ansi \
|
||||
-DRW_MULTI_THREAD \
|
||||
-D_REENTRANT \
|
||||
-g \
|
||||
-nostdlib \
|
||||
-fno-builtin \
|
||||
-fno-defer-pop \
|
||||
-MD \
|
||||
-Wall \
|
||||
-I. \
|
||||
-I$(WIND_BASE)/target/h \
|
||||
-I$(PRJ_DIR)/../.. \
|
||||
-I$(PRJ_DIR)/../../.. \
|
||||
-DCPU=PENTIUM
|
||||
<END>
|
||||
|
||||
<BEGIN> BUILD_PENTIUMgnu.debug_MACRO_CFLAGS_AS
|
||||
-mcpu=pentium \
|
||||
-march=pentium \
|
||||
-ansi \
|
||||
-g \
|
||||
-nostdlib \
|
||||
-fno-builtin \
|
||||
-fno-defer-pop \
|
||||
-P \
|
||||
-x \
|
||||
assembler-with-cpp \
|
||||
-Wall \
|
||||
-I. \
|
||||
-I$(WIND_BASE)/target/h \
|
||||
-DCPU=PENTIUM
|
||||
<END>
|
||||
|
||||
<BEGIN> BUILD_PENTIUMgnu.debug_MACRO_CPP
|
||||
ccpentium -E -P
|
||||
<END>
|
||||
|
||||
<BEGIN> BUILD_PENTIUMgnu.debug_MACRO_CPPFILT
|
||||
c++filtpentium --strip-underscores
|
||||
<END>
|
||||
|
||||
<BEGIN> BUILD_PENTIUMgnu.debug_MACRO_LD
|
||||
ldpentium
|
||||
<END>
|
||||
|
||||
<BEGIN> BUILD_PENTIUMgnu.debug_MACRO_LDFLAGS
|
||||
-X
|
||||
<END>
|
||||
|
||||
<BEGIN> BUILD_PENTIUMgnu.debug_MACRO_LDPARTIAL
|
||||
ccpentium \
|
||||
-B$(WIND_BASE)/host/$(WIND_HOST_TYPE)/lib/gcc-lib/ \
|
||||
-nostdlib \
|
||||
-r \
|
||||
-Wl,-X
|
||||
<END>
|
||||
|
||||
<BEGIN> BUILD_PENTIUMgnu.debug_MACRO_LD_PARTIAL_FLAGS
|
||||
-X -r
|
||||
<END>
|
||||
|
||||
<BEGIN> BUILD_PENTIUMgnu.debug_MACRO_NM
|
||||
nmpentium -g
|
||||
<END>
|
||||
|
||||
<BEGIN> BUILD_PENTIUMgnu.debug_MACRO_OPTION_DEFINE_MACRO
|
||||
-D
|
||||
<END>
|
||||
|
||||
<BEGIN> BUILD_PENTIUMgnu.debug_MACRO_OPTION_GENERATE_DEPENDENCY_FILE
|
||||
-MD
|
||||
<END>
|
||||
|
||||
<BEGIN> BUILD_PENTIUMgnu.debug_MACRO_OPTION_INCLUDE_DIR
|
||||
-I
|
||||
<END>
|
||||
|
||||
<BEGIN> BUILD_PENTIUMgnu.debug_MACRO_RELEASE
|
||||
0
|
||||
<END>
|
||||
|
||||
<BEGIN> BUILD_PENTIUMgnu.debug_MACRO_SIZE
|
||||
sizepentium
|
||||
<END>
|
||||
|
||||
<BEGIN> BUILD_PENTIUMgnu.debug_RELEASE
|
||||
0
|
||||
<END>
|
||||
|
||||
<BEGIN> BUILD_PENTIUMgnu.debug_RO_DEPEND_PATH
|
||||
$(WIND_BASE)/target/h/
|
||||
<END>
|
||||
|
||||
<BEGIN> BUILD_PENTIUMgnu.debug_TC
|
||||
::tc_PENTIUMgnu.debug
|
||||
<END>
|
||||
|
||||
<BEGIN> BUILD__LIST
|
||||
PENTIUM2gnu.debug PENTIUM2gnu.release PENTIUMgnu.debug
|
||||
<END>
|
||||
|
||||
<BEGIN> PROJECT_FILES
|
||||
$(PRJ_DIR)/../db_archive.c \
|
||||
$(PRJ_DIR)/compConfig.c
|
||||
<END>
|
||||
|
||||
<BEGIN> WCC__CDF_PATH
|
||||
$(PRJ_DIR)
|
||||
<END>
|
||||
|
||||
<BEGIN> WCC__CURRENT
|
||||
PENTIUM2gnu.debug
|
||||
<END>
|
||||
|
||||
<BEGIN> WCC__LIST
|
||||
PENTIUM2gnu.debug
|
||||
<END>
|
||||
|
||||
<BEGIN> WCC__MXR_LIBS
|
||||
lib$(CPU)$(TOOL)vx.a
|
||||
<END>
|
||||
|
||||
<BEGIN> WCC__OBJS_PATH
|
||||
$(WIND_BASE)/target/lib/obj$CPU$TOOLvx
|
||||
<END>
|
||||
|
@ -1,258 +0,0 @@
|
||||
/*-
|
||||
* See the file LICENSE for redistribution information.
|
||||
*
|
||||
* Copyright (c) 1996-2002
|
||||
* Sleepycat Software. All rights reserved.
|
||||
*/
|
||||
|
||||
#include "db_config.h"
|
||||
|
||||
#ifndef lint
|
||||
static const char copyright[] =
|
||||
"Copyright (c) 1996-2002\nSleepycat Software Inc. All rights reserved.\n";
|
||||
static const char revid[] =
|
||||
"$Id: db_checkpoint.c,v 11.46 2002/08/08 03:50:31 bostic Exp $";
|
||||
#endif
|
||||
|
||||
#ifndef NO_SYSTEM_INCLUDES
|
||||
#include <sys/types.h>
|
||||
|
||||
#if TIME_WITH_SYS_TIME
|
||||
#include <sys/time.h>
|
||||
#include <time.h>
|
||||
#else
|
||||
#if HAVE_SYS_TIME_H
|
||||
#include <sys/time.h>
|
||||
#else
|
||||
#include <time.h>
|
||||
#endif
|
||||
#endif
|
||||
|
||||
#include <limits.h>
|
||||
#include <stdio.h>
|
||||
#include <stdlib.h>
|
||||
#include <string.h>
|
||||
#include <unistd.h>
|
||||
#endif
|
||||
|
||||
#include "db_int.h"
|
||||
#include "dbinc/db_page.h"
|
||||
#include "dbinc/db_am.h"
|
||||
|
||||
int db_checkpoint_main __P((int, char *[]));
|
||||
int db_checkpoint_usage __P((void));
|
||||
int db_checkpoint_version_check __P((const char *));
|
||||
|
||||
int
|
||||
db_checkpoint(args)
|
||||
char *args;
|
||||
{
|
||||
int argc;
|
||||
char **argv;
|
||||
|
||||
__db_util_arg("db_checkpoint", args, &argc, &argv);
|
||||
return (db_checkpoint_main(argc, argv) ? EXIT_FAILURE : EXIT_SUCCESS);
|
||||
}
|
||||
|
||||
#include <stdio.h>
|
||||
#define ERROR_RETURN ERROR
|
||||
|
||||
int
|
||||
db_checkpoint_main(argc, argv)
|
||||
int argc;
|
||||
char *argv[];
|
||||
{
|
||||
extern char *optarg;
|
||||
extern int optind, __db_getopt_reset;
|
||||
DB_ENV *dbenv;
|
||||
const char *progname = "db_checkpoint";
|
||||
time_t now;
|
||||
long argval;
|
||||
u_int32_t flags, kbytes, minutes, seconds;
|
||||
int ch, e_close, exitval, once, ret, verbose;
|
||||
char *home, *logfile, *passwd;
|
||||
|
||||
if ((ret = db_checkpoint_version_check(progname)) != 0)
|
||||
return (ret);
|
||||
|
||||
/*
|
||||
* !!!
|
||||
* Don't allow a fully unsigned 32-bit number, some compilers get
|
||||
* upset and require it to be specified in hexadecimal and so on.
|
||||
*/
|
||||
#define MAX_UINT32_T 2147483647
|
||||
|
||||
kbytes = minutes = 0;
|
||||
e_close = exitval = once = verbose = 0;
|
||||
flags = 0;
|
||||
home = logfile = passwd = NULL;
|
||||
__db_getopt_reset = 1;
|
||||
while ((ch = getopt(argc, argv, "1h:k:L:P:p:Vv")) != EOF)
|
||||
switch (ch) {
|
||||
case '1':
|
||||
once = 1;
|
||||
flags = DB_FORCE;
|
||||
break;
|
||||
case 'h':
|
||||
home = optarg;
|
||||
break;
|
||||
case 'k':
|
||||
if (__db_getlong(NULL, progname,
|
||||
optarg, 1, (long)MAX_UINT32_T, &argval))
|
||||
return (EXIT_FAILURE);
|
||||
kbytes = argval;
|
||||
break;
|
||||
case 'L':
|
||||
logfile = optarg;
|
||||
break;
|
||||
case 'P':
|
||||
passwd = strdup(optarg);
|
||||
memset(optarg, 0, strlen(optarg));
|
||||
if (passwd == NULL) {
|
||||
fprintf(stderr, "%s: strdup: %s\n",
|
||||
progname, strerror(errno));
|
||||
return (EXIT_FAILURE);
|
||||
}
|
||||
break;
|
||||
case 'p':
|
||||
if (__db_getlong(NULL, progname,
|
||||
optarg, 1, (long)MAX_UINT32_T, &argval))
|
||||
return (EXIT_FAILURE);
|
||||
minutes = argval;
|
||||
break;
|
||||
case 'V':
|
||||
printf("%s\n", db_version(NULL, NULL, NULL));
|
||||
return (EXIT_SUCCESS);
|
||||
case 'v':
|
||||
verbose = 1;
|
||||
break;
|
||||
case '?':
|
||||
default:
|
||||
return (db_checkpoint_usage());
|
||||
}
|
||||
argc -= optind;
|
||||
argv += optind;
|
||||
|
||||
if (argc != 0)
|
||||
return (db_checkpoint_usage());
|
||||
|
||||
if (once == 0 && kbytes == 0 && minutes == 0) {
|
||||
(void)fprintf(stderr,
|
||||
"%s: at least one of -1, -k and -p must be specified\n",
|
||||
progname);
|
||||
return (EXIT_FAILURE);
|
||||
}
|
||||
|
||||
/* Handle possible interruptions. */
|
||||
__db_util_siginit();
|
||||
|
||||
/* Log our process ID. */
|
||||
if (logfile != NULL && __db_util_logset(progname, logfile))
|
||||
goto shutdown;
|
||||
|
||||
/*
|
||||
* Create an environment object and initialize it for error
|
||||
* reporting.
|
||||
*/
|
||||
if ((ret = db_env_create(&dbenv, 0)) != 0) {
|
||||
fprintf(stderr,
|
||||
"%s: db_env_create: %s\n", progname, db_strerror(ret));
|
||||
goto shutdown;
|
||||
}
|
||||
e_close = 1;
|
||||
|
||||
dbenv->set_errfile(dbenv, stderr);
|
||||
dbenv->set_errpfx(dbenv, progname);
|
||||
|
||||
if (passwd != NULL && (ret = dbenv->set_encrypt(dbenv,
|
||||
passwd, DB_ENCRYPT_AES)) != 0) {
|
||||
dbenv->err(dbenv, ret, "set_passwd");
|
||||
goto shutdown;
|
||||
}
|
||||
/* Initialize the environment. */
|
||||
if ((ret = dbenv->open(dbenv,
|
||||
home, DB_JOINENV | DB_USE_ENVIRON, 0)) != 0) {
|
||||
dbenv->err(dbenv, ret, "open");
|
||||
goto shutdown;
|
||||
}
|
||||
|
||||
/* Register the standard pgin/pgout functions, in case we do I/O. */
|
||||
if ((ret = dbenv->memp_register(
|
||||
dbenv, DB_FTYPE_SET, __db_pgin, __db_pgout)) != 0) {
|
||||
dbenv->err(dbenv, ret,
|
||||
"DB_ENV->memp_register: failed to register access method functions");
|
||||
goto shutdown;
|
||||
}
|
||||
|
||||
/*
|
||||
* If we have only a time delay, then we'll sleep the right amount
|
||||
* to wake up when a checkpoint is necessary. If we have a "kbytes"
|
||||
* field set, then we'll check every 30 seconds.
|
||||
*/
|
||||
seconds = kbytes != 0 ? 30 : minutes * 60;
|
||||
while (!__db_util_interrupted()) {
|
||||
if (verbose) {
|
||||
(void)time(&now);
|
||||
dbenv->errx(dbenv, "checkpoint: %s", ctime(&now));
|
||||
}
|
||||
|
||||
if ((ret = dbenv->txn_checkpoint(dbenv,
|
||||
kbytes, minutes, flags)) != 0) {
|
||||
dbenv->err(dbenv, ret, "txn_checkpoint");
|
||||
goto shutdown;
|
||||
}
|
||||
|
||||
if (once)
|
||||
break;
|
||||
|
||||
(void)__os_sleep(dbenv, seconds, 0);
|
||||
}
|
||||
|
||||
if (0) {
|
||||
shutdown: exitval = 1;
|
||||
}
|
||||
|
||||
/* Clean up the logfile. */
|
||||
if (logfile != NULL)
|
||||
remove(logfile);
|
||||
|
||||
/* Clean up the environment. */
|
||||
if (e_close && (ret = dbenv->close(dbenv, 0)) != 0) {
|
||||
exitval = 1;
|
||||
fprintf(stderr,
|
||||
"%s: dbenv->close: %s\n", progname, db_strerror(ret));
|
||||
}
|
||||
|
||||
/* Resend any caught signal. */
|
||||
__db_util_sigresend();
|
||||
|
||||
return (exitval == 0 ? EXIT_SUCCESS : EXIT_FAILURE);
|
||||
}
|
||||
|
||||
int
|
||||
db_checkpoint_usage()
|
||||
{
|
||||
(void)fprintf(stderr, "%s\n\t%s\n",
|
||||
"usage: db_checkpoint [-1Vv]",
|
||||
"[-h home] [-k kbytes] [-L file] [-P password] [-p min]");
|
||||
return (EXIT_FAILURE);
|
||||
}
|
||||
|
||||
int
|
||||
db_checkpoint_version_check(progname)
|
||||
const char *progname;
|
||||
{
|
||||
int v_major, v_minor, v_patch;
|
||||
|
||||
/* Make sure we're loaded with the right version of the DB library. */
|
||||
(void)db_version(&v_major, &v_minor, &v_patch);
|
||||
if (v_major != DB_VERSION_MAJOR ||
|
||||
v_minor != DB_VERSION_MINOR || v_patch != DB_VERSION_PATCH) {
|
||||
fprintf(stderr,
|
||||
"%s: version %d.%d.%d doesn't match library version %d.%d.%d\n",
|
||||
progname, DB_VERSION_MAJOR, DB_VERSION_MINOR,
|
||||
DB_VERSION_PATCH, v_major, v_minor, v_patch);
|
||||
return (EXIT_FAILURE);
|
||||
}
|
||||
return (0);
|
||||
}
|
@ -1,160 +0,0 @@
|
||||
Document file - DO NOT EDIT
|
||||
|
||||
<BEGIN> BUILD_PENTIUMgnu_BUILDRULE
|
||||
db_checkpoint.out
|
||||
<END>
|
||||
|
||||
<BEGIN> BUILD_PENTIUMgnu_MACRO_AR
|
||||
ar386
|
||||
<END>
|
||||
|
||||
<BEGIN> BUILD_PENTIUMgnu_MACRO_ARCHIVE
|
||||
$(PRJ_DIR)/PENTIUMgnu/db_checkpoint.a
|
||||
<END>
|
||||
|
||||
<BEGIN> BUILD_PENTIUMgnu_MACRO_AS
|
||||
cc386
|
||||
<END>
|
||||
|
||||
<BEGIN> BUILD_PENTIUMgnu_MACRO_CC
|
||||
cc386
|
||||
<END>
|
||||
|
||||
<BEGIN> BUILD_PENTIUMgnu_MACRO_CFLAGS
|
||||
-g \
|
||||
-mpentium \
|
||||
-ansi \
|
||||
-nostdinc \
|
||||
-DRW_MULTI_THREAD \
|
||||
-D_REENTRANT \
|
||||
-fvolatile \
|
||||
-nostdlib \
|
||||
-fno-builtin \
|
||||
-fno-defer-pop \
|
||||
-I$(PRJ_DIR)/.. \
|
||||
-I$(PRJ_DIR)/../.. \
|
||||
-I$(WIND_BASE)/target/h \
|
||||
-DCPU=PENTIUM
|
||||
<END>
|
||||
|
||||
<BEGIN> BUILD_PENTIUMgnu_MACRO_CFLAGS_AS
|
||||
-g \
|
||||
-mpentium \
|
||||
-ansi \
|
||||
-nostdinc \
|
||||
-fvolatile \
|
||||
-nostdlib \
|
||||
-fno-builtin \
|
||||
-fno-defer-pop \
|
||||
-P \
|
||||
-x \
|
||||
assembler-with-cpp \
|
||||
-I$(WIND_BASE)/target/h \
|
||||
-DCPU=PENTIUM
|
||||
<END>
|
||||
|
||||
<BEGIN> BUILD_PENTIUMgnu_MACRO_CPP
|
||||
cc386 -E -P -xc
|
||||
<END>
|
||||
|
||||
<BEGIN> BUILD_PENTIUMgnu_MACRO_LD
|
||||
ld386
|
||||
<END>
|
||||
|
||||
<BEGIN> BUILD_PENTIUMgnu_MACRO_LDDEPS
|
||||
|
||||
<END>
|
||||
|
||||
<BEGIN> BUILD_PENTIUMgnu_MACRO_LDFLAGS
|
||||
-X -N
|
||||
<END>
|
||||
|
||||
<BEGIN> BUILD_PENTIUMgnu_MACRO_LD_PARTIAL_FLAGS
|
||||
-X -r
|
||||
<END>
|
||||
|
||||
<BEGIN> BUILD_PENTIUMgnu_MACRO_NM
|
||||
nm386 -g
|
||||
<END>
|
||||
|
||||
<BEGIN> BUILD_PENTIUMgnu_MACRO_OPTION_DEFINE_MACRO
|
||||
-D
|
||||
<END>
|
||||
|
||||
<BEGIN> BUILD_PENTIUMgnu_MACRO_OPTION_INCLUDE_DIR
|
||||
-I
|
||||
<END>
|
||||
|
||||
<BEGIN> BUILD_PENTIUMgnu_MACRO_POST_BUILD_RULE
|
||||
|
||||
<END>
|
||||
|
||||
<BEGIN> BUILD_PENTIUMgnu_MACRO_PRJ_LIBS
|
||||
|
||||
<END>
|
||||
|
||||
<BEGIN> BUILD_PENTIUMgnu_MACRO_SIZE
|
||||
size386
|
||||
<END>
|
||||
|
||||
<BEGIN> BUILD_PENTIUMgnu_RO_DEPEND_PATH
|
||||
{$(WIND_BASE)/target/h/} \
|
||||
{$(WIND_BASE)/target/src/} \
|
||||
{$(WIND_BASE)/target/config/}
|
||||
<END>
|
||||
|
||||
<BEGIN> BUILD_PENTIUMgnu_TC
|
||||
::tc_PENTIUMgnu
|
||||
<END>
|
||||
|
||||
<BEGIN> BUILD_RULE_archive
|
||||
|
||||
<END>
|
||||
|
||||
<BEGIN> BUILD_RULE_db_checkpoint.out
|
||||
|
||||
<END>
|
||||
|
||||
<BEGIN> BUILD_RULE_objects
|
||||
|
||||
<END>
|
||||
|
||||
<BEGIN> BUILD__CURRENT
|
||||
PENTIUMgnu
|
||||
<END>
|
||||
|
||||
<BEGIN> BUILD__LIST
|
||||
PENTIUMgnu
|
||||
<END>
|
||||
|
||||
<BEGIN> CORE_INFO_TYPE
|
||||
::prj_vxApp
|
||||
<END>
|
||||
|
||||
<BEGIN> CORE_INFO_VERSION
|
||||
2.0
|
||||
<END>
|
||||
|
||||
<BEGIN> FILE_db_checkpoint.c_dependDone
|
||||
FALSE
|
||||
<END>
|
||||
|
||||
<BEGIN> FILE_db_checkpoint.c_dependencies
|
||||
|
||||
<END>
|
||||
|
||||
<BEGIN> FILE_db_checkpoint.c_objects
|
||||
db_checkpoint.o
|
||||
<END>
|
||||
|
||||
<BEGIN> FILE_db_checkpoint.c_tool
|
||||
C/C++ compiler
|
||||
<END>
|
||||
|
||||
<BEGIN> PROJECT_FILES
|
||||
$(PRJ_DIR)/db_checkpoint.c
|
||||
<END>
|
||||
|
||||
<BEGIN> userComments
|
||||
db_checkpoint
|
||||
<END>
|
@ -1,51 +0,0 @@
|
||||
#
|
||||
# Custom Makefile shell
|
||||
#
|
||||
# This file may be edited freely, since it will not be regenerated
|
||||
# by the project manager.
|
||||
#
|
||||
# Use this makefile to define rules to make external binaries
|
||||
# and deposit them in the $(EXTERNAL_BINARIES_DIR) directory.
|
||||
#
|
||||
# If you have specified external modules during your component
|
||||
# creation, you will find make rules already in place below.
|
||||
# You will likely have to edit these to suit your individual
|
||||
# build setup.
|
||||
#
|
||||
# You may wish to use the CPU, BUILD_SPEC or TOOL make variables in
|
||||
# your Makefile to support builds for different architectures. Use
|
||||
# the FORCE_EXTERNAL_MAKE phony target to ensure that your external
|
||||
# make always runs.
|
||||
#
|
||||
# The example below assumes that your custom makefile is in the
|
||||
# mySourceTree directory, and that the binary file it produces
|
||||
# is placed into the $(BUILD_SPEC) sub-directory.
|
||||
#
|
||||
# EXTERNAL_SOURCE_BASE = /folk/me/mySourceTree
|
||||
# EXTERNAL_MODULE = myLibrary.o
|
||||
# EXTERNAL_MAKE = make
|
||||
#
|
||||
# $(EXTERNAL_BINARIES_DIR)/$(EXTERNAL_MODULE) : FORCE_EXTERNAL_MAKE
|
||||
# $(EXTERNAL_MAKE) -C $(EXTERNAL_SOURCE_BASE) \
|
||||
# -f $(EXTERNAL_SOURCE_BASE)/Makefile \
|
||||
# CPU=$(CPU) BUILD_SPEC=$(BUILD_SPEC) $(@F)
|
||||
# $(CP) $(subst /,$(DIRCHAR),$(EXTERNAL_SOURCE_BASE)/$(BUILD_SPEC)/$(@F) $@)
|
||||
#
|
||||
# If you are not adding your external modules from the component wizard,
|
||||
# you will have to include them in your component yourself:
|
||||
#
|
||||
# From the GUI, you can do this with the Component's 'Add external module'
|
||||
# dialog.
|
||||
#
|
||||
# If you are using the command line, add the module(s) by editing the
|
||||
# MODULES line in component.cdf file, e.g.
|
||||
#
|
||||
# Component INCLUDE_MYCOMPONENT {
|
||||
#
|
||||
# MODULES foo.o goo.o \
|
||||
# myLibrary.o
|
||||
#
|
||||
|
||||
|
||||
# rules to build custom libraries
|
||||
|
@ -1,30 +0,0 @@
|
||||
/* component.cdf - dynamically updated configuration */
|
||||
|
||||
/*
|
||||
* NOTE: you may edit this file to alter the configuration
|
||||
* But all non-configuration information, including comments,
|
||||
* will be lost upon rebuilding this project.
|
||||
*/
|
||||
|
||||
/* Component information */
|
||||
|
||||
Component INCLUDE_DB_CHECKPOINT {
|
||||
ENTRY_POINTS ALL_GLOBAL_SYMBOLS
|
||||
MODULES db_checkpoint.o
|
||||
NAME db_checkpoint
|
||||
PREF_DOMAIN ANY
|
||||
_INIT_ORDER usrComponentsInit
|
||||
}
|
||||
|
||||
/* EntryPoint information */
|
||||
|
||||
/* Module information */
|
||||
|
||||
Module db_checkpoint.o {
|
||||
|
||||
NAME db_checkpoint.o
|
||||
SRC_PATH_NAME $PRJ_DIR/../db_checkpoint.c
|
||||
}
|
||||
|
||||
/* Parameter information */
|
||||
|
@ -1,475 +0,0 @@
|
||||
Document file - DO NOT EDIT
|
||||
|
||||
<BEGIN> CORE_INFO_TYPE
|
||||
::prj_component
|
||||
<END>
|
||||
|
||||
<BEGIN> CORE_INFO_VERSION
|
||||
AE1.1
|
||||
<END>
|
||||
|
||||
<BEGIN> BUILD__CURRENT
|
||||
PENTIUM2gnu.debug
|
||||
<END>
|
||||
|
||||
<BEGIN> BUILD_PENTIUM2gnu.debug_CURRENT_TARGET
|
||||
default
|
||||
<END>
|
||||
|
||||
<BEGIN> BUILD_PENTIUM2gnu.debug_DEFAULTFORCPU
|
||||
1
|
||||
<END>
|
||||
|
||||
<BEGIN> BUILD_PENTIUM2gnu.debug_FILE_$(PRJ_DIR)/../db_checkpoint.c_infoTags
|
||||
toolMacro objects
|
||||
<END>
|
||||
|
||||
<BEGIN> BUILD_PENTIUM2gnu.debug_FILE_$(PRJ_DIR)/../db_checkpoint.c_objects
|
||||
db_checkpoint.o
|
||||
<END>
|
||||
|
||||
<BEGIN> BUILD_PENTIUM2gnu.debug_FILE_$(PRJ_DIR)/../db_checkpoint.c_toolMacro
|
||||
CC
|
||||
<END>
|
||||
|
||||
<BEGIN> BUILD_PENTIUM2gnu.debug_FILE_$(PRJ_DIR)/../db_checkpoint.c_objects
|
||||
db_checkpoint.o
|
||||
<END>
|
||||
|
||||
<BEGIN> BUILD_PENTIUM2gnu.debug_FILE_$(PRJ_DIR)/../db_checkpoint.c_toolMacro
|
||||
CC
|
||||
<END>
|
||||
|
||||
<BEGIN> BUILD_PENTIUM2gnu.debug_FILE_$(PRJ_DIR)/compConfig.c_infoTags
|
||||
toolMacro objects
|
||||
<END>
|
||||
|
||||
<BEGIN> BUILD_PENTIUM2gnu.debug_FILE_$(PRJ_DIR)/compConfig.c_objects
|
||||
compConfig.o
|
||||
<END>
|
||||
|
||||
<BEGIN> BUILD_PENTIUM2gnu.debug_FILE_$(PRJ_DIR)/compConfig.c_toolMacro
|
||||
CC
|
||||
<END>
|
||||
|
||||
<BEGIN> BUILD_PENTIUM2gnu.debug_MACRO_AR
|
||||
arpentium
|
||||
<END>
|
||||
|
||||
<BEGIN> BUILD_PENTIUM2gnu.debug_MACRO_AS
|
||||
ccpentium
|
||||
<END>
|
||||
|
||||
<BEGIN> BUILD_PENTIUM2gnu.debug_MACRO_CC
|
||||
ccpentium
|
||||
<END>
|
||||
|
||||
<BEGIN> BUILD_PENTIUM2gnu.debug_MACRO_CFLAGS
|
||||
-mcpu=pentiumpro \
|
||||
-march=pentiumpro \
|
||||
-ansi \
|
||||
-DRW_MULTI_THREAD \
|
||||
-D_REENTRANT \
|
||||
-g \
|
||||
-nostdlib \
|
||||
-fno-builtin \
|
||||
-fno-defer-pop \
|
||||
-MD \
|
||||
-Wall \
|
||||
-I. \
|
||||
-I$(WIND_BASE)/target/h \
|
||||
-I$(PRJ_DIR)/../.. \
|
||||
-I$(PRJ_DIR)/../../.. \
|
||||
-DCPU=PENTIUM2
|
||||
<END>
|
||||
|
||||
<BEGIN> BUILD_PENTIUM2gnu.debug_MACRO_CFLAGS_AS
|
||||
-mcpu=pentiumpro \
|
||||
-march=pentiumpro \
|
||||
-ansi \
|
||||
-g \
|
||||
-nostdlib \
|
||||
-fno-builtin \
|
||||
-fno-defer-pop \
|
||||
-P \
|
||||
-x \
|
||||
assembler-with-cpp \
|
||||
-Wall \
|
||||
-I. \
|
||||
-I$(WIND_BASE)/target/h \
|
||||
-DCPU=PENTIUM2
|
||||
<END>
|
||||
|
||||
<BEGIN> BUILD_PENTIUM2gnu.debug_MACRO_CPP
|
||||
ccpentium -E -P
|
||||
<END>
|
||||
|
||||
<BEGIN> BUILD_PENTIUM2gnu.debug_MACRO_CPPFILT
|
||||
c++filtpentium --strip-underscores
|
||||
<END>
|
||||
|
||||
<BEGIN> BUILD_PENTIUM2gnu.debug_MACRO_LD
|
||||
ldpentium
|
||||
<END>
|
||||
|
||||
<BEGIN> BUILD_PENTIUM2gnu.debug_MACRO_LDFLAGS
|
||||
-X
|
||||
<END>
|
||||
|
||||
<BEGIN> BUILD_PENTIUM2gnu.debug_MACRO_LDPARTIAL
|
||||
ccpentium \
|
||||
-B$(WIND_BASE)/host/$(WIND_HOST_TYPE)/lib/gcc-lib/ \
|
||||
-nostdlib \
|
||||
-r \
|
||||
-Wl,-X
|
||||
<END>
|
||||
|
||||
<BEGIN> BUILD_PENTIUM2gnu.debug_MACRO_LD_PARTIAL_FLAGS
|
||||
-X -r
|
||||
<END>
|
||||
|
||||
<BEGIN> BUILD_PENTIUM2gnu.debug_MACRO_NM
|
||||
nmpentium -g
|
||||
<END>
|
||||
|
||||
<BEGIN> BUILD_PENTIUM2gnu.debug_MACRO_OPTION_DEFINE_MACRO
|
||||
-D
|
||||
<END>
|
||||
|
||||
<BEGIN> BUILD_PENTIUM2gnu.debug_MACRO_OPTION_GENERATE_DEPENDENCY_FILE
|
||||
-MD
|
||||
<END>
|
||||
|
||||
<BEGIN> BUILD_PENTIUM2gnu.debug_MACRO_OPTION_INCLUDE_DIR
|
||||
-I
|
||||
<END>
|
||||
|
||||
<BEGIN> BUILD_PENTIUM2gnu.debug_MACRO_RELEASE
|
||||
0
|
||||
<END>
|
||||
|
||||
<BEGIN> BUILD_PENTIUM2gnu.debug_MACRO_SIZE
|
||||
sizepentium
|
||||
<END>
|
||||
|
||||
<BEGIN> BUILD_PENTIUM2gnu.debug_RELEASE
|
||||
0
|
||||
<END>
|
||||
|
||||
<BEGIN> BUILD_PENTIUM2gnu.debug_RO_DEPEND_PATH
|
||||
$(WIND_BASE)/target/h/
|
||||
<END>
|
||||
|
||||
<BEGIN> BUILD_PENTIUM2gnu.debug_TC
|
||||
::tc_PENTIUM2gnu.debug
|
||||
<END>
|
||||
|
||||
<BEGIN> BUILD_PENTIUM2gnu.release_DEFAULTFORCPU
|
||||
0
|
||||
<END>
|
||||
|
||||
<BEGIN> BUILD_PENTIUM2gnu.release_FILE_$(PRJ_DIR)/../db_checkpoint.c_infoTags
|
||||
toolMacro objects
|
||||
<END>
|
||||
|
||||
<BEGIN> BUILD_PENTIUM2gnu.release_FILE_$(PRJ_DIR)/../db_checkpoint.c_objects
|
||||
db_checkpoint.o
|
||||
<END>
|
||||
|
||||
<BEGIN> BUILD_PENTIUM2gnu.release_FILE_$(PRJ_DIR)/../db_checkpoint.c_toolMacro
|
||||
CC
|
||||
<END>
|
||||
|
||||
<BEGIN> BUILD_PENTIUM2gnu.release_FILE_$(PRJ_DIR)/compConfig.c_infoTags
|
||||
toolMacro objects
|
||||
<END>
|
||||
|
||||
<BEGIN> BUILD_PENTIUM2gnu.release_FILE_$(PRJ_DIR)/compConfig.c_objects
|
||||
compConfig.o
|
||||
<END>
|
||||
|
||||
<BEGIN> BUILD_PENTIUM2gnu.release_FILE_$(PRJ_DIR)/compConfig.c_toolMacro
|
||||
CC
|
||||
<END>
|
||||
|
||||
<BEGIN> BUILD_PENTIUM2gnu.release_MACRO_AR
|
||||
arpentium
|
||||
<END>
|
||||
|
||||
<BEGIN> BUILD_PENTIUM2gnu.release_MACRO_AS
|
||||
ccpentium
|
||||
<END>
|
||||
|
||||
<BEGIN> BUILD_PENTIUM2gnu.release_MACRO_CC
|
||||
ccpentium
|
||||
<END>
|
||||
|
||||
<BEGIN> BUILD_PENTIUM2gnu.release_MACRO_CFLAGS
|
||||
-mcpu=pentiumpro \
|
||||
-march=pentiumpro \
|
||||
-ansi \
|
||||
-DRW_MULTI_THREAD \
|
||||
-D_REENTRANT \
|
||||
-O2 \
|
||||
-nostdlib \
|
||||
-fno-builtin \
|
||||
-fno-defer-pop \
|
||||
-MD \
|
||||
-Wall \
|
||||
-I. \
|
||||
-I$(WIND_BASE)/target/h \
|
||||
-I$(PRJ_DIR)/../.. \
|
||||
-I$(PRJ_DIR)/../../.. \
|
||||
-DCPU=PENTIUM2
|
||||
<END>
|
||||
|
||||
<BEGIN> BUILD_PENTIUM2gnu.release_MACRO_CFLAGS_AS
|
||||
-mcpu=pentiumpro \
|
||||
-march=pentiumpro \
|
||||
-ansi \
|
||||
-O2 \
|
||||
-nostdlib \
|
||||
-fno-builtin \
|
||||
-fno-defer-pop \
|
||||
-P \
|
||||
-x \
|
||||
assembler-with-cpp \
|
||||
-Wall \
|
||||
-I. \
|
||||
-I$(WIND_BASE)/target/h \
|
||||
-DCPU=PENTIUM2
|
||||
<END>
|
||||
|
||||
<BEGIN> BUILD_PENTIUM2gnu.release_MACRO_CPP
|
||||
ccpentium -E -P
|
||||
<END>
|
||||
|
||||
<BEGIN> BUILD_PENTIUM2gnu.release_MACRO_CPPFILT
|
||||
c++filtpentium --strip-underscores
|
||||
<END>
|
||||
|
||||
<BEGIN> BUILD_PENTIUM2gnu.release_MACRO_LD
|
||||
ldpentium
|
||||
<END>
|
||||
|
||||
<BEGIN> BUILD_PENTIUM2gnu.release_MACRO_LDFLAGS
|
||||
-X
|
||||
<END>
|
||||
|
||||
<BEGIN> BUILD_PENTIUM2gnu.release_MACRO_LDPARTIAL
|
||||
ccpentium \
|
||||
-B$(WIND_BASE)/host/$(WIND_HOST_TYPE)/lib/gcc-lib/ \
|
||||
-nostdlib \
|
||||
-r \
|
||||
-Wl,-X
|
||||
<END>
|
||||
|
||||
<BEGIN> BUILD_PENTIUM2gnu.release_MACRO_LD_PARTIAL_FLAGS
|
||||
-X -r
|
||||
<END>
|
||||
|
||||
<BEGIN> BUILD_PENTIUM2gnu.release_MACRO_NM
|
||||
nmpentium -g
|
||||
<END>
|
||||
|
||||
<BEGIN> BUILD_PENTIUM2gnu.release_MACRO_OPTION_DEFINE_MACRO
|
||||
-D
|
||||
<END>
|
||||
|
||||
<BEGIN> BUILD_PENTIUM2gnu.release_MACRO_OPTION_GENERATE_DEPENDENCY_FILE
|
||||
-MD
|
||||
<END>
|
||||
|
||||
<BEGIN> BUILD_PENTIUM2gnu.release_MACRO_OPTION_INCLUDE_DIR
|
||||
-I
|
||||
<END>
|
||||
|
||||
<BEGIN> BUILD_PENTIUM2gnu.release_MACRO_RELEASE
|
||||
1
|
||||
<END>
|
||||
|
||||
<BEGIN> BUILD_PENTIUM2gnu.release_MACRO_SIZE
|
||||
sizepentium
|
||||
<END>
|
||||
|
||||
<BEGIN> BUILD_PENTIUM2gnu.release_RELEASE
|
||||
1
|
||||
<END>
|
||||
|
||||
<BEGIN> BUILD_PENTIUM2gnu.release_RO_DEPEND_PATH
|
||||
$(WIND_BASE)/target/h/
|
||||
<END>
|
||||
|
||||
<BEGIN> BUILD_PENTIUM2gnu.release_TC
|
||||
::tc_PENTIUM2gnu.release
|
||||
<END>
|
||||
|
||||
<BEGIN> BUILD_PENTIUMgnu.debug_DEFAULTFORCPU
|
||||
1
|
||||
<END>
|
||||
|
||||
<BEGIN> BUILD_PENTIUMgnu.debug_FILE_$(PRJ_DIR)/../db_checkpoint.c_infoTags
|
||||
toolMacro objects
|
||||
<END>
|
||||
|
||||
<BEGIN> BUILD_PENTIUMgnu.debug_FILE_$(PRJ_DIR)/../db_checkpoint.c_objects
|
||||
db_checkpoint.o
|
||||
<END>
|
||||
|
||||
<BEGIN> BUILD_PENTIUMgnu.debug_FILE_$(PRJ_DIR)/../db_checkpoint.c_toolMacro
|
||||
CC
|
||||
<END>
|
||||
|
||||
<BEGIN> BUILD_PENTIUMgnu.debug_FILE_$(PRJ_DIR)/compConfig.c_infoTags
|
||||
toolMacro objects
|
||||
<END>
|
||||
|
||||
<BEGIN> BUILD_PENTIUMgnu.debug_FILE_$(PRJ_DIR)/compConfig.c_objects
|
||||
compConfig.o
|
||||
<END>
|
||||
|
||||
<BEGIN> BUILD_PENTIUMgnu.debug_FILE_$(PRJ_DIR)/compConfig.c_toolMacro
|
||||
CC
|
||||
<END>
|
||||
|
||||
<BEGIN> BUILD_PENTIUMgnu.debug_MACRO_AR
|
||||
arpentium
|
||||
<END>
|
||||
|
||||
<BEGIN> BUILD_PENTIUMgnu.debug_MACRO_AS
|
||||
ccpentium
|
||||
<END>
|
||||
|
||||
<BEGIN> BUILD_PENTIUMgnu.debug_MACRO_CC
|
||||
ccpentium
|
||||
<END>
|
||||
|
||||
<BEGIN> BUILD_PENTIUMgnu.debug_MACRO_CFLAGS
|
||||
-mcpu=pentium \
|
||||
-march=pentium \
|
||||
-ansi \
|
||||
-DRW_MULTI_THREAD \
|
||||
-D_REENTRANT \
|
||||
-g \
|
||||
-nostdlib \
|
||||
-fno-builtin \
|
||||
-fno-defer-pop \
|
||||
-MD \
|
||||
-Wall \
|
||||
-I. \
|
||||
-I$(WIND_BASE)/target/h \
|
||||
-I$(PRJ_DIR)/../.. \
|
||||
-I$(PRJ_DIR)/../../.. \
|
||||
-DCPU=PENTIUM
|
||||
<END>
|
||||
|
||||
<BEGIN> BUILD_PENTIUMgnu.debug_MACRO_CFLAGS_AS
|
||||
-mcpu=pentium \
|
||||
-march=pentium \
|
||||
-ansi \
|
||||
-g \
|
||||
-nostdlib \
|
||||
-fno-builtin \
|
||||
-fno-defer-pop \
|
||||
-P \
|
||||
-x \
|
||||
assembler-with-cpp \
|
||||
-Wall \
|
||||
-I. \
|
||||
-I$(WIND_BASE)/target/h \
|
||||
-DCPU=PENTIUM
|
||||
<END>
|
||||
|
||||
<BEGIN> BUILD_PENTIUMgnu.debug_MACRO_CPP
|
||||
ccpentium -E -P
|
||||
<END>
|
||||
|
||||
<BEGIN> BUILD_PENTIUMgnu.debug_MACRO_CPPFILT
|
||||
c++filtpentium --strip-underscores
|
||||
<END>
|
||||
|
||||
<BEGIN> BUILD_PENTIUMgnu.debug_MACRO_LD
|
||||
ldpentium
|
||||
<END>
|
||||
|
||||
<BEGIN> BUILD_PENTIUMgnu.debug_MACRO_LDFLAGS
|
||||
-X
|
||||
<END>
|
||||
|
||||
<BEGIN> BUILD_PENTIUMgnu.debug_MACRO_LDPARTIAL
|
||||
ccpentium \
|
||||
-B$(WIND_BASE)/host/$(WIND_HOST_TYPE)/lib/gcc-lib/ \
|
||||
-nostdlib \
|
||||
-r \
|
||||
-Wl,-X
|
||||
<END>
|
||||
|
||||
<BEGIN> BUILD_PENTIUMgnu.debug_MACRO_LD_PARTIAL_FLAGS
|
||||
-X -r
|
||||
<END>
|
||||
|
||||
<BEGIN> BUILD_PENTIUMgnu.debug_MACRO_NM
|
||||
nmpentium -g
|
||||
<END>
|
||||
|
||||
<BEGIN> BUILD_PENTIUMgnu.debug_MACRO_OPTION_DEFINE_MACRO
|
||||
-D
|
||||
<END>
|
||||
|
||||
<BEGIN> BUILD_PENTIUMgnu.debug_MACRO_OPTION_GENERATE_DEPENDENCY_FILE
|
||||
-MD
|
||||
<END>
|
||||
|
||||
<BEGIN> BUILD_PENTIUMgnu.debug_MACRO_OPTION_INCLUDE_DIR
|
||||
-I
|
||||
<END>
|
||||
|
||||
<BEGIN> BUILD_PENTIUMgnu.debug_MACRO_RELEASE
|
||||
0
|
||||
<END>
|
||||
|
||||
<BEGIN> BUILD_PENTIUMgnu.debug_MACRO_SIZE
|
||||
sizepentium
|
||||
<END>
|
||||
|
||||
<BEGIN> BUILD_PENTIUMgnu.debug_RELEASE
|
||||
0
|
||||
<END>
|
||||
|
||||
<BEGIN> BUILD_PENTIUMgnu.debug_RO_DEPEND_PATH
|
||||
$(WIND_BASE)/target/h/
|
||||
<END>
|
||||
|
||||
<BEGIN> BUILD_PENTIUMgnu.debug_TC
|
||||
::tc_PENTIUMgnu.debug
|
||||
<END>
|
||||
|
||||
<BEGIN> BUILD__LIST
|
||||
PENTIUM2gnu.debug PENTIUM2gnu.release PENTIUMgnu.debug
|
||||
<END>
|
||||
|
||||
<BEGIN> PROJECT_FILES
|
||||
$(PRJ_DIR)/../db_checkpoint.c \
|
||||
$(PRJ_DIR)/compConfig.c
|
||||
<END>
|
||||
|
||||
<BEGIN> WCC__CDF_PATH
|
||||
$(PRJ_DIR)
|
||||
<END>
|
||||
|
||||
<BEGIN> WCC__CURRENT
|
||||
PENTIUM2gnu.debug
|
||||
<END>
|
||||
|
||||
<BEGIN> WCC__LIST
|
||||
PENTIUM2gnu.debug
|
||||
<END>
|
||||
|
||||
<BEGIN> WCC__MXR_LIBS
|
||||
lib$(CPU)$(TOOL)vx.a
|
||||
<END>
|
||||
|
||||
<BEGIN> WCC__OBJS_PATH
|
||||
$(WIND_BASE)/target/lib/obj$CPU$TOOLvx
|
||||
<END>
|
||||
|
@ -1,382 +0,0 @@
|
||||
/* DO NOT EDIT: automatically built by dist/s_vxworks. */
|
||||
/* !!!
|
||||
* The CONFIG_TEST option may be added using the Tornado project build.
|
||||
* DO NOT modify it here.
|
||||
*/
|
||||
/* Define to 1 if you want to build a version for running the test suite. */
|
||||
/* #undef CONFIG_TEST */
|
||||
|
||||
/* !!!
|
||||
* The DEBUG option may be added using the Tornado project build.
|
||||
* DO NOT modify it here.
|
||||
*/
|
||||
/* Define to 1 if you want a debugging version. */
|
||||
/* #undef DEBUG */
|
||||
|
||||
/* Define to 1 if you want a version that logs read operations. */
|
||||
/* #undef DEBUG_ROP */
|
||||
|
||||
/* Define to 1 if you want a version that logs write operations. */
|
||||
/* #undef DEBUG_WOP */
|
||||
|
||||
/* !!!
|
||||
* The DIAGNOSTIC option may be added using the Tornado project build.
|
||||
* DO NOT modify it here.
|
||||
*/
|
||||
/* Define to 1 if you want a version with run-time diagnostic checking. */
|
||||
/* #undef DIAGNOSTIC */
|
||||
|
||||
/* Define to 1 if you have the `clock_gettime' function. */
|
||||
#define HAVE_CLOCK_GETTIME 1
|
||||
|
||||
/* Define to 1 if Berkeley DB release includes strong cryptography. */
|
||||
/* #undef HAVE_CRYPTO */
|
||||
|
||||
/* Define to 1 if you have the `directio' function. */
|
||||
/* #undef HAVE_DIRECTIO */
|
||||
|
||||
/* Define to 1 if you have the <dirent.h> header file, and it defines `DIR'.
|
||||
*/
|
||||
#define HAVE_DIRENT_H 1
|
||||
|
||||
/* Define to 1 if you have the <dlfcn.h> header file. */
|
||||
/* #undef HAVE_DLFCN_H */
|
||||
|
||||
/* Define to 1 if you have EXIT_SUCCESS/EXIT_FAILURE #defines. */
|
||||
#define HAVE_EXIT_SUCCESS 1
|
||||
|
||||
/* Define to 1 if fcntl/F_SETFD denies child access to file descriptors. */
|
||||
/* #undef HAVE_FCNTL_F_SETFD */
|
||||
|
||||
/* Define to 1 if allocated filesystem blocks are not zeroed. */
|
||||
#define HAVE_FILESYSTEM_NOTZERO 1
|
||||
|
||||
/* Define to 1 if you have the `getcwd' function. */
|
||||
#define HAVE_GETCWD 1
|
||||
|
||||
/* Define to 1 if you have the `getopt' function. */
|
||||
/* #undef HAVE_GETOPT */
|
||||
|
||||
/* Define to 1 if you have the `gettimeofday' function. */
|
||||
/* #undef HAVE_GETTIMEOFDAY */
|
||||
|
||||
/* Define to 1 if you have the `getuid' function. */
|
||||
/* #undef HAVE_GETUID */
|
||||
|
||||
/* Define to 1 if you have the <inttypes.h> header file. */
|
||||
/* #undef HAVE_INTTYPES_H */
|
||||
|
||||
/* Define to 1 if you have the `nsl' library (-lnsl). */
|
||||
/* #undef HAVE_LIBNSL */
|
||||
|
||||
/* Define to 1 if you have the `memcmp' function. */
|
||||
#define HAVE_MEMCMP 1
|
||||
|
||||
/* Define to 1 if you have the `memcpy' function. */
|
||||
#define HAVE_MEMCPY 1
|
||||
|
||||
/* Define to 1 if you have the `memmove' function. */
|
||||
#define HAVE_MEMMOVE 1
|
||||
|
||||
/* Define to 1 if you have the <memory.h> header file. */
|
||||
#define HAVE_MEMORY_H 1
|
||||
|
||||
/* Define to 1 if you have the `mlock' function. */
|
||||
/* #undef HAVE_MLOCK */
|
||||
|
||||
/* Define to 1 if you have the `mmap' function. */
|
||||
/* #undef HAVE_MMAP */
|
||||
|
||||
/* Define to 1 if you have the `munlock' function. */
|
||||
/* #undef HAVE_MUNLOCK */
|
||||
|
||||
/* Define to 1 if you have the `munmap' function. */
|
||||
/* #undef HAVE_MUNMAP */
|
||||
|
||||
/* Define to 1 to use the GCC compiler and 68K assembly language mutexes. */
|
||||
/* #undef HAVE_MUTEX_68K_GCC_ASSEMBLY */
|
||||
|
||||
/* Define to 1 to use the AIX _check_lock mutexes. */
|
||||
/* #undef HAVE_MUTEX_AIX_CHECK_LOCK */
|
||||
|
||||
/* Define to 1 to use the GCC compiler and Alpha assembly language mutexes. */
|
||||
/* #undef HAVE_MUTEX_ALPHA_GCC_ASSEMBLY */
|
||||
|
||||
/* Define to 1 to use the GCC compiler and ARM assembly language mutexes. */
|
||||
/* #undef HAVE_MUTEX_ARM_GCC_ASSEMBLY */
|
||||
|
||||
/* Define to 1 to use the UNIX fcntl system call mutexes. */
|
||||
/* #undef HAVE_MUTEX_FCNTL */
|
||||
|
||||
/* Define to 1 to use the GCC compiler and PaRisc assembly language mutexes.
|
||||
*/
|
||||
/* #undef HAVE_MUTEX_HPPA_GCC_ASSEMBLY */
|
||||
|
||||
/* Define to 1 to use the msem_XXX mutexes on HP-UX. */
|
||||
/* #undef HAVE_MUTEX_HPPA_MSEM_INIT */
|
||||
|
||||
/* Define to 1 to use the GCC compiler and IA64 assembly language mutexes. */
|
||||
/* #undef HAVE_MUTEX_IA64_GCC_ASSEMBLY */
|
||||
|
||||
/* Define to 1 to use the msem_XXX mutexes on systems other than HP-UX. */
|
||||
/* #undef HAVE_MUTEX_MSEM_INIT */
|
||||
|
||||
/* Define to 1 to use the GCC compiler and Apple PowerPC assembly language. */
|
||||
/* #undef HAVE_MUTEX_PPC_APPLE_GCC_ASSEMBLY */
|
||||
|
||||
/* Define to 1 to use the GCC compiler and generic PowerPC assembly language.
|
||||
*/
|
||||
/* #undef HAVE_MUTEX_PPC_GENERIC_GCC_ASSEMBLY */
|
||||
|
||||
/* Define to 1 to use POSIX 1003.1 pthread_XXX mutexes. */
|
||||
/* #undef HAVE_MUTEX_PTHREADS */
|
||||
|
||||
/* Define to 1 to use Reliant UNIX initspin mutexes. */
|
||||
/* #undef HAVE_MUTEX_RELIANTUNIX_INITSPIN */
|
||||
|
||||
/* Define to 1 to use the GCC compiler and S/390 assembly language mutexes. */
|
||||
/* #undef HAVE_MUTEX_S390_GCC_ASSEMBLY */
|
||||
|
||||
/* Define to 1 to use the SCO compiler and x86 assembly language mutexes. */
|
||||
/* #undef HAVE_MUTEX_SCO_X86_CC_ASSEMBLY */
|
||||
|
||||
/* Define to 1 to use the obsolete POSIX 1003.1 sema_XXX mutexes. */
|
||||
/* #undef HAVE_MUTEX_SEMA_INIT */
|
||||
|
||||
/* Define to 1 to use the SGI XXX_lock mutexes. */
|
||||
/* #undef HAVE_MUTEX_SGI_INIT_LOCK */
|
||||
|
||||
/* Define to 1 to use the Solaris _lock_XXX mutexes. */
|
||||
/* #undef HAVE_MUTEX_SOLARIS_LOCK_TRY */
|
||||
|
||||
/* Define to 1 to use the Solaris lwp threads mutexes. */
|
||||
/* #undef HAVE_MUTEX_SOLARIS_LWP */
|
||||
|
||||
/* Define to 1 to use the GCC compiler and Sparc assembly language mutexes. */
|
||||
/* #undef HAVE_MUTEX_SPARC_GCC_ASSEMBLY */
|
||||
|
||||
/* Define to 1 if mutexes hold system resources. */
|
||||
#define HAVE_MUTEX_SYSTEM_RESOURCES 1
|
||||
|
||||
/* Define to 1 if fast mutexes are available. */
|
||||
#define HAVE_MUTEX_THREADS 1
|
||||
|
||||
/* Define to 1 to configure mutexes intra-process only. */
|
||||
/* #undef HAVE_MUTEX_THREAD_ONLY */
|
||||
|
||||
/* Define to 1 to use the UNIX International mutexes. */
|
||||
/* #undef HAVE_MUTEX_UI_THREADS */
|
||||
|
||||
/* Define to 1 to use the UTS compiler and assembly language mutexes. */
|
||||
/* #undef HAVE_MUTEX_UTS_CC_ASSEMBLY */
|
||||
|
||||
/* Define to 1 to use VMS mutexes. */
|
||||
/* #undef HAVE_MUTEX_VMS */
|
||||
|
||||
/* Define to 1 to use VxWorks mutexes. */
|
||||
#define HAVE_MUTEX_VXWORKS 1
|
||||
|
||||
/* Define to 1 to use Windows mutexes. */
|
||||
/* #undef HAVE_MUTEX_WIN32 */
|
||||
|
||||
/* Define to 1 to use the GCC compiler and x86 assembly language mutexes. */
|
||||
/* #undef HAVE_MUTEX_X86_GCC_ASSEMBLY */
|
||||
|
||||
/* Define to 1 if you have the <ndir.h> header file, and it defines `DIR'. */
|
||||
/* #undef HAVE_NDIR_H */
|
||||
|
||||
/* Define to 1 if you have the O_DIRECT flag. */
|
||||
/* #undef HAVE_O_DIRECT */
|
||||
|
||||
/* Define to 1 if you have the `pread' function. */
|
||||
/* #undef HAVE_PREAD */
|
||||
|
||||
/* Define to 1 if you have the `pstat_getdynamic' function. */
|
||||
/* #undef HAVE_PSTAT_GETDYNAMIC */
|
||||
|
||||
/* Define to 1 if you have the `pwrite' function. */
|
||||
/* #undef HAVE_PWRITE */
|
||||
|
||||
/* Define to 1 if building on QNX. */
|
||||
/* #undef HAVE_QNX */
|
||||
|
||||
/* Define to 1 if you have the `qsort' function. */
|
||||
#define HAVE_QSORT 1
|
||||
|
||||
/* Define to 1 if you have the `raise' function. */
|
||||
#define HAVE_RAISE 1
|
||||
|
||||
/* Define to 1 if building RPC client/server. */
|
||||
/* #undef HAVE_RPC */
|
||||
|
||||
/* Define to 1 if you have the `sched_yield' function. */
|
||||
#define HAVE_SCHED_YIELD 1
|
||||
|
||||
/* Define to 1 if you have the `select' function. */
|
||||
#define HAVE_SELECT 1
|
||||
|
||||
/* Define to 1 if you have the `shmget' function. */
|
||||
/* #undef HAVE_SHMGET */
|
||||
|
||||
/* Define to 1 if you have the `snprintf' function. */
|
||||
/* #undef HAVE_SNPRINTF */
|
||||
|
||||
/* Define to 1 if you have the <stdint.h> header file. */
|
||||
/* #undef HAVE_STDINT_H */
|
||||
|
||||
/* Define to 1 if you have the <stdlib.h> header file. */
|
||||
#define HAVE_STDLIB_H 1
|
||||
|
||||
/* Define to 1 if you have the `strcasecmp' function. */
|
||||
/* #undef HAVE_STRCASECMP */
|
||||
|
||||
/* Define to 1 if you have the `strdup' function. */
|
||||
/* #undef HAVE_STRDUP */
|
||||
|
||||
/* Define to 1 if you have the `strerror' function. */
|
||||
#define HAVE_STRERROR 1
|
||||
|
||||
/* Define to 1 if you have the <strings.h> header file. */
|
||||
#define HAVE_STRINGS_H 1
|
||||
|
||||
/* Define to 1 if you have the <string.h> header file. */
|
||||
#define HAVE_STRING_H 1
|
||||
|
||||
/* Define to 1 if you have the `strtoul' function. */
|
||||
#define HAVE_STRTOUL 1
|
||||
|
||||
/* Define to 1 if `st_blksize' is member of `struct stat'. */
|
||||
#define HAVE_STRUCT_STAT_ST_BLKSIZE 1
|
||||
|
||||
/* Define to 1 if you have the `sysconf' function. */
|
||||
/* #undef HAVE_SYSCONF */
|
||||
|
||||
/* Define to 1 if you have the <sys/dir.h> header file, and it defines `DIR'.
|
||||
*/
|
||||
/* #undef HAVE_SYS_DIR_H */
|
||||
|
||||
/* Define to 1 if you have the <sys/ndir.h> header file, and it defines `DIR'.
|
||||
*/
|
||||
/* #undef HAVE_SYS_NDIR_H */
|
||||
|
||||
/* Define to 1 if you have the <sys/select.h> header file. */
|
||||
/* #undef HAVE_SYS_SELECT_H */
|
||||
|
||||
/* Define to 1 if you have the <sys/stat.h> header file. */
|
||||
/* #undef HAVE_SYS_STAT_H */
|
||||
|
||||
/* Define to 1 if you have the <sys/time.h> header file. */
|
||||
/* #undef HAVE_SYS_TIME_H */
|
||||
|
||||
/* Define to 1 if you have the <sys/types.h> header file. */
|
||||
/* #undef HAVE_SYS_TYPES_H */
|
||||
|
||||
/* Define to 1 if you have the <unistd.h> header file. */
|
||||
#define HAVE_UNISTD_H 1
|
||||
|
||||
/* Define to 1 if unlink of file with open file descriptors will fail. */
|
||||
#define HAVE_UNLINK_WITH_OPEN_FAILURE 1
|
||||
|
||||
/* Define to 1 if you have the `vsnprintf' function. */
|
||||
/* #undef HAVE_VSNPRINTF */
|
||||
|
||||
/* Define to 1 if building VxWorks. */
|
||||
#define HAVE_VXWORKS 1
|
||||
|
||||
/* Define to 1 if you have the `yield' function. */
|
||||
/* #undef HAVE_YIELD */
|
||||
|
||||
/* Define to 1 if you have the `_fstati64' function. */
|
||||
/* #undef HAVE__FSTATI64 */
|
||||
|
||||
/* Define to the address where bug reports for this package should be sent. */
|
||||
#define PACKAGE_BUGREPORT "support@sleepycat.com"
|
||||
|
||||
/* Define to the full name of this package. */
|
||||
#define PACKAGE_NAME "Berkeley DB"
|
||||
|
||||
/* Define to the full name and version of this package. */
|
||||
#define PACKAGE_STRING "Berkeley DB 4.1.24"
|
||||
|
||||
/* Define to the one symbol short name of this package. */
|
||||
#define PACKAGE_TARNAME "db-4.1.24"
|
||||
|
||||
/* Define to the version of this package. */
|
||||
#define PACKAGE_VERSION "4.1.24"
|
||||
|
||||
/* Define to 1 if the `S_IS*' macros in <sys/stat.h> do not work properly. */
|
||||
/* #undef STAT_MACROS_BROKEN */
|
||||
|
||||
/* Define to 1 if you have the ANSI C header files. */
|
||||
#define STDC_HEADERS 1
|
||||
|
||||
/* Define to 1 if you can safely include both <sys/time.h> and <time.h>. */
|
||||
/* #undef TIME_WITH_SYS_TIME */
|
||||
|
||||
/* Define to 1 to mask harmless unitialized memory read/writes. */
|
||||
/* #undef UMRW */
|
||||
|
||||
/* Number of bits in a file offset, on hosts where this is settable. */
|
||||
/* #undef _FILE_OFFSET_BITS */
|
||||
|
||||
/* Define for large files, on AIX-style hosts. */
|
||||
/* #undef _LARGE_FILES */
|
||||
|
||||
/* Define to empty if `const' does not conform to ANSI C. */
|
||||
/* #undef const */
|
||||
|
||||
/*
|
||||
* Exit success/failure macros.
|
||||
*/
|
||||
#ifndef HAVE_EXIT_SUCCESS
|
||||
#define EXIT_FAILURE 1
|
||||
#define EXIT_SUCCESS 0
|
||||
#endif
|
||||
|
||||
/*
|
||||
* Don't step on the namespace. Other libraries may have their own
|
||||
* implementations of these functions, we don't want to use their
|
||||
* implementations or force them to use ours based on the load order.
|
||||
*/
|
||||
#ifndef HAVE_GETCWD
|
||||
#define getcwd __db_Cgetcwd
|
||||
#endif
|
||||
#ifndef HAVE_GETOPT
|
||||
#define getopt __db_Cgetopt
|
||||
#define optarg __db_Coptarg
|
||||
#define opterr __db_Copterr
|
||||
#define optind __db_Coptind
|
||||
#define optopt __db_Coptopt
|
||||
#endif
|
||||
#ifndef HAVE_MEMCMP
|
||||
#define memcmp __db_Cmemcmp
|
||||
#endif
|
||||
#ifndef HAVE_MEMCPY
|
||||
#define memcpy __db_Cmemcpy
|
||||
#endif
|
||||
#ifndef HAVE_MEMMOVE
|
||||
#define memmove __db_Cmemmove
|
||||
#endif
|
||||
#ifndef HAVE_RAISE
|
||||
#define raise __db_Craise
|
||||
#endif
|
||||
#ifndef HAVE_SNPRINTF
|
||||
#define snprintf __db_Csnprintf
|
||||
#endif
|
||||
#ifndef HAVE_STRCASECMP
|
||||
#define strcasecmp __db_Cstrcasecmp
|
||||
#define strncasecmp __db_Cstrncasecmp
|
||||
#endif
|
||||
#ifndef HAVE_STRERROR
|
||||
#define strerror __db_Cstrerror
|
||||
#endif
|
||||
#ifndef HAVE_VSNPRINTF
|
||||
#define vsnprintf __db_Cvsnprintf
|
||||
#endif
|
||||
|
||||
/*
|
||||
* !!!
|
||||
* The following is not part of the automatic configuration setup, but
|
||||
* provides the information necessary to build Berkeley DB on VxWorks.
|
||||
*/
|
||||
#include "vxWorks.h"
|
@ -1,249 +0,0 @@
|
||||
/*-
|
||||
* See the file LICENSE for redistribution information.
|
||||
*
|
||||
* Copyright (c) 1996-2002
|
||||
* Sleepycat Software. All rights reserved.
|
||||
*/
|
||||
|
||||
#include "db_config.h"
|
||||
|
||||
#ifndef lint
|
||||
static const char copyright[] =
|
||||
"Copyright (c) 1996-2002\nSleepycat Software Inc. All rights reserved.\n";
|
||||
static const char revid[] =
|
||||
"$Id: db_deadlock.c,v 11.38 2002/08/08 03:50:32 bostic Exp $";
|
||||
#endif
|
||||
|
||||
#ifndef NO_SYSTEM_INCLUDES
|
||||
#include <sys/types.h>
|
||||
|
||||
#if TIME_WITH_SYS_TIME
|
||||
#include <sys/time.h>
|
||||
#include <time.h>
|
||||
#else
|
||||
#if HAVE_SYS_TIME_H
|
||||
#include <sys/time.h>
|
||||
#else
|
||||
#include <time.h>
|
||||
#endif
|
||||
#endif
|
||||
|
||||
#include <limits.h>
|
||||
#include <stdio.h>
|
||||
#include <stdlib.h>
|
||||
#include <string.h>
|
||||
#include <unistd.h>
|
||||
#endif
|
||||
|
||||
#include "db_int.h"
|
||||
|
||||
int db_deadlock_main __P((int, char *[]));
|
||||
int db_deadlock_usage __P((void));
|
||||
int db_deadlock_version_check __P((const char *));
|
||||
|
||||
int
|
||||
db_deadlock(args)
|
||||
char *args;
|
||||
{
|
||||
int argc;
|
||||
char **argv;
|
||||
|
||||
__db_util_arg("db_deadlock", args, &argc, &argv);
|
||||
return (db_deadlock_main(argc, argv) ? EXIT_FAILURE : EXIT_SUCCESS);
|
||||
}
|
||||
|
||||
#include <stdio.h>
|
||||
#define ERROR_RETURN ERROR
|
||||
|
||||
int
|
||||
db_deadlock_main(argc, argv)
|
||||
int argc;
|
||||
char *argv[];
|
||||
{
|
||||
extern char *optarg;
|
||||
extern int optind, __db_getopt_reset;
|
||||
const char *progname = "db_deadlock";
|
||||
DB_ENV *dbenv;
|
||||
u_int32_t atype;
|
||||
time_t now;
|
||||
long secs, usecs;
|
||||
int ch, e_close, exitval, ret, verbose;
|
||||
char *home, *logfile, *str;
|
||||
|
||||
if ((ret = db_deadlock_version_check(progname)) != 0)
|
||||
return (ret);
|
||||
|
||||
atype = DB_LOCK_DEFAULT;
|
||||
home = logfile = NULL;
|
||||
secs = usecs = 0;
|
||||
e_close = exitval = verbose = 0;
|
||||
__db_getopt_reset = 1;
|
||||
while ((ch = getopt(argc, argv, "a:h:L:t:Vvw")) != EOF)
|
||||
switch (ch) {
|
||||
case 'a':
|
||||
switch (optarg[0]) {
|
||||
case 'e':
|
||||
atype = DB_LOCK_EXPIRE;
|
||||
break;
|
||||
case 'm':
|
||||
atype = DB_LOCK_MAXLOCKS;
|
||||
break;
|
||||
case 'n':
|
||||
atype = DB_LOCK_MINLOCKS;
|
||||
break;
|
||||
case 'o':
|
||||
atype = DB_LOCK_OLDEST;
|
||||
break;
|
||||
case 'w':
|
||||
atype = DB_LOCK_MINWRITE;
|
||||
break;
|
||||
case 'y':
|
||||
atype = DB_LOCK_YOUNGEST;
|
||||
break;
|
||||
default:
|
||||
return (db_deadlock_usage());
|
||||
/* NOTREACHED */
|
||||
}
|
||||
if (optarg[1] != '\0')
|
||||
return (db_deadlock_usage());
|
||||
break;
|
||||
case 'h':
|
||||
home = optarg;
|
||||
break;
|
||||
case 'L':
|
||||
logfile = optarg;
|
||||
break;
|
||||
case 't':
|
||||
if ((str = strchr(optarg, '.')) != NULL) {
|
||||
*str++ = '\0';
|
||||
if (*str != '\0' && __db_getlong(
|
||||
NULL, progname, str, 0, LONG_MAX, &usecs))
|
||||
return (EXIT_FAILURE);
|
||||
}
|
||||
if (*optarg != '\0' && __db_getlong(
|
||||
NULL, progname, optarg, 0, LONG_MAX, &secs))
|
||||
return (EXIT_FAILURE);
|
||||
if (secs == 0 && usecs == 0)
|
||||
return (db_deadlock_usage());
|
||||
|
||||
break;
|
||||
|
||||
case 'V':
|
||||
printf("%s\n", db_version(NULL, NULL, NULL));
|
||||
return (EXIT_SUCCESS);
|
||||
case 'v':
|
||||
verbose = 1;
|
||||
break;
|
||||
case 'w': /* Undocumented. */
|
||||
/* Detect every 100ms (100000 us) when polling. */
|
||||
secs = 0;
|
||||
usecs = 100000;
|
||||
break;
|
||||
case '?':
|
||||
default:
|
||||
return (db_deadlock_usage());
|
||||
}
|
||||
argc -= optind;
|
||||
argv += optind;
|
||||
|
||||
if (argc != 0)
|
||||
return (db_deadlock_usage());
|
||||
|
||||
/* Handle possible interruptions. */
|
||||
__db_util_siginit();
|
||||
|
||||
/* Log our process ID. */
|
||||
if (logfile != NULL && __db_util_logset(progname, logfile))
|
||||
goto shutdown;
|
||||
|
||||
/*
|
||||
* Create an environment object and initialize it for error
|
||||
* reporting.
|
||||
*/
|
||||
if ((ret = db_env_create(&dbenv, 0)) != 0) {
|
||||
fprintf(stderr,
|
||||
"%s: db_env_create: %s\n", progname, db_strerror(ret));
|
||||
goto shutdown;
|
||||
}
|
||||
e_close = 1;
|
||||
|
||||
dbenv->set_errfile(dbenv, stderr);
|
||||
dbenv->set_errpfx(dbenv, progname);
|
||||
|
||||
if (verbose) {
|
||||
(void)dbenv->set_verbose(dbenv, DB_VERB_DEADLOCK, 1);
|
||||
(void)dbenv->set_verbose(dbenv, DB_VERB_WAITSFOR, 1);
|
||||
}
|
||||
|
||||
/* An environment is required. */
|
||||
if ((ret = dbenv->open(dbenv, home,
|
||||
DB_JOINENV | DB_USE_ENVIRON, 0)) != 0) {
|
||||
dbenv->err(dbenv, ret, "open");
|
||||
goto shutdown;
|
||||
}
|
||||
|
||||
while (!__db_util_interrupted()) {
|
||||
if (verbose) {
|
||||
(void)time(&now);
|
||||
dbenv->errx(dbenv, "running at %.24s", ctime(&now));
|
||||
}
|
||||
|
||||
if ((ret = dbenv->lock_detect(dbenv, 0, atype, NULL)) != 0) {
|
||||
dbenv->err(dbenv, ret, "DB_ENV->lock_detect");
|
||||
goto shutdown;
|
||||
}
|
||||
|
||||
/* Make a pass every "secs" secs and "usecs" usecs. */
|
||||
if (secs == 0 && usecs == 0)
|
||||
break;
|
||||
(void)__os_sleep(dbenv, secs, usecs);
|
||||
}
|
||||
|
||||
if (0) {
|
||||
shutdown: exitval = 1;
|
||||
}
|
||||
|
||||
/* Clean up the logfile. */
|
||||
if (logfile != NULL)
|
||||
remove(logfile);
|
||||
|
||||
/* Clean up the environment. */
|
||||
if (e_close && (ret = dbenv->close(dbenv, 0)) != 0) {
|
||||
exitval = 1;
|
||||
fprintf(stderr,
|
||||
"%s: dbenv->close: %s\n", progname, db_strerror(ret));
|
||||
}
|
||||
|
||||
/* Resend any caught signal. */
|
||||
__db_util_sigresend();
|
||||
|
||||
return (exitval == 0 ? EXIT_SUCCESS : EXIT_FAILURE);
|
||||
}
|
||||
|
||||
int
|
||||
db_deadlock_usage()
|
||||
{
|
||||
(void)fprintf(stderr, "%s\n\t%s\n",
|
||||
"usage: db_deadlock [-Vv]",
|
||||
"[-a e | m | n | o | w | y] [-h home] [-L file] [-t sec.usec]");
|
||||
return (EXIT_FAILURE);
|
||||
}
|
||||
|
||||
int
|
||||
db_deadlock_version_check(progname)
|
||||
const char *progname;
|
||||
{
|
||||
int v_major, v_minor, v_patch;
|
||||
|
||||
/* Make sure we're loaded with the right version of the DB library. */
|
||||
(void)db_version(&v_major, &v_minor, &v_patch);
|
||||
if (v_major != DB_VERSION_MAJOR ||
|
||||
v_minor != DB_VERSION_MINOR || v_patch != DB_VERSION_PATCH) {
|
||||
fprintf(stderr,
|
||||
"%s: version %d.%d.%d doesn't match library version %d.%d.%d\n",
|
||||
progname, DB_VERSION_MAJOR, DB_VERSION_MINOR,
|
||||
DB_VERSION_PATCH, v_major, v_minor, v_patch);
|
||||
return (EXIT_FAILURE);
|
||||
}
|
||||
return (0);
|
||||
}
|
@ -1,160 +0,0 @@
|
||||
Document file - DO NOT EDIT
|
||||
|
||||
<BEGIN> BUILD_PENTIUMgnu_BUILDRULE
|
||||
db_deadlock.out
|
||||
<END>
|
||||
|
||||
<BEGIN> BUILD_PENTIUMgnu_MACRO_AR
|
||||
ar386
|
||||
<END>
|
||||
|
||||
<BEGIN> BUILD_PENTIUMgnu_MACRO_ARCHIVE
|
||||
$(PRJ_DIR)/PENTIUMgnu/db_deadlock.a
|
||||
<END>
|
||||
|
||||
<BEGIN> BUILD_PENTIUMgnu_MACRO_AS
|
||||
cc386
|
||||
<END>
|
||||
|
||||
<BEGIN> BUILD_PENTIUMgnu_MACRO_CC
|
||||
cc386
|
||||
<END>
|
||||
|
||||
<BEGIN> BUILD_PENTIUMgnu_MACRO_CFLAGS
|
||||
-g \
|
||||
-mpentium \
|
||||
-ansi \
|
||||
-nostdinc \
|
||||
-DRW_MULTI_THREAD \
|
||||
-D_REENTRANT \
|
||||
-fvolatile \
|
||||
-nostdlib \
|
||||
-fno-builtin \
|
||||
-fno-defer-pop \
|
||||
-I$(PRJ_DIR)/.. \
|
||||
-I$(PRJ_DIR)/../.. \
|
||||
-I$(WIND_BASE)/target/h \
|
||||
-DCPU=PENTIUM
|
||||
<END>
|
||||
|
||||
<BEGIN> BUILD_PENTIUMgnu_MACRO_CFLAGS_AS
|
||||
-g \
|
||||
-mpentium \
|
||||
-ansi \
|
||||
-nostdinc \
|
||||
-fvolatile \
|
||||
-nostdlib \
|
||||
-fno-builtin \
|
||||
-fno-defer-pop \
|
||||
-P \
|
||||
-x \
|
||||
assembler-with-cpp \
|
||||
-I$(WIND_BASE)/target/h \
|
||||
-DCPU=PENTIUM
|
||||
<END>
|
||||
|
||||
<BEGIN> BUILD_PENTIUMgnu_MACRO_CPP
|
||||
cc386 -E -P -xc
|
||||
<END>
|
||||
|
||||
<BEGIN> BUILD_PENTIUMgnu_MACRO_LD
|
||||
ld386
|
||||
<END>
|
||||
|
||||
<BEGIN> BUILD_PENTIUMgnu_MACRO_LDDEPS
|
||||
|
||||
<END>
|
||||
|
||||
<BEGIN> BUILD_PENTIUMgnu_MACRO_LDFLAGS
|
||||
-X -N
|
||||
<END>
|
||||
|
||||
<BEGIN> BUILD_PENTIUMgnu_MACRO_LD_PARTIAL_FLAGS
|
||||
-X -r
|
||||
<END>
|
||||
|
||||
<BEGIN> BUILD_PENTIUMgnu_MACRO_NM
|
||||
nm386 -g
|
||||
<END>
|
||||
|
||||
<BEGIN> BUILD_PENTIUMgnu_MACRO_OPTION_DEFINE_MACRO
|
||||
-D
|
||||
<END>
|
||||
|
||||
<BEGIN> BUILD_PENTIUMgnu_MACRO_OPTION_INCLUDE_DIR
|
||||
-I
|
||||
<END>
|
||||
|
||||
<BEGIN> BUILD_PENTIUMgnu_MACRO_POST_BUILD_RULE
|
||||
|
||||
<END>
|
||||
|
||||
<BEGIN> BUILD_PENTIUMgnu_MACRO_PRJ_LIBS
|
||||
|
||||
<END>
|
||||
|
||||
<BEGIN> BUILD_PENTIUMgnu_MACRO_SIZE
|
||||
size386
|
||||
<END>
|
||||
|
||||
<BEGIN> BUILD_PENTIUMgnu_RO_DEPEND_PATH
|
||||
{$(WIND_BASE)/target/h/} \
|
||||
{$(WIND_BASE)/target/src/} \
|
||||
{$(WIND_BASE)/target/config/}
|
||||
<END>
|
||||
|
||||
<BEGIN> BUILD_PENTIUMgnu_TC
|
||||
::tc_PENTIUMgnu
|
||||
<END>
|
||||
|
||||
<BEGIN> BUILD_RULE_archive
|
||||
|
||||
<END>
|
||||
|
||||
<BEGIN> BUILD_RULE_db_deadlock.out
|
||||
|
||||
<END>
|
||||
|
||||
<BEGIN> BUILD_RULE_objects
|
||||
|
||||
<END>
|
||||
|
||||
<BEGIN> BUILD__CURRENT
|
||||
PENTIUMgnu
|
||||
<END>
|
||||
|
||||
<BEGIN> BUILD__LIST
|
||||
PENTIUMgnu
|
||||
<END>
|
||||
|
||||
<BEGIN> CORE_INFO_TYPE
|
||||
::prj_vxApp
|
||||
<END>
|
||||
|
||||
<BEGIN> CORE_INFO_VERSION
|
||||
2.0
|
||||
<END>
|
||||
|
||||
<BEGIN> FILE_db_deadlock.c_dependDone
|
||||
FALSE
|
||||
<END>
|
||||
|
||||
<BEGIN> FILE_db_deadlock.c_dependencies
|
||||
|
||||
<END>
|
||||
|
||||
<BEGIN> FILE_db_deadlock.c_objects
|
||||
db_deadlock.o
|
||||
<END>
|
||||
|
||||
<BEGIN> FILE_db_deadlock.c_tool
|
||||
C/C++ compiler
|
||||
<END>
|
||||
|
||||
<BEGIN> PROJECT_FILES
|
||||
$(PRJ_DIR)/db_deadlock.c
|
||||
<END>
|
||||
|
||||
<BEGIN> userComments
|
||||
db_deadlock
|
||||
<END>
|
@ -1,51 +0,0 @@
|
||||
#
|
||||
# Custom Makefile shell
|
||||
#
|
||||
# This file may be edited freely, since it will not be regenerated
|
||||
# by the project manager.
|
||||
#
|
||||
# Use this makefile to define rules to make external binaries
|
||||
# and deposit them in the $(EXTERNAL_BINARIES_DIR) directory.
|
||||
#
|
||||
# If you have specified external modules during your component
|
||||
# creation, you will find make rules already in place below.
|
||||
# You will likely have to edit these to suit your individual
|
||||
# build setup.
|
||||
#
|
||||
# You may wish to use the CPU, BUILD_SPEC or TOOL make variables in
|
||||
# your Makefile to support builds for different architectures. Use
|
||||
# the FORCE_EXTERNAL_MAKE phony target to ensure that your external
|
||||
# make always runs.
|
||||
#
|
||||
# The example below assumes that your custom makefile is in the
|
||||
# mySourceTree directory, and that the binary file it produces
|
||||
# is placed into the $(BUILD_SPEC) sub-directory.
|
||||
#
|
||||
# EXTERNAL_SOURCE_BASE = /folk/me/mySourceTree
|
||||
# EXTERNAL_MODULE = myLibrary.o
|
||||
# EXTERNAL_MAKE = make
|
||||
#
|
||||
# $(EXTERNAL_BINARIES_DIR)/$(EXTERNAL_MODULE) : FORCE_EXTERNAL_MAKE
|
||||
# $(EXTERNAL_MAKE) -C $(EXTERNAL_SOURCE_BASE) \
|
||||
# -f $(EXTERNAL_SOURCE_BASE)/Makefile \
|
||||
# CPU=$(CPU) BUILD_SPEC=$(BUILD_SPEC) $(@F)
|
||||
# $(CP) $(subst /,$(DIRCHAR),$(EXTERNAL_SOURCE_BASE)/$(BUILD_SPEC)/$(@F) $@)
|
||||
#
|
||||
# If you are not adding your external modules from the component wizard,
|
||||
# you will have to include them in your component yourself:
|
||||
#
|
||||
# From the GUI, you can do this with the Component's 'Add external module'
|
||||
# dialog.
|
||||
#
|
||||
# If you are using the command line, add the module(s) by editing the
|
||||
# MODULES line in component.cdf file, e.g.
|
||||
#
|
||||
# Component INCLUDE_MYCOMPONENT {
|
||||
#
|
||||
# MODULES foo.o goo.o \
|
||||
# myLibrary.o
|
||||
#
|
||||
|
||||
|
||||
# rules to build custom libraries
|
||||
|
@ -1,30 +0,0 @@
|
||||
/* component.cdf - dynamically updated configuration */
|
||||
|
||||
/*
|
||||
* NOTE: you may edit this file to alter the configuration
|
||||
* But all non-configuration information, including comments,
|
||||
* will be lost upon rebuilding this project.
|
||||
*/
|
||||
|
||||
/* Component information */
|
||||
|
||||
Component INCLUDE_DB_DEADLOCK {
|
||||
ENTRY_POINTS ALL_GLOBAL_SYMBOLS
|
||||
MODULES db_deadlock.o
|
||||
NAME db_deadlock
|
||||
PREF_DOMAIN ANY
|
||||
_INIT_ORDER usrComponentsInit
|
||||
}
|
||||
|
||||
/* EntryPoint information */
|
||||
|
||||
/* Module information */
|
||||
|
||||
Module db_deadlock.o {
|
||||
|
||||
NAME db_deadlock.o
|
||||
SRC_PATH_NAME $PRJ_DIR/../db_deadlock.c
|
||||
}
|
||||
|
||||
/* Parameter information */
|
||||
|
@ -1,475 +0,0 @@
|
||||
Document file - DO NOT EDIT
|
||||
|
||||
<BEGIN> CORE_INFO_TYPE
|
||||
::prj_component
|
||||
<END>
|
||||
|
||||
<BEGIN> CORE_INFO_VERSION
|
||||
AE1.1
|
||||
<END>
|
||||
|
||||
<BEGIN> BUILD__CURRENT
|
||||
PENTIUM2gnu.debug
|
||||
<END>
|
||||
|
||||
<BEGIN> BUILD_PENTIUM2gnu.debug_CURRENT_TARGET
|
||||
default
|
||||
<END>
|
||||
|
||||
<BEGIN> BUILD_PENTIUM2gnu.debug_DEFAULTFORCPU
|
||||
1
|
||||
<END>
|
||||
|
||||
<BEGIN> BUILD_PENTIUM2gnu.debug_FILE_$(PRJ_DIR)/../db_deadlock.c_infoTags
|
||||
toolMacro objects
|
||||
<END>
|
||||
|
||||
<BEGIN> BUILD_PENTIUM2gnu.debug_FILE_$(PRJ_DIR)/../db_deadlock.c_objects
|
||||
db_deadlock.o
|
||||
<END>
|
||||
|
||||
<BEGIN> BUILD_PENTIUM2gnu.debug_FILE_$(PRJ_DIR)/../db_deadlock.c_toolMacro
|
||||
CC
|
||||
<END>
|
||||
|
||||
<BEGIN> BUILD_PENTIUM2gnu.debug_FILE_$(PRJ_DIR)/../db_deadlock.c_objects
|
||||
db_deadlock.o
|
||||
<END>
|
||||
|
||||
<BEGIN> BUILD_PENTIUM2gnu.debug_FILE_$(PRJ_DIR)/../db_deadlock.c_toolMacro
|
||||
CC
|
||||
<END>
|
||||
|
||||
<BEGIN> BUILD_PENTIUM2gnu.debug_FILE_$(PRJ_DIR)/compConfig.c_infoTags
|
||||
toolMacro objects
|
||||
<END>
|
||||
|
||||
<BEGIN> BUILD_PENTIUM2gnu.debug_FILE_$(PRJ_DIR)/compConfig.c_objects
|
||||
compConfig.o
|
||||
<END>
|
||||
|
||||
<BEGIN> BUILD_PENTIUM2gnu.debug_FILE_$(PRJ_DIR)/compConfig.c_toolMacro
|
||||
CC
|
||||
<END>
|
||||
|
||||
<BEGIN> BUILD_PENTIUM2gnu.debug_MACRO_AR
|
||||
arpentium
|
||||
<END>
|
||||
|
||||
<BEGIN> BUILD_PENTIUM2gnu.debug_MACRO_AS
|
||||
ccpentium
|
||||
<END>
|
||||
|
||||
<BEGIN> BUILD_PENTIUM2gnu.debug_MACRO_CC
|
||||
ccpentium
|
||||
<END>
|
||||
|
||||
<BEGIN> BUILD_PENTIUM2gnu.debug_MACRO_CFLAGS
|
||||
-mcpu=pentiumpro \
|
||||
-march=pentiumpro \
|
||||
-ansi \
|
||||
-DRW_MULTI_THREAD \
|
||||
-D_REENTRANT \
|
||||
-g \
|
||||
-nostdlib \
|
||||
-fno-builtin \
|
||||
-fno-defer-pop \
|
||||
-MD \
|
||||
-Wall \
|
||||
-I. \
|
||||
-I$(WIND_BASE)/target/h \
|
||||
-I$(PRJ_DIR)/../.. \
|
||||
-I$(PRJ_DIR)/../../.. \
|
||||
-DCPU=PENTIUM2
|
||||
<END>
|
||||
|
||||
<BEGIN> BUILD_PENTIUM2gnu.debug_MACRO_CFLAGS_AS
|
||||
-mcpu=pentiumpro \
|
||||
-march=pentiumpro \
|
||||
-ansi \
|
||||
-g \
|
||||
-nostdlib \
|
||||
-fno-builtin \
|
||||
-fno-defer-pop \
|
||||
-P \
|
||||
-x \
|
||||
assembler-with-cpp \
|
||||
-Wall \
|
||||
-I. \
|
||||
-I$(WIND_BASE)/target/h \
|
||||
-DCPU=PENTIUM2
|
||||
<END>
|
||||
|
||||
<BEGIN> BUILD_PENTIUM2gnu.debug_MACRO_CPP
|
||||
ccpentium -E -P
|
||||
<END>
|
||||
|
||||
<BEGIN> BUILD_PENTIUM2gnu.debug_MACRO_CPPFILT
|
||||
c++filtpentium --strip-underscores
|
||||
<END>
|
||||
|
||||
<BEGIN> BUILD_PENTIUM2gnu.debug_MACRO_LD
|
||||
ldpentium
|
||||
<END>
|
||||
|
||||
<BEGIN> BUILD_PENTIUM2gnu.debug_MACRO_LDFLAGS
|
||||
-X
|
||||
<END>
|
||||
|
||||
<BEGIN> BUILD_PENTIUM2gnu.debug_MACRO_LDPARTIAL
|
||||
ccpentium \
|
||||
-B$(WIND_BASE)/host/$(WIND_HOST_TYPE)/lib/gcc-lib/ \
|
||||
-nostdlib \
|
||||
-r \
|
||||
-Wl,-X
|
||||
<END>
|
||||
|
||||
<BEGIN> BUILD_PENTIUM2gnu.debug_MACRO_LD_PARTIAL_FLAGS
|
||||
-X -r
|
||||
<END>
|
||||
|
||||
<BEGIN> BUILD_PENTIUM2gnu.debug_MACRO_NM
|
||||
nmpentium -g
|
||||
<END>
|
||||
|
||||
<BEGIN> BUILD_PENTIUM2gnu.debug_MACRO_OPTION_DEFINE_MACRO
|
||||
-D
|
||||
<END>
|
||||
|
||||
<BEGIN> BUILD_PENTIUM2gnu.debug_MACRO_OPTION_GENERATE_DEPENDENCY_FILE
|
||||
-MD
|
||||
<END>
|
||||
|
||||
<BEGIN> BUILD_PENTIUM2gnu.debug_MACRO_OPTION_INCLUDE_DIR
|
||||
-I
|
||||
<END>
|
||||
|
||||
<BEGIN> BUILD_PENTIUM2gnu.debug_MACRO_RELEASE
|
||||
0
|
||||
<END>
|
||||
|
||||
<BEGIN> BUILD_PENTIUM2gnu.debug_MACRO_SIZE
|
||||
sizepentium
|
||||
<END>
|
||||
|
||||
<BEGIN> BUILD_PENTIUM2gnu.debug_RELEASE
|
||||
0
|
||||
<END>
|
||||
|
||||
<BEGIN> BUILD_PENTIUM2gnu.debug_RO_DEPEND_PATH
|
||||
$(WIND_BASE)/target/h/
|
||||
<END>
|
||||
|
||||
<BEGIN> BUILD_PENTIUM2gnu.debug_TC
|
||||
::tc_PENTIUM2gnu.debug
|
||||
<END>
|
||||
|
||||
<BEGIN> BUILD_PENTIUM2gnu.release_DEFAULTFORCPU
|
||||
0
|
||||
<END>
|
||||
|
||||
<BEGIN> BUILD_PENTIUM2gnu.release_FILE_$(PRJ_DIR)/../db_deadlock.c_infoTags
|
||||
toolMacro objects
|
||||
<END>
|
||||
|
||||
<BEGIN> BUILD_PENTIUM2gnu.release_FILE_$(PRJ_DIR)/../db_deadlock.c_objects
|
||||
db_deadlock.o
|
||||
<END>
|
||||
|
||||
<BEGIN> BUILD_PENTIUM2gnu.release_FILE_$(PRJ_DIR)/../db_deadlock.c_toolMacro
|
||||
CC
|
||||
<END>
|
||||
|
||||
<BEGIN> BUILD_PENTIUM2gnu.release_FILE_$(PRJ_DIR)/compConfig.c_infoTags
|
||||
toolMacro objects
|
||||
<END>
|
||||
|
||||
<BEGIN> BUILD_PENTIUM2gnu.release_FILE_$(PRJ_DIR)/compConfig.c_objects
|
||||
compConfig.o
|
||||
<END>
|
||||
|
||||
<BEGIN> BUILD_PENTIUM2gnu.release_FILE_$(PRJ_DIR)/compConfig.c_toolMacro
|
||||
CC
|
||||
<END>
|
||||
|
||||
<BEGIN> BUILD_PENTIUM2gnu.release_MACRO_AR
|
||||
arpentium
|
||||
<END>
|
||||
|
||||
<BEGIN> BUILD_PENTIUM2gnu.release_MACRO_AS
|
||||
ccpentium
|
||||
<END>
|
||||
|
||||
<BEGIN> BUILD_PENTIUM2gnu.release_MACRO_CC
|
||||
ccpentium
|
||||
<END>
|
||||
|
||||
<BEGIN> BUILD_PENTIUM2gnu.release_MACRO_CFLAGS
|
||||
-mcpu=pentiumpro \
|
||||
-march=pentiumpro \
|
||||
-ansi \
|
||||
-DRW_MULTI_THREAD \
|
||||
-D_REENTRANT \
|
||||
-O2 \
|
||||
-nostdlib \
|
||||
-fno-builtin \
|
||||
-fno-defer-pop \
|
||||
-MD \
|
||||
-Wall \
|
||||
-I. \
|
||||
-I$(WIND_BASE)/target/h \
|
||||
-I$(PRJ_DIR)/../.. \
|
||||
-I$(PRJ_DIR)/../../.. \
|
||||
-DCPU=PENTIUM2
|
||||
<END>
|
||||
|
||||
<BEGIN> BUILD_PENTIUM2gnu.release_MACRO_CFLAGS_AS
|
||||
-mcpu=pentiumpro \
|
||||
-march=pentiumpro \
|
||||
-ansi \
|
||||
-O2 \
|
||||
-nostdlib \
|
||||
-fno-builtin \
|
||||
-fno-defer-pop \
|
||||
-P \
|
||||
-x \
|
||||
assembler-with-cpp \
|
||||
-Wall \
|
||||
-I. \
|
||||
-I$(WIND_BASE)/target/h \
|
||||
-DCPU=PENTIUM2
|
||||
<END>
|
||||
|
||||
<BEGIN> BUILD_PENTIUM2gnu.release_MACRO_CPP
|
||||
ccpentium -E -P
|
||||
<END>
|
||||
|
||||
<BEGIN> BUILD_PENTIUM2gnu.release_MACRO_CPPFILT
|
||||
c++filtpentium --strip-underscores
|
||||
<END>
|
||||
|
||||
<BEGIN> BUILD_PENTIUM2gnu.release_MACRO_LD
|
||||
ldpentium
|
||||
<END>
|
||||
|
||||
<BEGIN> BUILD_PENTIUM2gnu.release_MACRO_LDFLAGS
|
||||
-X
|
||||
<END>
|
||||
|
||||
<BEGIN> BUILD_PENTIUM2gnu.release_MACRO_LDPARTIAL
|
||||
ccpentium \
|
||||
-B$(WIND_BASE)/host/$(WIND_HOST_TYPE)/lib/gcc-lib/ \
|
||||
-nostdlib \
|
||||
-r \
|
||||
-Wl,-X
|
||||
<END>
|
||||
|
||||
<BEGIN> BUILD_PENTIUM2gnu.release_MACRO_LD_PARTIAL_FLAGS
|
||||
-X -r
|
||||
<END>
|
||||
|
||||
<BEGIN> BUILD_PENTIUM2gnu.release_MACRO_NM
|
||||
nmpentium -g
|
||||
<END>
|
||||
|
||||
<BEGIN> BUILD_PENTIUM2gnu.release_MACRO_OPTION_DEFINE_MACRO
|
||||
-D
|
||||
<END>
|
||||
|
||||
<BEGIN> BUILD_PENTIUM2gnu.release_MACRO_OPTION_GENERATE_DEPENDENCY_FILE
|
||||
-MD
|
||||
<END>
|
||||
|
||||
<BEGIN> BUILD_PENTIUM2gnu.release_MACRO_OPTION_INCLUDE_DIR
|
||||
-I
|
||||
<END>
|
||||
|
||||
<BEGIN> BUILD_PENTIUM2gnu.release_MACRO_RELEASE
|
||||
1
|
||||
<END>
|
||||
|
||||
<BEGIN> BUILD_PENTIUM2gnu.release_MACRO_SIZE
|
||||
sizepentium
|
||||
<END>
|
||||
|
||||
<BEGIN> BUILD_PENTIUM2gnu.release_RELEASE
|
||||
1
|
||||
<END>
|
||||
|
||||
<BEGIN> BUILD_PENTIUM2gnu.release_RO_DEPEND_PATH
|
||||
$(WIND_BASE)/target/h/
|
||||
<END>
|
||||
|
||||
<BEGIN> BUILD_PENTIUM2gnu.release_TC
|
||||
::tc_PENTIUM2gnu.release
|
||||
<END>
|
||||
|
||||
<BEGIN> BUILD_PENTIUMgnu.debug_DEFAULTFORCPU
|
||||
1
|
||||
<END>
|
||||
|
||||
<BEGIN> BUILD_PENTIUMgnu.debug_FILE_$(PRJ_DIR)/../db_deadlock.c_infoTags
|
||||
toolMacro objects
|
||||
<END>
|
||||
|
||||
<BEGIN> BUILD_PENTIUMgnu.debug_FILE_$(PRJ_DIR)/../db_deadlock.c_objects
|
||||
db_deadlock.o
|
||||
<END>
|
||||
|
||||
<BEGIN> BUILD_PENTIUMgnu.debug_FILE_$(PRJ_DIR)/../db_deadlock.c_toolMacro
|
||||
CC
|
||||
<END>
|
||||
|
||||
<BEGIN> BUILD_PENTIUMgnu.debug_FILE_$(PRJ_DIR)/compConfig.c_infoTags
|
||||
toolMacro objects
|
||||
<END>
|
||||
|
||||
<BEGIN> BUILD_PENTIUMgnu.debug_FILE_$(PRJ_DIR)/compConfig.c_objects
|
||||
compConfig.o
|
||||
<END>
|
||||
|
||||
<BEGIN> BUILD_PENTIUMgnu.debug_FILE_$(PRJ_DIR)/compConfig.c_toolMacro
|
||||
CC
|
||||
<END>
|
||||
|
||||
<BEGIN> BUILD_PENTIUMgnu.debug_MACRO_AR
|
||||
arpentium
|
||||
<END>
|
||||
|
||||
<BEGIN> BUILD_PENTIUMgnu.debug_MACRO_AS
|
||||
ccpentium
|
||||
<END>
|
||||
|
||||
<BEGIN> BUILD_PENTIUMgnu.debug_MACRO_CC
|
||||
ccpentium
|
||||
<END>
|
||||
|
||||
<BEGIN> BUILD_PENTIUMgnu.debug_MACRO_CFLAGS
|
||||
-mcpu=pentium \
|
||||
-march=pentium \
|
||||
-ansi \
|
||||
-DRW_MULTI_THREAD \
|
||||
-D_REENTRANT \
|
||||
-g \
|
||||
-nostdlib \
|
||||
-fno-builtin \
|
||||
-fno-defer-pop \
|
||||
-MD \
|
||||
-Wall \
|
||||
-I. \
|
||||
-I$(WIND_BASE)/target/h \
|
||||
-I$(PRJ_DIR)/../.. \
|
||||
-I$(PRJ_DIR)/../../.. \
|
||||
-DCPU=PENTIUM
|
||||
<END>
|
||||
|
||||
<BEGIN> BUILD_PENTIUMgnu.debug_MACRO_CFLAGS_AS
|
||||
-mcpu=pentium \
|
||||
-march=pentium \
|
||||
-ansi \
|
||||
-g \
|
||||
-nostdlib \
|
||||
-fno-builtin \
|
||||
-fno-defer-pop \
|
||||
-P \
|
||||
-x \
|
||||
assembler-with-cpp \
|
||||
-Wall \
|
||||
-I. \
|
||||
-I$(WIND_BASE)/target/h \
|
||||
-DCPU=PENTIUM
|
||||
<END>
|
||||
|
||||
<BEGIN> BUILD_PENTIUMgnu.debug_MACRO_CPP
|
||||
ccpentium -E -P
|
||||
<END>
|
||||
|
||||
<BEGIN> BUILD_PENTIUMgnu.debug_MACRO_CPPFILT
|
||||
c++filtpentium --strip-underscores
|
||||
<END>
|
||||
|
||||
<BEGIN> BUILD_PENTIUMgnu.debug_MACRO_LD
|
||||
ldpentium
|
||||
<END>
|
||||
|
||||
<BEGIN> BUILD_PENTIUMgnu.debug_MACRO_LDFLAGS
|
||||
-X
|
||||
<END>
|
||||
|
||||
<BEGIN> BUILD_PENTIUMgnu.debug_MACRO_LDPARTIAL
|
||||
ccpentium \
|
||||
-B$(WIND_BASE)/host/$(WIND_HOST_TYPE)/lib/gcc-lib/ \
|
||||
-nostdlib \
|
||||
-r \
|
||||
-Wl,-X
|
||||
<END>
|
||||
|
||||
<BEGIN> BUILD_PENTIUMgnu.debug_MACRO_LD_PARTIAL_FLAGS
|
||||
-X -r
|
||||
<END>
|
||||
|
||||
<BEGIN> BUILD_PENTIUMgnu.debug_MACRO_NM
|
||||
nmpentium -g
|
||||
<END>
|
||||
|
||||
<BEGIN> BUILD_PENTIUMgnu.debug_MACRO_OPTION_DEFINE_MACRO
|
||||
-D
|
||||
<END>
|
||||
|
||||
<BEGIN> BUILD_PENTIUMgnu.debug_MACRO_OPTION_GENERATE_DEPENDENCY_FILE
|
||||
-MD
|
||||
<END>
|
||||
|
||||
<BEGIN> BUILD_PENTIUMgnu.debug_MACRO_OPTION_INCLUDE_DIR
|
||||
-I
|
||||
<END>
|
||||
|
||||
<BEGIN> BUILD_PENTIUMgnu.debug_MACRO_RELEASE
|
||||
0
|
||||
<END>
|
||||
|
||||
<BEGIN> BUILD_PENTIUMgnu.debug_MACRO_SIZE
|
||||
sizepentium
|
||||
<END>
|
||||
|
||||
<BEGIN> BUILD_PENTIUMgnu.debug_RELEASE
|
||||
0
|
||||
<END>
|
||||
|
||||
<BEGIN> BUILD_PENTIUMgnu.debug_RO_DEPEND_PATH
|
||||
$(WIND_BASE)/target/h/
|
||||
<END>
|
||||
|
||||
<BEGIN> BUILD_PENTIUMgnu.debug_TC
|
||||
::tc_PENTIUMgnu.debug
|
||||
<END>
|
||||
|
||||
<BEGIN> BUILD__LIST
|
||||
PENTIUM2gnu.debug PENTIUM2gnu.release PENTIUMgnu.debug
|
||||
<END>
|
||||
|
||||
<BEGIN> PROJECT_FILES
|
||||
$(PRJ_DIR)/../db_deadlock.c \
|
||||
$(PRJ_DIR)/compConfig.c
|
||||
<END>
|
||||
|
||||
<BEGIN> WCC__CDF_PATH
|
||||
$(PRJ_DIR)
|
||||
<END>
|
||||
|
||||
<BEGIN> WCC__CURRENT
|
||||
PENTIUM2gnu.debug
|
||||
<END>
|
||||
|
||||
<BEGIN> WCC__LIST
|
||||
PENTIUM2gnu.debug
|
||||
<END>
|
||||
|
||||
<BEGIN> WCC__MXR_LIBS
|
||||
lib$(CPU)$(TOOL)vx.a
|
||||
<END>
|
||||
|
||||
<BEGIN> WCC__OBJS_PATH
|
||||
$(WIND_BASE)/target/lib/obj$CPU$TOOLvx
|
||||
<END>
|
||||
|
@ -1,626 +0,0 @@
|
||||
/*-
|
||||
* See the file LICENSE for redistribution information.
|
||||
*
|
||||
* Copyright (c) 1996-2002
|
||||
* Sleepycat Software. All rights reserved.
|
||||
*/
|
||||
|
||||
#include "db_config.h"
|
||||
|
||||
#ifndef lint
|
||||
static const char copyright[] =
|
||||
"Copyright (c) 1996-2002\nSleepycat Software Inc. All rights reserved.\n";
|
||||
static const char revid[] =
|
||||
"$Id: db_dump.c,v 11.80 2002/08/08 03:50:34 bostic Exp $";
|
||||
#endif
|
||||
|
||||
#ifndef NO_SYSTEM_INCLUDES
|
||||
#include <sys/types.h>
|
||||
|
||||
#include <stdio.h>
|
||||
#include <stdlib.h>
|
||||
#include <string.h>
|
||||
#include <unistd.h>
|
||||
#endif
|
||||
|
||||
#include "db_int.h"
|
||||
#include "dbinc/db_page.h"
|
||||
#include "dbinc/db_am.h"
|
||||
|
||||
int db_dump_db_init __P((DB_ENV *, char *, int, u_int32_t, int *));
|
||||
int db_dump_dump __P((DB *, int, int));
|
||||
int db_dump_dump_sub __P((DB_ENV *, DB *, char *, int, int));
|
||||
int db_dump_is_sub __P((DB *, int *));
|
||||
int db_dump_main __P((int, char *[]));
|
||||
int db_dump_show_subs __P((DB *));
|
||||
int db_dump_usage __P((void));
|
||||
int db_dump_version_check __P((const char *));
|
||||
|
||||
int
|
||||
db_dump(args)
|
||||
char *args;
|
||||
{
|
||||
int argc;
|
||||
char **argv;
|
||||
|
||||
__db_util_arg("db_dump", args, &argc, &argv);
|
||||
return (db_dump_main(argc, argv) ? EXIT_FAILURE : EXIT_SUCCESS);
|
||||
}
|
||||
|
||||
#include <stdio.h>
|
||||
#define ERROR_RETURN ERROR
|
||||
|
||||
int
|
||||
db_dump_main(argc, argv)
|
||||
int argc;
|
||||
char *argv[];
|
||||
{
|
||||
extern char *optarg;
|
||||
extern int optind, __db_getopt_reset;
|
||||
const char *progname = "db_dump";
|
||||
DB_ENV *dbenv;
|
||||
DB *dbp;
|
||||
u_int32_t cache;
|
||||
int ch, d_close;
|
||||
int e_close, exitval, keyflag, lflag, nflag, pflag, private;
|
||||
int ret, Rflag, rflag, resize, subs;
|
||||
char *dopt, *home, *passwd, *subname;
|
||||
|
||||
if ((ret = db_dump_version_check(progname)) != 0)
|
||||
return (ret);
|
||||
|
||||
dbp = NULL;
|
||||
d_close = e_close = exitval = lflag = nflag = pflag = rflag = Rflag = 0;
|
||||
keyflag = 0;
|
||||
cache = MEGABYTE;
|
||||
private = 0;
|
||||
dopt = home = passwd = subname = NULL;
|
||||
__db_getopt_reset = 1;
|
||||
while ((ch = getopt(argc, argv, "d:f:h:klNpP:rRs:V")) != EOF)
|
||||
switch (ch) {
|
||||
case 'd':
|
||||
dopt = optarg;
|
||||
break;
|
||||
case 'f':
|
||||
if (freopen(optarg, "w", stdout) == NULL) {
|
||||
fprintf(stderr, "%s: %s: reopen: %s\n",
|
||||
progname, optarg, strerror(errno));
|
||||
return (EXIT_FAILURE);
|
||||
}
|
||||
break;
|
||||
case 'h':
|
||||
home = optarg;
|
||||
break;
|
||||
case 'k':
|
||||
keyflag = 1;
|
||||
break;
|
||||
case 'l':
|
||||
lflag = 1;
|
||||
break;
|
||||
case 'N':
|
||||
nflag = 1;
|
||||
break;
|
||||
case 'P':
|
||||
passwd = strdup(optarg);
|
||||
memset(optarg, 0, strlen(optarg));
|
||||
if (passwd == NULL) {
|
||||
fprintf(stderr, "%s: strdup: %s\n",
|
||||
progname, strerror(errno));
|
||||
return (EXIT_FAILURE);
|
||||
}
|
||||
break;
|
||||
case 'p':
|
||||
pflag = 1;
|
||||
break;
|
||||
case 's':
|
||||
subname = optarg;
|
||||
break;
|
||||
case 'R':
|
||||
Rflag = 1;
|
||||
/* DB_AGGRESSIVE requires DB_SALVAGE */
|
||||
/* FALLTHROUGH */
|
||||
case 'r':
|
||||
rflag = 1;
|
||||
break;
|
||||
case 'V':
|
||||
printf("%s\n", db_version(NULL, NULL, NULL));
|
||||
return (EXIT_SUCCESS);
|
||||
case '?':
|
||||
default:
|
||||
return (db_dump_usage());
|
||||
}
|
||||
argc -= optind;
|
||||
argv += optind;
|
||||
|
||||
if (argc != 1)
|
||||
return (db_dump_usage());
|
||||
|
||||
if (dopt != NULL && pflag) {
|
||||
fprintf(stderr,
|
||||
"%s: the -d and -p options may not both be specified\n",
|
||||
progname);
|
||||
return (EXIT_FAILURE);
|
||||
}
|
||||
if (lflag && subname != NULL) {
|
||||
fprintf(stderr,
|
||||
"%s: the -l and -s options may not both be specified\n",
|
||||
progname);
|
||||
return (EXIT_FAILURE);
|
||||
}
|
||||
|
||||
if (keyflag && rflag) {
|
||||
fprintf(stderr, "%s: %s",
|
||||
"the -k and -r or -R options may not both be specified\n",
|
||||
progname);
|
||||
return (EXIT_FAILURE);
|
||||
}
|
||||
|
||||
if (subname != NULL && rflag) {
|
||||
fprintf(stderr, "%s: %s",
|
||||
"the -s and -r or R options may not both be specified\n",
|
||||
progname);
|
||||
return (EXIT_FAILURE);
|
||||
}
|
||||
|
||||
/* Handle possible interruptions. */
|
||||
__db_util_siginit();
|
||||
|
||||
/*
|
||||
* Create an environment object and initialize it for error
|
||||
* reporting.
|
||||
*/
|
||||
retry: if ((ret = db_env_create(&dbenv, 0)) != 0) {
|
||||
fprintf(stderr,
|
||||
"%s: db_env_create: %s\n", progname, db_strerror(ret));
|
||||
goto err;
|
||||
}
|
||||
e_close = 1;
|
||||
|
||||
dbenv->set_errfile(dbenv, stderr);
|
||||
dbenv->set_errpfx(dbenv, progname);
|
||||
if (nflag) {
|
||||
if ((ret = dbenv->set_flags(dbenv, DB_NOLOCKING, 1)) != 0) {
|
||||
dbenv->err(dbenv, ret, "set_flags: DB_NOLOCKING");
|
||||
goto err;
|
||||
}
|
||||
if ((ret = dbenv->set_flags(dbenv, DB_NOPANIC, 1)) != 0) {
|
||||
dbenv->err(dbenv, ret, "set_flags: DB_NOPANIC");
|
||||
goto err;
|
||||
}
|
||||
}
|
||||
if (passwd != NULL && (ret = dbenv->set_encrypt(dbenv,
|
||||
passwd, DB_ENCRYPT_AES)) != 0) {
|
||||
dbenv->err(dbenv, ret, "set_passwd");
|
||||
goto err;
|
||||
}
|
||||
|
||||
/* Initialize the environment. */
|
||||
if (db_dump_db_init(dbenv, home, rflag, cache, &private) != 0)
|
||||
goto err;
|
||||
|
||||
/* Create the DB object and open the file. */
|
||||
if ((ret = db_create(&dbp, dbenv, 0)) != 0) {
|
||||
dbenv->err(dbenv, ret, "db_create");
|
||||
goto err;
|
||||
}
|
||||
d_close = 1;
|
||||
|
||||
/*
|
||||
* If we're salvaging, don't do an open; it might not be safe.
|
||||
* Dispatch now into the salvager.
|
||||
*/
|
||||
if (rflag) {
|
||||
if ((ret = dbp->verify(dbp, argv[0], NULL, stdout,
|
||||
DB_SALVAGE |
|
||||
(Rflag ? DB_AGGRESSIVE : 0) |
|
||||
(pflag ? DB_PRINTABLE : 0))) != 0)
|
||||
goto err;
|
||||
exitval = 0;
|
||||
goto done;
|
||||
}
|
||||
|
||||
if ((ret = dbp->open(dbp, NULL,
|
||||
argv[0], subname, DB_UNKNOWN, DB_RDONLY, 0)) != 0) {
|
||||
dbp->err(dbp, ret, "open: %s", argv[0]);
|
||||
goto err;
|
||||
}
|
||||
if (private != 0) {
|
||||
if ((ret = __db_util_cache(dbenv, dbp, &cache, &resize)) != 0)
|
||||
goto err;
|
||||
if (resize) {
|
||||
(void)dbp->close(dbp, 0);
|
||||
d_close = 0;
|
||||
|
||||
(void)dbenv->close(dbenv, 0);
|
||||
e_close = 0;
|
||||
goto retry;
|
||||
}
|
||||
}
|
||||
|
||||
if (dopt != NULL) {
|
||||
if (__db_dump(dbp, dopt, NULL)) {
|
||||
dbp->err(dbp, ret, "__db_dump: %s", argv[0]);
|
||||
goto err;
|
||||
}
|
||||
} else if (lflag) {
|
||||
if (db_dump_is_sub(dbp, &subs))
|
||||
goto err;
|
||||
if (subs == 0) {
|
||||
dbp->errx(dbp,
|
||||
"%s: does not contain multiple databases", argv[0]);
|
||||
goto err;
|
||||
}
|
||||
if (db_dump_show_subs(dbp))
|
||||
goto err;
|
||||
} else {
|
||||
subs = 0;
|
||||
if (subname == NULL && db_dump_is_sub(dbp, &subs))
|
||||
goto err;
|
||||
if (subs) {
|
||||
if (db_dump_dump_sub(dbenv, dbp, argv[0], pflag, keyflag))
|
||||
goto err;
|
||||
} else
|
||||
if (__db_prheader(dbp, NULL, pflag, keyflag, stdout,
|
||||
__db_verify_callback, NULL, 0) ||
|
||||
db_dump_dump(dbp, pflag, keyflag))
|
||||
goto err;
|
||||
}
|
||||
|
||||
if (0) {
|
||||
err: exitval = 1;
|
||||
}
|
||||
done: if (d_close && (ret = dbp->close(dbp, 0)) != 0) {
|
||||
exitval = 1;
|
||||
dbenv->err(dbenv, ret, "close");
|
||||
}
|
||||
if (e_close && (ret = dbenv->close(dbenv, 0)) != 0) {
|
||||
exitval = 1;
|
||||
fprintf(stderr,
|
||||
"%s: dbenv->close: %s\n", progname, db_strerror(ret));
|
||||
}
|
||||
|
||||
/* Resend any caught signal. */
|
||||
__db_util_sigresend();
|
||||
|
||||
return (exitval == 0 ? EXIT_SUCCESS : EXIT_FAILURE);
|
||||
}
|
||||
|
||||
/*
|
||||
* db_init --
|
||||
* Initialize the environment.
|
||||
*/
|
||||
int
|
||||
db_dump_db_init(dbenv, home, is_salvage, cache, is_privatep)
|
||||
DB_ENV *dbenv;
|
||||
char *home;
|
||||
int is_salvage;
|
||||
u_int32_t cache;
|
||||
int *is_privatep;
|
||||
{
|
||||
int ret;
|
||||
|
||||
/*
|
||||
* Try and use the underlying environment when opening a database.
|
||||
* We wish to use the buffer pool so our information is as up-to-date
|
||||
* as possible, even if the mpool cache hasn't been flushed.
|
||||
*
|
||||
* If we are not doing a salvage, we wish to use the DB_JOINENV flag;
|
||||
* if a locking system is present, this will let us use it and be
|
||||
* safe to run concurrently with other threads of control. (We never
|
||||
* need to use transactions explicitly, as we're read-only.) Note
|
||||
* that in CDB, too, this will configure our environment
|
||||
* appropriately, and our cursors will (correctly) do locking as CDB
|
||||
* read cursors.
|
||||
*
|
||||
* If we are doing a salvage, the verification code will protest
|
||||
* if we initialize transactions, logging, or locking; do an
|
||||
* explicit DB_INIT_MPOOL to try to join any existing environment
|
||||
* before we create our own.
|
||||
*/
|
||||
*is_privatep = 0;
|
||||
if (dbenv->open(dbenv, home,
|
||||
DB_USE_ENVIRON | (is_salvage ? DB_INIT_MPOOL : DB_JOINENV), 0) == 0)
|
||||
return (0);
|
||||
|
||||
/*
|
||||
* An environment is required because we may be trying to look at
|
||||
* databases in directories other than the current one. We could
|
||||
* avoid using an environment iff the -h option wasn't specified,
|
||||
* but that seems like more work than it's worth.
|
||||
*
|
||||
* No environment exists (or, at least no environment that includes
|
||||
* an mpool region exists). Create one, but make it private so that
|
||||
* no files are actually created.
|
||||
*/
|
||||
*is_privatep = 1;
|
||||
if ((ret = dbenv->set_cachesize(dbenv, 0, cache, 1)) == 0 &&
|
||||
(ret = dbenv->open(dbenv, home,
|
||||
DB_CREATE | DB_INIT_MPOOL | DB_PRIVATE | DB_USE_ENVIRON, 0)) == 0)
|
||||
return (0);
|
||||
|
||||
/* An environment is required. */
|
||||
dbenv->err(dbenv, ret, "open");
|
||||
return (1);
|
||||
}
|
||||
|
||||
/*
|
||||
* is_sub --
|
||||
* Return if the database contains subdatabases.
|
||||
*/
|
||||
int
|
||||
db_dump_is_sub(dbp, yesno)
|
||||
DB *dbp;
|
||||
int *yesno;
|
||||
{
|
||||
DB_BTREE_STAT *btsp;
|
||||
DB_HASH_STAT *hsp;
|
||||
int ret;
|
||||
|
||||
switch (dbp->type) {
|
||||
case DB_BTREE:
|
||||
case DB_RECNO:
|
||||
if ((ret = dbp->stat(dbp, &btsp, DB_FAST_STAT)) != 0) {
|
||||
dbp->err(dbp, ret, "DB->stat");
|
||||
return (ret);
|
||||
}
|
||||
*yesno = btsp->bt_metaflags & BTM_SUBDB ? 1 : 0;
|
||||
free(btsp);
|
||||
break;
|
||||
case DB_HASH:
|
||||
if ((ret = dbp->stat(dbp, &hsp, DB_FAST_STAT)) != 0) {
|
||||
dbp->err(dbp, ret, "DB->stat");
|
||||
return (ret);
|
||||
}
|
||||
*yesno = hsp->hash_metaflags & DB_HASH_SUBDB ? 1 : 0;
|
||||
free(hsp);
|
||||
break;
|
||||
case DB_QUEUE:
|
||||
break;
|
||||
default:
|
||||
dbp->errx(dbp, "unknown database type");
|
||||
return (1);
|
||||
}
|
||||
return (0);
|
||||
}
|
||||
|
||||
/*
|
||||
* dump_sub --
|
||||
* Dump out the records for a DB containing subdatabases.
|
||||
*/
|
||||
int
|
||||
db_dump_dump_sub(dbenv, parent_dbp, parent_name, pflag, keyflag)
|
||||
DB_ENV *dbenv;
|
||||
DB *parent_dbp;
|
||||
char *parent_name;
|
||||
int pflag, keyflag;
|
||||
{
|
||||
DB *dbp;
|
||||
DBC *dbcp;
|
||||
DBT key, data;
|
||||
int ret;
|
||||
char *subdb;
|
||||
|
||||
/*
|
||||
* Get a cursor and step through the database, dumping out each
|
||||
* subdatabase.
|
||||
*/
|
||||
if ((ret = parent_dbp->cursor(parent_dbp, NULL, &dbcp, 0)) != 0) {
|
||||
dbenv->err(dbenv, ret, "DB->cursor");
|
||||
return (1);
|
||||
}
|
||||
|
||||
memset(&key, 0, sizeof(key));
|
||||
memset(&data, 0, sizeof(data));
|
||||
while ((ret = dbcp->c_get(dbcp, &key, &data, DB_NEXT)) == 0) {
|
||||
/* Nul terminate the subdatabase name. */
|
||||
if ((subdb = malloc(key.size + 1)) == NULL) {
|
||||
dbenv->err(dbenv, ENOMEM, NULL);
|
||||
return (1);
|
||||
}
|
||||
memcpy(subdb, key.data, key.size);
|
||||
subdb[key.size] = '\0';
|
||||
|
||||
/* Create the DB object and open the file. */
|
||||
if ((ret = db_create(&dbp, dbenv, 0)) != 0) {
|
||||
dbenv->err(dbenv, ret, "db_create");
|
||||
free(subdb);
|
||||
return (1);
|
||||
}
|
||||
if ((ret = dbp->open(dbp, NULL,
|
||||
parent_name, subdb, DB_UNKNOWN, DB_RDONLY, 0)) != 0)
|
||||
dbp->err(dbp, ret,
|
||||
"DB->open: %s:%s", parent_name, subdb);
|
||||
if (ret == 0 &&
|
||||
(__db_prheader(dbp, subdb, pflag, keyflag, stdout,
|
||||
__db_verify_callback, NULL, 0) ||
|
||||
db_dump_dump(dbp, pflag, keyflag)))
|
||||
ret = 1;
|
||||
(void)dbp->close(dbp, 0);
|
||||
free(subdb);
|
||||
if (ret != 0)
|
||||
return (1);
|
||||
}
|
||||
if (ret != DB_NOTFOUND) {
|
||||
dbp->err(dbp, ret, "DBcursor->get");
|
||||
return (1);
|
||||
}
|
||||
|
||||
if ((ret = dbcp->c_close(dbcp)) != 0) {
|
||||
dbp->err(dbp, ret, "DBcursor->close");
|
||||
return (1);
|
||||
}
|
||||
|
||||
return (0);
|
||||
}
|
||||
|
||||
/*
|
||||
* show_subs --
|
||||
* Display the subdatabases for a database.
|
||||
*/
|
||||
int
|
||||
db_dump_show_subs(dbp)
|
||||
DB *dbp;
|
||||
{
|
||||
DBC *dbcp;
|
||||
DBT key, data;
|
||||
int ret;
|
||||
|
||||
/*
|
||||
* Get a cursor and step through the database, printing out the key
|
||||
* of each key/data pair.
|
||||
*/
|
||||
if ((ret = dbp->cursor(dbp, NULL, &dbcp, 0)) != 0) {
|
||||
dbp->err(dbp, ret, "DB->cursor");
|
||||
return (1);
|
||||
}
|
||||
|
||||
memset(&key, 0, sizeof(key));
|
||||
memset(&data, 0, sizeof(data));
|
||||
while ((ret = dbcp->c_get(dbcp, &key, &data, DB_NEXT)) == 0) {
|
||||
if ((ret = __db_prdbt(&key, 1, NULL, stdout,
|
||||
__db_verify_callback, 0, NULL)) != 0) {
|
||||
dbp->errx(dbp, NULL);
|
||||
return (1);
|
||||
}
|
||||
}
|
||||
if (ret != DB_NOTFOUND) {
|
||||
dbp->err(dbp, ret, "DBcursor->get");
|
||||
return (1);
|
||||
}
|
||||
|
||||
if ((ret = dbcp->c_close(dbcp)) != 0) {
|
||||
dbp->err(dbp, ret, "DBcursor->close");
|
||||
return (1);
|
||||
}
|
||||
return (0);
|
||||
}
|
||||
|
||||
/*
|
||||
* dump --
|
||||
* Dump out the records for a DB.
|
||||
*/
|
||||
int
|
||||
db_dump_dump(dbp, pflag, keyflag)
|
||||
DB *dbp;
|
||||
int pflag, keyflag;
|
||||
{
|
||||
DBC *dbcp;
|
||||
DBT key, data;
|
||||
DBT keyret, dataret;
|
||||
db_recno_t recno;
|
||||
int is_recno, failed, ret;
|
||||
void *pointer;
|
||||
|
||||
/*
|
||||
* Get a cursor and step through the database, printing out each
|
||||
* key/data pair.
|
||||
*/
|
||||
if ((ret = dbp->cursor(dbp, NULL, &dbcp, 0)) != 0) {
|
||||
dbp->err(dbp, ret, "DB->cursor");
|
||||
return (1);
|
||||
}
|
||||
|
||||
failed = 0;
|
||||
memset(&key, 0, sizeof(key));
|
||||
memset(&data, 0, sizeof(data));
|
||||
data.data = malloc(1024 * 1024);
|
||||
if (data.data == NULL) {
|
||||
dbp->err(dbp, ENOMEM, "bulk get buffer");
|
||||
failed = 1;
|
||||
goto err;
|
||||
}
|
||||
data.ulen = 1024 * 1024;
|
||||
data.flags = DB_DBT_USERMEM;
|
||||
is_recno = (dbp->type == DB_RECNO || dbp->type == DB_QUEUE);
|
||||
keyflag = is_recno ? keyflag : 1;
|
||||
if (is_recno) {
|
||||
keyret.data = &recno;
|
||||
keyret.size = sizeof(recno);
|
||||
}
|
||||
|
||||
retry:
|
||||
while ((ret =
|
||||
dbcp->c_get(dbcp, &key, &data, DB_NEXT | DB_MULTIPLE_KEY)) == 0) {
|
||||
DB_MULTIPLE_INIT(pointer, &data);
|
||||
for (;;) {
|
||||
if (is_recno)
|
||||
DB_MULTIPLE_RECNO_NEXT(pointer, &data,
|
||||
recno, dataret.data, dataret.size);
|
||||
else
|
||||
DB_MULTIPLE_KEY_NEXT(pointer,
|
||||
&data, keyret.data,
|
||||
keyret.size, dataret.data, dataret.size);
|
||||
|
||||
if (dataret.data == NULL)
|
||||
break;
|
||||
|
||||
if ((keyflag && (ret = __db_prdbt(&keyret,
|
||||
pflag, " ", stdout, __db_verify_callback,
|
||||
is_recno, NULL)) != 0) || (ret =
|
||||
__db_prdbt(&dataret, pflag, " ", stdout,
|
||||
__db_verify_callback, 0, NULL)) != 0) {
|
||||
dbp->errx(dbp, NULL);
|
||||
failed = 1;
|
||||
goto err;
|
||||
}
|
||||
}
|
||||
}
|
||||
if (ret == ENOMEM) {
|
||||
data.data = realloc(data.data, data.size);
|
||||
if (data.data == NULL) {
|
||||
dbp->err(dbp, ENOMEM, "bulk get buffer");
|
||||
failed = 1;
|
||||
goto err;
|
||||
}
|
||||
data.ulen = data.size;
|
||||
goto retry;
|
||||
}
|
||||
|
||||
if (ret != DB_NOTFOUND) {
|
||||
dbp->err(dbp, ret, "DBcursor->get");
|
||||
failed = 1;
|
||||
}
|
||||
|
||||
err: if (data.data != NULL)
|
||||
free(data.data);
|
||||
|
||||
if ((ret = dbcp->c_close(dbcp)) != 0) {
|
||||
dbp->err(dbp, ret, "DBcursor->close");
|
||||
failed = 1;
|
||||
}
|
||||
|
||||
(void)__db_prfooter(stdout, __db_verify_callback);
|
||||
return (failed);
|
||||
}
|
||||
|
||||
/*
|
||||
* usage --
|
||||
* Display the usage message.
|
||||
*/
|
||||
int
|
||||
db_dump_usage()
|
||||
{
|
||||
(void)fprintf(stderr, "%s\n\t%s\n",
|
||||
"usage: db_dump [-klNprRV]",
|
||||
"[-d ahr] [-f output] [-h home] [-P password] [-s database] db_file");
|
||||
return (EXIT_FAILURE);
|
||||
}
|
||||
|
||||
int
|
||||
db_dump_version_check(progname)
|
||||
const char *progname;
|
||||
{
|
||||
int v_major, v_minor, v_patch;
|
||||
|
||||
/* Make sure we're loaded with the right version of the DB library. */
|
||||
(void)db_version(&v_major, &v_minor, &v_patch);
|
||||
if (v_major != DB_VERSION_MAJOR ||
|
||||
v_minor != DB_VERSION_MINOR || v_patch != DB_VERSION_PATCH) {
|
||||
fprintf(stderr,
|
||||
"%s: version %d.%d.%d doesn't match library version %d.%d.%d\n",
|
||||
progname, DB_VERSION_MAJOR, DB_VERSION_MINOR,
|
||||
DB_VERSION_PATCH, v_major, v_minor, v_patch);
|
||||
return (EXIT_FAILURE);
|
||||
}
|
||||
return (0);
|
||||
}
|
@ -1,160 +0,0 @@
|
||||
Document file - DO NOT EDIT
|
||||
|
||||
<BEGIN> BUILD_PENTIUMgnu_BUILDRULE
|
||||
db_dump.out
|
||||
<END>
|
||||
|
||||
<BEGIN> BUILD_PENTIUMgnu_MACRO_AR
|
||||
ar386
|
||||
<END>
|
||||
|
||||
<BEGIN> BUILD_PENTIUMgnu_MACRO_ARCHIVE
|
||||
$(PRJ_DIR)/PENTIUMgnu/db_dump.a
|
||||
<END>
|
||||
|
||||
<BEGIN> BUILD_PENTIUMgnu_MACRO_AS
|
||||
cc386
|
||||
<END>
|
||||
|
||||
<BEGIN> BUILD_PENTIUMgnu_MACRO_CC
|
||||
cc386
|
||||
<END>
|
||||
|
||||
<BEGIN> BUILD_PENTIUMgnu_MACRO_CFLAGS
|
||||
-g \
|
||||
-mpentium \
|
||||
-ansi \
|
||||
-nostdinc \
|
||||
-DRW_MULTI_THREAD \
|
||||
-D_REENTRANT \
|
||||
-fvolatile \
|
||||
-nostdlib \
|
||||
-fno-builtin \
|
||||
-fno-defer-pop \
|
||||
-I$(PRJ_DIR)/.. \
|
||||
-I$(PRJ_DIR)/../.. \
|
||||
-I$(WIND_BASE)/target/h \
|
||||
-DCPU=PENTIUM
|
||||
<END>
|
||||
|
||||
<BEGIN> BUILD_PENTIUMgnu_MACRO_CFLAGS_AS
|
||||
-g \
|
||||
-mpentium \
|
||||
-ansi \
|
||||
-nostdinc \
|
||||
-fvolatile \
|
||||
-nostdlib \
|
||||
-fno-builtin \
|
||||
-fno-defer-pop \
|
||||
-P \
|
||||
-x \
|
||||
assembler-with-cpp \
|
||||
-I$(WIND_BASE)/target/h \
|
||||
-DCPU=PENTIUM
|
||||
<END>
|
||||
|
||||
<BEGIN> BUILD_PENTIUMgnu_MACRO_CPP
|
||||
cc386 -E -P -xc
|
||||
<END>
|
||||
|
||||
<BEGIN> BUILD_PENTIUMgnu_MACRO_LD
|
||||
ld386
|
||||
<END>
|
||||
|
||||
<BEGIN> BUILD_PENTIUMgnu_MACRO_LDDEPS
|
||||
|
||||
<END>
|
||||
|
||||
<BEGIN> BUILD_PENTIUMgnu_MACRO_LDFLAGS
|
||||
-X -N
|
||||
<END>
|
||||
|
||||
<BEGIN> BUILD_PENTIUMgnu_MACRO_LD_PARTIAL_FLAGS
|
||||
-X -r
|
||||
<END>
|
||||
|
||||
<BEGIN> BUILD_PENTIUMgnu_MACRO_NM
|
||||
nm386 -g
|
||||
<END>
|
||||
|
||||
<BEGIN> BUILD_PENTIUMgnu_MACRO_OPTION_DEFINE_MACRO
|
||||
-D
|
||||
<END>
|
||||
|
||||
<BEGIN> BUILD_PENTIUMgnu_MACRO_OPTION_INCLUDE_DIR
|
||||
-I
|
||||
<END>
|
||||
|
||||
<BEGIN> BUILD_PENTIUMgnu_MACRO_POST_BUILD_RULE
|
||||
|
||||
<END>
|
||||
|
||||
<BEGIN> BUILD_PENTIUMgnu_MACRO_PRJ_LIBS
|
||||
|
||||
<END>
|
||||
|
||||
<BEGIN> BUILD_PENTIUMgnu_MACRO_SIZE
|
||||
size386
|
||||
<END>
|
||||
|
||||
<BEGIN> BUILD_PENTIUMgnu_RO_DEPEND_PATH
|
||||
{$(WIND_BASE)/target/h/} \
|
||||
{$(WIND_BASE)/target/src/} \
|
||||
{$(WIND_BASE)/target/config/}
|
||||
<END>
|
||||
|
||||
<BEGIN> BUILD_PENTIUMgnu_TC
|
||||
::tc_PENTIUMgnu
|
||||
<END>
|
||||
|
||||
<BEGIN> BUILD_RULE_archive
|
||||
|
||||
<END>
|
||||
|
||||
<BEGIN> BUILD_RULE_db_dump.out
|
||||
|
||||
<END>
|
||||
|
||||
<BEGIN> BUILD_RULE_objects
|
||||
|
||||
<END>
|
||||
|
||||
<BEGIN> BUILD__CURRENT
|
||||
PENTIUMgnu
|
||||
<END>
|
||||
|
||||
<BEGIN> BUILD__LIST
|
||||
PENTIUMgnu
|
||||
<END>
|
||||
|
||||
<BEGIN> CORE_INFO_TYPE
|
||||
::prj_vxApp
|
||||
<END>
|
||||
|
||||
<BEGIN> CORE_INFO_VERSION
|
||||
2.0
|
||||
<END>
|
||||
|
||||
<BEGIN> FILE_db_dump.c_dependDone
|
||||
FALSE
|
||||
<END>
|
||||
|
||||
<BEGIN> FILE_db_dump.c_dependencies
|
||||
|
||||
<END>
|
||||
|
||||
<BEGIN> FILE_db_dump.c_objects
|
||||
db_dump.o
|
||||
<END>
|
||||
|
||||
<BEGIN> FILE_db_dump.c_tool
|
||||
C/C++ compiler
|
||||
<END>
|
||||
|
||||
<BEGIN> PROJECT_FILES
|
||||
$(PRJ_DIR)/db_dump.c
|
||||
<END>
|
||||
|
||||
<BEGIN> userComments
|
||||
db_dump
|
||||
<END>
|
@ -1,51 +0,0 @@
|
||||
#
|
||||
# Custom Makefile shell
|
||||
#
|
||||
# This file may be edited freely, since it will not be regenerated
|
||||
# by the project manager.
|
||||
#
|
||||
# Use this makefile to define rules to make external binaries
|
||||
# and deposit them in the $(EXTERNAL_BINARIES_DIR) directory.
|
||||
#
|
||||
# If you have specified external modules during your component
|
||||
# creation, you will find make rules already in place below.
|
||||
# You will likely have to edit these to suit your individual
|
||||
# build setup.
|
||||
#
|
||||
# You may wish to use the CPU, BUILD_SPEC or TOOL make variables in
|
||||
# your Makefile to support builds for different architectures. Use
|
||||
# the FORCE_EXTERNAL_MAKE phony target to ensure that your external
|
||||
# make always runs.
|
||||
#
|
||||
# The example below assumes that your custom makefile is in the
|
||||
# mySourceTree directory, and that the binary file it produces
|
||||
# is placed into the $(BUILD_SPEC) sub-directory.
|
||||
#
|
||||
# EXTERNAL_SOURCE_BASE = /folk/me/mySourceTree
|
||||
# EXTERNAL_MODULE = myLibrary.o
|
||||
# EXTERNAL_MAKE = make
|
||||
#
|
||||
# $(EXTERNAL_BINARIES_DIR)/$(EXTERNAL_MODULE) : FORCE_EXTERNAL_MAKE
|
||||
# $(EXTERNAL_MAKE) -C $(EXTERNAL_SOURCE_BASE) \
|
||||
# -f $(EXTERNAL_SOURCE_BASE)/Makefile \
|
||||
# CPU=$(CPU) BUILD_SPEC=$(BUILD_SPEC) $(@F)
|
||||
# $(CP) $(subst /,$(DIRCHAR),$(EXTERNAL_SOURCE_BASE)/$(BUILD_SPEC)/$(@F) $@)
|
||||
#
|
||||
# If you are not adding your external modules from the component wizard,
|
||||
# you will have to include them in your component yourself:
|
||||
#
|
||||
# From the GUI, you can do this with the Component's 'Add external module'
|
||||
# dialog.
|
||||
#
|
||||
# If you are using the command line, add the module(s) by editing the
|
||||
# MODULES line in component.cdf file, e.g.
|
||||
#
|
||||
# Component INCLUDE_MYCOMPONENT {
|
||||
#
|
||||
# MODULES foo.o goo.o \
|
||||
# myLibrary.o
|
||||
#
|
||||
|
||||
|
||||
# rules to build custom libraries
|
||||
|
@ -1,30 +0,0 @@
|
||||
/* component.cdf - dynamically updated configuration */
|
||||
|
||||
/*
|
||||
* NOTE: you may edit this file to alter the configuration
|
||||
* But all non-configuration information, including comments,
|
||||
* will be lost upon rebuilding this project.
|
||||
*/
|
||||
|
||||
/* Component information */
|
||||
|
||||
Component INCLUDE_DB_DUMP {
|
||||
ENTRY_POINTS ALL_GLOBAL_SYMBOLS
|
||||
MODULES db_dump.o
|
||||
NAME db_dump
|
||||
PREF_DOMAIN ANY
|
||||
_INIT_ORDER usrComponentsInit
|
||||
}
|
||||
|
||||
/* EntryPoint information */
|
||||
|
||||
/* Module information */
|
||||
|
||||
Module db_dump.o {
|
||||
|
||||
NAME db_dump.o
|
||||
SRC_PATH_NAME $PRJ_DIR/../db_dump.c
|
||||
}
|
||||
|
||||
/* Parameter information */
|
||||
|
@ -1,475 +0,0 @@
|
||||
Document file - DO NOT EDIT
|
||||
|
||||
<BEGIN> CORE_INFO_TYPE
|
||||
::prj_component
|
||||
<END>
|
||||
|
||||
<BEGIN> CORE_INFO_VERSION
|
||||
AE1.1
|
||||
<END>
|
||||
|
||||
<BEGIN> BUILD__CURRENT
|
||||
PENTIUM2gnu.debug
|
||||
<END>
|
||||
|
||||
<BEGIN> BUILD_PENTIUM2gnu.debug_CURRENT_TARGET
|
||||
default
|
||||
<END>
|
||||
|
||||
<BEGIN> BUILD_PENTIUM2gnu.debug_DEFAULTFORCPU
|
||||
1
|
||||
<END>
|
||||
|
||||
<BEGIN> BUILD_PENTIUM2gnu.debug_FILE_$(PRJ_DIR)/../db_dump.c_infoTags
|
||||
toolMacro objects
|
||||
<END>
|
||||
|
||||
<BEGIN> BUILD_PENTIUM2gnu.debug_FILE_$(PRJ_DIR)/../db_dump.c_objects
|
||||
db_dump.o
|
||||
<END>
|
||||
|
||||
<BEGIN> BUILD_PENTIUM2gnu.debug_FILE_$(PRJ_DIR)/../db_dump.c_toolMacro
|
||||
CC
|
||||
<END>
|
||||
|
||||
<BEGIN> BUILD_PENTIUM2gnu.debug_FILE_$(PRJ_DIR)/../db_dump.c_objects
|
||||
db_dump.o
|
||||
<END>
|
||||
|
||||
<BEGIN> BUILD_PENTIUM2gnu.debug_FILE_$(PRJ_DIR)/../db_dump.c_toolMacro
|
||||
CC
|
||||
<END>
|
||||
|
||||
<BEGIN> BUILD_PENTIUM2gnu.debug_FILE_$(PRJ_DIR)/compConfig.c_infoTags
|
||||
toolMacro objects
|
||||
<END>
|
||||
|
||||
<BEGIN> BUILD_PENTIUM2gnu.debug_FILE_$(PRJ_DIR)/compConfig.c_objects
|
||||
compConfig.o
|
||||
<END>
|
||||
|
||||
<BEGIN> BUILD_PENTIUM2gnu.debug_FILE_$(PRJ_DIR)/compConfig.c_toolMacro
|
||||
CC
|
||||
<END>
|
||||
|
||||
<BEGIN> BUILD_PENTIUM2gnu.debug_MACRO_AR
|
||||
arpentium
|
||||
<END>
|
||||
|
||||
<BEGIN> BUILD_PENTIUM2gnu.debug_MACRO_AS
|
||||
ccpentium
|
||||
<END>
|
||||
|
||||
<BEGIN> BUILD_PENTIUM2gnu.debug_MACRO_CC
|
||||
ccpentium
|
||||
<END>
|
||||
|
||||
<BEGIN> BUILD_PENTIUM2gnu.debug_MACRO_CFLAGS
|
||||
-mcpu=pentiumpro \
|
||||
-march=pentiumpro \
|
||||
-ansi \
|
||||
-DRW_MULTI_THREAD \
|
||||
-D_REENTRANT \
|
||||
-g \
|
||||
-nostdlib \
|
||||
-fno-builtin \
|
||||
-fno-defer-pop \
|
||||
-MD \
|
||||
-Wall \
|
||||
-I. \
|
||||
-I$(WIND_BASE)/target/h \
|
||||
-I$(PRJ_DIR)/../.. \
|
||||
-I$(PRJ_DIR)/../../.. \
|
||||
-DCPU=PENTIUM2
|
||||
<END>
|
||||
|
||||
<BEGIN> BUILD_PENTIUM2gnu.debug_MACRO_CFLAGS_AS
|
||||
-mcpu=pentiumpro \
|
||||
-march=pentiumpro \
|
||||
-ansi \
|
||||
-g \
|
||||
-nostdlib \
|
||||
-fno-builtin \
|
||||
-fno-defer-pop \
|
||||
-P \
|
||||
-x \
|
||||
assembler-with-cpp \
|
||||
-Wall \
|
||||
-I. \
|
||||
-I$(WIND_BASE)/target/h \
|
||||
-DCPU=PENTIUM2
|
||||
<END>
|
||||
|
||||
<BEGIN> BUILD_PENTIUM2gnu.debug_MACRO_CPP
|
||||
ccpentium -E -P
|
||||
<END>
|
||||
|
||||
<BEGIN> BUILD_PENTIUM2gnu.debug_MACRO_CPPFILT
|
||||
c++filtpentium --strip-underscores
|
||||
<END>
|
||||
|
||||
<BEGIN> BUILD_PENTIUM2gnu.debug_MACRO_LD
|
||||
ldpentium
|
||||
<END>
|
||||
|
||||
<BEGIN> BUILD_PENTIUM2gnu.debug_MACRO_LDFLAGS
|
||||
-X
|
||||
<END>
|
||||
|
||||
<BEGIN> BUILD_PENTIUM2gnu.debug_MACRO_LDPARTIAL
|
||||
ccpentium \
|
||||
-B$(WIND_BASE)/host/$(WIND_HOST_TYPE)/lib/gcc-lib/ \
|
||||
-nostdlib \
|
||||
-r \
|
||||
-Wl,-X
|
||||
<END>
|
||||
|
||||
<BEGIN> BUILD_PENTIUM2gnu.debug_MACRO_LD_PARTIAL_FLAGS
|
||||
-X -r
|
||||
<END>
|
||||
|
||||
<BEGIN> BUILD_PENTIUM2gnu.debug_MACRO_NM
|
||||
nmpentium -g
|
||||
<END>
|
||||
|
||||
<BEGIN> BUILD_PENTIUM2gnu.debug_MACRO_OPTION_DEFINE_MACRO
|
||||
-D
|
||||
<END>
|
||||
|
||||
<BEGIN> BUILD_PENTIUM2gnu.debug_MACRO_OPTION_GENERATE_DEPENDENCY_FILE
|
||||
-MD
|
||||
<END>
|
||||
|
||||
<BEGIN> BUILD_PENTIUM2gnu.debug_MACRO_OPTION_INCLUDE_DIR
|
||||
-I
|
||||
<END>
|
||||
|
||||
<BEGIN> BUILD_PENTIUM2gnu.debug_MACRO_RELEASE
|
||||
0
|
||||
<END>
|
||||
|
||||
<BEGIN> BUILD_PENTIUM2gnu.debug_MACRO_SIZE
|
||||
sizepentium
|
||||
<END>
|
||||
|
||||
<BEGIN> BUILD_PENTIUM2gnu.debug_RELEASE
|
||||
0
|
||||
<END>
|
||||
|
||||
<BEGIN> BUILD_PENTIUM2gnu.debug_RO_DEPEND_PATH
|
||||
$(WIND_BASE)/target/h/
|
||||
<END>
|
||||
|
||||
<BEGIN> BUILD_PENTIUM2gnu.debug_TC
|
||||
::tc_PENTIUM2gnu.debug
|
||||
<END>
|
||||
|
||||
<BEGIN> BUILD_PENTIUM2gnu.release_DEFAULTFORCPU
|
||||
0
|
||||
<END>
|
||||
|
||||
<BEGIN> BUILD_PENTIUM2gnu.release_FILE_$(PRJ_DIR)/../db_dump.c_infoTags
|
||||
toolMacro objects
|
||||
<END>
|
||||
|
||||
<BEGIN> BUILD_PENTIUM2gnu.release_FILE_$(PRJ_DIR)/../db_dump.c_objects
|
||||
db_dump.o
|
||||
<END>
|
||||
|
||||
<BEGIN> BUILD_PENTIUM2gnu.release_FILE_$(PRJ_DIR)/../db_dump.c_toolMacro
|
||||
CC
|
||||
<END>
|
||||
|
||||
<BEGIN> BUILD_PENTIUM2gnu.release_FILE_$(PRJ_DIR)/compConfig.c_infoTags
|
||||
toolMacro objects
|
||||
<END>
|
||||
|
||||
<BEGIN> BUILD_PENTIUM2gnu.release_FILE_$(PRJ_DIR)/compConfig.c_objects
|
||||
compConfig.o
|
||||
<END>
|
||||
|
||||
<BEGIN> BUILD_PENTIUM2gnu.release_FILE_$(PRJ_DIR)/compConfig.c_toolMacro
|
||||
CC
|
||||
<END>
|
||||
|
||||
<BEGIN> BUILD_PENTIUM2gnu.release_MACRO_AR
|
||||
arpentium
|
||||
<END>
|
||||
|
||||
<BEGIN> BUILD_PENTIUM2gnu.release_MACRO_AS
|
||||
ccpentium
|
||||
<END>
|
||||
|
||||
<BEGIN> BUILD_PENTIUM2gnu.release_MACRO_CC
|
||||
ccpentium
|
||||
<END>
|
||||
|
||||
<BEGIN> BUILD_PENTIUM2gnu.release_MACRO_CFLAGS
|
||||
-mcpu=pentiumpro \
|
||||
-march=pentiumpro \
|
||||
-ansi \
|
||||
-DRW_MULTI_THREAD \
|
||||
-D_REENTRANT \
|
||||
-O2 \
|
||||
-nostdlib \
|
||||
-fno-builtin \
|
||||
-fno-defer-pop \
|
||||
-MD \
|
||||
-Wall \
|
||||
-I. \
|
||||
-I$(WIND_BASE)/target/h \
|
||||
-I$(PRJ_DIR)/../.. \
|
||||
-I$(PRJ_DIR)/../../.. \
|
||||
-DCPU=PENTIUM2
|
||||
<END>
|
||||
|
||||
<BEGIN> BUILD_PENTIUM2gnu.release_MACRO_CFLAGS_AS
|
||||
-mcpu=pentiumpro \
|
||||
-march=pentiumpro \
|
||||
-ansi \
|
||||
-O2 \
|
||||
-nostdlib \
|
||||
-fno-builtin \
|
||||
-fno-defer-pop \
|
||||
-P \
|
||||
-x \
|
||||
assembler-with-cpp \
|
||||
-Wall \
|
||||
-I. \
|
||||
-I$(WIND_BASE)/target/h \
|
||||
-DCPU=PENTIUM2
|
||||
<END>
|
||||
|
||||
<BEGIN> BUILD_PENTIUM2gnu.release_MACRO_CPP
|
||||
ccpentium -E -P
|
||||
<END>
|
||||
|
||||
<BEGIN> BUILD_PENTIUM2gnu.release_MACRO_CPPFILT
|
||||
c++filtpentium --strip-underscores
|
||||
<END>
|
||||
|
||||
<BEGIN> BUILD_PENTIUM2gnu.release_MACRO_LD
|
||||
ldpentium
|
||||
<END>
|
||||
|
||||
<BEGIN> BUILD_PENTIUM2gnu.release_MACRO_LDFLAGS
|
||||
-X
|
||||
<END>
|
||||
|
||||
<BEGIN> BUILD_PENTIUM2gnu.release_MACRO_LDPARTIAL
|
||||
ccpentium \
|
||||
-B$(WIND_BASE)/host/$(WIND_HOST_TYPE)/lib/gcc-lib/ \
|
||||
-nostdlib \
|
||||
-r \
|
||||
-Wl,-X
|
||||
<END>
|
||||
|
||||
<BEGIN> BUILD_PENTIUM2gnu.release_MACRO_LD_PARTIAL_FLAGS
|
||||
-X -r
|
||||
<END>
|
||||
|
||||
<BEGIN> BUILD_PENTIUM2gnu.release_MACRO_NM
|
||||
nmpentium -g
|
||||
<END>
|
||||
|
||||
<BEGIN> BUILD_PENTIUM2gnu.release_MACRO_OPTION_DEFINE_MACRO
|
||||
-D
|
||||
<END>
|
||||
|
||||
<BEGIN> BUILD_PENTIUM2gnu.release_MACRO_OPTION_GENERATE_DEPENDENCY_FILE
|
||||
-MD
|
||||
<END>
|
||||
|
||||
<BEGIN> BUILD_PENTIUM2gnu.release_MACRO_OPTION_INCLUDE_DIR
|
||||
-I
|
||||
<END>
|
||||
|
||||
<BEGIN> BUILD_PENTIUM2gnu.release_MACRO_RELEASE
|
||||
1
|
||||
<END>
|
||||
|
||||
<BEGIN> BUILD_PENTIUM2gnu.release_MACRO_SIZE
|
||||
sizepentium
|
||||
<END>
|
||||
|
||||
<BEGIN> BUILD_PENTIUM2gnu.release_RELEASE
|
||||
1
|
||||
<END>
|
||||
|
||||
<BEGIN> BUILD_PENTIUM2gnu.release_RO_DEPEND_PATH
|
||||
$(WIND_BASE)/target/h/
|
||||
<END>
|
||||
|
||||
<BEGIN> BUILD_PENTIUM2gnu.release_TC
|
||||
::tc_PENTIUM2gnu.release
|
||||
<END>
|
||||
|
||||
<BEGIN> BUILD_PENTIUMgnu.debug_DEFAULTFORCPU
|
||||
1
|
||||
<END>
|
||||
|
||||
<BEGIN> BUILD_PENTIUMgnu.debug_FILE_$(PRJ_DIR)/../db_dump.c_infoTags
|
||||
toolMacro objects
|
||||
<END>
|
||||
|
||||
<BEGIN> BUILD_PENTIUMgnu.debug_FILE_$(PRJ_DIR)/../db_dump.c_objects
|
||||
db_dump.o
|
||||
<END>
|
||||
|
||||
<BEGIN> BUILD_PENTIUMgnu.debug_FILE_$(PRJ_DIR)/../db_dump.c_toolMacro
|
||||
CC
|
||||
<END>
|
||||
|
||||
<BEGIN> BUILD_PENTIUMgnu.debug_FILE_$(PRJ_DIR)/compConfig.c_infoTags
|
||||
toolMacro objects
|
||||
<END>
|
||||
|
||||
<BEGIN> BUILD_PENTIUMgnu.debug_FILE_$(PRJ_DIR)/compConfig.c_objects
|
||||
compConfig.o
|
||||
<END>
|
||||
|
||||
<BEGIN> BUILD_PENTIUMgnu.debug_FILE_$(PRJ_DIR)/compConfig.c_toolMacro
|
||||
CC
|
||||
<END>
|
||||
|
||||
<BEGIN> BUILD_PENTIUMgnu.debug_MACRO_AR
|
||||
arpentium
|
||||
<END>
|
||||
|
||||
<BEGIN> BUILD_PENTIUMgnu.debug_MACRO_AS
|
||||
ccpentium
|
||||
<END>
|
||||
|
||||
<BEGIN> BUILD_PENTIUMgnu.debug_MACRO_CC
|
||||
ccpentium
|
||||
<END>
|
||||
|
||||
<BEGIN> BUILD_PENTIUMgnu.debug_MACRO_CFLAGS
|
||||
-mcpu=pentium \
|
||||
-march=pentium \
|
||||
-ansi \
|
||||
-DRW_MULTI_THREAD \
|
||||
-D_REENTRANT \
|
||||
-g \
|
||||
-nostdlib \
|
||||
-fno-builtin \
|
||||
-fno-defer-pop \
|
||||
-MD \
|
||||
-Wall \
|
||||
-I. \
|
||||
-I$(WIND_BASE)/target/h \
|
||||
-I$(PRJ_DIR)/../.. \
|
||||
-I$(PRJ_DIR)/../../.. \
|
||||
-DCPU=PENTIUM
|
||||
<END>
|
||||
|
||||
<BEGIN> BUILD_PENTIUMgnu.debug_MACRO_CFLAGS_AS
|
||||
-mcpu=pentium \
|
||||
-march=pentium \
|
||||
-ansi \
|
||||
-g \
|
||||
-nostdlib \
|
||||
-fno-builtin \
|
||||
-fno-defer-pop \
|
||||
-P \
|
||||
-x \
|
||||
assembler-with-cpp \
|
||||
-Wall \
|
||||
-I. \
|
||||
-I$(WIND_BASE)/target/h \
|
||||
-DCPU=PENTIUM
|
||||
<END>
|
||||
|
||||
<BEGIN> BUILD_PENTIUMgnu.debug_MACRO_CPP
|
||||
ccpentium -E -P
|
||||
<END>
|
||||
|
||||
<BEGIN> BUILD_PENTIUMgnu.debug_MACRO_CPPFILT
|
||||
c++filtpentium --strip-underscores
|
||||
<END>
|
||||
|
||||
<BEGIN> BUILD_PENTIUMgnu.debug_MACRO_LD
|
||||
ldpentium
|
||||
<END>
|
||||
|
||||
<BEGIN> BUILD_PENTIUMgnu.debug_MACRO_LDFLAGS
|
||||
-X
|
||||
<END>
|
||||
|
||||
<BEGIN> BUILD_PENTIUMgnu.debug_MACRO_LDPARTIAL
|
||||
ccpentium \
|
||||
-B$(WIND_BASE)/host/$(WIND_HOST_TYPE)/lib/gcc-lib/ \
|
||||
-nostdlib \
|
||||
-r \
|
||||
-Wl,-X
|
||||
<END>
|
||||
|
||||
<BEGIN> BUILD_PENTIUMgnu.debug_MACRO_LD_PARTIAL_FLAGS
|
||||
-X -r
|
||||
<END>
|
||||
|
||||
<BEGIN> BUILD_PENTIUMgnu.debug_MACRO_NM
|
||||
nmpentium -g
|
||||
<END>
|
||||
|
||||
<BEGIN> BUILD_PENTIUMgnu.debug_MACRO_OPTION_DEFINE_MACRO
|
||||
-D
|
||||
<END>
|
||||
|
||||
<BEGIN> BUILD_PENTIUMgnu.debug_MACRO_OPTION_GENERATE_DEPENDENCY_FILE
|
||||
-MD
|
||||
<END>
|
||||
|
||||
<BEGIN> BUILD_PENTIUMgnu.debug_MACRO_OPTION_INCLUDE_DIR
|
||||
-I
|
||||
<END>
|
||||
|
||||
<BEGIN> BUILD_PENTIUMgnu.debug_MACRO_RELEASE
|
||||
0
|
||||
<END>
|
||||
|
||||
<BEGIN> BUILD_PENTIUMgnu.debug_MACRO_SIZE
|
||||
sizepentium
|
||||
<END>
|
||||
|
||||
<BEGIN> BUILD_PENTIUMgnu.debug_RELEASE
|
||||
0
|
||||
<END>
|
||||
|
||||
<BEGIN> BUILD_PENTIUMgnu.debug_RO_DEPEND_PATH
|
||||
$(WIND_BASE)/target/h/
|
||||
<END>
|
||||
|
||||
<BEGIN> BUILD_PENTIUMgnu.debug_TC
|
||||
::tc_PENTIUMgnu.debug
|
||||
<END>
|
||||
|
||||
<BEGIN> BUILD__LIST
|
||||
PENTIUM2gnu.debug PENTIUM2gnu.release PENTIUMgnu.debug
|
||||
<END>
|
||||
|
||||
<BEGIN> PROJECT_FILES
|
||||
$(PRJ_DIR)/../db_dump.c \
|
||||
$(PRJ_DIR)/compConfig.c
|
||||
<END>
|
||||
|
||||
<BEGIN> WCC__CDF_PATH
|
||||
$(PRJ_DIR)
|
||||
<END>
|
||||
|
||||
<BEGIN> WCC__CURRENT
|
||||
PENTIUM2gnu.debug
|
||||
<END>
|
||||
|
||||
<BEGIN> WCC__LIST
|
||||
PENTIUM2gnu.debug
|
||||
<END>
|
||||
|
||||
<BEGIN> WCC__MXR_LIBS
|
||||
lib$(CPU)$(TOOL)vx.a
|
||||
<END>
|
||||
|
||||
<BEGIN> WCC__OBJS_PATH
|
||||
$(WIND_BASE)/target/lib/obj$CPU$TOOLvx
|
||||
<END>
|
||||
|
File diff suppressed because it is too large
Load Diff
@ -1,160 +0,0 @@
|
||||
Document file - DO NOT EDIT
|
||||
|
||||
<BEGIN> BUILD_PENTIUMgnu_BUILDRULE
|
||||
db_load.out
|
||||
<END>
|
||||
|
||||
<BEGIN> BUILD_PENTIUMgnu_MACRO_AR
|
||||
ar386
|
||||
<END>
|
||||
|
||||
<BEGIN> BUILD_PENTIUMgnu_MACRO_ARCHIVE
|
||||
$(PRJ_DIR)/PENTIUMgnu/db_load.a
|
||||
<END>
|
||||
|
||||
<BEGIN> BUILD_PENTIUMgnu_MACRO_AS
|
||||
cc386
|
||||
<END>
|
||||
|
||||
<BEGIN> BUILD_PENTIUMgnu_MACRO_CC
|
||||
cc386
|
||||
<END>
|
||||
|
||||
<BEGIN> BUILD_PENTIUMgnu_MACRO_CFLAGS
|
||||
-g \
|
||||
-mpentium \
|
||||
-ansi \
|
||||
-nostdinc \
|
||||
-DRW_MULTI_THREAD \
|
||||
-D_REENTRANT \
|
||||
-fvolatile \
|
||||
-nostdlib \
|
||||
-fno-builtin \
|
||||
-fno-defer-pop \
|
||||
-I$(PRJ_DIR)/.. \
|
||||
-I$(PRJ_DIR)/../.. \
|
||||
-I$(WIND_BASE)/target/h \
|
||||
-DCPU=PENTIUM
|
||||
<END>
|
||||
|
||||
<BEGIN> BUILD_PENTIUMgnu_MACRO_CFLAGS_AS
|
||||
-g \
|
||||
-mpentium \
|
||||
-ansi \
|
||||
-nostdinc \
|
||||
-fvolatile \
|
||||
-nostdlib \
|
||||
-fno-builtin \
|
||||
-fno-defer-pop \
|
||||
-P \
|
||||
-x \
|
||||
assembler-with-cpp \
|
||||
-I$(WIND_BASE)/target/h \
|
||||
-DCPU=PENTIUM
|
||||
<END>
|
||||
|
||||
<BEGIN> BUILD_PENTIUMgnu_MACRO_CPP
|
||||
cc386 -E -P -xc
|
||||
<END>
|
||||
|
||||
<BEGIN> BUILD_PENTIUMgnu_MACRO_LD
|
||||
ld386
|
||||
<END>
|
||||
|
||||
<BEGIN> BUILD_PENTIUMgnu_MACRO_LDDEPS
|
||||
|
||||
<END>
|
||||
|
||||
<BEGIN> BUILD_PENTIUMgnu_MACRO_LDFLAGS
|
||||
-X -N
|
||||
<END>
|
||||
|
||||
<BEGIN> BUILD_PENTIUMgnu_MACRO_LD_PARTIAL_FLAGS
|
||||
-X -r
|
||||
<END>
|
||||
|
||||
<BEGIN> BUILD_PENTIUMgnu_MACRO_NM
|
||||
nm386 -g
|
||||
<END>
|
||||
|
||||
<BEGIN> BUILD_PENTIUMgnu_MACRO_OPTION_DEFINE_MACRO
|
||||
-D
|
||||
<END>
|
||||
|
||||
<BEGIN> BUILD_PENTIUMgnu_MACRO_OPTION_INCLUDE_DIR
|
||||
-I
|
||||
<END>
|
||||
|
||||
<BEGIN> BUILD_PENTIUMgnu_MACRO_POST_BUILD_RULE
|
||||
|
||||
<END>
|
||||
|
||||
<BEGIN> BUILD_PENTIUMgnu_MACRO_PRJ_LIBS
|
||||
|
||||
<END>
|
||||
|
||||
<BEGIN> BUILD_PENTIUMgnu_MACRO_SIZE
|
||||
size386
|
||||
<END>
|
||||
|
||||
<BEGIN> BUILD_PENTIUMgnu_RO_DEPEND_PATH
|
||||
{$(WIND_BASE)/target/h/} \
|
||||
{$(WIND_BASE)/target/src/} \
|
||||
{$(WIND_BASE)/target/config/}
|
||||
<END>
|
||||
|
||||
<BEGIN> BUILD_PENTIUMgnu_TC
|
||||
::tc_PENTIUMgnu
|
||||
<END>
|
||||
|
||||
<BEGIN> BUILD_RULE_archive
|
||||
|
||||
<END>
|
||||
|
||||
<BEGIN> BUILD_RULE_db_load.out
|
||||
|
||||
<END>
|
||||
|
||||
<BEGIN> BUILD_RULE_objects
|
||||
|
||||
<END>
|
||||
|
||||
<BEGIN> BUILD__CURRENT
|
||||
PENTIUMgnu
|
||||
<END>
|
||||
|
||||
<BEGIN> BUILD__LIST
|
||||
PENTIUMgnu
|
||||
<END>
|
||||
|
||||
<BEGIN> CORE_INFO_TYPE
|
||||
::prj_vxApp
|
||||
<END>
|
||||
|
||||
<BEGIN> CORE_INFO_VERSION
|
||||
2.0
|
||||
<END>
|
||||
|
||||
<BEGIN> FILE_db_load.c_dependDone
|
||||
FALSE
|
||||
<END>
|
||||
|
||||
<BEGIN> FILE_db_load.c_dependencies
|
||||
|
||||
<END>
|
||||
|
||||
<BEGIN> FILE_db_load.c_objects
|
||||
db_load.o
|
||||
<END>
|
||||
|
||||
<BEGIN> FILE_db_load.c_tool
|
||||
C/C++ compiler
|
||||
<END>
|
||||
|
||||
<BEGIN> PROJECT_FILES
|
||||
$(PRJ_DIR)/db_load.c
|
||||
<END>
|
||||
|
||||
<BEGIN> userComments
|
||||
db_load
|
||||
<END>
|
@ -1,51 +0,0 @@
|
||||
#
|
||||
# Custom Makefile shell
|
||||
#
|
||||
# This file may be edited freely, since it will not be regenerated
|
||||
# by the project manager.
|
||||
#
|
||||
# Use this makefile to define rules to make external binaries
|
||||
# and deposit them in the $(EXTERNAL_BINARIES_DIR) directory.
|
||||
#
|
||||
# If you have specified external modules during your component
|
||||
# creation, you will find make rules already in place below.
|
||||
# You will likely have to edit these to suit your individual
|
||||
# build setup.
|
||||
#
|
||||
# You may wish to use the CPU, BUILD_SPEC or TOOL make variables in
|
||||
# your Makefile to support builds for different architectures. Use
|
||||
# the FORCE_EXTERNAL_MAKE phony target to ensure that your external
|
||||
# make always runs.
|
||||
#
|
||||
# The example below assumes that your custom makefile is in the
|
||||
# mySourceTree directory, and that the binary file it produces
|
||||
# is placed into the $(BUILD_SPEC) sub-directory.
|
||||
#
|
||||
# EXTERNAL_SOURCE_BASE = /folk/me/mySourceTree
|
||||
# EXTERNAL_MODULE = myLibrary.o
|
||||
# EXTERNAL_MAKE = make
|
||||
#
|
||||
# $(EXTERNAL_BINARIES_DIR)/$(EXTERNAL_MODULE) : FORCE_EXTERNAL_MAKE
|
||||
# $(EXTERNAL_MAKE) -C $(EXTERNAL_SOURCE_BASE) \
|
||||
# -f $(EXTERNAL_SOURCE_BASE)/Makefile \
|
||||
# CPU=$(CPU) BUILD_SPEC=$(BUILD_SPEC) $(@F)
|
||||
# $(CP) $(subst /,$(DIRCHAR),$(EXTERNAL_SOURCE_BASE)/$(BUILD_SPEC)/$(@F) $@)
|
||||
#
|
||||
# If you are not adding your external modules from the component wizard,
|
||||
# you will have to include them in your component yourself:
|
||||
#
|
||||
# From the GUI, you can do this with the Component's 'Add external module'
|
||||
# dialog.
|
||||
#
|
||||
# If you are using the command line, add the module(s) by editing the
|
||||
# MODULES line in component.cdf file, e.g.
|
||||
#
|
||||
# Component INCLUDE_MYCOMPONENT {
|
||||
#
|
||||
# MODULES foo.o goo.o \
|
||||
# myLibrary.o
|
||||
#
|
||||
|
||||
|
||||
# rules to build custom libraries
|
||||
|
@ -1,30 +0,0 @@
|
||||
/* component.cdf - dynamically updated configuration */
|
||||
|
||||
/*
|
||||
* NOTE: you may edit this file to alter the configuration
|
||||
* But all non-configuration information, including comments,
|
||||
* will be lost upon rebuilding this project.
|
||||
*/
|
||||
|
||||
/* Component information */
|
||||
|
||||
Component INCLUDE_DB_LOAD {
|
||||
ENTRY_POINTS ALL_GLOBAL_SYMBOLS
|
||||
MODULES db_load.o
|
||||
NAME db_load
|
||||
PREF_DOMAIN ANY
|
||||
_INIT_ORDER usrComponentsInit
|
||||
}
|
||||
|
||||
/* EntryPoint information */
|
||||
|
||||
/* Module information */
|
||||
|
||||
Module db_load.o {
|
||||
|
||||
NAME db_load.o
|
||||
SRC_PATH_NAME $PRJ_DIR/../db_load.c
|
||||
}
|
||||
|
||||
/* Parameter information */
|
||||
|
@ -1,475 +0,0 @@
|
||||
Document file - DO NOT EDIT
|
||||
|
||||
<BEGIN> CORE_INFO_TYPE
|
||||
::prj_component
|
||||
<END>
|
||||
|
||||
<BEGIN> CORE_INFO_VERSION
|
||||
AE1.1
|
||||
<END>
|
||||
|
||||
<BEGIN> BUILD__CURRENT
|
||||
PENTIUM2gnu.debug
|
||||
<END>
|
||||
|
||||
<BEGIN> BUILD_PENTIUM2gnu.debug_CURRENT_TARGET
|
||||
default
|
||||
<END>
|
||||
|
||||
<BEGIN> BUILD_PENTIUM2gnu.debug_DEFAULTFORCPU
|
||||
1
|
||||
<END>
|
||||
|
||||
<BEGIN> BUILD_PENTIUM2gnu.debug_FILE_$(PRJ_DIR)/../db_load.c_infoTags
|
||||
toolMacro objects
|
||||
<END>
|
||||
|
||||
<BEGIN> BUILD_PENTIUM2gnu.debug_FILE_$(PRJ_DIR)/../db_load.c_objects
|
||||
db_load.o
|
||||
<END>
|
||||
|
||||
<BEGIN> BUILD_PENTIUM2gnu.debug_FILE_$(PRJ_DIR)/../db_load.c_toolMacro
|
||||
CC
|
||||
<END>
|
||||
|
||||
<BEGIN> BUILD_PENTIUM2gnu.debug_FILE_$(PRJ_DIR)/../db_load.c_objects
|
||||
db_load.o
|
||||
<END>
|
||||
|
||||
<BEGIN> BUILD_PENTIUM2gnu.debug_FILE_$(PRJ_DIR)/../db_load.c_toolMacro
|
||||
CC
|
||||
<END>
|
||||
|
||||
<BEGIN> BUILD_PENTIUM2gnu.debug_FILE_$(PRJ_DIR)/compConfig.c_infoTags
|
||||
toolMacro objects
|
||||
<END>
|
||||
|
||||
<BEGIN> BUILD_PENTIUM2gnu.debug_FILE_$(PRJ_DIR)/compConfig.c_objects
|
||||
compConfig.o
|
||||
<END>
|
||||
|
||||
<BEGIN> BUILD_PENTIUM2gnu.debug_FILE_$(PRJ_DIR)/compConfig.c_toolMacro
|
||||
CC
|
||||
<END>
|
||||
|
||||
<BEGIN> BUILD_PENTIUM2gnu.debug_MACRO_AR
|
||||
arpentium
|
||||
<END>
|
||||
|
||||
<BEGIN> BUILD_PENTIUM2gnu.debug_MACRO_AS
|
||||
ccpentium
|
||||
<END>
|
||||
|
||||
<BEGIN> BUILD_PENTIUM2gnu.debug_MACRO_CC
|
||||
ccpentium
|
||||
<END>
|
||||
|
||||
<BEGIN> BUILD_PENTIUM2gnu.debug_MACRO_CFLAGS
|
||||
-mcpu=pentiumpro \
|
||||
-march=pentiumpro \
|
||||
-ansi \
|
||||
-DRW_MULTI_THREAD \
|
||||
-D_REENTRANT \
|
||||
-g \
|
||||
-nostdlib \
|
||||
-fno-builtin \
|
||||
-fno-defer-pop \
|
||||
-MD \
|
||||
-Wall \
|
||||
-I. \
|
||||
-I$(WIND_BASE)/target/h \
|
||||
-I$(PRJ_DIR)/../.. \
|
||||
-I$(PRJ_DIR)/../../.. \
|
||||
-DCPU=PENTIUM2
|
||||
<END>
|
||||
|
||||
<BEGIN> BUILD_PENTIUM2gnu.debug_MACRO_CFLAGS_AS
|
||||
-mcpu=pentiumpro \
|
||||
-march=pentiumpro \
|
||||
-ansi \
|
||||
-g \
|
||||
-nostdlib \
|
||||
-fno-builtin \
|
||||
-fno-defer-pop \
|
||||
-P \
|
||||
-x \
|
||||
assembler-with-cpp \
|
||||
-Wall \
|
||||
-I. \
|
||||
-I$(WIND_BASE)/target/h \
|
||||
-DCPU=PENTIUM2
|
||||
<END>
|
||||
|
||||
<BEGIN> BUILD_PENTIUM2gnu.debug_MACRO_CPP
|
||||
ccpentium -E -P
|
||||
<END>
|
||||
|
||||
<BEGIN> BUILD_PENTIUM2gnu.debug_MACRO_CPPFILT
|
||||
c++filtpentium --strip-underscores
|
||||
<END>
|
||||
|
||||
<BEGIN> BUILD_PENTIUM2gnu.debug_MACRO_LD
|
||||
ldpentium
|
||||
<END>
|
||||
|
||||
<BEGIN> BUILD_PENTIUM2gnu.debug_MACRO_LDFLAGS
|
||||
-X
|
||||
<END>
|
||||
|
||||
<BEGIN> BUILD_PENTIUM2gnu.debug_MACRO_LDPARTIAL
|
||||
ccpentium \
|
||||
-B$(WIND_BASE)/host/$(WIND_HOST_TYPE)/lib/gcc-lib/ \
|
||||
-nostdlib \
|
||||
-r \
|
||||
-Wl,-X
|
||||
<END>
|
||||
|
||||
<BEGIN> BUILD_PENTIUM2gnu.debug_MACRO_LD_PARTIAL_FLAGS
|
||||
-X -r
|
||||
<END>
|
||||
|
||||
<BEGIN> BUILD_PENTIUM2gnu.debug_MACRO_NM
|
||||
nmpentium -g
|
||||
<END>
|
||||
|
||||
<BEGIN> BUILD_PENTIUM2gnu.debug_MACRO_OPTION_DEFINE_MACRO
|
||||
-D
|
||||
<END>
|
||||
|
||||
<BEGIN> BUILD_PENTIUM2gnu.debug_MACRO_OPTION_GENERATE_DEPENDENCY_FILE
|
||||
-MD
|
||||
<END>
|
||||
|
||||
<BEGIN> BUILD_PENTIUM2gnu.debug_MACRO_OPTION_INCLUDE_DIR
|
||||
-I
|
||||
<END>
|
||||
|
||||
<BEGIN> BUILD_PENTIUM2gnu.debug_MACRO_RELEASE
|
||||
0
|
||||
<END>
|
||||
|
||||
<BEGIN> BUILD_PENTIUM2gnu.debug_MACRO_SIZE
|
||||
sizepentium
|
||||
<END>
|
||||
|
||||
<BEGIN> BUILD_PENTIUM2gnu.debug_RELEASE
|
||||
0
|
||||
<END>
|
||||
|
||||
<BEGIN> BUILD_PENTIUM2gnu.debug_RO_DEPEND_PATH
|
||||
$(WIND_BASE)/target/h/
|
||||
<END>
|
||||
|
||||
<BEGIN> BUILD_PENTIUM2gnu.debug_TC
|
||||
::tc_PENTIUM2gnu.debug
|
||||
<END>
|
||||
|
||||
<BEGIN> BUILD_PENTIUM2gnu.release_DEFAULTFORCPU
|
||||
0
|
||||
<END>
|
||||
|
||||
<BEGIN> BUILD_PENTIUM2gnu.release_FILE_$(PRJ_DIR)/../db_load.c_infoTags
|
||||
toolMacro objects
|
||||
<END>
|
||||
|
||||
<BEGIN> BUILD_PENTIUM2gnu.release_FILE_$(PRJ_DIR)/../db_load.c_objects
|
||||
db_load.o
|
||||
<END>
|
||||
|
||||
<BEGIN> BUILD_PENTIUM2gnu.release_FILE_$(PRJ_DIR)/../db_load.c_toolMacro
|
||||
CC
|
||||
<END>
|
||||
|
||||
<BEGIN> BUILD_PENTIUM2gnu.release_FILE_$(PRJ_DIR)/compConfig.c_infoTags
|
||||
toolMacro objects
|
||||
<END>
|
||||
|
||||
<BEGIN> BUILD_PENTIUM2gnu.release_FILE_$(PRJ_DIR)/compConfig.c_objects
|
||||
compConfig.o
|
||||
<END>
|
||||
|
||||
<BEGIN> BUILD_PENTIUM2gnu.release_FILE_$(PRJ_DIR)/compConfig.c_toolMacro
|
||||
CC
|
||||
<END>
|
||||
|
||||
<BEGIN> BUILD_PENTIUM2gnu.release_MACRO_AR
|
||||
arpentium
|
||||
<END>
|
||||
|
||||
<BEGIN> BUILD_PENTIUM2gnu.release_MACRO_AS
|
||||
ccpentium
|
||||
<END>
|
||||
|
||||
<BEGIN> BUILD_PENTIUM2gnu.release_MACRO_CC
|
||||
ccpentium
|
||||
<END>
|
||||
|
||||
<BEGIN> BUILD_PENTIUM2gnu.release_MACRO_CFLAGS
|
||||
-mcpu=pentiumpro \
|
||||
-march=pentiumpro \
|
||||
-ansi \
|
||||
-DRW_MULTI_THREAD \
|
||||
-D_REENTRANT \
|
||||
-O2 \
|
||||
-nostdlib \
|
||||
-fno-builtin \
|
||||
-fno-defer-pop \
|
||||
-MD \
|
||||
-Wall \
|
||||
-I. \
|
||||
-I$(WIND_BASE)/target/h \
|
||||
-I$(PRJ_DIR)/../.. \
|
||||
-I$(PRJ_DIR)/../../.. \
|
||||
-DCPU=PENTIUM2
|
||||
<END>
|
||||
|
||||
<BEGIN> BUILD_PENTIUM2gnu.release_MACRO_CFLAGS_AS
|
||||
-mcpu=pentiumpro \
|
||||
-march=pentiumpro \
|
||||
-ansi \
|
||||
-O2 \
|
||||
-nostdlib \
|
||||
-fno-builtin \
|
||||
-fno-defer-pop \
|
||||
-P \
|
||||
-x \
|
||||
assembler-with-cpp \
|
||||
-Wall \
|
||||
-I. \
|
||||
-I$(WIND_BASE)/target/h \
|
||||
-DCPU=PENTIUM2
|
||||
<END>
|
||||
|
||||
<BEGIN> BUILD_PENTIUM2gnu.release_MACRO_CPP
|
||||
ccpentium -E -P
|
||||
<END>
|
||||
|
||||
<BEGIN> BUILD_PENTIUM2gnu.release_MACRO_CPPFILT
|
||||
c++filtpentium --strip-underscores
|
||||
<END>
|
||||
|
||||
<BEGIN> BUILD_PENTIUM2gnu.release_MACRO_LD
|
||||
ldpentium
|
||||
<END>
|
||||
|
||||
<BEGIN> BUILD_PENTIUM2gnu.release_MACRO_LDFLAGS
|
||||
-X
|
||||
<END>
|
||||
|
||||
<BEGIN> BUILD_PENTIUM2gnu.release_MACRO_LDPARTIAL
|
||||
ccpentium \
|
||||
-B$(WIND_BASE)/host/$(WIND_HOST_TYPE)/lib/gcc-lib/ \
|
||||
-nostdlib \
|
||||
-r \
|
||||
-Wl,-X
|
||||
<END>
|
||||
|
||||
<BEGIN> BUILD_PENTIUM2gnu.release_MACRO_LD_PARTIAL_FLAGS
|
||||
-X -r
|
||||
<END>
|
||||
|
||||
<BEGIN> BUILD_PENTIUM2gnu.release_MACRO_NM
|
||||
nmpentium -g
|
||||
<END>
|
||||
|
||||
<BEGIN> BUILD_PENTIUM2gnu.release_MACRO_OPTION_DEFINE_MACRO
|
||||
-D
|
||||
<END>
|
||||
|
||||
<BEGIN> BUILD_PENTIUM2gnu.release_MACRO_OPTION_GENERATE_DEPENDENCY_FILE
|
||||
-MD
|
||||
<END>
|
||||
|
||||
<BEGIN> BUILD_PENTIUM2gnu.release_MACRO_OPTION_INCLUDE_DIR
|
||||
-I
|
||||
<END>
|
||||
|
||||
<BEGIN> BUILD_PENTIUM2gnu.release_MACRO_RELEASE
|
||||
1
|
||||
<END>
|
||||
|
||||
<BEGIN> BUILD_PENTIUM2gnu.release_MACRO_SIZE
|
||||
sizepentium
|
||||
<END>
|
||||
|
||||
<BEGIN> BUILD_PENTIUM2gnu.release_RELEASE
|
||||
1
|
||||
<END>
|
||||
|
||||
<BEGIN> BUILD_PENTIUM2gnu.release_RO_DEPEND_PATH
|
||||
$(WIND_BASE)/target/h/
|
||||
<END>
|
||||
|
||||
<BEGIN> BUILD_PENTIUM2gnu.release_TC
|
||||
::tc_PENTIUM2gnu.release
|
||||
<END>
|
||||
|
||||
<BEGIN> BUILD_PENTIUMgnu.debug_DEFAULTFORCPU
|
||||
1
|
||||
<END>
|
||||
|
||||
<BEGIN> BUILD_PENTIUMgnu.debug_FILE_$(PRJ_DIR)/../db_load.c_infoTags
|
||||
toolMacro objects
|
||||
<END>
|
||||
|
||||
<BEGIN> BUILD_PENTIUMgnu.debug_FILE_$(PRJ_DIR)/../db_load.c_objects
|
||||
db_load.o
|
||||
<END>
|
||||
|
||||
<BEGIN> BUILD_PENTIUMgnu.debug_FILE_$(PRJ_DIR)/../db_load.c_toolMacro
|
||||
CC
|
||||
<END>
|
||||
|
||||
<BEGIN> BUILD_PENTIUMgnu.debug_FILE_$(PRJ_DIR)/compConfig.c_infoTags
|
||||
toolMacro objects
|
||||
<END>
|
||||
|
||||
<BEGIN> BUILD_PENTIUMgnu.debug_FILE_$(PRJ_DIR)/compConfig.c_objects
|
||||
compConfig.o
|
||||
<END>
|
||||
|
||||
<BEGIN> BUILD_PENTIUMgnu.debug_FILE_$(PRJ_DIR)/compConfig.c_toolMacro
|
||||
CC
|
||||
<END>
|
||||
|
||||
<BEGIN> BUILD_PENTIUMgnu.debug_MACRO_AR
|
||||
arpentium
|
||||
<END>
|
||||
|
||||
<BEGIN> BUILD_PENTIUMgnu.debug_MACRO_AS
|
||||
ccpentium
|
||||
<END>
|
||||
|
||||
<BEGIN> BUILD_PENTIUMgnu.debug_MACRO_CC
|
||||
ccpentium
|
||||
<END>
|
||||
|
||||
<BEGIN> BUILD_PENTIUMgnu.debug_MACRO_CFLAGS
|
||||
-mcpu=pentium \
|
||||
-march=pentium \
|
||||
-ansi \
|
||||
-DRW_MULTI_THREAD \
|
||||
-D_REENTRANT \
|
||||
-g \
|
||||
-nostdlib \
|
||||
-fno-builtin \
|
||||
-fno-defer-pop \
|
||||
-MD \
|
||||
-Wall \
|
||||
-I. \
|
||||
-I$(WIND_BASE)/target/h \
|
||||
-I$(PRJ_DIR)/../.. \
|
||||
-I$(PRJ_DIR)/../../.. \
|
||||
-DCPU=PENTIUM
|
||||
<END>
|
||||
|
||||
<BEGIN> BUILD_PENTIUMgnu.debug_MACRO_CFLAGS_AS
|
||||
-mcpu=pentium \
|
||||
-march=pentium \
|
||||
-ansi \
|
||||
-g \
|
||||
-nostdlib \
|
||||
-fno-builtin \
|
||||
-fno-defer-pop \
|
||||
-P \
|
||||
-x \
|
||||
assembler-with-cpp \
|
||||
-Wall \
|
||||
-I. \
|
||||
-I$(WIND_BASE)/target/h \
|
||||
-DCPU=PENTIUM
|
||||
<END>
|
||||
|
||||
<BEGIN> BUILD_PENTIUMgnu.debug_MACRO_CPP
|
||||
ccpentium -E -P
|
||||
<END>
|
||||
|
||||
<BEGIN> BUILD_PENTIUMgnu.debug_MACRO_CPPFILT
|
||||
c++filtpentium --strip-underscores
|
||||
<END>
|
||||
|
||||
<BEGIN> BUILD_PENTIUMgnu.debug_MACRO_LD
|
||||
ldpentium
|
||||
<END>
|
||||
|
||||
<BEGIN> BUILD_PENTIUMgnu.debug_MACRO_LDFLAGS
|
||||
-X
|
||||
<END>
|
||||
|
||||
<BEGIN> BUILD_PENTIUMgnu.debug_MACRO_LDPARTIAL
|
||||
ccpentium \
|
||||
-B$(WIND_BASE)/host/$(WIND_HOST_TYPE)/lib/gcc-lib/ \
|
||||
-nostdlib \
|
||||
-r \
|
||||
-Wl,-X
|
||||
<END>
|
||||
|
||||
<BEGIN> BUILD_PENTIUMgnu.debug_MACRO_LD_PARTIAL_FLAGS
|
||||
-X -r
|
||||
<END>
|
||||
|
||||
<BEGIN> BUILD_PENTIUMgnu.debug_MACRO_NM
|
||||
nmpentium -g
|
||||
<END>
|
||||
|
||||
<BEGIN> BUILD_PENTIUMgnu.debug_MACRO_OPTION_DEFINE_MACRO
|
||||
-D
|
||||
<END>
|
||||
|
||||
<BEGIN> BUILD_PENTIUMgnu.debug_MACRO_OPTION_GENERATE_DEPENDENCY_FILE
|
||||
-MD
|
||||
<END>
|
||||
|
||||
<BEGIN> BUILD_PENTIUMgnu.debug_MACRO_OPTION_INCLUDE_DIR
|
||||
-I
|
||||
<END>
|
||||
|
||||
<BEGIN> BUILD_PENTIUMgnu.debug_MACRO_RELEASE
|
||||
0
|
||||
<END>
|
||||
|
||||
<BEGIN> BUILD_PENTIUMgnu.debug_MACRO_SIZE
|
||||
sizepentium
|
||||
<END>
|
||||
|
||||
<BEGIN> BUILD_PENTIUMgnu.debug_RELEASE
|
||||
0
|
||||
<END>
|
||||
|
||||
<BEGIN> BUILD_PENTIUMgnu.debug_RO_DEPEND_PATH
|
||||
$(WIND_BASE)/target/h/
|
||||
<END>
|
||||
|
||||
<BEGIN> BUILD_PENTIUMgnu.debug_TC
|
||||
::tc_PENTIUMgnu.debug
|
||||
<END>
|
||||
|
||||
<BEGIN> BUILD__LIST
|
||||
PENTIUM2gnu.debug PENTIUM2gnu.release PENTIUMgnu.debug
|
||||
<END>
|
||||
|
||||
<BEGIN> PROJECT_FILES
|
||||
$(PRJ_DIR)/../db_load.c \
|
||||
$(PRJ_DIR)/compConfig.c
|
||||
<END>
|
||||
|
||||
<BEGIN> WCC__CDF_PATH
|
||||
$(PRJ_DIR)
|
||||
<END>
|
||||
|
||||
<BEGIN> WCC__CURRENT
|
||||
PENTIUM2gnu.debug
|
||||
<END>
|
||||
|
||||
<BEGIN> WCC__LIST
|
||||
PENTIUM2gnu.debug
|
||||
<END>
|
||||
|
||||
<BEGIN> WCC__MXR_LIBS
|
||||
lib$(CPU)$(TOOL)vx.a
|
||||
<END>
|
||||
|
||||
<BEGIN> WCC__OBJS_PATH
|
||||
$(WIND_BASE)/target/lib/obj$CPU$TOOLvx
|
||||
<END>
|
||||
|
@ -1,375 +0,0 @@
|
||||
/*-
|
||||
* See the file LICENSE for redistribution information.
|
||||
*
|
||||
* Copyright (c) 1996-2002
|
||||
* Sleepycat Software. All rights reserved.
|
||||
*/
|
||||
|
||||
#include "db_config.h"
|
||||
|
||||
#ifndef lint
|
||||
static const char copyright[] =
|
||||
"Copyright (c) 1996-2002\nSleepycat Software Inc. All rights reserved.\n";
|
||||
static const char revid[] =
|
||||
"$Id: db_printlog.c,v 11.52 2002/08/08 03:50:38 bostic Exp $";
|
||||
#endif
|
||||
|
||||
#ifndef NO_SYSTEM_INCLUDES
|
||||
#include <sys/types.h>
|
||||
|
||||
#include <ctype.h>
|
||||
#include <stdio.h>
|
||||
#include <stdlib.h>
|
||||
#include <string.h>
|
||||
#include <unistd.h>
|
||||
#endif
|
||||
|
||||
#include "db_int.h"
|
||||
#include "dbinc/db_page.h"
|
||||
#include "dbinc/btree.h"
|
||||
#include "dbinc/fop.h"
|
||||
#include "dbinc/hash.h"
|
||||
#include "dbinc/log.h"
|
||||
#include "dbinc/qam.h"
|
||||
#include "dbinc/rep.h"
|
||||
#include "dbinc/txn.h"
|
||||
|
||||
int db_printlog_main __P((int, char *[]));
|
||||
int db_printlog_usage __P((void));
|
||||
int db_printlog_version_check __P((const char *));
|
||||
int db_printlog_print_app_record __P((DB_ENV *, DBT *, DB_LSN *, db_recops));
|
||||
int db_printlog_open_rep_db __P((DB_ENV *, DB **, DBC **));
|
||||
|
||||
int
|
||||
db_printlog(args)
|
||||
char *args;
|
||||
{
|
||||
int argc;
|
||||
char **argv;
|
||||
|
||||
__db_util_arg("db_printlog", args, &argc, &argv);
|
||||
return (db_printlog_main(argc, argv) ? EXIT_FAILURE : EXIT_SUCCESS);
|
||||
}
|
||||
|
||||
#include <stdio.h>
|
||||
#define ERROR_RETURN ERROR
|
||||
|
||||
int
|
||||
db_printlog_main(argc, argv)
|
||||
int argc;
|
||||
char *argv[];
|
||||
{
|
||||
extern char *optarg;
|
||||
extern int optind, __db_getopt_reset;
|
||||
const char *progname = "db_printlog";
|
||||
DB *dbp;
|
||||
DBC *dbc;
|
||||
DB_ENV *dbenv;
|
||||
DB_LOGC *logc;
|
||||
int (**dtab) __P((DB_ENV *, DBT *, DB_LSN *, db_recops, void *));
|
||||
size_t dtabsize;
|
||||
DBT data, keydbt;
|
||||
DB_LSN key;
|
||||
int ch, e_close, exitval, nflag, rflag, ret, repflag;
|
||||
char *home, *passwd;
|
||||
|
||||
if ((ret = db_printlog_version_check(progname)) != 0)
|
||||
return (ret);
|
||||
|
||||
dbp = NULL;
|
||||
dbc = NULL;
|
||||
logc = NULL;
|
||||
e_close = exitval = nflag = rflag = repflag = 0;
|
||||
home = passwd = NULL;
|
||||
dtabsize = 0;
|
||||
dtab = NULL;
|
||||
__db_getopt_reset = 1;
|
||||
while ((ch = getopt(argc, argv, "h:NP:rRV")) != EOF)
|
||||
switch (ch) {
|
||||
case 'h':
|
||||
home = optarg;
|
||||
break;
|
||||
case 'N':
|
||||
nflag = 1;
|
||||
break;
|
||||
case 'P':
|
||||
passwd = strdup(optarg);
|
||||
memset(optarg, 0, strlen(optarg));
|
||||
if (passwd == NULL) {
|
||||
fprintf(stderr, "%s: strdup: %s\n",
|
||||
progname, strerror(errno));
|
||||
return (EXIT_FAILURE);
|
||||
}
|
||||
break;
|
||||
case 'r':
|
||||
rflag = 1;
|
||||
break;
|
||||
case 'R':
|
||||
repflag = 1;
|
||||
break;
|
||||
case 'V':
|
||||
printf("%s\n", db_version(NULL, NULL, NULL));
|
||||
return (EXIT_SUCCESS);
|
||||
case '?':
|
||||
default:
|
||||
return (db_printlog_usage());
|
||||
}
|
||||
argc -= optind;
|
||||
argv += optind;
|
||||
|
||||
if (argc > 0)
|
||||
return (db_printlog_usage());
|
||||
|
||||
/* Handle possible interruptions. */
|
||||
__db_util_siginit();
|
||||
|
||||
/*
|
||||
* Create an environment object and initialize it for error
|
||||
* reporting.
|
||||
*/
|
||||
if ((ret = db_env_create(&dbenv, 0)) != 0) {
|
||||
fprintf(stderr,
|
||||
"%s: db_env_create: %s\n", progname, db_strerror(ret));
|
||||
goto shutdown;
|
||||
}
|
||||
e_close = 1;
|
||||
|
||||
dbenv->set_errfile(dbenv, stderr);
|
||||
dbenv->set_errpfx(dbenv, progname);
|
||||
|
||||
if (nflag) {
|
||||
if ((ret = dbenv->set_flags(dbenv, DB_NOLOCKING, 1)) != 0) {
|
||||
dbenv->err(dbenv, ret, "set_flags: DB_NOLOCKING");
|
||||
goto shutdown;
|
||||
}
|
||||
if ((ret = dbenv->set_flags(dbenv, DB_NOPANIC, 1)) != 0) {
|
||||
dbenv->err(dbenv, ret, "set_flags: DB_NOPANIC");
|
||||
goto shutdown;
|
||||
}
|
||||
}
|
||||
|
||||
if (passwd != NULL && (ret = dbenv->set_encrypt(dbenv,
|
||||
passwd, DB_ENCRYPT_AES)) != 0) {
|
||||
dbenv->err(dbenv, ret, "set_passwd");
|
||||
goto shutdown;
|
||||
}
|
||||
|
||||
/*
|
||||
* Set up an app-specific dispatch function so that we can gracefully
|
||||
* handle app-specific log records.
|
||||
*/
|
||||
if ((ret = dbenv->set_app_dispatch(dbenv, db_printlog_print_app_record)) != 0) {
|
||||
dbenv->err(dbenv, ret, "app_dispatch");
|
||||
goto shutdown;
|
||||
}
|
||||
|
||||
/*
|
||||
* An environment is required, but as all we're doing is reading log
|
||||
* files, we create one if it doesn't already exist. If we create
|
||||
* it, create it private so it automatically goes away when we're done.
|
||||
* If we are reading the replication database, do not open the env
|
||||
* with logging, because we don't want to log the opens.
|
||||
*/
|
||||
if (repflag) {
|
||||
if ((ret = dbenv->open(dbenv, home,
|
||||
DB_INIT_MPOOL | DB_USE_ENVIRON, 0)) != 0 &&
|
||||
(ret = dbenv->open(dbenv, home,
|
||||
DB_CREATE | DB_INIT_MPOOL | DB_PRIVATE | DB_USE_ENVIRON, 0))
|
||||
!= 0) {
|
||||
dbenv->err(dbenv, ret, "open");
|
||||
goto shutdown;
|
||||
}
|
||||
} else if ((ret = dbenv->open(dbenv, home,
|
||||
DB_JOINENV | DB_USE_ENVIRON, 0)) != 0 &&
|
||||
(ret = dbenv->open(dbenv, home,
|
||||
DB_CREATE | DB_INIT_LOG | DB_PRIVATE | DB_USE_ENVIRON, 0)) != 0) {
|
||||
dbenv->err(dbenv, ret, "open");
|
||||
goto shutdown;
|
||||
}
|
||||
|
||||
/* Initialize print callbacks. */
|
||||
if ((ret = __bam_init_print(dbenv, &dtab, &dtabsize)) != 0 ||
|
||||
(ret = __dbreg_init_print(dbenv, &dtab, &dtabsize)) != 0 ||
|
||||
(ret = __crdel_init_print(dbenv, &dtab, &dtabsize)) != 0 ||
|
||||
(ret = __db_init_print(dbenv, &dtab, &dtabsize)) != 0 ||
|
||||
(ret = __fop_init_print(dbenv, &dtab, &dtabsize)) != 0 ||
|
||||
(ret = __qam_init_print(dbenv, &dtab, &dtabsize)) != 0 ||
|
||||
(ret = __ham_init_print(dbenv, &dtab, &dtabsize)) != 0 ||
|
||||
(ret = __txn_init_print(dbenv, &dtab, &dtabsize)) != 0) {
|
||||
dbenv->err(dbenv, ret, "callback: initialization");
|
||||
goto shutdown;
|
||||
}
|
||||
|
||||
/* Allocate a log cursor. */
|
||||
if (repflag) {
|
||||
if ((ret = db_printlog_open_rep_db(dbenv, &dbp, &dbc)) != 0)
|
||||
goto shutdown;
|
||||
} else if ((ret = dbenv->log_cursor(dbenv, &logc, 0)) != 0) {
|
||||
dbenv->err(dbenv, ret, "DB_ENV->log_cursor");
|
||||
goto shutdown;
|
||||
}
|
||||
|
||||
memset(&data, 0, sizeof(data));
|
||||
memset(&keydbt, 0, sizeof(keydbt));
|
||||
while (!__db_util_interrupted()) {
|
||||
if (repflag) {
|
||||
ret = dbc->c_get(dbc,
|
||||
&keydbt, &data, rflag ? DB_PREV : DB_NEXT);
|
||||
if (ret == 0)
|
||||
key = ((REP_CONTROL *)keydbt.data)->lsn;
|
||||
} else
|
||||
ret = logc->get(logc,
|
||||
&key, &data, rflag ? DB_PREV : DB_NEXT);
|
||||
if (ret != 0) {
|
||||
if (ret == DB_NOTFOUND)
|
||||
break;
|
||||
dbenv->err(dbenv,
|
||||
ret, repflag ? "DB_LOGC->get" : "DBC->get");
|
||||
goto shutdown;
|
||||
}
|
||||
|
||||
ret = __db_dispatch(dbenv,
|
||||
dtab, dtabsize, &data, &key, DB_TXN_PRINT, NULL);
|
||||
|
||||
/*
|
||||
* XXX
|
||||
* Just in case the underlying routines don't flush.
|
||||
*/
|
||||
(void)fflush(stdout);
|
||||
|
||||
if (ret != 0) {
|
||||
dbenv->err(dbenv, ret, "tx: dispatch");
|
||||
goto shutdown;
|
||||
}
|
||||
}
|
||||
|
||||
if (0) {
|
||||
shutdown: exitval = 1;
|
||||
}
|
||||
if (logc != NULL && (ret = logc->close(logc, 0)) != 0)
|
||||
exitval = 1;
|
||||
|
||||
if (dbc != NULL && (ret = dbc->c_close(dbc)) != 0)
|
||||
exitval = 1;
|
||||
|
||||
if (dbp != NULL && (ret = dbp->close(dbp, 0)) != 0)
|
||||
exitval = 1;
|
||||
|
||||
/*
|
||||
* The dtab is allocated by __db_add_recovery (called by *_init_print)
|
||||
* using the library malloc function (__os_malloc). It thus needs to be
|
||||
* freed using the corresponding free (__os_free).
|
||||
*/
|
||||
if (dtab != NULL)
|
||||
__os_free(dbenv, dtab);
|
||||
if (e_close && (ret = dbenv->close(dbenv, 0)) != 0) {
|
||||
exitval = 1;
|
||||
fprintf(stderr,
|
||||
"%s: dbenv->close: %s\n", progname, db_strerror(ret));
|
||||
}
|
||||
|
||||
/* Resend any caught signal. */
|
||||
__db_util_sigresend();
|
||||
|
||||
return (exitval == 0 ? EXIT_SUCCESS : EXIT_FAILURE);
|
||||
}
|
||||
|
||||
int
|
||||
db_printlog_usage()
|
||||
{
|
||||
fprintf(stderr, "%s\n",
|
||||
"usage: db_printlog [-NrV] [-h home] [-P password]");
|
||||
return (EXIT_FAILURE);
|
||||
}
|
||||
|
||||
int
|
||||
db_printlog_version_check(progname)
|
||||
const char *progname;
|
||||
{
|
||||
int v_major, v_minor, v_patch;
|
||||
|
||||
/* Make sure we're loaded with the right version of the DB library. */
|
||||
(void)db_version(&v_major, &v_minor, &v_patch);
|
||||
if (v_major != DB_VERSION_MAJOR ||
|
||||
v_minor != DB_VERSION_MINOR || v_patch != DB_VERSION_PATCH) {
|
||||
fprintf(stderr,
|
||||
"%s: version %d.%d.%d doesn't match library version %d.%d.%d\n",
|
||||
progname, DB_VERSION_MAJOR, DB_VERSION_MINOR,
|
||||
DB_VERSION_PATCH, v_major, v_minor, v_patch);
|
||||
return (EXIT_FAILURE);
|
||||
}
|
||||
return (0);
|
||||
}
|
||||
|
||||
/* Print an unknown, application-specific log record as best we can. */
|
||||
int
|
||||
db_printlog_print_app_record(dbenv, dbt, lsnp, op)
|
||||
DB_ENV *dbenv;
|
||||
DBT *dbt;
|
||||
DB_LSN *lsnp;
|
||||
db_recops op;
|
||||
{
|
||||
int ch;
|
||||
u_int32_t i, rectype;
|
||||
|
||||
DB_ASSERT(op == DB_TXN_PRINT);
|
||||
COMPQUIET(dbenv, NULL);
|
||||
|
||||
/*
|
||||
* Fetch the rectype, which always must be at the beginning of the
|
||||
* record (if dispatching is to work at all).
|
||||
*/
|
||||
memcpy(&rectype, dbt->data, sizeof(rectype));
|
||||
|
||||
/*
|
||||
* Applications may wish to customize the output here based on the
|
||||
* rectype. We just print the entire log record in the generic
|
||||
* mixed-hex-and-printable format we use for binary data.
|
||||
*/
|
||||
printf("[%lu][%lu]application specific record: rec: %lu\n",
|
||||
(u_long)lsnp->file, (u_long)lsnp->offset, (u_long)rectype);
|
||||
printf("\tdata: ");
|
||||
for (i = 0; i < dbt->size; i++) {
|
||||
ch = ((u_int8_t *)dbt->data)[i];
|
||||
printf(isprint(ch) || ch == 0x0a ? "%c" : "%#x ", ch);
|
||||
}
|
||||
printf("\n\n");
|
||||
|
||||
return (0);
|
||||
}
|
||||
|
||||
int
|
||||
db_printlog_open_rep_db(dbenv, dbpp, dbcp)
|
||||
DB_ENV *dbenv;
|
||||
DB **dbpp;
|
||||
DBC **dbcp;
|
||||
{
|
||||
int ret;
|
||||
|
||||
DB *dbp;
|
||||
*dbpp = NULL;
|
||||
*dbcp = NULL;
|
||||
|
||||
if ((ret = db_create(dbpp, dbenv, 0)) != 0) {
|
||||
dbenv->err(dbenv, ret, "db_create");
|
||||
return (ret);
|
||||
}
|
||||
|
||||
dbp = *dbpp;
|
||||
if ((ret =
|
||||
dbp->open(dbp, NULL, "__db.rep.db", NULL, DB_BTREE, 0, 0)) != 0) {
|
||||
dbenv->err(dbenv, ret, "DB->open");
|
||||
goto err;
|
||||
}
|
||||
|
||||
if ((ret = dbp->cursor(dbp, NULL, dbcp, 0)) != 0) {
|
||||
dbenv->err(dbenv, ret, "DB->cursor");
|
||||
goto err;
|
||||
}
|
||||
|
||||
return (0);
|
||||
|
||||
err: if (*dbpp != NULL)
|
||||
(void)(*dbpp)->close(*dbpp, 0);
|
||||
return (ret);
|
||||
}
|
@ -1,160 +0,0 @@
|
||||
Document file - DO NOT EDIT
|
||||
|
||||
<BEGIN> BUILD_PENTIUMgnu_BUILDRULE
|
||||
db_printlog.out
|
||||
<END>
|
||||
|
||||
<BEGIN> BUILD_PENTIUMgnu_MACRO_AR
|
||||
ar386
|
||||
<END>
|
||||
|
||||
<BEGIN> BUILD_PENTIUMgnu_MACRO_ARCHIVE
|
||||
$(PRJ_DIR)/PENTIUMgnu/db_printlog.a
|
||||
<END>
|
||||
|
||||
<BEGIN> BUILD_PENTIUMgnu_MACRO_AS
|
||||
cc386
|
||||
<END>
|
||||
|
||||
<BEGIN> BUILD_PENTIUMgnu_MACRO_CC
|
||||
cc386
|
||||
<END>
|
||||
|
||||
<BEGIN> BUILD_PENTIUMgnu_MACRO_CFLAGS
|
||||
-g \
|
||||
-mpentium \
|
||||
-ansi \
|
||||
-nostdinc \
|
||||
-DRW_MULTI_THREAD \
|
||||
-D_REENTRANT \
|
||||
-fvolatile \
|
||||
-nostdlib \
|
||||
-fno-builtin \
|
||||
-fno-defer-pop \
|
||||
-I$(PRJ_DIR)/.. \
|
||||
-I$(PRJ_DIR)/../.. \
|
||||
-I$(WIND_BASE)/target/h \
|
||||
-DCPU=PENTIUM
|
||||
<END>
|
||||
|
||||
<BEGIN> BUILD_PENTIUMgnu_MACRO_CFLAGS_AS
|
||||
-g \
|
||||
-mpentium \
|
||||
-ansi \
|
||||
-nostdinc \
|
||||
-fvolatile \
|
||||
-nostdlib \
|
||||
-fno-builtin \
|
||||
-fno-defer-pop \
|
||||
-P \
|
||||
-x \
|
||||
assembler-with-cpp \
|
||||
-I$(WIND_BASE)/target/h \
|
||||
-DCPU=PENTIUM
|
||||
<END>
|
||||
|
||||
<BEGIN> BUILD_PENTIUMgnu_MACRO_CPP
|
||||
cc386 -E -P -xc
|
||||
<END>
|
||||
|
||||
<BEGIN> BUILD_PENTIUMgnu_MACRO_LD
|
||||
ld386
|
||||
<END>
|
||||
|
||||
<BEGIN> BUILD_PENTIUMgnu_MACRO_LDDEPS
|
||||
|
||||
<END>
|
||||
|
||||
<BEGIN> BUILD_PENTIUMgnu_MACRO_LDFLAGS
|
||||
-X -N
|
||||
<END>
|
||||
|
||||
<BEGIN> BUILD_PENTIUMgnu_MACRO_LD_PARTIAL_FLAGS
|
||||
-X -r
|
||||
<END>
|
||||
|
||||
<BEGIN> BUILD_PENTIUMgnu_MACRO_NM
|
||||
nm386 -g
|
||||
<END>
|
||||
|
||||
<BEGIN> BUILD_PENTIUMgnu_MACRO_OPTION_DEFINE_MACRO
|
||||
-D
|
||||
<END>
|
||||
|
||||
<BEGIN> BUILD_PENTIUMgnu_MACRO_OPTION_INCLUDE_DIR
|
||||
-I
|
||||
<END>
|
||||
|
||||
<BEGIN> BUILD_PENTIUMgnu_MACRO_POST_BUILD_RULE
|
||||
|
||||
<END>
|
||||
|
||||
<BEGIN> BUILD_PENTIUMgnu_MACRO_PRJ_LIBS
|
||||
|
||||
<END>
|
||||
|
||||
<BEGIN> BUILD_PENTIUMgnu_MACRO_SIZE
|
||||
size386
|
||||
<END>
|
||||
|
||||
<BEGIN> BUILD_PENTIUMgnu_RO_DEPEND_PATH
|
||||
{$(WIND_BASE)/target/h/} \
|
||||
{$(WIND_BASE)/target/src/} \
|
||||
{$(WIND_BASE)/target/config/}
|
||||
<END>
|
||||
|
||||
<BEGIN> BUILD_PENTIUMgnu_TC
|
||||
::tc_PENTIUMgnu
|
||||
<END>
|
||||
|
||||
<BEGIN> BUILD_RULE_archive
|
||||
|
||||
<END>
|
||||
|
||||
<BEGIN> BUILD_RULE_db_printlog.out
|
||||
|
||||
<END>
|
||||
|
||||
<BEGIN> BUILD_RULE_objects
|
||||
|
||||
<END>
|
||||
|
||||
<BEGIN> BUILD__CURRENT
|
||||
PENTIUMgnu
|
||||
<END>
|
||||
|
||||
<BEGIN> BUILD__LIST
|
||||
PENTIUMgnu
|
||||
<END>
|
||||
|
||||
<BEGIN> CORE_INFO_TYPE
|
||||
::prj_vxApp
|
||||
<END>
|
||||
|
||||
<BEGIN> CORE_INFO_VERSION
|
||||
2.0
|
||||
<END>
|
||||
|
||||
<BEGIN> FILE_db_printlog.c_dependDone
|
||||
FALSE
|
||||
<END>
|
||||
|
||||
<BEGIN> FILE_db_printlog.c_dependencies
|
||||
|
||||
<END>
|
||||
|
||||
<BEGIN> FILE_db_printlog.c_objects
|
||||
db_printlog.o
|
||||
<END>
|
||||
|
||||
<BEGIN> FILE_db_printlog.c_tool
|
||||
C/C++ compiler
|
||||
<END>
|
||||
|
||||
<BEGIN> PROJECT_FILES
|
||||
$(PRJ_DIR)/db_printlog.c
|
||||
<END>
|
||||
|
||||
<BEGIN> userComments
|
||||
db_printlog
|
||||
<END>
|
@ -1,51 +0,0 @@
|
||||
#
|
||||
# Custom Makefile shell
|
||||
#
|
||||
# This file may be edited freely, since it will not be regenerated
|
||||
# by the project manager.
|
||||
#
|
||||
# Use this makefile to define rules to make external binaries
|
||||
# and deposit them in the $(EXTERNAL_BINARIES_DIR) directory.
|
||||
#
|
||||
# If you have specified external modules during your component
|
||||
# creation, you will find make rules already in place below.
|
||||
# You will likely have to edit these to suit your individual
|
||||
# build setup.
|
||||
#
|
||||
# You may wish to use the CPU, BUILD_SPEC or TOOL make variables in
|
||||
# your Makefile to support builds for different architectures. Use
|
||||
# the FORCE_EXTERNAL_MAKE phony target to ensure that your external
|
||||
# make always runs.
|
||||
#
|
||||
# The example below assumes that your custom makefile is in the
|
||||
# mySourceTree directory, and that the binary file it produces
|
||||
# is placed into the $(BUILD_SPEC) sub-directory.
|
||||
#
|
||||
# EXTERNAL_SOURCE_BASE = /folk/me/mySourceTree
|
||||
# EXTERNAL_MODULE = myLibrary.o
|
||||
# EXTERNAL_MAKE = make
|
||||
#
|
||||
# $(EXTERNAL_BINARIES_DIR)/$(EXTERNAL_MODULE) : FORCE_EXTERNAL_MAKE
|
||||
# $(EXTERNAL_MAKE) -C $(EXTERNAL_SOURCE_BASE) \
|
||||
# -f $(EXTERNAL_SOURCE_BASE)/Makefile \
|
||||
# CPU=$(CPU) BUILD_SPEC=$(BUILD_SPEC) $(@F)
|
||||
# $(CP) $(subst /,$(DIRCHAR),$(EXTERNAL_SOURCE_BASE)/$(BUILD_SPEC)/$(@F) $@)
|
||||
#
|
||||
# If you are not adding your external modules from the component wizard,
|
||||
# you will have to include them in your component yourself:
|
||||
#
|
||||
# From the GUI, you can do this with the Component's 'Add external module'
|
||||
# dialog.
|
||||
#
|
||||
# If you are using the command line, add the module(s) by editing the
|
||||
# MODULES line in component.cdf file, e.g.
|
||||
#
|
||||
# Component INCLUDE_MYCOMPONENT {
|
||||
#
|
||||
# MODULES foo.o goo.o \
|
||||
# myLibrary.o
|
||||
#
|
||||
|
||||
|
||||
# rules to build custom libraries
|
||||
|
@ -1,30 +0,0 @@
|
||||
/* component.cdf - dynamically updated configuration */
|
||||
|
||||
/*
|
||||
* NOTE: you may edit this file to alter the configuration
|
||||
* But all non-configuration information, including comments,
|
||||
* will be lost upon rebuilding this project.
|
||||
*/
|
||||
|
||||
/* Component information */
|
||||
|
||||
Component INCLUDE_DB_PRINTLOG {
|
||||
ENTRY_POINTS ALL_GLOBAL_SYMBOLS
|
||||
MODULES db_printlog.o
|
||||
NAME db_printlog
|
||||
PREF_DOMAIN ANY
|
||||
_INIT_ORDER usrComponentsInit
|
||||
}
|
||||
|
||||
/* EntryPoint information */
|
||||
|
||||
/* Module information */
|
||||
|
||||
Module db_printlog.o {
|
||||
|
||||
NAME db_printlog.o
|
||||
SRC_PATH_NAME $PRJ_DIR/../db_printlog.c
|
||||
}
|
||||
|
||||
/* Parameter information */
|
||||
|
@ -1,475 +0,0 @@
|
||||
Document file - DO NOT EDIT
|
||||
|
||||
<BEGIN> CORE_INFO_TYPE
|
||||
::prj_component
|
||||
<END>
|
||||
|
||||
<BEGIN> CORE_INFO_VERSION
|
||||
AE1.1
|
||||
<END>
|
||||
|
||||
<BEGIN> BUILD__CURRENT
|
||||
PENTIUM2gnu.debug
|
||||
<END>
|
||||
|
||||
<BEGIN> BUILD_PENTIUM2gnu.debug_CURRENT_TARGET
|
||||
default
|
||||
<END>
|
||||
|
||||
<BEGIN> BUILD_PENTIUM2gnu.debug_DEFAULTFORCPU
|
||||
1
|
||||
<END>
|
||||
|
||||
<BEGIN> BUILD_PENTIUM2gnu.debug_FILE_$(PRJ_DIR)/../db_printlog.c_infoTags
|
||||
toolMacro objects
|
||||
<END>
|
||||
|
||||
<BEGIN> BUILD_PENTIUM2gnu.debug_FILE_$(PRJ_DIR)/../db_printlog.c_objects
|
||||
db_printlog.o
|
||||
<END>
|
||||
|
||||
<BEGIN> BUILD_PENTIUM2gnu.debug_FILE_$(PRJ_DIR)/../db_printlog.c_toolMacro
|
||||
CC
|
||||
<END>
|
||||
|
||||
<BEGIN> BUILD_PENTIUM2gnu.debug_FILE_$(PRJ_DIR)/../db_printlog.c_objects
|
||||
db_printlog.o
|
||||
<END>
|
||||
|
||||
<BEGIN> BUILD_PENTIUM2gnu.debug_FILE_$(PRJ_DIR)/../db_printlog.c_toolMacro
|
||||
CC
|
||||
<END>
|
||||
|
||||
<BEGIN> BUILD_PENTIUM2gnu.debug_FILE_$(PRJ_DIR)/compConfig.c_infoTags
|
||||
toolMacro objects
|
||||
<END>
|
||||
|
||||
<BEGIN> BUILD_PENTIUM2gnu.debug_FILE_$(PRJ_DIR)/compConfig.c_objects
|
||||
compConfig.o
|
||||
<END>
|
||||
|
||||
<BEGIN> BUILD_PENTIUM2gnu.debug_FILE_$(PRJ_DIR)/compConfig.c_toolMacro
|
||||
CC
|
||||
<END>
|
||||
|
||||
<BEGIN> BUILD_PENTIUM2gnu.debug_MACRO_AR
|
||||
arpentium
|
||||
<END>
|
||||
|
||||
<BEGIN> BUILD_PENTIUM2gnu.debug_MACRO_AS
|
||||
ccpentium
|
||||
<END>
|
||||
|
||||
<BEGIN> BUILD_PENTIUM2gnu.debug_MACRO_CC
|
||||
ccpentium
|
||||
<END>
|
||||
|
||||
<BEGIN> BUILD_PENTIUM2gnu.debug_MACRO_CFLAGS
|
||||
-mcpu=pentiumpro \
|
||||
-march=pentiumpro \
|
||||
-ansi \
|
||||
-DRW_MULTI_THREAD \
|
||||
-D_REENTRANT \
|
||||
-g \
|
||||
-nostdlib \
|
||||
-fno-builtin \
|
||||
-fno-defer-pop \
|
||||
-MD \
|
||||
-Wall \
|
||||
-I. \
|
||||
-I$(WIND_BASE)/target/h \
|
||||
-I$(PRJ_DIR)/../.. \
|
||||
-I$(PRJ_DIR)/../../.. \
|
||||
-DCPU=PENTIUM2
|
||||
<END>
|
||||
|
||||
<BEGIN> BUILD_PENTIUM2gnu.debug_MACRO_CFLAGS_AS
|
||||
-mcpu=pentiumpro \
|
||||
-march=pentiumpro \
|
||||
-ansi \
|
||||
-g \
|
||||
-nostdlib \
|
||||
-fno-builtin \
|
||||
-fno-defer-pop \
|
||||
-P \
|
||||
-x \
|
||||
assembler-with-cpp \
|
||||
-Wall \
|
||||
-I. \
|
||||
-I$(WIND_BASE)/target/h \
|
||||
-DCPU=PENTIUM2
|
||||
<END>
|
||||
|
||||
<BEGIN> BUILD_PENTIUM2gnu.debug_MACRO_CPP
|
||||
ccpentium -E -P
|
||||
<END>
|
||||
|
||||
<BEGIN> BUILD_PENTIUM2gnu.debug_MACRO_CPPFILT
|
||||
c++filtpentium --strip-underscores
|
||||
<END>
|
||||
|
||||
<BEGIN> BUILD_PENTIUM2gnu.debug_MACRO_LD
|
||||
ldpentium
|
||||
<END>
|
||||
|
||||
<BEGIN> BUILD_PENTIUM2gnu.debug_MACRO_LDFLAGS
|
||||
-X
|
||||
<END>
|
||||
|
||||
<BEGIN> BUILD_PENTIUM2gnu.debug_MACRO_LDPARTIAL
|
||||
ccpentium \
|
||||
-B$(WIND_BASE)/host/$(WIND_HOST_TYPE)/lib/gcc-lib/ \
|
||||
-nostdlib \
|
||||
-r \
|
||||
-Wl,-X
|
||||
<END>
|
||||
|
||||
<BEGIN> BUILD_PENTIUM2gnu.debug_MACRO_LD_PARTIAL_FLAGS
|
||||
-X -r
|
||||
<END>
|
||||
|
||||
<BEGIN> BUILD_PENTIUM2gnu.debug_MACRO_NM
|
||||
nmpentium -g
|
||||
<END>
|
||||
|
||||
<BEGIN> BUILD_PENTIUM2gnu.debug_MACRO_OPTION_DEFINE_MACRO
|
||||
-D
|
||||
<END>
|
||||
|
||||
<BEGIN> BUILD_PENTIUM2gnu.debug_MACRO_OPTION_GENERATE_DEPENDENCY_FILE
|
||||
-MD
|
||||
<END>
|
||||
|
||||
<BEGIN> BUILD_PENTIUM2gnu.debug_MACRO_OPTION_INCLUDE_DIR
|
||||
-I
|
||||
<END>
|
||||
|
||||
<BEGIN> BUILD_PENTIUM2gnu.debug_MACRO_RELEASE
|
||||
0
|
||||
<END>
|
||||
|
||||
<BEGIN> BUILD_PENTIUM2gnu.debug_MACRO_SIZE
|
||||
sizepentium
|
||||
<END>
|
||||
|
||||
<BEGIN> BUILD_PENTIUM2gnu.debug_RELEASE
|
||||
0
|
||||
<END>
|
||||
|
||||
<BEGIN> BUILD_PENTIUM2gnu.debug_RO_DEPEND_PATH
|
||||
$(WIND_BASE)/target/h/
|
||||
<END>
|
||||
|
||||
<BEGIN> BUILD_PENTIUM2gnu.debug_TC
|
||||
::tc_PENTIUM2gnu.debug
|
||||
<END>
|
||||
|
||||
<BEGIN> BUILD_PENTIUM2gnu.release_DEFAULTFORCPU
|
||||
0
|
||||
<END>
|
||||
|
||||
<BEGIN> BUILD_PENTIUM2gnu.release_FILE_$(PRJ_DIR)/../db_printlog.c_infoTags
|
||||
toolMacro objects
|
||||
<END>
|
||||
|
||||
<BEGIN> BUILD_PENTIUM2gnu.release_FILE_$(PRJ_DIR)/../db_printlog.c_objects
|
||||
db_printlog.o
|
||||
<END>
|
||||
|
||||
<BEGIN> BUILD_PENTIUM2gnu.release_FILE_$(PRJ_DIR)/../db_printlog.c_toolMacro
|
||||
CC
|
||||
<END>
|
||||
|
||||
<BEGIN> BUILD_PENTIUM2gnu.release_FILE_$(PRJ_DIR)/compConfig.c_infoTags
|
||||
toolMacro objects
|
||||
<END>
|
||||
|
||||
<BEGIN> BUILD_PENTIUM2gnu.release_FILE_$(PRJ_DIR)/compConfig.c_objects
|
||||
compConfig.o
|
||||
<END>
|
||||
|
||||
<BEGIN> BUILD_PENTIUM2gnu.release_FILE_$(PRJ_DIR)/compConfig.c_toolMacro
|
||||
CC
|
||||
<END>
|
||||
|
||||
<BEGIN> BUILD_PENTIUM2gnu.release_MACRO_AR
|
||||
arpentium
|
||||
<END>
|
||||
|
||||
<BEGIN> BUILD_PENTIUM2gnu.release_MACRO_AS
|
||||
ccpentium
|
||||
<END>
|
||||
|
||||
<BEGIN> BUILD_PENTIUM2gnu.release_MACRO_CC
|
||||
ccpentium
|
||||
<END>
|
||||
|
||||
<BEGIN> BUILD_PENTIUM2gnu.release_MACRO_CFLAGS
|
||||
-mcpu=pentiumpro \
|
||||
-march=pentiumpro \
|
||||
-ansi \
|
||||
-DRW_MULTI_THREAD \
|
||||
-D_REENTRANT \
|
||||
-O2 \
|
||||
-nostdlib \
|
||||
-fno-builtin \
|
||||
-fno-defer-pop \
|
||||
-MD \
|
||||
-Wall \
|
||||
-I. \
|
||||
-I$(WIND_BASE)/target/h \
|
||||
-I$(PRJ_DIR)/../.. \
|
||||
-I$(PRJ_DIR)/../../.. \
|
||||
-DCPU=PENTIUM2
|
||||
<END>
|
||||
|
||||
<BEGIN> BUILD_PENTIUM2gnu.release_MACRO_CFLAGS_AS
|
||||
-mcpu=pentiumpro \
|
||||
-march=pentiumpro \
|
||||
-ansi \
|
||||
-O2 \
|
||||
-nostdlib \
|
||||
-fno-builtin \
|
||||
-fno-defer-pop \
|
||||
-P \
|
||||
-x \
|
||||
assembler-with-cpp \
|
||||
-Wall \
|
||||
-I. \
|
||||
-I$(WIND_BASE)/target/h \
|
||||
-DCPU=PENTIUM2
|
||||
<END>
|
||||
|
||||
<BEGIN> BUILD_PENTIUM2gnu.release_MACRO_CPP
|
||||
ccpentium -E -P
|
||||
<END>
|
||||
|
||||
<BEGIN> BUILD_PENTIUM2gnu.release_MACRO_CPPFILT
|
||||
c++filtpentium --strip-underscores
|
||||
<END>
|
||||
|
||||
<BEGIN> BUILD_PENTIUM2gnu.release_MACRO_LD
|
||||
ldpentium
|
||||
<END>
|
||||
|
||||
<BEGIN> BUILD_PENTIUM2gnu.release_MACRO_LDFLAGS
|
||||
-X
|
||||
<END>
|
||||
|
||||
<BEGIN> BUILD_PENTIUM2gnu.release_MACRO_LDPARTIAL
|
||||
ccpentium \
|
||||
-B$(WIND_BASE)/host/$(WIND_HOST_TYPE)/lib/gcc-lib/ \
|
||||
-nostdlib \
|
||||
-r \
|
||||
-Wl,-X
|
||||
<END>
|
||||
|
||||
<BEGIN> BUILD_PENTIUM2gnu.release_MACRO_LD_PARTIAL_FLAGS
|
||||
-X -r
|
||||
<END>
|
||||
|
||||
<BEGIN> BUILD_PENTIUM2gnu.release_MACRO_NM
|
||||
nmpentium -g
|
||||
<END>
|
||||
|
||||
<BEGIN> BUILD_PENTIUM2gnu.release_MACRO_OPTION_DEFINE_MACRO
|
||||
-D
|
||||
<END>
|
||||
|
||||
<BEGIN> BUILD_PENTIUM2gnu.release_MACRO_OPTION_GENERATE_DEPENDENCY_FILE
|
||||
-MD
|
||||
<END>
|
||||
|
||||
<BEGIN> BUILD_PENTIUM2gnu.release_MACRO_OPTION_INCLUDE_DIR
|
||||
-I
|
||||
<END>
|
||||
|
||||
<BEGIN> BUILD_PENTIUM2gnu.release_MACRO_RELEASE
|
||||
1
|
||||
<END>
|
||||
|
||||
<BEGIN> BUILD_PENTIUM2gnu.release_MACRO_SIZE
|
||||
sizepentium
|
||||
<END>
|
||||
|
||||
<BEGIN> BUILD_PENTIUM2gnu.release_RELEASE
|
||||
1
|
||||
<END>
|
||||
|
||||
<BEGIN> BUILD_PENTIUM2gnu.release_RO_DEPEND_PATH
|
||||
$(WIND_BASE)/target/h/
|
||||
<END>
|
||||
|
||||
<BEGIN> BUILD_PENTIUM2gnu.release_TC
|
||||
::tc_PENTIUM2gnu.release
|
||||
<END>
|
||||
|
||||
<BEGIN> BUILD_PENTIUMgnu.debug_DEFAULTFORCPU
|
||||
1
|
||||
<END>
|
||||
|
||||
<BEGIN> BUILD_PENTIUMgnu.debug_FILE_$(PRJ_DIR)/../db_printlog.c_infoTags
|
||||
toolMacro objects
|
||||
<END>
|
||||
|
||||
<BEGIN> BUILD_PENTIUMgnu.debug_FILE_$(PRJ_DIR)/../db_printlog.c_objects
|
||||
db_printlog.o
|
||||
<END>
|
||||
|
||||
<BEGIN> BUILD_PENTIUMgnu.debug_FILE_$(PRJ_DIR)/../db_printlog.c_toolMacro
|
||||
CC
|
||||
<END>
|
||||
|
||||
<BEGIN> BUILD_PENTIUMgnu.debug_FILE_$(PRJ_DIR)/compConfig.c_infoTags
|
||||
toolMacro objects
|
||||
<END>
|
||||
|
||||
<BEGIN> BUILD_PENTIUMgnu.debug_FILE_$(PRJ_DIR)/compConfig.c_objects
|
||||
compConfig.o
|
||||
<END>
|
||||
|
||||
<BEGIN> BUILD_PENTIUMgnu.debug_FILE_$(PRJ_DIR)/compConfig.c_toolMacro
|
||||
CC
|
||||
<END>
|
||||
|
||||
<BEGIN> BUILD_PENTIUMgnu.debug_MACRO_AR
|
||||
arpentium
|
||||
<END>
|
||||
|
||||
<BEGIN> BUILD_PENTIUMgnu.debug_MACRO_AS
|
||||
ccpentium
|
||||
<END>
|
||||
|
||||
<BEGIN> BUILD_PENTIUMgnu.debug_MACRO_CC
|
||||
ccpentium
|
||||
<END>
|
||||
|
||||
<BEGIN> BUILD_PENTIUMgnu.debug_MACRO_CFLAGS
|
||||
-mcpu=pentium \
|
||||
-march=pentium \
|
||||
-ansi \
|
||||
-DRW_MULTI_THREAD \
|
||||
-D_REENTRANT \
|
||||
-g \
|
||||
-nostdlib \
|
||||
-fno-builtin \
|
||||
-fno-defer-pop \
|
||||
-MD \
|
||||
-Wall \
|
||||
-I. \
|
||||
-I$(WIND_BASE)/target/h \
|
||||
-I$(PRJ_DIR)/../.. \
|
||||
-I$(PRJ_DIR)/../../.. \
|
||||
-DCPU=PENTIUM
|
||||
<END>
|
||||
|
||||
<BEGIN> BUILD_PENTIUMgnu.debug_MACRO_CFLAGS_AS
|
||||
-mcpu=pentium \
|
||||
-march=pentium \
|
||||
-ansi \
|
||||
-g \
|
||||
-nostdlib \
|
||||
-fno-builtin \
|
||||
-fno-defer-pop \
|
||||
-P \
|
||||
-x \
|
||||
assembler-with-cpp \
|
||||
-Wall \
|
||||
-I. \
|
||||
-I$(WIND_BASE)/target/h \
|
||||
-DCPU=PENTIUM
|
||||
<END>
|
||||
|
||||
<BEGIN> BUILD_PENTIUMgnu.debug_MACRO_CPP
|
||||
ccpentium -E -P
|
||||
<END>
|
||||
|
||||
<BEGIN> BUILD_PENTIUMgnu.debug_MACRO_CPPFILT
|
||||
c++filtpentium --strip-underscores
|
||||
<END>
|
||||
|
||||
<BEGIN> BUILD_PENTIUMgnu.debug_MACRO_LD
|
||||
ldpentium
|
||||
<END>
|
||||
|
||||
<BEGIN> BUILD_PENTIUMgnu.debug_MACRO_LDFLAGS
|
||||
-X
|
||||
<END>
|
||||
|
||||
<BEGIN> BUILD_PENTIUMgnu.debug_MACRO_LDPARTIAL
|
||||
ccpentium \
|
||||
-B$(WIND_BASE)/host/$(WIND_HOST_TYPE)/lib/gcc-lib/ \
|
||||
-nostdlib \
|
||||
-r \
|
||||
-Wl,-X
|
||||
<END>
|
||||
|
||||
<BEGIN> BUILD_PENTIUMgnu.debug_MACRO_LD_PARTIAL_FLAGS
|
||||
-X -r
|
||||
<END>
|
||||
|
||||
<BEGIN> BUILD_PENTIUMgnu.debug_MACRO_NM
|
||||
nmpentium -g
|
||||
<END>
|
||||
|
||||
<BEGIN> BUILD_PENTIUMgnu.debug_MACRO_OPTION_DEFINE_MACRO
|
||||
-D
|
||||
<END>
|
||||
|
||||
<BEGIN> BUILD_PENTIUMgnu.debug_MACRO_OPTION_GENERATE_DEPENDENCY_FILE
|
||||
-MD
|
||||
<END>
|
||||
|
||||
<BEGIN> BUILD_PENTIUMgnu.debug_MACRO_OPTION_INCLUDE_DIR
|
||||
-I
|
||||
<END>
|
||||
|
||||
<BEGIN> BUILD_PENTIUMgnu.debug_MACRO_RELEASE
|
||||
0
|
||||
<END>
|
||||
|
||||
<BEGIN> BUILD_PENTIUMgnu.debug_MACRO_SIZE
|
||||
sizepentium
|
||||
<END>
|
||||
|
||||
<BEGIN> BUILD_PENTIUMgnu.debug_RELEASE
|
||||
0
|
||||
<END>
|
||||
|
||||
<BEGIN> BUILD_PENTIUMgnu.debug_RO_DEPEND_PATH
|
||||
$(WIND_BASE)/target/h/
|
||||
<END>
|
||||
|
||||
<BEGIN> BUILD_PENTIUMgnu.debug_TC
|
||||
::tc_PENTIUMgnu.debug
|
||||
<END>
|
||||
|
||||
<BEGIN> BUILD__LIST
|
||||
PENTIUM2gnu.debug PENTIUM2gnu.release PENTIUMgnu.debug
|
||||
<END>
|
||||
|
||||
<BEGIN> PROJECT_FILES
|
||||
$(PRJ_DIR)/../db_printlog.c \
|
||||
$(PRJ_DIR)/compConfig.c
|
||||
<END>
|
||||
|
||||
<BEGIN> WCC__CDF_PATH
|
||||
$(PRJ_DIR)
|
||||
<END>
|
||||
|
||||
<BEGIN> WCC__CURRENT
|
||||
PENTIUM2gnu.debug
|
||||
<END>
|
||||
|
||||
<BEGIN> WCC__LIST
|
||||
PENTIUM2gnu.debug
|
||||
<END>
|
||||
|
||||
<BEGIN> WCC__MXR_LIBS
|
||||
lib$(CPU)$(TOOL)vx.a
|
||||
<END>
|
||||
|
||||
<BEGIN> WCC__OBJS_PATH
|
||||
$(WIND_BASE)/target/lib/obj$CPU$TOOLvx
|
||||
<END>
|
||||
|
@ -1,328 +0,0 @@
|
||||
/*-
|
||||
* See the file LICENSE for redistribution information.
|
||||
*
|
||||
* Copyright (c) 1996-2002
|
||||
* Sleepycat Software. All rights reserved.
|
||||
*/
|
||||
|
||||
#include "db_config.h"
|
||||
|
||||
#ifndef lint
|
||||
static const char copyright[] =
|
||||
"Copyright (c) 1996-2002\nSleepycat Software Inc. All rights reserved.\n";
|
||||
static const char revid[] =
|
||||
"$Id: db_recover.c,v 11.33 2002/03/28 20:13:42 bostic Exp $";
|
||||
#endif
|
||||
|
||||
#ifndef NO_SYSTEM_INCLUDES
|
||||
#include <sys/types.h>
|
||||
|
||||
#if TIME_WITH_SYS_TIME
|
||||
#include <sys/time.h>
|
||||
#include <time.h>
|
||||
#else
|
||||
#if HAVE_SYS_TIME_H
|
||||
#include <sys/time.h>
|
||||
#else
|
||||
#include <time.h>
|
||||
#endif
|
||||
#endif
|
||||
|
||||
#include <stdlib.h>
|
||||
#include <string.h>
|
||||
#include <unistd.h>
|
||||
#endif
|
||||
|
||||
#include "db_int.h"
|
||||
#include "dbinc/txn.h"
|
||||
|
||||
int db_recover_main __P((int, char *[]));
|
||||
int db_recover_read_timestamp __P((const char *, char *, time_t *));
|
||||
int db_recover_usage __P((void));
|
||||
int db_recover_version_check __P((const char *));
|
||||
|
||||
int
|
||||
db_recover(args)
|
||||
char *args;
|
||||
{
|
||||
int argc;
|
||||
char **argv;
|
||||
|
||||
__db_util_arg("db_recover", args, &argc, &argv);
|
||||
return (db_recover_main(argc, argv) ? EXIT_FAILURE : EXIT_SUCCESS);
|
||||
}
|
||||
|
||||
#include <stdio.h>
|
||||
#define ERROR_RETURN ERROR
|
||||
|
||||
int
|
||||
db_recover_main(argc, argv)
|
||||
int argc;
|
||||
char *argv[];
|
||||
{
|
||||
extern char *optarg;
|
||||
extern int optind, __db_getopt_reset;
|
||||
const char *progname = "db_recover";
|
||||
DB_ENV *dbenv;
|
||||
DB_TXNREGION *region;
|
||||
time_t now, timestamp;
|
||||
u_int32_t flags;
|
||||
int ch, exitval, fatal_recover, ret, retain_env, verbose;
|
||||
char *home, *passwd;
|
||||
|
||||
if ((ret = db_recover_version_check(progname)) != 0)
|
||||
return (ret);
|
||||
|
||||
home = passwd = NULL;
|
||||
timestamp = 0;
|
||||
exitval = fatal_recover = retain_env = verbose = 0;
|
||||
__db_getopt_reset = 1;
|
||||
while ((ch = getopt(argc, argv, "ceh:P:t:Vv")) != EOF)
|
||||
switch (ch) {
|
||||
case 'c':
|
||||
fatal_recover = 1;
|
||||
break;
|
||||
case 'e':
|
||||
retain_env = 1;
|
||||
break;
|
||||
case 'h':
|
||||
home = optarg;
|
||||
break;
|
||||
case 'P':
|
||||
passwd = strdup(optarg);
|
||||
memset(optarg, 0, strlen(optarg));
|
||||
if (passwd == NULL) {
|
||||
fprintf(stderr, "%s: strdup: %s\n",
|
||||
progname, strerror(errno));
|
||||
return (EXIT_FAILURE);
|
||||
}
|
||||
break;
|
||||
case 't':
|
||||
if ((ret =
|
||||
db_recover_read_timestamp(progname, optarg, ×tamp)) != 0)
|
||||
return (ret);
|
||||
break;
|
||||
case 'V':
|
||||
printf("%s\n", db_version(NULL, NULL, NULL));
|
||||
return (EXIT_SUCCESS);
|
||||
case 'v':
|
||||
verbose = 1;
|
||||
break;
|
||||
case '?':
|
||||
default:
|
||||
return (db_recover_usage());
|
||||
}
|
||||
argc -= optind;
|
||||
argv += optind;
|
||||
|
||||
if (argc != 0)
|
||||
return (db_recover_usage());
|
||||
|
||||
/* Handle possible interruptions. */
|
||||
__db_util_siginit();
|
||||
|
||||
/*
|
||||
* Create an environment object and initialize it for error
|
||||
* reporting.
|
||||
*/
|
||||
if ((ret = db_env_create(&dbenv, 0)) != 0) {
|
||||
fprintf(stderr,
|
||||
"%s: db_env_create: %s\n", progname, db_strerror(ret));
|
||||
return (EXIT_FAILURE);
|
||||
}
|
||||
dbenv->set_errfile(dbenv, stderr);
|
||||
dbenv->set_errpfx(dbenv, progname);
|
||||
if (verbose) {
|
||||
(void)dbenv->set_verbose(dbenv, DB_VERB_RECOVERY, 1);
|
||||
(void)dbenv->set_verbose(dbenv, DB_VERB_CHKPOINT, 1);
|
||||
}
|
||||
if (timestamp &&
|
||||
(ret = dbenv->set_tx_timestamp(dbenv, ×tamp)) != 0) {
|
||||
dbenv->err(dbenv, ret, "DB_ENV->set_timestamp");
|
||||
goto shutdown;
|
||||
}
|
||||
|
||||
if (passwd != NULL && (ret = dbenv->set_encrypt(dbenv,
|
||||
passwd, DB_ENCRYPT_AES)) != 0) {
|
||||
dbenv->err(dbenv, ret, "set_passwd");
|
||||
goto shutdown;
|
||||
}
|
||||
|
||||
/*
|
||||
* Initialize the environment -- we don't actually do anything
|
||||
* else, that all that's needed to run recovery.
|
||||
*
|
||||
* Note that unless the caller specified the -e option, we use a
|
||||
* private environment, as we're about to create a region, and we
|
||||
* don't want to to leave it around. If we leave the region around,
|
||||
* the application that should create it will simply join it instead,
|
||||
* and will then be running with incorrectly sized (and probably
|
||||
* terribly small) caches. Applications that use -e should almost
|
||||
* certainly use DB_CONFIG files in the directory.
|
||||
*/
|
||||
flags = 0;
|
||||
LF_SET(DB_CREATE | DB_INIT_LOCK | DB_INIT_LOG |
|
||||
DB_INIT_MPOOL | DB_INIT_TXN | DB_USE_ENVIRON);
|
||||
LF_SET(fatal_recover ? DB_RECOVER_FATAL : DB_RECOVER);
|
||||
LF_SET(retain_env ? 0 : DB_PRIVATE);
|
||||
if ((ret = dbenv->open(dbenv, home, flags, 0)) != 0) {
|
||||
dbenv->err(dbenv, ret, "DB_ENV->open");
|
||||
goto shutdown;
|
||||
}
|
||||
|
||||
if (verbose) {
|
||||
(void)time(&now);
|
||||
region = ((DB_TXNMGR *)dbenv->tx_handle)->reginfo.primary;
|
||||
dbenv->errx(dbenv, "Recovery complete at %.24s", ctime(&now));
|
||||
dbenv->errx(dbenv, "%s %lx %s [%lu][%lu]",
|
||||
"Maximum transaction id", (u_long)region->last_txnid,
|
||||
"Recovery checkpoint", (u_long)region->last_ckp.file,
|
||||
(u_long)region->last_ckp.offset);
|
||||
}
|
||||
|
||||
if (0) {
|
||||
shutdown: exitval = 1;
|
||||
}
|
||||
|
||||
/* Clean up the environment. */
|
||||
if ((ret = dbenv->close(dbenv, 0)) != 0) {
|
||||
exitval = 1;
|
||||
fprintf(stderr,
|
||||
"%s: dbenv->close: %s\n", progname, db_strerror(ret));
|
||||
}
|
||||
|
||||
/* Resend any caught signal. */
|
||||
__db_util_sigresend();
|
||||
|
||||
return (exitval == 0 ? EXIT_SUCCESS : EXIT_FAILURE);
|
||||
}
|
||||
|
||||
#define ATOI2(ar) ((ar)[0] - '0') * 10 + ((ar)[1] - '0'); (ar) += 2;
|
||||
|
||||
/*
|
||||
* read_timestamp --
|
||||
* Convert a time argument to Epoch seconds.
|
||||
*
|
||||
* Copyright (c) 1993
|
||||
* The Regents of the University of California. All rights reserved.
|
||||
*
|
||||
* Redistribution and use in source and binary forms, with or without
|
||||
* modification, are permitted provided that the following conditions
|
||||
* are met:
|
||||
* 1. Redistributions of source code must retain the above copyright
|
||||
* notice, this list of conditions and the following disclaimer.
|
||||
* 2. Redistributions in binary form must reproduce the above copyright
|
||||
* notice, this list of conditions and the following disclaimer in the
|
||||
* documentation and/or other materials provided with the distribution.
|
||||
* 3. Neither the name of the University nor the names of its contributors
|
||||
* may be used to endorse or promote products derived from this software
|
||||
* without specific prior written permission.
|
||||
*
|
||||
* THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND
|
||||
* ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
|
||||
* IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
|
||||
* ARE DISCLAIMED. IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE
|
||||
* FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
|
||||
* DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
|
||||
* OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
|
||||
* HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
|
||||
* LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
|
||||
* OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
|
||||
* SUCH DAMAGE.
|
||||
*/
|
||||
int
|
||||
db_recover_read_timestamp(progname, arg, timep)
|
||||
const char *progname;
|
||||
char *arg;
|
||||
time_t *timep;
|
||||
{
|
||||
struct tm *t;
|
||||
time_t now;
|
||||
int yearset;
|
||||
char *p;
|
||||
/* Start with the current time. */
|
||||
(void)time(&now);
|
||||
if ((t = localtime(&now)) == NULL) {
|
||||
fprintf(stderr,
|
||||
"%s: localtime: %s\n", progname, strerror(errno));
|
||||
return (EXIT_FAILURE);
|
||||
}
|
||||
/* [[CC]YY]MMDDhhmm[.SS] */
|
||||
if ((p = strchr(arg, '.')) == NULL)
|
||||
t->tm_sec = 0; /* Seconds defaults to 0. */
|
||||
else {
|
||||
if (strlen(p + 1) != 2)
|
||||
goto terr;
|
||||
*p++ = '\0';
|
||||
t->tm_sec = ATOI2(p);
|
||||
}
|
||||
|
||||
yearset = 0;
|
||||
switch(strlen(arg)) {
|
||||
case 12: /* CCYYMMDDhhmm */
|
||||
t->tm_year = ATOI2(arg);
|
||||
t->tm_year *= 100;
|
||||
yearset = 1;
|
||||
/* FALLTHROUGH */
|
||||
case 10: /* YYMMDDhhmm */
|
||||
if (yearset) {
|
||||
yearset = ATOI2(arg);
|
||||
t->tm_year += yearset;
|
||||
} else {
|
||||
yearset = ATOI2(arg);
|
||||
if (yearset < 69)
|
||||
t->tm_year = yearset + 2000;
|
||||
else
|
||||
t->tm_year = yearset + 1900;
|
||||
}
|
||||
t->tm_year -= 1900; /* Convert to UNIX time. */
|
||||
/* FALLTHROUGH */
|
||||
case 8: /* MMDDhhmm */
|
||||
t->tm_mon = ATOI2(arg);
|
||||
--t->tm_mon; /* Convert from 01-12 to 00-11 */
|
||||
t->tm_mday = ATOI2(arg);
|
||||
t->tm_hour = ATOI2(arg);
|
||||
t->tm_min = ATOI2(arg);
|
||||
break;
|
||||
default:
|
||||
goto terr;
|
||||
}
|
||||
|
||||
t->tm_isdst = -1; /* Figure out DST. */
|
||||
|
||||
*timep = mktime(t);
|
||||
if (*timep == -1) {
|
||||
terr: fprintf(stderr,
|
||||
"%s: out of range or illegal time specification: [[CC]YY]MMDDhhmm[.SS]",
|
||||
progname);
|
||||
return (EXIT_FAILURE);
|
||||
}
|
||||
return (0);
|
||||
}
|
||||
|
||||
int
|
||||
db_recover_usage()
|
||||
{
|
||||
(void)fprintf(stderr, "%s\n",
|
||||
"usage: db_recover [-ceVv] [-h home] [-P password] [-t [[CC]YY]MMDDhhmm[.SS]]");
|
||||
return (EXIT_FAILURE);
|
||||
}
|
||||
|
||||
int
|
||||
db_recover_version_check(progname)
|
||||
const char *progname;
|
||||
{
|
||||
int v_major, v_minor, v_patch;
|
||||
|
||||
/* Make sure we're loaded with the right version of the DB library. */
|
||||
(void)db_version(&v_major, &v_minor, &v_patch);
|
||||
if (v_major != DB_VERSION_MAJOR ||
|
||||
v_minor != DB_VERSION_MINOR || v_patch != DB_VERSION_PATCH) {
|
||||
fprintf(stderr,
|
||||
"%s: version %d.%d.%d doesn't match library version %d.%d.%d\n",
|
||||
progname, DB_VERSION_MAJOR, DB_VERSION_MINOR,
|
||||
DB_VERSION_PATCH, v_major, v_minor, v_patch);
|
||||
return (EXIT_FAILURE);
|
||||
}
|
||||
return (0);
|
||||
}
|
@ -1,160 +0,0 @@
|
||||
Document file - DO NOT EDIT
|
||||
|
||||
<BEGIN> BUILD_PENTIUMgnu_BUILDRULE
|
||||
db_recover.out
|
||||
<END>
|
||||
|
||||
<BEGIN> BUILD_PENTIUMgnu_MACRO_AR
|
||||
ar386
|
||||
<END>
|
||||
|
||||
<BEGIN> BUILD_PENTIUMgnu_MACRO_ARCHIVE
|
||||
$(PRJ_DIR)/PENTIUMgnu/db_recover.a
|
||||
<END>
|
||||
|
||||
<BEGIN> BUILD_PENTIUMgnu_MACRO_AS
|
||||
cc386
|
||||
<END>
|
||||
|
||||
<BEGIN> BUILD_PENTIUMgnu_MACRO_CC
|
||||
cc386
|
||||
<END>
|
||||
|
||||
<BEGIN> BUILD_PENTIUMgnu_MACRO_CFLAGS
|
||||
-g \
|
||||
-mpentium \
|
||||
-ansi \
|
||||
-nostdinc \
|
||||
-DRW_MULTI_THREAD \
|
||||
-D_REENTRANT \
|
||||
-fvolatile \
|
||||
-nostdlib \
|
||||
-fno-builtin \
|
||||
-fno-defer-pop \
|
||||
-I$(PRJ_DIR)/.. \
|
||||
-I$(PRJ_DIR)/../.. \
|
||||
-I$(WIND_BASE)/target/h \
|
||||
-DCPU=PENTIUM
|
||||
<END>
|
||||
|
||||
<BEGIN> BUILD_PENTIUMgnu_MACRO_CFLAGS_AS
|
||||
-g \
|
||||
-mpentium \
|
||||
-ansi \
|
||||
-nostdinc \
|
||||
-fvolatile \
|
||||
-nostdlib \
|
||||
-fno-builtin \
|
||||
-fno-defer-pop \
|
||||
-P \
|
||||
-x \
|
||||
assembler-with-cpp \
|
||||
-I$(WIND_BASE)/target/h \
|
||||
-DCPU=PENTIUM
|
||||
<END>
|
||||
|
||||
<BEGIN> BUILD_PENTIUMgnu_MACRO_CPP
|
||||
cc386 -E -P -xc
|
||||
<END>
|
||||
|
||||
<BEGIN> BUILD_PENTIUMgnu_MACRO_LD
|
||||
ld386
|
||||
<END>
|
||||
|
||||
<BEGIN> BUILD_PENTIUMgnu_MACRO_LDDEPS
|
||||
|
||||
<END>
|
||||
|
||||
<BEGIN> BUILD_PENTIUMgnu_MACRO_LDFLAGS
|
||||
-X -N
|
||||
<END>
|
||||
|
||||
<BEGIN> BUILD_PENTIUMgnu_MACRO_LD_PARTIAL_FLAGS
|
||||
-X -r
|
||||
<END>
|
||||
|
||||
<BEGIN> BUILD_PENTIUMgnu_MACRO_NM
|
||||
nm386 -g
|
||||
<END>
|
||||
|
||||
<BEGIN> BUILD_PENTIUMgnu_MACRO_OPTION_DEFINE_MACRO
|
||||
-D
|
||||
<END>
|
||||
|
||||
<BEGIN> BUILD_PENTIUMgnu_MACRO_OPTION_INCLUDE_DIR
|
||||
-I
|
||||
<END>
|
||||
|
||||
<BEGIN> BUILD_PENTIUMgnu_MACRO_POST_BUILD_RULE
|
||||
|
||||
<END>
|
||||
|
||||
<BEGIN> BUILD_PENTIUMgnu_MACRO_PRJ_LIBS
|
||||
|
||||
<END>
|
||||
|
||||
<BEGIN> BUILD_PENTIUMgnu_MACRO_SIZE
|
||||
size386
|
||||
<END>
|
||||
|
||||
<BEGIN> BUILD_PENTIUMgnu_RO_DEPEND_PATH
|
||||
{$(WIND_BASE)/target/h/} \
|
||||
{$(WIND_BASE)/target/src/} \
|
||||
{$(WIND_BASE)/target/config/}
|
||||
<END>
|
||||
|
||||
<BEGIN> BUILD_PENTIUMgnu_TC
|
||||
::tc_PENTIUMgnu
|
||||
<END>
|
||||
|
||||
<BEGIN> BUILD_RULE_archive
|
||||
|
||||
<END>
|
||||
|
||||
<BEGIN> BUILD_RULE_db_recover.out
|
||||
|
||||
<END>
|
||||
|
||||
<BEGIN> BUILD_RULE_objects
|
||||
|
||||
<END>
|
||||
|
||||
<BEGIN> BUILD__CURRENT
|
||||
PENTIUMgnu
|
||||
<END>
|
||||
|
||||
<BEGIN> BUILD__LIST
|
||||
PENTIUMgnu
|
||||
<END>
|
||||
|
||||
<BEGIN> CORE_INFO_TYPE
|
||||
::prj_vxApp
|
||||
<END>
|
||||
|
||||
<BEGIN> CORE_INFO_VERSION
|
||||
2.0
|
||||
<END>
|
||||
|
||||
<BEGIN> FILE_db_recover.c_dependDone
|
||||
FALSE
|
||||
<END>
|
||||
|
||||
<BEGIN> FILE_db_recover.c_dependencies
|
||||
|
||||
<END>
|
||||
|
||||
<BEGIN> FILE_db_recover.c_objects
|
||||
db_recover.o
|
||||
<END>
|
||||
|
||||
<BEGIN> FILE_db_recover.c_tool
|
||||
C/C++ compiler
|
||||
<END>
|
||||
|
||||
<BEGIN> PROJECT_FILES
|
||||
$(PRJ_DIR)/db_recover.c
|
||||
<END>
|
||||
|
||||
<BEGIN> userComments
|
||||
db_recover
|
||||
<END>
|
@ -1,51 +0,0 @@
|
||||
#
|
||||
# Custom Makefile shell
|
||||
#
|
||||
# This file may be edited freely, since it will not be regenerated
|
||||
# by the project manager.
|
||||
#
|
||||
# Use this makefile to define rules to make external binaries
|
||||
# and deposit them in the $(EXTERNAL_BINARIES_DIR) directory.
|
||||
#
|
||||
# If you have specified external modules during your component
|
||||
# creation, you will find make rules already in place below.
|
||||
# You will likely have to edit these to suit your individual
|
||||
# build setup.
|
||||
#
|
||||
# You may wish to use the CPU, BUILD_SPEC or TOOL make variables in
|
||||
# your Makefile to support builds for different architectures. Use
|
||||
# the FORCE_EXTERNAL_MAKE phony target to ensure that your external
|
||||
# make always runs.
|
||||
#
|
||||
# The example below assumes that your custom makefile is in the
|
||||
# mySourceTree directory, and that the binary file it produces
|
||||
# is placed into the $(BUILD_SPEC) sub-directory.
|
||||
#
|
||||
# EXTERNAL_SOURCE_BASE = /folk/me/mySourceTree
|
||||
# EXTERNAL_MODULE = myLibrary.o
|
||||
# EXTERNAL_MAKE = make
|
||||
#
|
||||
# $(EXTERNAL_BINARIES_DIR)/$(EXTERNAL_MODULE) : FORCE_EXTERNAL_MAKE
|
||||
# $(EXTERNAL_MAKE) -C $(EXTERNAL_SOURCE_BASE) \
|
||||
# -f $(EXTERNAL_SOURCE_BASE)/Makefile \
|
||||
# CPU=$(CPU) BUILD_SPEC=$(BUILD_SPEC) $(@F)
|
||||
# $(CP) $(subst /,$(DIRCHAR),$(EXTERNAL_SOURCE_BASE)/$(BUILD_SPEC)/$(@F) $@)
|
||||
#
|
||||
# If you are not adding your external modules from the component wizard,
|
||||
# you will have to include them in your component yourself:
|
||||
#
|
||||
# From the GUI, you can do this with the Component's 'Add external module'
|
||||
# dialog.
|
||||
#
|
||||
# If you are using the command line, add the module(s) by editing the
|
||||
# MODULES line in component.cdf file, e.g.
|
||||
#
|
||||
# Component INCLUDE_MYCOMPONENT {
|
||||
#
|
||||
# MODULES foo.o goo.o \
|
||||
# myLibrary.o
|
||||
#
|
||||
|
||||
|
||||
# rules to build custom libraries
|
||||
|
@ -1,30 +0,0 @@
|
||||
/* component.cdf - dynamically updated configuration */
|
||||
|
||||
/*
|
||||
* NOTE: you may edit this file to alter the configuration
|
||||
* But all non-configuration information, including comments,
|
||||
* will be lost upon rebuilding this project.
|
||||
*/
|
||||
|
||||
/* Component information */
|
||||
|
||||
Component INCLUDE_DB_RECOVER {
|
||||
ENTRY_POINTS ALL_GLOBAL_SYMBOLS
|
||||
MODULES db_recover.o
|
||||
NAME db_recover
|
||||
PREF_DOMAIN ANY
|
||||
_INIT_ORDER usrComponentsInit
|
||||
}
|
||||
|
||||
/* EntryPoint information */
|
||||
|
||||
/* Module information */
|
||||
|
||||
Module db_recover.o {
|
||||
|
||||
NAME db_recover.o
|
||||
SRC_PATH_NAME $PRJ_DIR/../db_recover.c
|
||||
}
|
||||
|
||||
/* Parameter information */
|
||||
|
@ -1,475 +0,0 @@
|
||||
Document file - DO NOT EDIT
|
||||
|
||||
<BEGIN> CORE_INFO_TYPE
|
||||
::prj_component
|
||||
<END>
|
||||
|
||||
<BEGIN> CORE_INFO_VERSION
|
||||
AE1.1
|
||||
<END>
|
||||
|
||||
<BEGIN> BUILD__CURRENT
|
||||
PENTIUM2gnu.debug
|
||||
<END>
|
||||
|
||||
<BEGIN> BUILD_PENTIUM2gnu.debug_CURRENT_TARGET
|
||||
default
|
||||
<END>
|
||||
|
||||
<BEGIN> BUILD_PENTIUM2gnu.debug_DEFAULTFORCPU
|
||||
1
|
||||
<END>
|
||||
|
||||
<BEGIN> BUILD_PENTIUM2gnu.debug_FILE_$(PRJ_DIR)/../db_recover.c_infoTags
|
||||
toolMacro objects
|
||||
<END>
|
||||
|
||||
<BEGIN> BUILD_PENTIUM2gnu.debug_FILE_$(PRJ_DIR)/../db_recover.c_objects
|
||||
db_recover.o
|
||||
<END>
|
||||
|
||||
<BEGIN> BUILD_PENTIUM2gnu.debug_FILE_$(PRJ_DIR)/../db_recover.c_toolMacro
|
||||
CC
|
||||
<END>
|
||||
|
||||
<BEGIN> BUILD_PENTIUM2gnu.debug_FILE_$(PRJ_DIR)/../db_recover.c_objects
|
||||
db_recover.o
|
||||
<END>
|
||||
|
||||
<BEGIN> BUILD_PENTIUM2gnu.debug_FILE_$(PRJ_DIR)/../db_recover.c_toolMacro
|
||||
CC
|
||||
<END>
|
||||
|
||||
<BEGIN> BUILD_PENTIUM2gnu.debug_FILE_$(PRJ_DIR)/compConfig.c_infoTags
|
||||
toolMacro objects
|
||||
<END>
|
||||
|
||||
<BEGIN> BUILD_PENTIUM2gnu.debug_FILE_$(PRJ_DIR)/compConfig.c_objects
|
||||
compConfig.o
|
||||
<END>
|
||||
|
||||
<BEGIN> BUILD_PENTIUM2gnu.debug_FILE_$(PRJ_DIR)/compConfig.c_toolMacro
|
||||
CC
|
||||
<END>
|
||||
|
||||
<BEGIN> BUILD_PENTIUM2gnu.debug_MACRO_AR
|
||||
arpentium
|
||||
<END>
|
||||
|
||||
<BEGIN> BUILD_PENTIUM2gnu.debug_MACRO_AS
|
||||
ccpentium
|
||||
<END>
|
||||
|
||||
<BEGIN> BUILD_PENTIUM2gnu.debug_MACRO_CC
|
||||
ccpentium
|
||||
<END>
|
||||
|
||||
<BEGIN> BUILD_PENTIUM2gnu.debug_MACRO_CFLAGS
|
||||
-mcpu=pentiumpro \
|
||||
-march=pentiumpro \
|
||||
-ansi \
|
||||
-DRW_MULTI_THREAD \
|
||||
-D_REENTRANT \
|
||||
-g \
|
||||
-nostdlib \
|
||||
-fno-builtin \
|
||||
-fno-defer-pop \
|
||||
-MD \
|
||||
-Wall \
|
||||
-I. \
|
||||
-I$(WIND_BASE)/target/h \
|
||||
-I$(PRJ_DIR)/../.. \
|
||||
-I$(PRJ_DIR)/../../.. \
|
||||
-DCPU=PENTIUM2
|
||||
<END>
|
||||
|
||||
<BEGIN> BUILD_PENTIUM2gnu.debug_MACRO_CFLAGS_AS
|
||||
-mcpu=pentiumpro \
|
||||
-march=pentiumpro \
|
||||
-ansi \
|
||||
-g \
|
||||
-nostdlib \
|
||||
-fno-builtin \
|
||||
-fno-defer-pop \
|
||||
-P \
|
||||
-x \
|
||||
assembler-with-cpp \
|
||||
-Wall \
|
||||
-I. \
|
||||
-I$(WIND_BASE)/target/h \
|
||||
-DCPU=PENTIUM2
|
||||
<END>
|
||||
|
||||
<BEGIN> BUILD_PENTIUM2gnu.debug_MACRO_CPP
|
||||
ccpentium -E -P
|
||||
<END>
|
||||
|
||||
<BEGIN> BUILD_PENTIUM2gnu.debug_MACRO_CPPFILT
|
||||
c++filtpentium --strip-underscores
|
||||
<END>
|
||||
|
||||
<BEGIN> BUILD_PENTIUM2gnu.debug_MACRO_LD
|
||||
ldpentium
|
||||
<END>
|
||||
|
||||
<BEGIN> BUILD_PENTIUM2gnu.debug_MACRO_LDFLAGS
|
||||
-X
|
||||
<END>
|
||||
|
||||
<BEGIN> BUILD_PENTIUM2gnu.debug_MACRO_LDPARTIAL
|
||||
ccpentium \
|
||||
-B$(WIND_BASE)/host/$(WIND_HOST_TYPE)/lib/gcc-lib/ \
|
||||
-nostdlib \
|
||||
-r \
|
||||
-Wl,-X
|
||||
<END>
|
||||
|
||||
<BEGIN> BUILD_PENTIUM2gnu.debug_MACRO_LD_PARTIAL_FLAGS
|
||||
-X -r
|
||||
<END>
|
||||
|
||||
<BEGIN> BUILD_PENTIUM2gnu.debug_MACRO_NM
|
||||
nmpentium -g
|
||||
<END>
|
||||
|
||||
<BEGIN> BUILD_PENTIUM2gnu.debug_MACRO_OPTION_DEFINE_MACRO
|
||||
-D
|
||||
<END>
|
||||
|
||||
<BEGIN> BUILD_PENTIUM2gnu.debug_MACRO_OPTION_GENERATE_DEPENDENCY_FILE
|
||||
-MD
|
||||
<END>
|
||||
|
||||
<BEGIN> BUILD_PENTIUM2gnu.debug_MACRO_OPTION_INCLUDE_DIR
|
||||
-I
|
||||
<END>
|
||||
|
||||
<BEGIN> BUILD_PENTIUM2gnu.debug_MACRO_RELEASE
|
||||
0
|
||||
<END>
|
||||
|
||||
<BEGIN> BUILD_PENTIUM2gnu.debug_MACRO_SIZE
|
||||
sizepentium
|
||||
<END>
|
||||
|
||||
<BEGIN> BUILD_PENTIUM2gnu.debug_RELEASE
|
||||
0
|
||||
<END>
|
||||
|
||||
<BEGIN> BUILD_PENTIUM2gnu.debug_RO_DEPEND_PATH
|
||||
$(WIND_BASE)/target/h/
|
||||
<END>
|
||||
|
||||
<BEGIN> BUILD_PENTIUM2gnu.debug_TC
|
||||
::tc_PENTIUM2gnu.debug
|
||||
<END>
|
||||
|
||||
<BEGIN> BUILD_PENTIUM2gnu.release_DEFAULTFORCPU
|
||||
0
|
||||
<END>
|
||||
|
||||
<BEGIN> BUILD_PENTIUM2gnu.release_FILE_$(PRJ_DIR)/../db_recover.c_infoTags
|
||||
toolMacro objects
|
||||
<END>
|
||||
|
||||
<BEGIN> BUILD_PENTIUM2gnu.release_FILE_$(PRJ_DIR)/../db_recover.c_objects
|
||||
db_recover.o
|
||||
<END>
|
||||
|
||||
<BEGIN> BUILD_PENTIUM2gnu.release_FILE_$(PRJ_DIR)/../db_recover.c_toolMacro
|
||||
CC
|
||||
<END>
|
||||
|
||||
<BEGIN> BUILD_PENTIUM2gnu.release_FILE_$(PRJ_DIR)/compConfig.c_infoTags
|
||||
toolMacro objects
|
||||
<END>
|
||||
|
||||
<BEGIN> BUILD_PENTIUM2gnu.release_FILE_$(PRJ_DIR)/compConfig.c_objects
|
||||
compConfig.o
|
||||
<END>
|
||||
|
||||
<BEGIN> BUILD_PENTIUM2gnu.release_FILE_$(PRJ_DIR)/compConfig.c_toolMacro
|
||||
CC
|
||||
<END>
|
||||
|
||||
<BEGIN> BUILD_PENTIUM2gnu.release_MACRO_AR
|
||||
arpentium
|
||||
<END>
|
||||
|
||||
<BEGIN> BUILD_PENTIUM2gnu.release_MACRO_AS
|
||||
ccpentium
|
||||
<END>
|
||||
|
||||
<BEGIN> BUILD_PENTIUM2gnu.release_MACRO_CC
|
||||
ccpentium
|
||||
<END>
|
||||
|
||||
<BEGIN> BUILD_PENTIUM2gnu.release_MACRO_CFLAGS
|
||||
-mcpu=pentiumpro \
|
||||
-march=pentiumpro \
|
||||
-ansi \
|
||||
-DRW_MULTI_THREAD \
|
||||
-D_REENTRANT \
|
||||
-O2 \
|
||||
-nostdlib \
|
||||
-fno-builtin \
|
||||
-fno-defer-pop \
|
||||
-MD \
|
||||
-Wall \
|
||||
-I. \
|
||||
-I$(WIND_BASE)/target/h \
|
||||
-I$(PRJ_DIR)/../.. \
|
||||
-I$(PRJ_DIR)/../../.. \
|
||||
-DCPU=PENTIUM2
|
||||
<END>
|
||||
|
||||
<BEGIN> BUILD_PENTIUM2gnu.release_MACRO_CFLAGS_AS
|
||||
-mcpu=pentiumpro \
|
||||
-march=pentiumpro \
|
||||
-ansi \
|
||||
-O2 \
|
||||
-nostdlib \
|
||||
-fno-builtin \
|
||||
-fno-defer-pop \
|
||||
-P \
|
||||
-x \
|
||||
assembler-with-cpp \
|
||||
-Wall \
|
||||
-I. \
|
||||
-I$(WIND_BASE)/target/h \
|
||||
-DCPU=PENTIUM2
|
||||
<END>
|
||||
|
||||
<BEGIN> BUILD_PENTIUM2gnu.release_MACRO_CPP
|
||||
ccpentium -E -P
|
||||
<END>
|
||||
|
||||
<BEGIN> BUILD_PENTIUM2gnu.release_MACRO_CPPFILT
|
||||
c++filtpentium --strip-underscores
|
||||
<END>
|
||||
|
||||
<BEGIN> BUILD_PENTIUM2gnu.release_MACRO_LD
|
||||
ldpentium
|
||||
<END>
|
||||
|
||||
<BEGIN> BUILD_PENTIUM2gnu.release_MACRO_LDFLAGS
|
||||
-X
|
||||
<END>
|
||||
|
||||
<BEGIN> BUILD_PENTIUM2gnu.release_MACRO_LDPARTIAL
|
||||
ccpentium \
|
||||
-B$(WIND_BASE)/host/$(WIND_HOST_TYPE)/lib/gcc-lib/ \
|
||||
-nostdlib \
|
||||
-r \
|
||||
-Wl,-X
|
||||
<END>
|
||||
|
||||
<BEGIN> BUILD_PENTIUM2gnu.release_MACRO_LD_PARTIAL_FLAGS
|
||||
-X -r
|
||||
<END>
|
||||
|
||||
<BEGIN> BUILD_PENTIUM2gnu.release_MACRO_NM
|
||||
nmpentium -g
|
||||
<END>
|
||||
|
||||
<BEGIN> BUILD_PENTIUM2gnu.release_MACRO_OPTION_DEFINE_MACRO
|
||||
-D
|
||||
<END>
|
||||
|
||||
<BEGIN> BUILD_PENTIUM2gnu.release_MACRO_OPTION_GENERATE_DEPENDENCY_FILE
|
||||
-MD
|
||||
<END>
|
||||
|
||||
<BEGIN> BUILD_PENTIUM2gnu.release_MACRO_OPTION_INCLUDE_DIR
|
||||
-I
|
||||
<END>
|
||||
|
||||
<BEGIN> BUILD_PENTIUM2gnu.release_MACRO_RELEASE
|
||||
1
|
||||
<END>
|
||||
|
||||
<BEGIN> BUILD_PENTIUM2gnu.release_MACRO_SIZE
|
||||
sizepentium
|
||||
<END>
|
||||
|
||||
<BEGIN> BUILD_PENTIUM2gnu.release_RELEASE
|
||||
1
|
||||
<END>
|
||||
|
||||
<BEGIN> BUILD_PENTIUM2gnu.release_RO_DEPEND_PATH
|
||||
$(WIND_BASE)/target/h/
|
||||
<END>
|
||||
|
||||
<BEGIN> BUILD_PENTIUM2gnu.release_TC
|
||||
::tc_PENTIUM2gnu.release
|
||||
<END>
|
||||
|
||||
<BEGIN> BUILD_PENTIUMgnu.debug_DEFAULTFORCPU
|
||||
1
|
||||
<END>
|
||||
|
||||
<BEGIN> BUILD_PENTIUMgnu.debug_FILE_$(PRJ_DIR)/../db_recover.c_infoTags
|
||||
toolMacro objects
|
||||
<END>
|
||||
|
||||
<BEGIN> BUILD_PENTIUMgnu.debug_FILE_$(PRJ_DIR)/../db_recover.c_objects
|
||||
db_recover.o
|
||||
<END>
|
||||
|
||||
<BEGIN> BUILD_PENTIUMgnu.debug_FILE_$(PRJ_DIR)/../db_recover.c_toolMacro
|
||||
CC
|
||||
<END>
|
||||
|
||||
<BEGIN> BUILD_PENTIUMgnu.debug_FILE_$(PRJ_DIR)/compConfig.c_infoTags
|
||||
toolMacro objects
|
||||
<END>
|
||||
|
||||
<BEGIN> BUILD_PENTIUMgnu.debug_FILE_$(PRJ_DIR)/compConfig.c_objects
|
||||
compConfig.o
|
||||
<END>
|
||||
|
||||
<BEGIN> BUILD_PENTIUMgnu.debug_FILE_$(PRJ_DIR)/compConfig.c_toolMacro
|
||||
CC
|
||||
<END>
|
||||
|
||||
<BEGIN> BUILD_PENTIUMgnu.debug_MACRO_AR
|
||||
arpentium
|
||||
<END>
|
||||
|
||||
<BEGIN> BUILD_PENTIUMgnu.debug_MACRO_AS
|
||||
ccpentium
|
||||
<END>
|
||||
|
||||
<BEGIN> BUILD_PENTIUMgnu.debug_MACRO_CC
|
||||
ccpentium
|
||||
<END>
|
||||
|
||||
<BEGIN> BUILD_PENTIUMgnu.debug_MACRO_CFLAGS
|
||||
-mcpu=pentium \
|
||||
-march=pentium \
|
||||
-ansi \
|
||||
-DRW_MULTI_THREAD \
|
||||
-D_REENTRANT \
|
||||
-g \
|
||||
-nostdlib \
|
||||
-fno-builtin \
|
||||
-fno-defer-pop \
|
||||
-MD \
|
||||
-Wall \
|
||||
-I. \
|
||||
-I$(WIND_BASE)/target/h \
|
||||
-I$(PRJ_DIR)/../.. \
|
||||
-I$(PRJ_DIR)/../../.. \
|
||||
-DCPU=PENTIUM
|
||||
<END>
|
||||
|
||||
<BEGIN> BUILD_PENTIUMgnu.debug_MACRO_CFLAGS_AS
|
||||
-mcpu=pentium \
|
||||
-march=pentium \
|
||||
-ansi \
|
||||
-g \
|
||||
-nostdlib \
|
||||
-fno-builtin \
|
||||
-fno-defer-pop \
|
||||
-P \
|
||||
-x \
|
||||
assembler-with-cpp \
|
||||
-Wall \
|
||||
-I. \
|
||||
-I$(WIND_BASE)/target/h \
|
||||
-DCPU=PENTIUM
|
||||
<END>
|
||||
|
||||
<BEGIN> BUILD_PENTIUMgnu.debug_MACRO_CPP
|
||||
ccpentium -E -P
|
||||
<END>
|
||||
|
||||
<BEGIN> BUILD_PENTIUMgnu.debug_MACRO_CPPFILT
|
||||
c++filtpentium --strip-underscores
|
||||
<END>
|
||||
|
||||
<BEGIN> BUILD_PENTIUMgnu.debug_MACRO_LD
|
||||
ldpentium
|
||||
<END>
|
||||
|
||||
<BEGIN> BUILD_PENTIUMgnu.debug_MACRO_LDFLAGS
|
||||
-X
|
||||
<END>
|
||||
|
||||
<BEGIN> BUILD_PENTIUMgnu.debug_MACRO_LDPARTIAL
|
||||
ccpentium \
|
||||
-B$(WIND_BASE)/host/$(WIND_HOST_TYPE)/lib/gcc-lib/ \
|
||||
-nostdlib \
|
||||
-r \
|
||||
-Wl,-X
|
||||
<END>
|
||||
|
||||
<BEGIN> BUILD_PENTIUMgnu.debug_MACRO_LD_PARTIAL_FLAGS
|
||||
-X -r
|
||||
<END>
|
||||
|
||||
<BEGIN> BUILD_PENTIUMgnu.debug_MACRO_NM
|
||||
nmpentium -g
|
||||
<END>
|
||||
|
||||
<BEGIN> BUILD_PENTIUMgnu.debug_MACRO_OPTION_DEFINE_MACRO
|
||||
-D
|
||||
<END>
|
||||
|
||||
<BEGIN> BUILD_PENTIUMgnu.debug_MACRO_OPTION_GENERATE_DEPENDENCY_FILE
|
||||
-MD
|
||||
<END>
|
||||
|
||||
<BEGIN> BUILD_PENTIUMgnu.debug_MACRO_OPTION_INCLUDE_DIR
|
||||
-I
|
||||
<END>
|
||||
|
||||
<BEGIN> BUILD_PENTIUMgnu.debug_MACRO_RELEASE
|
||||
0
|
||||
<END>
|
||||
|
||||
<BEGIN> BUILD_PENTIUMgnu.debug_MACRO_SIZE
|
||||
sizepentium
|
||||
<END>
|
||||
|
||||
<BEGIN> BUILD_PENTIUMgnu.debug_RELEASE
|
||||
0
|
||||
<END>
|
||||
|
||||
<BEGIN> BUILD_PENTIUMgnu.debug_RO_DEPEND_PATH
|
||||
$(WIND_BASE)/target/h/
|
||||
<END>
|
||||
|
||||
<BEGIN> BUILD_PENTIUMgnu.debug_TC
|
||||
::tc_PENTIUMgnu.debug
|
||||
<END>
|
||||
|
||||
<BEGIN> BUILD__LIST
|
||||
PENTIUM2gnu.debug PENTIUM2gnu.release PENTIUMgnu.debug
|
||||
<END>
|
||||
|
||||
<BEGIN> PROJECT_FILES
|
||||
$(PRJ_DIR)/../db_recover.c \
|
||||
$(PRJ_DIR)/compConfig.c
|
||||
<END>
|
||||
|
||||
<BEGIN> WCC__CDF_PATH
|
||||
$(PRJ_DIR)
|
||||
<END>
|
||||
|
||||
<BEGIN> WCC__CURRENT
|
||||
PENTIUM2gnu.debug
|
||||
<END>
|
||||
|
||||
<BEGIN> WCC__LIST
|
||||
PENTIUM2gnu.debug
|
||||
<END>
|
||||
|
||||
<BEGIN> WCC__MXR_LIBS
|
||||
lib$(CPU)$(TOOL)vx.a
|
||||
<END>
|
||||
|
||||
<BEGIN> WCC__OBJS_PATH
|
||||
$(WIND_BASE)/target/lib/obj$CPU$TOOLvx
|
||||
<END>
|
||||
|
File diff suppressed because it is too large
Load Diff
@ -1,160 +0,0 @@
|
||||
Document file - DO NOT EDIT
|
||||
|
||||
<BEGIN> BUILD_PENTIUMgnu_BUILDRULE
|
||||
db_stat.out
|
||||
<END>
|
||||
|
||||
<BEGIN> BUILD_PENTIUMgnu_MACRO_AR
|
||||
ar386
|
||||
<END>
|
||||
|
||||
<BEGIN> BUILD_PENTIUMgnu_MACRO_ARCHIVE
|
||||
$(PRJ_DIR)/PENTIUMgnu/db_stat.a
|
||||
<END>
|
||||
|
||||
<BEGIN> BUILD_PENTIUMgnu_MACRO_AS
|
||||
cc386
|
||||
<END>
|
||||
|
||||
<BEGIN> BUILD_PENTIUMgnu_MACRO_CC
|
||||
cc386
|
||||
<END>
|
||||
|
||||
<BEGIN> BUILD_PENTIUMgnu_MACRO_CFLAGS
|
||||
-g \
|
||||
-mpentium \
|
||||
-ansi \
|
||||
-nostdinc \
|
||||
-DRW_MULTI_THREAD \
|
||||
-D_REENTRANT \
|
||||
-fvolatile \
|
||||
-nostdlib \
|
||||
-fno-builtin \
|
||||
-fno-defer-pop \
|
||||
-I$(PRJ_DIR)/.. \
|
||||
-I$(PRJ_DIR)/../.. \
|
||||
-I$(WIND_BASE)/target/h \
|
||||
-DCPU=PENTIUM
|
||||
<END>
|
||||
|
||||
<BEGIN> BUILD_PENTIUMgnu_MACRO_CFLAGS_AS
|
||||
-g \
|
||||
-mpentium \
|
||||
-ansi \
|
||||
-nostdinc \
|
||||
-fvolatile \
|
||||
-nostdlib \
|
||||
-fno-builtin \
|
||||
-fno-defer-pop \
|
||||
-P \
|
||||
-x \
|
||||
assembler-with-cpp \
|
||||
-I$(WIND_BASE)/target/h \
|
||||
-DCPU=PENTIUM
|
||||
<END>
|
||||
|
||||
<BEGIN> BUILD_PENTIUMgnu_MACRO_CPP
|
||||
cc386 -E -P -xc
|
||||
<END>
|
||||
|
||||
<BEGIN> BUILD_PENTIUMgnu_MACRO_LD
|
||||
ld386
|
||||
<END>
|
||||
|
||||
<BEGIN> BUILD_PENTIUMgnu_MACRO_LDDEPS
|
||||
|
||||
<END>
|
||||
|
||||
<BEGIN> BUILD_PENTIUMgnu_MACRO_LDFLAGS
|
||||
-X -N
|
||||
<END>
|
||||
|
||||
<BEGIN> BUILD_PENTIUMgnu_MACRO_LD_PARTIAL_FLAGS
|
||||
-X -r
|
||||
<END>
|
||||
|
||||
<BEGIN> BUILD_PENTIUMgnu_MACRO_NM
|
||||
nm386 -g
|
||||
<END>
|
||||
|
||||
<BEGIN> BUILD_PENTIUMgnu_MACRO_OPTION_DEFINE_MACRO
|
||||
-D
|
||||
<END>
|
||||
|
||||
<BEGIN> BUILD_PENTIUMgnu_MACRO_OPTION_INCLUDE_DIR
|
||||
-I
|
||||
<END>
|
||||
|
||||
<BEGIN> BUILD_PENTIUMgnu_MACRO_POST_BUILD_RULE
|
||||
|
||||
<END>
|
||||
|
||||
<BEGIN> BUILD_PENTIUMgnu_MACRO_PRJ_LIBS
|
||||
|
||||
<END>
|
||||
|
||||
<BEGIN> BUILD_PENTIUMgnu_MACRO_SIZE
|
||||
size386
|
||||
<END>
|
||||
|
||||
<BEGIN> BUILD_PENTIUMgnu_RO_DEPEND_PATH
|
||||
{$(WIND_BASE)/target/h/} \
|
||||
{$(WIND_BASE)/target/src/} \
|
||||
{$(WIND_BASE)/target/config/}
|
||||
<END>
|
||||
|
||||
<BEGIN> BUILD_PENTIUMgnu_TC
|
||||
::tc_PENTIUMgnu
|
||||
<END>
|
||||
|
||||
<BEGIN> BUILD_RULE_archive
|
||||
|
||||
<END>
|
||||
|
||||
<BEGIN> BUILD_RULE_db_stat.out
|
||||
|
||||
<END>
|
||||
|
||||
<BEGIN> BUILD_RULE_objects
|
||||
|
||||
<END>
|
||||
|
||||
<BEGIN> BUILD__CURRENT
|
||||
PENTIUMgnu
|
||||
<END>
|
||||
|
||||
<BEGIN> BUILD__LIST
|
||||
PENTIUMgnu
|
||||
<END>
|
||||
|
||||
<BEGIN> CORE_INFO_TYPE
|
||||
::prj_vxApp
|
||||
<END>
|
||||
|
||||
<BEGIN> CORE_INFO_VERSION
|
||||
2.0
|
||||
<END>
|
||||
|
||||
<BEGIN> FILE_db_stat.c_dependDone
|
||||
FALSE
|
||||
<END>
|
||||
|
||||
<BEGIN> FILE_db_stat.c_dependencies
|
||||
|
||||
<END>
|
||||
|
||||
<BEGIN> FILE_db_stat.c_objects
|
||||
db_stat.o
|
||||
<END>
|
||||
|
||||
<BEGIN> FILE_db_stat.c_tool
|
||||
C/C++ compiler
|
||||
<END>
|
||||
|
||||
<BEGIN> PROJECT_FILES
|
||||
$(PRJ_DIR)/db_stat.c
|
||||
<END>
|
||||
|
||||
<BEGIN> userComments
|
||||
db_stat
|
||||
<END>
|
@ -1,51 +0,0 @@
|
||||
#
|
||||
# Custom Makefile shell
|
||||
#
|
||||
# This file may be edited freely, since it will not be regenerated
|
||||
# by the project manager.
|
||||
#
|
||||
# Use this makefile to define rules to make external binaries
|
||||
# and deposit them in the $(EXTERNAL_BINARIES_DIR) directory.
|
||||
#
|
||||
# If you have specified external modules during your component
|
||||
# creation, you will find make rules already in place below.
|
||||
# You will likely have to edit these to suit your individual
|
||||
# build setup.
|
||||
#
|
||||
# You may wish to use the CPU, BUILD_SPEC or TOOL make variables in
|
||||
# your Makefile to support builds for different architectures. Use
|
||||
# the FORCE_EXTERNAL_MAKE phony target to ensure that your external
|
||||
# make always runs.
|
||||
#
|
||||
# The example below assumes that your custom makefile is in the
|
||||
# mySourceTree directory, and that the binary file it produces
|
||||
# is placed into the $(BUILD_SPEC) sub-directory.
|
||||
#
|
||||
# EXTERNAL_SOURCE_BASE = /folk/me/mySourceTree
|
||||
# EXTERNAL_MODULE = myLibrary.o
|
||||
# EXTERNAL_MAKE = make
|
||||
#
|
||||
# $(EXTERNAL_BINARIES_DIR)/$(EXTERNAL_MODULE) : FORCE_EXTERNAL_MAKE
|
||||
# $(EXTERNAL_MAKE) -C $(EXTERNAL_SOURCE_BASE) \
|
||||
# -f $(EXTERNAL_SOURCE_BASE)/Makefile \
|
||||
# CPU=$(CPU) BUILD_SPEC=$(BUILD_SPEC) $(@F)
|
||||
# $(CP) $(subst /,$(DIRCHAR),$(EXTERNAL_SOURCE_BASE)/$(BUILD_SPEC)/$(@F) $@)
|
||||
#
|
||||
# If you are not adding your external modules from the component wizard,
|
||||
# you will have to include them in your component yourself:
|
||||
#
|
||||
# From the GUI, you can do this with the Component's 'Add external module'
|
||||
# dialog.
|
||||
#
|
||||
# If you are using the command line, add the module(s) by editing the
|
||||
# MODULES line in component.cdf file, e.g.
|
||||
#
|
||||
# Component INCLUDE_MYCOMPONENT {
|
||||
#
|
||||
# MODULES foo.o goo.o \
|
||||
# myLibrary.o
|
||||
#
|
||||
|
||||
|
||||
# rules to build custom libraries
|
||||
|
@ -1,30 +0,0 @@
|
||||
/* component.cdf - dynamically updated configuration */
|
||||
|
||||
/*
|
||||
* NOTE: you may edit this file to alter the configuration
|
||||
* But all non-configuration information, including comments,
|
||||
* will be lost upon rebuilding this project.
|
||||
*/
|
||||
|
||||
/* Component information */
|
||||
|
||||
Component INCLUDE_DB_STAT {
|
||||
ENTRY_POINTS ALL_GLOBAL_SYMBOLS
|
||||
MODULES db_stat.o
|
||||
NAME db_stat
|
||||
PREF_DOMAIN ANY
|
||||
_INIT_ORDER usrComponentsInit
|
||||
}
|
||||
|
||||
/* EntryPoint information */
|
||||
|
||||
/* Module information */
|
||||
|
||||
Module db_stat.o {
|
||||
|
||||
NAME db_stat.o
|
||||
SRC_PATH_NAME $PRJ_DIR/../db_stat.c
|
||||
}
|
||||
|
||||
/* Parameter information */
|
||||
|
@ -1,475 +0,0 @@
|
||||
Document file - DO NOT EDIT
|
||||
|
||||
<BEGIN> CORE_INFO_TYPE
|
||||
::prj_component
|
||||
<END>
|
||||
|
||||
<BEGIN> CORE_INFO_VERSION
|
||||
AE1.1
|
||||
<END>
|
||||
|
||||
<BEGIN> BUILD__CURRENT
|
||||
PENTIUM2gnu.debug
|
||||
<END>
|
||||
|
||||
<BEGIN> BUILD_PENTIUM2gnu.debug_CURRENT_TARGET
|
||||
default
|
||||
<END>
|
||||
|
||||
<BEGIN> BUILD_PENTIUM2gnu.debug_DEFAULTFORCPU
|
||||
1
|
||||
<END>
|
||||
|
||||
<BEGIN> BUILD_PENTIUM2gnu.debug_FILE_$(PRJ_DIR)/../db_stat.c_infoTags
|
||||
toolMacro objects
|
||||
<END>
|
||||
|
||||
<BEGIN> BUILD_PENTIUM2gnu.debug_FILE_$(PRJ_DIR)/../db_stat.c_objects
|
||||
db_stat.o
|
||||
<END>
|
||||
|
||||
<BEGIN> BUILD_PENTIUM2gnu.debug_FILE_$(PRJ_DIR)/../db_stat.c_toolMacro
|
||||
CC
|
||||
<END>
|
||||
|
||||
<BEGIN> BUILD_PENTIUM2gnu.debug_FILE_$(PRJ_DIR)/../db_stat.c_objects
|
||||
db_stat.o
|
||||
<END>
|
||||
|
||||
<BEGIN> BUILD_PENTIUM2gnu.debug_FILE_$(PRJ_DIR)/../db_stat.c_toolMacro
|
||||
CC
|
||||
<END>
|
||||
|
||||
<BEGIN> BUILD_PENTIUM2gnu.debug_FILE_$(PRJ_DIR)/compConfig.c_infoTags
|
||||
toolMacro objects
|
||||
<END>
|
||||
|
||||
<BEGIN> BUILD_PENTIUM2gnu.debug_FILE_$(PRJ_DIR)/compConfig.c_objects
|
||||
compConfig.o
|
||||
<END>
|
||||
|
||||
<BEGIN> BUILD_PENTIUM2gnu.debug_FILE_$(PRJ_DIR)/compConfig.c_toolMacro
|
||||
CC
|
||||
<END>
|
||||
|
||||
<BEGIN> BUILD_PENTIUM2gnu.debug_MACRO_AR
|
||||
arpentium
|
||||
<END>
|
||||
|
||||
<BEGIN> BUILD_PENTIUM2gnu.debug_MACRO_AS
|
||||
ccpentium
|
||||
<END>
|
||||
|
||||
<BEGIN> BUILD_PENTIUM2gnu.debug_MACRO_CC
|
||||
ccpentium
|
||||
<END>
|
||||
|
||||
<BEGIN> BUILD_PENTIUM2gnu.debug_MACRO_CFLAGS
|
||||
-mcpu=pentiumpro \
|
||||
-march=pentiumpro \
|
||||
-ansi \
|
||||
-DRW_MULTI_THREAD \
|
||||
-D_REENTRANT \
|
||||
-g \
|
||||
-nostdlib \
|
||||
-fno-builtin \
|
||||
-fno-defer-pop \
|
||||
-MD \
|
||||
-Wall \
|
||||
-I. \
|
||||
-I$(WIND_BASE)/target/h \
|
||||
-I$(PRJ_DIR)/../.. \
|
||||
-I$(PRJ_DIR)/../../.. \
|
||||
-DCPU=PENTIUM2
|
||||
<END>
|
||||
|
||||
<BEGIN> BUILD_PENTIUM2gnu.debug_MACRO_CFLAGS_AS
|
||||
-mcpu=pentiumpro \
|
||||
-march=pentiumpro \
|
||||
-ansi \
|
||||
-g \
|
||||
-nostdlib \
|
||||
-fno-builtin \
|
||||
-fno-defer-pop \
|
||||
-P \
|
||||
-x \
|
||||
assembler-with-cpp \
|
||||
-Wall \
|
||||
-I. \
|
||||
-I$(WIND_BASE)/target/h \
|
||||
-DCPU=PENTIUM2
|
||||
<END>
|
||||
|
||||
<BEGIN> BUILD_PENTIUM2gnu.debug_MACRO_CPP
|
||||
ccpentium -E -P
|
||||
<END>
|
||||
|
||||
<BEGIN> BUILD_PENTIUM2gnu.debug_MACRO_CPPFILT
|
||||
c++filtpentium --strip-underscores
|
||||
<END>
|
||||
|
||||
<BEGIN> BUILD_PENTIUM2gnu.debug_MACRO_LD
|
||||
ldpentium
|
||||
<END>
|
||||
|
||||
<BEGIN> BUILD_PENTIUM2gnu.debug_MACRO_LDFLAGS
|
||||
-X
|
||||
<END>
|
||||
|
||||
<BEGIN> BUILD_PENTIUM2gnu.debug_MACRO_LDPARTIAL
|
||||
ccpentium \
|
||||
-B$(WIND_BASE)/host/$(WIND_HOST_TYPE)/lib/gcc-lib/ \
|
||||
-nostdlib \
|
||||
-r \
|
||||
-Wl,-X
|
||||
<END>
|
||||
|
||||
<BEGIN> BUILD_PENTIUM2gnu.debug_MACRO_LD_PARTIAL_FLAGS
|
||||
-X -r
|
||||
<END>
|
||||
|
||||
<BEGIN> BUILD_PENTIUM2gnu.debug_MACRO_NM
|
||||
nmpentium -g
|
||||
<END>
|
||||
|
||||
<BEGIN> BUILD_PENTIUM2gnu.debug_MACRO_OPTION_DEFINE_MACRO
|
||||
-D
|
||||
<END>
|
||||
|
||||
<BEGIN> BUILD_PENTIUM2gnu.debug_MACRO_OPTION_GENERATE_DEPENDENCY_FILE
|
||||
-MD
|
||||
<END>
|
||||
|
||||
<BEGIN> BUILD_PENTIUM2gnu.debug_MACRO_OPTION_INCLUDE_DIR
|
||||
-I
|
||||
<END>
|
||||
|
||||
<BEGIN> BUILD_PENTIUM2gnu.debug_MACRO_RELEASE
|
||||
0
|
||||
<END>
|
||||
|
||||
<BEGIN> BUILD_PENTIUM2gnu.debug_MACRO_SIZE
|
||||
sizepentium
|
||||
<END>
|
||||
|
||||
<BEGIN> BUILD_PENTIUM2gnu.debug_RELEASE
|
||||
0
|
||||
<END>
|
||||
|
||||
<BEGIN> BUILD_PENTIUM2gnu.debug_RO_DEPEND_PATH
|
||||
$(WIND_BASE)/target/h/
|
||||
<END>
|
||||
|
||||
<BEGIN> BUILD_PENTIUM2gnu.debug_TC
|
||||
::tc_PENTIUM2gnu.debug
|
||||
<END>
|
||||
|
||||
<BEGIN> BUILD_PENTIUM2gnu.release_DEFAULTFORCPU
|
||||
0
|
||||
<END>
|
||||
|
||||
<BEGIN> BUILD_PENTIUM2gnu.release_FILE_$(PRJ_DIR)/../db_stat.c_infoTags
|
||||
toolMacro objects
|
||||
<END>
|
||||
|
||||
<BEGIN> BUILD_PENTIUM2gnu.release_FILE_$(PRJ_DIR)/../db_stat.c_objects
|
||||
db_stat.o
|
||||
<END>
|
||||
|
||||
<BEGIN> BUILD_PENTIUM2gnu.release_FILE_$(PRJ_DIR)/../db_stat.c_toolMacro
|
||||
CC
|
||||
<END>
|
||||
|
||||
<BEGIN> BUILD_PENTIUM2gnu.release_FILE_$(PRJ_DIR)/compConfig.c_infoTags
|
||||
toolMacro objects
|
||||
<END>
|
||||
|
||||
<BEGIN> BUILD_PENTIUM2gnu.release_FILE_$(PRJ_DIR)/compConfig.c_objects
|
||||
compConfig.o
|
||||
<END>
|
||||
|
||||
<BEGIN> BUILD_PENTIUM2gnu.release_FILE_$(PRJ_DIR)/compConfig.c_toolMacro
|
||||
CC
|
||||
<END>
|
||||
|
||||
<BEGIN> BUILD_PENTIUM2gnu.release_MACRO_AR
|
||||
arpentium
|
||||
<END>
|
||||
|
||||
<BEGIN> BUILD_PENTIUM2gnu.release_MACRO_AS
|
||||
ccpentium
|
||||
<END>
|
||||
|
||||
<BEGIN> BUILD_PENTIUM2gnu.release_MACRO_CC
|
||||
ccpentium
|
||||
<END>
|
||||
|
||||
<BEGIN> BUILD_PENTIUM2gnu.release_MACRO_CFLAGS
|
||||
-mcpu=pentiumpro \
|
||||
-march=pentiumpro \
|
||||
-ansi \
|
||||
-DRW_MULTI_THREAD \
|
||||
-D_REENTRANT \
|
||||
-O2 \
|
||||
-nostdlib \
|
||||
-fno-builtin \
|
||||
-fno-defer-pop \
|
||||
-MD \
|
||||
-Wall \
|
||||
-I. \
|
||||
-I$(WIND_BASE)/target/h \
|
||||
-I$(PRJ_DIR)/../.. \
|
||||
-I$(PRJ_DIR)/../../.. \
|
||||
-DCPU=PENTIUM2
|
||||
<END>
|
||||
|
||||
<BEGIN> BUILD_PENTIUM2gnu.release_MACRO_CFLAGS_AS
|
||||
-mcpu=pentiumpro \
|
||||
-march=pentiumpro \
|
||||
-ansi \
|
||||
-O2 \
|
||||
-nostdlib \
|
||||
-fno-builtin \
|
||||
-fno-defer-pop \
|
||||
-P \
|
||||
-x \
|
||||
assembler-with-cpp \
|
||||
-Wall \
|
||||
-I. \
|
||||
-I$(WIND_BASE)/target/h \
|
||||
-DCPU=PENTIUM2
|
||||
<END>
|
||||
|
||||
<BEGIN> BUILD_PENTIUM2gnu.release_MACRO_CPP
|
||||
ccpentium -E -P
|
||||
<END>
|
||||
|
||||
<BEGIN> BUILD_PENTIUM2gnu.release_MACRO_CPPFILT
|
||||
c++filtpentium --strip-underscores
|
||||
<END>
|
||||
|
||||
<BEGIN> BUILD_PENTIUM2gnu.release_MACRO_LD
|
||||
ldpentium
|
||||
<END>
|
||||
|
||||
<BEGIN> BUILD_PENTIUM2gnu.release_MACRO_LDFLAGS
|
||||
-X
|
||||
<END>
|
||||
|
||||
<BEGIN> BUILD_PENTIUM2gnu.release_MACRO_LDPARTIAL
|
||||
ccpentium \
|
||||
-B$(WIND_BASE)/host/$(WIND_HOST_TYPE)/lib/gcc-lib/ \
|
||||
-nostdlib \
|
||||
-r \
|
||||
-Wl,-X
|
||||
<END>
|
||||
|
||||
<BEGIN> BUILD_PENTIUM2gnu.release_MACRO_LD_PARTIAL_FLAGS
|
||||
-X -r
|
||||
<END>
|
||||
|
||||
<BEGIN> BUILD_PENTIUM2gnu.release_MACRO_NM
|
||||
nmpentium -g
|
||||
<END>
|
||||
|
||||
<BEGIN> BUILD_PENTIUM2gnu.release_MACRO_OPTION_DEFINE_MACRO
|
||||
-D
|
||||
<END>
|
||||
|
||||
<BEGIN> BUILD_PENTIUM2gnu.release_MACRO_OPTION_GENERATE_DEPENDENCY_FILE
|
||||
-MD
|
||||
<END>
|
||||
|
||||
<BEGIN> BUILD_PENTIUM2gnu.release_MACRO_OPTION_INCLUDE_DIR
|
||||
-I
|
||||
<END>
|
||||
|
||||
<BEGIN> BUILD_PENTIUM2gnu.release_MACRO_RELEASE
|
||||
1
|
||||
<END>
|
||||
|
||||
<BEGIN> BUILD_PENTIUM2gnu.release_MACRO_SIZE
|
||||
sizepentium
|
||||
<END>
|
||||
|
||||
<BEGIN> BUILD_PENTIUM2gnu.release_RELEASE
|
||||
1
|
||||
<END>
|
||||
|
||||
<BEGIN> BUILD_PENTIUM2gnu.release_RO_DEPEND_PATH
|
||||
$(WIND_BASE)/target/h/
|
||||
<END>
|
||||
|
||||
<BEGIN> BUILD_PENTIUM2gnu.release_TC
|
||||
::tc_PENTIUM2gnu.release
|
||||
<END>
|
||||
|
||||
<BEGIN> BUILD_PENTIUMgnu.debug_DEFAULTFORCPU
|
||||
1
|
||||
<END>
|
||||
|
||||
<BEGIN> BUILD_PENTIUMgnu.debug_FILE_$(PRJ_DIR)/../db_stat.c_infoTags
|
||||
toolMacro objects
|
||||
<END>
|
||||
|
||||
<BEGIN> BUILD_PENTIUMgnu.debug_FILE_$(PRJ_DIR)/../db_stat.c_objects
|
||||
db_stat.o
|
||||
<END>
|
||||
|
||||
<BEGIN> BUILD_PENTIUMgnu.debug_FILE_$(PRJ_DIR)/../db_stat.c_toolMacro
|
||||
CC
|
||||
<END>
|
||||
|
||||
<BEGIN> BUILD_PENTIUMgnu.debug_FILE_$(PRJ_DIR)/compConfig.c_infoTags
|
||||
toolMacro objects
|
||||
<END>
|
||||
|
||||
<BEGIN> BUILD_PENTIUMgnu.debug_FILE_$(PRJ_DIR)/compConfig.c_objects
|
||||
compConfig.o
|
||||
<END>
|
||||
|
||||
<BEGIN> BUILD_PENTIUMgnu.debug_FILE_$(PRJ_DIR)/compConfig.c_toolMacro
|
||||
CC
|
||||
<END>
|
||||
|
||||
<BEGIN> BUILD_PENTIUMgnu.debug_MACRO_AR
|
||||
arpentium
|
||||
<END>
|
||||
|
||||
<BEGIN> BUILD_PENTIUMgnu.debug_MACRO_AS
|
||||
ccpentium
|
||||
<END>
|
||||
|
||||
<BEGIN> BUILD_PENTIUMgnu.debug_MACRO_CC
|
||||
ccpentium
|
||||
<END>
|
||||
|
||||
<BEGIN> BUILD_PENTIUMgnu.debug_MACRO_CFLAGS
|
||||
-mcpu=pentium \
|
||||
-march=pentium \
|
||||
-ansi \
|
||||
-DRW_MULTI_THREAD \
|
||||
-D_REENTRANT \
|
||||
-g \
|
||||
-nostdlib \
|
||||
-fno-builtin \
|
||||
-fno-defer-pop \
|
||||
-MD \
|
||||
-Wall \
|
||||
-I. \
|
||||
-I$(WIND_BASE)/target/h \
|
||||
-I$(PRJ_DIR)/../.. \
|
||||
-I$(PRJ_DIR)/../../.. \
|
||||
-DCPU=PENTIUM
|
||||
<END>
|
||||
|
||||
<BEGIN> BUILD_PENTIUMgnu.debug_MACRO_CFLAGS_AS
|
||||
-mcpu=pentium \
|
||||
-march=pentium \
|
||||
-ansi \
|
||||
-g \
|
||||
-nostdlib \
|
||||
-fno-builtin \
|
||||
-fno-defer-pop \
|
||||
-P \
|
||||
-x \
|
||||
assembler-with-cpp \
|
||||
-Wall \
|
||||
-I. \
|
||||
-I$(WIND_BASE)/target/h \
|
||||
-DCPU=PENTIUM
|
||||
<END>
|
||||
|
||||
<BEGIN> BUILD_PENTIUMgnu.debug_MACRO_CPP
|
||||
ccpentium -E -P
|
||||
<END>
|
||||
|
||||
<BEGIN> BUILD_PENTIUMgnu.debug_MACRO_CPPFILT
|
||||
c++filtpentium --strip-underscores
|
||||
<END>
|
||||
|
||||
<BEGIN> BUILD_PENTIUMgnu.debug_MACRO_LD
|
||||
ldpentium
|
||||
<END>
|
||||
|
||||
<BEGIN> BUILD_PENTIUMgnu.debug_MACRO_LDFLAGS
|
||||
-X
|
||||
<END>
|
||||
|
||||
<BEGIN> BUILD_PENTIUMgnu.debug_MACRO_LDPARTIAL
|
||||
ccpentium \
|
||||
-B$(WIND_BASE)/host/$(WIND_HOST_TYPE)/lib/gcc-lib/ \
|
||||
-nostdlib \
|
||||
-r \
|
||||
-Wl,-X
|
||||
<END>
|
||||
|
||||
<BEGIN> BUILD_PENTIUMgnu.debug_MACRO_LD_PARTIAL_FLAGS
|
||||
-X -r
|
||||
<END>
|
||||
|
||||
<BEGIN> BUILD_PENTIUMgnu.debug_MACRO_NM
|
||||
nmpentium -g
|
||||
<END>
|
||||
|
||||
<BEGIN> BUILD_PENTIUMgnu.debug_MACRO_OPTION_DEFINE_MACRO
|
||||
-D
|
||||
<END>
|
||||
|
||||
<BEGIN> BUILD_PENTIUMgnu.debug_MACRO_OPTION_GENERATE_DEPENDENCY_FILE
|
||||
-MD
|
||||
<END>
|
||||
|
||||
<BEGIN> BUILD_PENTIUMgnu.debug_MACRO_OPTION_INCLUDE_DIR
|
||||
-I
|
||||
<END>
|
||||
|
||||
<BEGIN> BUILD_PENTIUMgnu.debug_MACRO_RELEASE
|
||||
0
|
||||
<END>
|
||||
|
||||
<BEGIN> BUILD_PENTIUMgnu.debug_MACRO_SIZE
|
||||
sizepentium
|
||||
<END>
|
||||
|
||||
<BEGIN> BUILD_PENTIUMgnu.debug_RELEASE
|
||||
0
|
||||
<END>
|
||||
|
||||
<BEGIN> BUILD_PENTIUMgnu.debug_RO_DEPEND_PATH
|
||||
$(WIND_BASE)/target/h/
|
||||
<END>
|
||||
|
||||
<BEGIN> BUILD_PENTIUMgnu.debug_TC
|
||||
::tc_PENTIUMgnu.debug
|
||||
<END>
|
||||
|
||||
<BEGIN> BUILD__LIST
|
||||
PENTIUM2gnu.debug PENTIUM2gnu.release PENTIUMgnu.debug
|
||||
<END>
|
||||
|
||||
<BEGIN> PROJECT_FILES
|
||||
$(PRJ_DIR)/../db_stat.c \
|
||||
$(PRJ_DIR)/compConfig.c
|
||||
<END>
|
||||
|
||||
<BEGIN> WCC__CDF_PATH
|
||||
$(PRJ_DIR)
|
||||
<END>
|
||||
|
||||
<BEGIN> WCC__CURRENT
|
||||
PENTIUM2gnu.debug
|
||||
<END>
|
||||
|
||||
<BEGIN> WCC__LIST
|
||||
PENTIUM2gnu.debug
|
||||
<END>
|
||||
|
||||
<BEGIN> WCC__MXR_LIBS
|
||||
lib$(CPU)$(TOOL)vx.a
|
||||
<END>
|
||||
|
||||
<BEGIN> WCC__OBJS_PATH
|
||||
$(WIND_BASE)/target/lib/obj$CPU$TOOLvx
|
||||
<END>
|
||||
|
@ -1,205 +0,0 @@
|
||||
/*-
|
||||
* See the file LICENSE for redistribution information.
|
||||
*
|
||||
* Copyright (c) 1996-2002
|
||||
* Sleepycat Software. All rights reserved.
|
||||
*/
|
||||
|
||||
#include "db_config.h"
|
||||
|
||||
#ifndef lint
|
||||
static const char copyright[] =
|
||||
"Copyright (c) 1996-2002\nSleepycat Software Inc. All rights reserved.\n";
|
||||
static const char revid[] =
|
||||
"$Id: db_upgrade.c,v 1.31 2002/03/28 20:13:47 bostic Exp $";
|
||||
#endif
|
||||
|
||||
#ifndef NO_SYSTEM_INCLUDES
|
||||
#include <sys/types.h>
|
||||
|
||||
#include <stdio.h>
|
||||
#include <stdlib.h>
|
||||
#include <string.h>
|
||||
#include <unistd.h>
|
||||
#endif
|
||||
|
||||
#include "db_int.h"
|
||||
|
||||
int db_upgrade_main __P((int, char *[]));
|
||||
int db_upgrade_usage __P((void));
|
||||
int db_upgrade_version_check __P((const char *));
|
||||
|
||||
int
|
||||
db_upgrade(args)
|
||||
char *args;
|
||||
{
|
||||
int argc;
|
||||
char **argv;
|
||||
|
||||
__db_util_arg("db_upgrade", args, &argc, &argv);
|
||||
return (db_upgrade_main(argc, argv) ? EXIT_FAILURE : EXIT_SUCCESS);
|
||||
}
|
||||
|
||||
#include <stdio.h>
|
||||
#define ERROR_RETURN ERROR
|
||||
|
||||
int
|
||||
db_upgrade_main(argc, argv)
|
||||
int argc;
|
||||
char *argv[];
|
||||
{
|
||||
extern char *optarg;
|
||||
extern int optind, __db_getopt_reset;
|
||||
const char *progname = "db_upgrade";
|
||||
DB *dbp;
|
||||
DB_ENV *dbenv;
|
||||
u_int32_t flags;
|
||||
int ch, e_close, exitval, nflag, ret, t_ret;
|
||||
char *home, *passwd;
|
||||
|
||||
if ((ret = db_upgrade_version_check(progname)) != 0)
|
||||
return (ret);
|
||||
|
||||
dbenv = NULL;
|
||||
flags = nflag = 0;
|
||||
e_close = exitval = 0;
|
||||
home = passwd = NULL;
|
||||
__db_getopt_reset = 1;
|
||||
while ((ch = getopt(argc, argv, "h:NP:sV")) != EOF)
|
||||
switch (ch) {
|
||||
case 'h':
|
||||
home = optarg;
|
||||
break;
|
||||
case 'N':
|
||||
nflag = 1;
|
||||
break;
|
||||
case 'P':
|
||||
passwd = strdup(optarg);
|
||||
memset(optarg, 0, strlen(optarg));
|
||||
if (passwd == NULL) {
|
||||
fprintf(stderr, "%s: strdup: %s\n",
|
||||
progname, strerror(errno));
|
||||
return (EXIT_FAILURE);
|
||||
}
|
||||
break;
|
||||
case 's':
|
||||
LF_SET(DB_DUPSORT);
|
||||
break;
|
||||
case 'V':
|
||||
printf("%s\n", db_version(NULL, NULL, NULL));
|
||||
return (EXIT_SUCCESS);
|
||||
case '?':
|
||||
default:
|
||||
return (db_upgrade_usage());
|
||||
}
|
||||
argc -= optind;
|
||||
argv += optind;
|
||||
|
||||
if (argc <= 0)
|
||||
return (db_upgrade_usage());
|
||||
|
||||
/* Handle possible interruptions. */
|
||||
__db_util_siginit();
|
||||
|
||||
/*
|
||||
* Create an environment object and initialize it for error
|
||||
* reporting.
|
||||
*/
|
||||
if ((ret = db_env_create(&dbenv, 0)) != 0) {
|
||||
fprintf(stderr, "%s: db_env_create: %s\n",
|
||||
progname, db_strerror(ret));
|
||||
goto shutdown;
|
||||
}
|
||||
e_close = 1;
|
||||
|
||||
dbenv->set_errfile(dbenv, stderr);
|
||||
dbenv->set_errpfx(dbenv, progname);
|
||||
|
||||
if (nflag) {
|
||||
if ((ret = dbenv->set_flags(dbenv, DB_NOLOCKING, 1)) != 0) {
|
||||
dbenv->err(dbenv, ret, "set_flags: DB_NOLOCKING");
|
||||
goto shutdown;
|
||||
}
|
||||
if ((ret = dbenv->set_flags(dbenv, DB_NOPANIC, 1)) != 0) {
|
||||
dbenv->err(dbenv, ret, "set_flags: DB_NOPANIC");
|
||||
goto shutdown;
|
||||
}
|
||||
}
|
||||
|
||||
if (passwd != NULL && (ret = dbenv->set_encrypt(dbenv,
|
||||
passwd, DB_ENCRYPT_AES)) != 0) {
|
||||
dbenv->err(dbenv, ret, "set_passwd");
|
||||
goto shutdown;
|
||||
}
|
||||
|
||||
/*
|
||||
* If attaching to a pre-existing environment fails, create a
|
||||
* private one and try again.
|
||||
*/
|
||||
if ((ret = dbenv->open(dbenv,
|
||||
home, DB_JOINENV | DB_USE_ENVIRON, 0)) != 0 &&
|
||||
(ret = dbenv->open(dbenv, home,
|
||||
DB_CREATE | DB_INIT_MPOOL | DB_PRIVATE | DB_USE_ENVIRON, 0)) != 0) {
|
||||
dbenv->err(dbenv, ret, "open");
|
||||
goto shutdown;
|
||||
}
|
||||
|
||||
for (; !__db_util_interrupted() && argv[0] != NULL; ++argv) {
|
||||
if ((ret = db_create(&dbp, dbenv, 0)) != 0) {
|
||||
fprintf(stderr,
|
||||
"%s: db_create: %s\n", progname, db_strerror(ret));
|
||||
goto shutdown;
|
||||
}
|
||||
dbp->set_errfile(dbp, stderr);
|
||||
dbp->set_errpfx(dbp, progname);
|
||||
if ((ret = dbp->upgrade(dbp, argv[0], flags)) != 0)
|
||||
dbp->err(dbp, ret, "DB->upgrade: %s", argv[0]);
|
||||
if ((t_ret = dbp->close(dbp, 0)) != 0 && ret == 0) {
|
||||
dbenv->err(dbenv, ret, "DB->close: %s", argv[0]);
|
||||
ret = t_ret;
|
||||
}
|
||||
if (ret != 0)
|
||||
goto shutdown;
|
||||
}
|
||||
|
||||
if (0) {
|
||||
shutdown: exitval = 1;
|
||||
}
|
||||
if (e_close && (ret = dbenv->close(dbenv, 0)) != 0) {
|
||||
exitval = 1;
|
||||
fprintf(stderr,
|
||||
"%s: dbenv->close: %s\n", progname, db_strerror(ret));
|
||||
}
|
||||
|
||||
/* Resend any caught signal. */
|
||||
__db_util_sigresend();
|
||||
|
||||
return (exitval == 0 ? EXIT_SUCCESS : EXIT_FAILURE);
|
||||
}
|
||||
|
||||
int
|
||||
db_upgrade_usage()
|
||||
{
|
||||
fprintf(stderr, "%s\n",
|
||||
"usage: db_upgrade [-NsV] [-h home] [-P password] db_file ...");
|
||||
return (EXIT_FAILURE);
|
||||
}
|
||||
|
||||
int
|
||||
db_upgrade_version_check(progname)
|
||||
const char *progname;
|
||||
{
|
||||
int v_major, v_minor, v_patch;
|
||||
|
||||
/* Make sure we're loaded with the right version of the DB library. */
|
||||
(void)db_version(&v_major, &v_minor, &v_patch);
|
||||
if (v_major != DB_VERSION_MAJOR ||
|
||||
v_minor != DB_VERSION_MINOR || v_patch != DB_VERSION_PATCH) {
|
||||
fprintf(stderr,
|
||||
"%s: version %d.%d.%d doesn't match library version %d.%d.%d\n",
|
||||
progname, DB_VERSION_MAJOR, DB_VERSION_MINOR,
|
||||
DB_VERSION_PATCH, v_major, v_minor, v_patch);
|
||||
return (EXIT_FAILURE);
|
||||
}
|
||||
return (0);
|
||||
}
|
@ -1,160 +0,0 @@
|
||||
Document file - DO NOT EDIT
|
||||
|
||||
<BEGIN> BUILD_PENTIUMgnu_BUILDRULE
|
||||
db_upgrade.out
|
||||
<END>
|
||||
|
||||
<BEGIN> BUILD_PENTIUMgnu_MACRO_AR
|
||||
ar386
|
||||
<END>
|
||||
|
||||
<BEGIN> BUILD_PENTIUMgnu_MACRO_ARCHIVE
|
||||
$(PRJ_DIR)/PENTIUMgnu/db_upgrade.a
|
||||
<END>
|
||||
|
||||
<BEGIN> BUILD_PENTIUMgnu_MACRO_AS
|
||||
cc386
|
||||
<END>
|
||||
|
||||
<BEGIN> BUILD_PENTIUMgnu_MACRO_CC
|
||||
cc386
|
||||
<END>
|
||||
|
||||
<BEGIN> BUILD_PENTIUMgnu_MACRO_CFLAGS
|
||||
-g \
|
||||
-mpentium \
|
||||
-ansi \
|
||||
-nostdinc \
|
||||
-DRW_MULTI_THREAD \
|
||||
-D_REENTRANT \
|
||||
-fvolatile \
|
||||
-nostdlib \
|
||||
-fno-builtin \
|
||||
-fno-defer-pop \
|
||||
-I$(PRJ_DIR)/.. \
|
||||
-I$(PRJ_DIR)/../.. \
|
||||
-I$(WIND_BASE)/target/h \
|
||||
-DCPU=PENTIUM
|
||||
<END>
|
||||
|
||||
<BEGIN> BUILD_PENTIUMgnu_MACRO_CFLAGS_AS
|
||||
-g \
|
||||
-mpentium \
|
||||
-ansi \
|
||||
-nostdinc \
|
||||
-fvolatile \
|
||||
-nostdlib \
|
||||
-fno-builtin \
|
||||
-fno-defer-pop \
|
||||
-P \
|
||||
-x \
|
||||
assembler-with-cpp \
|
||||
-I$(WIND_BASE)/target/h \
|
||||
-DCPU=PENTIUM
|
||||
<END>
|
||||
|
||||
<BEGIN> BUILD_PENTIUMgnu_MACRO_CPP
|
||||
cc386 -E -P -xc
|
||||
<END>
|
||||
|
||||
<BEGIN> BUILD_PENTIUMgnu_MACRO_LD
|
||||
ld386
|
||||
<END>
|
||||
|
||||
<BEGIN> BUILD_PENTIUMgnu_MACRO_LDDEPS
|
||||
|
||||
<END>
|
||||
|
||||
<BEGIN> BUILD_PENTIUMgnu_MACRO_LDFLAGS
|
||||
-X -N
|
||||
<END>
|
||||
|
||||
<BEGIN> BUILD_PENTIUMgnu_MACRO_LD_PARTIAL_FLAGS
|
||||
-X -r
|
||||
<END>
|
||||
|
||||
<BEGIN> BUILD_PENTIUMgnu_MACRO_NM
|
||||
nm386 -g
|
||||
<END>
|
||||
|
||||
<BEGIN> BUILD_PENTIUMgnu_MACRO_OPTION_DEFINE_MACRO
|
||||
-D
|
||||
<END>
|
||||
|
||||
<BEGIN> BUILD_PENTIUMgnu_MACRO_OPTION_INCLUDE_DIR
|
||||
-I
|
||||
<END>
|
||||
|
||||
<BEGIN> BUILD_PENTIUMgnu_MACRO_POST_BUILD_RULE
|
||||
|
||||
<END>
|
||||
|
||||
<BEGIN> BUILD_PENTIUMgnu_MACRO_PRJ_LIBS
|
||||
|
||||
<END>
|
||||
|
||||
<BEGIN> BUILD_PENTIUMgnu_MACRO_SIZE
|
||||
size386
|
||||
<END>
|
||||
|
||||
<BEGIN> BUILD_PENTIUMgnu_RO_DEPEND_PATH
|
||||
{$(WIND_BASE)/target/h/} \
|
||||
{$(WIND_BASE)/target/src/} \
|
||||
{$(WIND_BASE)/target/config/}
|
||||
<END>
|
||||
|
||||
<BEGIN> BUILD_PENTIUMgnu_TC
|
||||
::tc_PENTIUMgnu
|
||||
<END>
|
||||
|
||||
<BEGIN> BUILD_RULE_archive
|
||||
|
||||
<END>
|
||||
|
||||
<BEGIN> BUILD_RULE_db_upgrade.out
|
||||
|
||||
<END>
|
||||
|
||||
<BEGIN> BUILD_RULE_objects
|
||||
|
||||
<END>
|
||||
|
||||
<BEGIN> BUILD__CURRENT
|
||||
PENTIUMgnu
|
||||
<END>
|
||||
|
||||
<BEGIN> BUILD__LIST
|
||||
PENTIUMgnu
|
||||
<END>
|
||||
|
||||
<BEGIN> CORE_INFO_TYPE
|
||||
::prj_vxApp
|
||||
<END>
|
||||
|
||||
<BEGIN> CORE_INFO_VERSION
|
||||
2.0
|
||||
<END>
|
||||
|
||||
<BEGIN> FILE_db_upgrade.c_dependDone
|
||||
FALSE
|
||||
<END>
|
||||
|
||||
<BEGIN> FILE_db_upgrade.c_dependencies
|
||||
|
||||
<END>
|
||||
|
||||
<BEGIN> FILE_db_upgrade.c_objects
|
||||
db_upgrade.o
|
||||
<END>
|
||||
|
||||
<BEGIN> FILE_db_upgrade.c_tool
|
||||
C/C++ compiler
|
||||
<END>
|
||||
|
||||
<BEGIN> PROJECT_FILES
|
||||
$(PRJ_DIR)/db_upgrade.c
|
||||
<END>
|
||||
|
||||
<BEGIN> userComments
|
||||
db_upgrade
|
||||
<END>
|
@ -1,51 +0,0 @@
|
||||
#
|
||||
# Custom Makefile shell
|
||||
#
|
||||
# This file may be edited freely, since it will not be regenerated
|
||||
# by the project manager.
|
||||
#
|
||||
# Use this makefile to define rules to make external binaries
|
||||
# and deposit them in the $(EXTERNAL_BINARIES_DIR) directory.
|
||||
#
|
||||
# If you have specified external modules during your component
|
||||
# creation, you will find make rules already in place below.
|
||||
# You will likely have to edit these to suit your individual
|
||||
# build setup.
|
||||
#
|
||||
# You may wish to use the CPU, BUILD_SPEC or TOOL make variables in
|
||||
# your Makefile to support builds for different architectures. Use
|
||||
# the FORCE_EXTERNAL_MAKE phony target to ensure that your external
|
||||
# make always runs.
|
||||
#
|
||||
# The example below assumes that your custom makefile is in the
|
||||
# mySourceTree directory, and that the binary file it produces
|
||||
# is placed into the $(BUILD_SPEC) sub-directory.
|
||||
#
|
||||
# EXTERNAL_SOURCE_BASE = /folk/me/mySourceTree
|
||||
# EXTERNAL_MODULE = myLibrary.o
|
||||
# EXTERNAL_MAKE = make
|
||||
#
|
||||
# $(EXTERNAL_BINARIES_DIR)/$(EXTERNAL_MODULE) : FORCE_EXTERNAL_MAKE
|
||||
# $(EXTERNAL_MAKE) -C $(EXTERNAL_SOURCE_BASE) \
|
||||
# -f $(EXTERNAL_SOURCE_BASE)/Makefile \
|
||||
# CPU=$(CPU) BUILD_SPEC=$(BUILD_SPEC) $(@F)
|
||||
# $(CP) $(subst /,$(DIRCHAR),$(EXTERNAL_SOURCE_BASE)/$(BUILD_SPEC)/$(@F) $@)
|
||||
#
|
||||
# If you are not adding your external modules from the component wizard,
|
||||
# you will have to include them in your component yourself:
|
||||
#
|
||||
# From the GUI, you can do this with the Component's 'Add external module'
|
||||
# dialog.
|
||||
#
|
||||
# If you are using the command line, add the module(s) by editing the
|
||||
# MODULES line in component.cdf file, e.g.
|
||||
#
|
||||
# Component INCLUDE_MYCOMPONENT {
|
||||
#
|
||||
# MODULES foo.o goo.o \
|
||||
# myLibrary.o
|
||||
#
|
||||
|
||||
|
||||
# rules to build custom libraries
|
||||
|
@ -1,30 +0,0 @@
|
||||
/* component.cdf - dynamically updated configuration */
|
||||
|
||||
/*
|
||||
* NOTE: you may edit this file to alter the configuration
|
||||
* But all non-configuration information, including comments,
|
||||
* will be lost upon rebuilding this project.
|
||||
*/
|
||||
|
||||
/* Component information */
|
||||
|
||||
Component INCLUDE_DB_UPGRADE {
|
||||
ENTRY_POINTS ALL_GLOBAL_SYMBOLS
|
||||
MODULES db_upgrade.o
|
||||
NAME db_upgrade
|
||||
PREF_DOMAIN ANY
|
||||
_INIT_ORDER usrComponentsInit
|
||||
}
|
||||
|
||||
/* EntryPoint information */
|
||||
|
||||
/* Module information */
|
||||
|
||||
Module db_upgrade.o {
|
||||
|
||||
NAME db_upgrade.o
|
||||
SRC_PATH_NAME $PRJ_DIR/../db_upgrade.c
|
||||
}
|
||||
|
||||
/* Parameter information */
|
||||
|
@ -1,475 +0,0 @@
|
||||
Document file - DO NOT EDIT
|
||||
|
||||
<BEGIN> CORE_INFO_TYPE
|
||||
::prj_component
|
||||
<END>
|
||||
|
||||
<BEGIN> CORE_INFO_VERSION
|
||||
AE1.1
|
||||
<END>
|
||||
|
||||
<BEGIN> BUILD__CURRENT
|
||||
PENTIUM2gnu.debug
|
||||
<END>
|
||||
|
||||
<BEGIN> BUILD_PENTIUM2gnu.debug_CURRENT_TARGET
|
||||
default
|
||||
<END>
|
||||
|
||||
<BEGIN> BUILD_PENTIUM2gnu.debug_DEFAULTFORCPU
|
||||
1
|
||||
<END>
|
||||
|
||||
<BEGIN> BUILD_PENTIUM2gnu.debug_FILE_$(PRJ_DIR)/../db_upgrade.c_infoTags
|
||||
toolMacro objects
|
||||
<END>
|
||||
|
||||
<BEGIN> BUILD_PENTIUM2gnu.debug_FILE_$(PRJ_DIR)/../db_upgrade.c_objects
|
||||
db_upgrade.o
|
||||
<END>
|
||||
|
||||
<BEGIN> BUILD_PENTIUM2gnu.debug_FILE_$(PRJ_DIR)/../db_upgrade.c_toolMacro
|
||||
CC
|
||||
<END>
|
||||
|
||||
<BEGIN> BUILD_PENTIUM2gnu.debug_FILE_$(PRJ_DIR)/../db_upgrade.c_objects
|
||||
db_upgrade.o
|
||||
<END>
|
||||
|
||||
<BEGIN> BUILD_PENTIUM2gnu.debug_FILE_$(PRJ_DIR)/../db_upgrade.c_toolMacro
|
||||
CC
|
||||
<END>
|
||||
|
||||
<BEGIN> BUILD_PENTIUM2gnu.debug_FILE_$(PRJ_DIR)/compConfig.c_infoTags
|
||||
toolMacro objects
|
||||
<END>
|
||||
|
||||
<BEGIN> BUILD_PENTIUM2gnu.debug_FILE_$(PRJ_DIR)/compConfig.c_objects
|
||||
compConfig.o
|
||||
<END>
|
||||
|
||||
<BEGIN> BUILD_PENTIUM2gnu.debug_FILE_$(PRJ_DIR)/compConfig.c_toolMacro
|
||||
CC
|
||||
<END>
|
||||
|
||||
<BEGIN> BUILD_PENTIUM2gnu.debug_MACRO_AR
|
||||
arpentium
|
||||
<END>
|
||||
|
||||
<BEGIN> BUILD_PENTIUM2gnu.debug_MACRO_AS
|
||||
ccpentium
|
||||
<END>
|
||||
|
||||
<BEGIN> BUILD_PENTIUM2gnu.debug_MACRO_CC
|
||||
ccpentium
|
||||
<END>
|
||||
|
||||
<BEGIN> BUILD_PENTIUM2gnu.debug_MACRO_CFLAGS
|
||||
-mcpu=pentiumpro \
|
||||
-march=pentiumpro \
|
||||
-ansi \
|
||||
-DRW_MULTI_THREAD \
|
||||
-D_REENTRANT \
|
||||
-g \
|
||||
-nostdlib \
|
||||
-fno-builtin \
|
||||
-fno-defer-pop \
|
||||
-MD \
|
||||
-Wall \
|
||||
-I. \
|
||||
-I$(WIND_BASE)/target/h \
|
||||
-I$(PRJ_DIR)/../.. \
|
||||
-I$(PRJ_DIR)/../../.. \
|
||||
-DCPU=PENTIUM2
|
||||
<END>
|
||||
|
||||
<BEGIN> BUILD_PENTIUM2gnu.debug_MACRO_CFLAGS_AS
|
||||
-mcpu=pentiumpro \
|
||||
-march=pentiumpro \
|
||||
-ansi \
|
||||
-g \
|
||||
-nostdlib \
|
||||
-fno-builtin \
|
||||
-fno-defer-pop \
|
||||
-P \
|
||||
-x \
|
||||
assembler-with-cpp \
|
||||
-Wall \
|
||||
-I. \
|
||||
-I$(WIND_BASE)/target/h \
|
||||
-DCPU=PENTIUM2
|
||||
<END>
|
||||
|
||||
<BEGIN> BUILD_PENTIUM2gnu.debug_MACRO_CPP
|
||||
ccpentium -E -P
|
||||
<END>
|
||||
|
||||
<BEGIN> BUILD_PENTIUM2gnu.debug_MACRO_CPPFILT
|
||||
c++filtpentium --strip-underscores
|
||||
<END>
|
||||
|
||||
<BEGIN> BUILD_PENTIUM2gnu.debug_MACRO_LD
|
||||
ldpentium
|
||||
<END>
|
||||
|
||||
<BEGIN> BUILD_PENTIUM2gnu.debug_MACRO_LDFLAGS
|
||||
-X
|
||||
<END>
|
||||
|
||||
<BEGIN> BUILD_PENTIUM2gnu.debug_MACRO_LDPARTIAL
|
||||
ccpentium \
|
||||
-B$(WIND_BASE)/host/$(WIND_HOST_TYPE)/lib/gcc-lib/ \
|
||||
-nostdlib \
|
||||
-r \
|
||||
-Wl,-X
|
||||
<END>
|
||||
|
||||
<BEGIN> BUILD_PENTIUM2gnu.debug_MACRO_LD_PARTIAL_FLAGS
|
||||
-X -r
|
||||
<END>
|
||||
|
||||
<BEGIN> BUILD_PENTIUM2gnu.debug_MACRO_NM
|
||||
nmpentium -g
|
||||
<END>
|
||||
|
||||
<BEGIN> BUILD_PENTIUM2gnu.debug_MACRO_OPTION_DEFINE_MACRO
|
||||
-D
|
||||
<END>
|
||||
|
||||
<BEGIN> BUILD_PENTIUM2gnu.debug_MACRO_OPTION_GENERATE_DEPENDENCY_FILE
|
||||
-MD
|
||||
<END>
|
||||
|
||||
<BEGIN> BUILD_PENTIUM2gnu.debug_MACRO_OPTION_INCLUDE_DIR
|
||||
-I
|
||||
<END>
|
||||
|
||||
<BEGIN> BUILD_PENTIUM2gnu.debug_MACRO_RELEASE
|
||||
0
|
||||
<END>
|
||||
|
||||
<BEGIN> BUILD_PENTIUM2gnu.debug_MACRO_SIZE
|
||||
sizepentium
|
||||
<END>
|
||||
|
||||
<BEGIN> BUILD_PENTIUM2gnu.debug_RELEASE
|
||||
0
|
||||
<END>
|
||||
|
||||
<BEGIN> BUILD_PENTIUM2gnu.debug_RO_DEPEND_PATH
|
||||
$(WIND_BASE)/target/h/
|
||||
<END>
|
||||
|
||||
<BEGIN> BUILD_PENTIUM2gnu.debug_TC
|
||||
::tc_PENTIUM2gnu.debug
|
||||
<END>
|
||||
|
||||
<BEGIN> BUILD_PENTIUM2gnu.release_DEFAULTFORCPU
|
||||
0
|
||||
<END>
|
||||
|
||||
<BEGIN> BUILD_PENTIUM2gnu.release_FILE_$(PRJ_DIR)/../db_upgrade.c_infoTags
|
||||
toolMacro objects
|
||||
<END>
|
||||
|
||||
<BEGIN> BUILD_PENTIUM2gnu.release_FILE_$(PRJ_DIR)/../db_upgrade.c_objects
|
||||
db_upgrade.o
|
||||
<END>
|
||||
|
||||
<BEGIN> BUILD_PENTIUM2gnu.release_FILE_$(PRJ_DIR)/../db_upgrade.c_toolMacro
|
||||
CC
|
||||
<END>
|
||||
|
||||
<BEGIN> BUILD_PENTIUM2gnu.release_FILE_$(PRJ_DIR)/compConfig.c_infoTags
|
||||
toolMacro objects
|
||||
<END>
|
||||
|
||||
<BEGIN> BUILD_PENTIUM2gnu.release_FILE_$(PRJ_DIR)/compConfig.c_objects
|
||||
compConfig.o
|
||||
<END>
|
||||
|
||||
<BEGIN> BUILD_PENTIUM2gnu.release_FILE_$(PRJ_DIR)/compConfig.c_toolMacro
|
||||
CC
|
||||
<END>
|
||||
|
||||
<BEGIN> BUILD_PENTIUM2gnu.release_MACRO_AR
|
||||
arpentium
|
||||
<END>
|
||||
|
||||
<BEGIN> BUILD_PENTIUM2gnu.release_MACRO_AS
|
||||
ccpentium
|
||||
<END>
|
||||
|
||||
<BEGIN> BUILD_PENTIUM2gnu.release_MACRO_CC
|
||||
ccpentium
|
||||
<END>
|
||||
|
||||
<BEGIN> BUILD_PENTIUM2gnu.release_MACRO_CFLAGS
|
||||
-mcpu=pentiumpro \
|
||||
-march=pentiumpro \
|
||||
-ansi \
|
||||
-DRW_MULTI_THREAD \
|
||||
-D_REENTRANT \
|
||||
-O2 \
|
||||
-nostdlib \
|
||||
-fno-builtin \
|
||||
-fno-defer-pop \
|
||||
-MD \
|
||||
-Wall \
|
||||
-I. \
|
||||
-I$(WIND_BASE)/target/h \
|
||||
-I$(PRJ_DIR)/../.. \
|
||||
-I$(PRJ_DIR)/../../.. \
|
||||
-DCPU=PENTIUM2
|
||||
<END>
|
||||
|
||||
<BEGIN> BUILD_PENTIUM2gnu.release_MACRO_CFLAGS_AS
|
||||
-mcpu=pentiumpro \
|
||||
-march=pentiumpro \
|
||||
-ansi \
|
||||
-O2 \
|
||||
-nostdlib \
|
||||
-fno-builtin \
|
||||
-fno-defer-pop \
|
||||
-P \
|
||||
-x \
|
||||
assembler-with-cpp \
|
||||
-Wall \
|
||||
-I. \
|
||||
-I$(WIND_BASE)/target/h \
|
||||
-DCPU=PENTIUM2
|
||||
<END>
|
||||
|
||||
<BEGIN> BUILD_PENTIUM2gnu.release_MACRO_CPP
|
||||
ccpentium -E -P
|
||||
<END>
|
||||
|
||||
<BEGIN> BUILD_PENTIUM2gnu.release_MACRO_CPPFILT
|
||||
c++filtpentium --strip-underscores
|
||||
<END>
|
||||
|
||||
<BEGIN> BUILD_PENTIUM2gnu.release_MACRO_LD
|
||||
ldpentium
|
||||
<END>
|
||||
|
||||
<BEGIN> BUILD_PENTIUM2gnu.release_MACRO_LDFLAGS
|
||||
-X
|
||||
<END>
|
||||
|
||||
<BEGIN> BUILD_PENTIUM2gnu.release_MACRO_LDPARTIAL
|
||||
ccpentium \
|
||||
-B$(WIND_BASE)/host/$(WIND_HOST_TYPE)/lib/gcc-lib/ \
|
||||
-nostdlib \
|
||||
-r \
|
||||
-Wl,-X
|
||||
<END>
|
||||
|
||||
<BEGIN> BUILD_PENTIUM2gnu.release_MACRO_LD_PARTIAL_FLAGS
|
||||
-X -r
|
||||
<END>
|
||||
|
||||
<BEGIN> BUILD_PENTIUM2gnu.release_MACRO_NM
|
||||
nmpentium -g
|
||||
<END>
|
||||
|
||||
<BEGIN> BUILD_PENTIUM2gnu.release_MACRO_OPTION_DEFINE_MACRO
|
||||
-D
|
||||
<END>
|
||||
|
||||
<BEGIN> BUILD_PENTIUM2gnu.release_MACRO_OPTION_GENERATE_DEPENDENCY_FILE
|
||||
-MD
|
||||
<END>
|
||||
|
||||
<BEGIN> BUILD_PENTIUM2gnu.release_MACRO_OPTION_INCLUDE_DIR
|
||||
-I
|
||||
<END>
|
||||
|
||||
<BEGIN> BUILD_PENTIUM2gnu.release_MACRO_RELEASE
|
||||
1
|
||||
<END>
|
||||
|
||||
<BEGIN> BUILD_PENTIUM2gnu.release_MACRO_SIZE
|
||||
sizepentium
|
||||
<END>
|
||||
|
||||
<BEGIN> BUILD_PENTIUM2gnu.release_RELEASE
|
||||
1
|
||||
<END>
|
||||
|
||||
<BEGIN> BUILD_PENTIUM2gnu.release_RO_DEPEND_PATH
|
||||
$(WIND_BASE)/target/h/
|
||||
<END>
|
||||
|
||||
<BEGIN> BUILD_PENTIUM2gnu.release_TC
|
||||
::tc_PENTIUM2gnu.release
|
||||
<END>
|
||||
|
||||
<BEGIN> BUILD_PENTIUMgnu.debug_DEFAULTFORCPU
|
||||
1
|
||||
<END>
|
||||
|
||||
<BEGIN> BUILD_PENTIUMgnu.debug_FILE_$(PRJ_DIR)/../db_upgrade.c_infoTags
|
||||
toolMacro objects
|
||||
<END>
|
||||
|
||||
<BEGIN> BUILD_PENTIUMgnu.debug_FILE_$(PRJ_DIR)/../db_upgrade.c_objects
|
||||
db_upgrade.o
|
||||
<END>
|
||||
|
||||
<BEGIN> BUILD_PENTIUMgnu.debug_FILE_$(PRJ_DIR)/../db_upgrade.c_toolMacro
|
||||
CC
|
||||
<END>
|
||||
|
||||
<BEGIN> BUILD_PENTIUMgnu.debug_FILE_$(PRJ_DIR)/compConfig.c_infoTags
|
||||
toolMacro objects
|
||||
<END>
|
||||
|
||||
<BEGIN> BUILD_PENTIUMgnu.debug_FILE_$(PRJ_DIR)/compConfig.c_objects
|
||||
compConfig.o
|
||||
<END>
|
||||
|
||||
<BEGIN> BUILD_PENTIUMgnu.debug_FILE_$(PRJ_DIR)/compConfig.c_toolMacro
|
||||
CC
|
||||
<END>
|
||||
|
||||
<BEGIN> BUILD_PENTIUMgnu.debug_MACRO_AR
|
||||
arpentium
|
||||
<END>
|
||||
|
||||
<BEGIN> BUILD_PENTIUMgnu.debug_MACRO_AS
|
||||
ccpentium
|
||||
<END>
|
||||
|
||||
<BEGIN> BUILD_PENTIUMgnu.debug_MACRO_CC
|
||||
ccpentium
|
||||
<END>
|
||||
|
||||
<BEGIN> BUILD_PENTIUMgnu.debug_MACRO_CFLAGS
|
||||
-mcpu=pentium \
|
||||
-march=pentium \
|
||||
-ansi \
|
||||
-DRW_MULTI_THREAD \
|
||||
-D_REENTRANT \
|
||||
-g \
|
||||
-nostdlib \
|
||||
-fno-builtin \
|
||||
-fno-defer-pop \
|
||||
-MD \
|
||||
-Wall \
|
||||
-I. \
|
||||
-I$(WIND_BASE)/target/h \
|
||||
-I$(PRJ_DIR)/../.. \
|
||||
-I$(PRJ_DIR)/../../.. \
|
||||
-DCPU=PENTIUM
|
||||
<END>
|
||||
|
||||
<BEGIN> BUILD_PENTIUMgnu.debug_MACRO_CFLAGS_AS
|
||||
-mcpu=pentium \
|
||||
-march=pentium \
|
||||
-ansi \
|
||||
-g \
|
||||
-nostdlib \
|
||||
-fno-builtin \
|
||||
-fno-defer-pop \
|
||||
-P \
|
||||
-x \
|
||||
assembler-with-cpp \
|
||||
-Wall \
|
||||
-I. \
|
||||
-I$(WIND_BASE)/target/h \
|
||||
-DCPU=PENTIUM
|
||||
<END>
|
||||
|
||||
<BEGIN> BUILD_PENTIUMgnu.debug_MACRO_CPP
|
||||
ccpentium -E -P
|
||||
<END>
|
||||
|
||||
<BEGIN> BUILD_PENTIUMgnu.debug_MACRO_CPPFILT
|
||||
c++filtpentium --strip-underscores
|
||||
<END>
|
||||
|
||||
<BEGIN> BUILD_PENTIUMgnu.debug_MACRO_LD
|
||||
ldpentium
|
||||
<END>
|
||||
|
||||
<BEGIN> BUILD_PENTIUMgnu.debug_MACRO_LDFLAGS
|
||||
-X
|
||||
<END>
|
||||
|
||||
<BEGIN> BUILD_PENTIUMgnu.debug_MACRO_LDPARTIAL
|
||||
ccpentium \
|
||||
-B$(WIND_BASE)/host/$(WIND_HOST_TYPE)/lib/gcc-lib/ \
|
||||
-nostdlib \
|
||||
-r \
|
||||
-Wl,-X
|
||||
<END>
|
||||
|
||||
<BEGIN> BUILD_PENTIUMgnu.debug_MACRO_LD_PARTIAL_FLAGS
|
||||
-X -r
|
||||
<END>
|
||||
|
||||
<BEGIN> BUILD_PENTIUMgnu.debug_MACRO_NM
|
||||
nmpentium -g
|
||||
<END>
|
||||
|
||||
<BEGIN> BUILD_PENTIUMgnu.debug_MACRO_OPTION_DEFINE_MACRO
|
||||
-D
|
||||
<END>
|
||||
|
||||
<BEGIN> BUILD_PENTIUMgnu.debug_MACRO_OPTION_GENERATE_DEPENDENCY_FILE
|
||||
-MD
|
||||
<END>
|
||||
|
||||
<BEGIN> BUILD_PENTIUMgnu.debug_MACRO_OPTION_INCLUDE_DIR
|
||||
-I
|
||||
<END>
|
||||
|
||||
<BEGIN> BUILD_PENTIUMgnu.debug_MACRO_RELEASE
|
||||
0
|
||||
<END>
|
||||
|
||||
<BEGIN> BUILD_PENTIUMgnu.debug_MACRO_SIZE
|
||||
sizepentium
|
||||
<END>
|
||||
|
||||
<BEGIN> BUILD_PENTIUMgnu.debug_RELEASE
|
||||
0
|
||||
<END>
|
||||
|
||||
<BEGIN> BUILD_PENTIUMgnu.debug_RO_DEPEND_PATH
|
||||
$(WIND_BASE)/target/h/
|
||||
<END>
|
||||
|
||||
<BEGIN> BUILD_PENTIUMgnu.debug_TC
|
||||
::tc_PENTIUMgnu.debug
|
||||
<END>
|
||||
|
||||
<BEGIN> BUILD__LIST
|
||||
PENTIUM2gnu.debug PENTIUM2gnu.release PENTIUMgnu.debug
|
||||
<END>
|
||||
|
||||
<BEGIN> PROJECT_FILES
|
||||
$(PRJ_DIR)/../db_upgrade.c \
|
||||
$(PRJ_DIR)/compConfig.c
|
||||
<END>
|
||||
|
||||
<BEGIN> WCC__CDF_PATH
|
||||
$(PRJ_DIR)
|
||||
<END>
|
||||
|
||||
<BEGIN> WCC__CURRENT
|
||||
PENTIUM2gnu.debug
|
||||
<END>
|
||||
|
||||
<BEGIN> WCC__LIST
|
||||
PENTIUM2gnu.debug
|
||||
<END>
|
||||
|
||||
<BEGIN> WCC__MXR_LIBS
|
||||
lib$(CPU)$(TOOL)vx.a
|
||||
<END>
|
||||
|
||||
<BEGIN> WCC__OBJS_PATH
|
||||
$(WIND_BASE)/target/lib/obj$CPU$TOOLvx
|
||||
<END>
|
||||
|
@ -1,263 +0,0 @@
|
||||
/*-
|
||||
* See the file LICENSE for redistribution information.
|
||||
*
|
||||
* Copyright (c) 1996-2002
|
||||
* Sleepycat Software. All rights reserved.
|
||||
*/
|
||||
|
||||
#include "db_config.h"
|
||||
|
||||
#ifndef lint
|
||||
static const char copyright[] =
|
||||
"Copyright (c) 1996-2002\nSleepycat Software Inc. All rights reserved.\n";
|
||||
static const char revid[] =
|
||||
"$Id: db_verify.c,v 1.38 2002/08/08 03:51:38 bostic Exp $";
|
||||
#endif
|
||||
|
||||
#ifndef NO_SYSTEM_INCLUDES
|
||||
#include <sys/types.h>
|
||||
|
||||
#include <stdio.h>
|
||||
#include <stdlib.h>
|
||||
#include <string.h>
|
||||
#include <unistd.h>
|
||||
#endif
|
||||
|
||||
#include "db_int.h"
|
||||
|
||||
int db_verify_main __P((int, char *[]));
|
||||
int db_verify_usage __P((void));
|
||||
int db_verify_version_check __P((const char *));
|
||||
|
||||
int
|
||||
db_verify(args)
|
||||
char *args;
|
||||
{
|
||||
int argc;
|
||||
char **argv;
|
||||
|
||||
__db_util_arg("db_verify", args, &argc, &argv);
|
||||
return (db_verify_main(argc, argv) ? EXIT_FAILURE : EXIT_SUCCESS);
|
||||
}
|
||||
|
||||
#include <stdio.h>
|
||||
#define ERROR_RETURN ERROR
|
||||
|
||||
int
|
||||
db_verify_main(argc, argv)
|
||||
int argc;
|
||||
char *argv[];
|
||||
{
|
||||
extern char *optarg;
|
||||
extern int optind, __db_getopt_reset;
|
||||
const char *progname = "db_verify";
|
||||
DB *dbp, *dbp1;
|
||||
DB_ENV *dbenv;
|
||||
u_int32_t cache;
|
||||
int ch, d_close, e_close, exitval, nflag, oflag, private;
|
||||
int quiet, resize, ret, t_ret;
|
||||
char *home, *passwd;
|
||||
|
||||
if ((ret = db_verify_version_check(progname)) != 0)
|
||||
return (ret);
|
||||
|
||||
dbenv = NULL;
|
||||
cache = MEGABYTE;
|
||||
d_close = e_close = exitval = nflag = oflag = quiet = 0;
|
||||
home = passwd = NULL;
|
||||
__db_getopt_reset = 1;
|
||||
while ((ch = getopt(argc, argv, "h:NoP:qV")) != EOF)
|
||||
switch (ch) {
|
||||
case 'h':
|
||||
home = optarg;
|
||||
break;
|
||||
case 'N':
|
||||
nflag = 1;
|
||||
break;
|
||||
case 'P':
|
||||
passwd = strdup(optarg);
|
||||
memset(optarg, 0, strlen(optarg));
|
||||
if (passwd == NULL) {
|
||||
fprintf(stderr, "%s: strdup: %s\n",
|
||||
progname, strerror(errno));
|
||||
return (EXIT_FAILURE);
|
||||
}
|
||||
break;
|
||||
case 'o':
|
||||
oflag = 1;
|
||||
break;
|
||||
case 'q':
|
||||
quiet = 1;
|
||||
break;
|
||||
case 'V':
|
||||
printf("%s\n", db_version(NULL, NULL, NULL));
|
||||
return (EXIT_SUCCESS);
|
||||
case '?':
|
||||
default:
|
||||
return (db_verify_usage());
|
||||
}
|
||||
argc -= optind;
|
||||
argv += optind;
|
||||
|
||||
if (argc <= 0)
|
||||
return (db_verify_usage());
|
||||
|
||||
/* Handle possible interruptions. */
|
||||
__db_util_siginit();
|
||||
|
||||
/*
|
||||
* Create an environment object and initialize it for error
|
||||
* reporting.
|
||||
*/
|
||||
retry: if ((ret = db_env_create(&dbenv, 0)) != 0) {
|
||||
fprintf(stderr,
|
||||
"%s: db_env_create: %s\n", progname, db_strerror(ret));
|
||||
goto shutdown;
|
||||
}
|
||||
e_close = 1;
|
||||
|
||||
if (!quiet) {
|
||||
dbenv->set_errfile(dbenv, stderr);
|
||||
dbenv->set_errpfx(dbenv, progname);
|
||||
}
|
||||
|
||||
if (nflag) {
|
||||
if ((ret = dbenv->set_flags(dbenv, DB_NOLOCKING, 1)) != 0) {
|
||||
dbenv->err(dbenv, ret, "set_flags: DB_NOLOCKING");
|
||||
goto shutdown;
|
||||
}
|
||||
if ((ret = dbenv->set_flags(dbenv, DB_NOPANIC, 1)) != 0) {
|
||||
dbenv->err(dbenv, ret, "set_flags: DB_NOPANIC");
|
||||
goto shutdown;
|
||||
}
|
||||
}
|
||||
|
||||
if (passwd != NULL &&
|
||||
(ret = dbenv->set_encrypt(dbenv, passwd, DB_ENCRYPT_AES)) != 0) {
|
||||
dbenv->err(dbenv, ret, "set_passwd");
|
||||
goto shutdown;
|
||||
}
|
||||
/*
|
||||
* Attach to an mpool if it exists, but if that fails, attach to a
|
||||
* private region. In the latter case, declare a reasonably large
|
||||
* cache so that we don't fail when verifying large databases.
|
||||
*/
|
||||
private = 0;
|
||||
if ((ret =
|
||||
dbenv->open(dbenv, home, DB_INIT_MPOOL | DB_USE_ENVIRON, 0)) != 0) {
|
||||
if ((ret = dbenv->set_cachesize(dbenv, 0, cache, 1)) != 0) {
|
||||
dbenv->err(dbenv, ret, "set_cachesize");
|
||||
goto shutdown;
|
||||
}
|
||||
private = 1;
|
||||
if ((ret = dbenv->open(dbenv, home,
|
||||
DB_CREATE | DB_INIT_MPOOL | DB_PRIVATE | DB_USE_ENVIRON, 0)) != 0) {
|
||||
dbenv->err(dbenv, ret, "open");
|
||||
goto shutdown;
|
||||
}
|
||||
}
|
||||
|
||||
for (; !__db_util_interrupted() && argv[0] != NULL; ++argv) {
|
||||
if ((ret = db_create(&dbp, dbenv, 0)) != 0) {
|
||||
dbenv->err(dbenv, ret, "%s: db_create", progname);
|
||||
goto shutdown;
|
||||
}
|
||||
d_close = 1;
|
||||
|
||||
/*
|
||||
* We create a 2nd dbp to this database to get its pagesize
|
||||
* because the dbp we're using for verify cannot be opened.
|
||||
*/
|
||||
if (private) {
|
||||
if ((ret = db_create(&dbp1, dbenv, 0)) != 0) {
|
||||
dbenv->err(
|
||||
dbenv, ret, "%s: db_create", progname);
|
||||
goto shutdown;
|
||||
}
|
||||
|
||||
if ((ret = dbp1->open(dbp1, NULL,
|
||||
argv[0], NULL, DB_UNKNOWN, DB_RDONLY, 0)) != 0) {
|
||||
dbenv->err(dbenv, ret, "DB->open: %s", argv[0]);
|
||||
(void)dbp1->close(dbp1, 0);
|
||||
goto shutdown;
|
||||
}
|
||||
/*
|
||||
* If we get here, we can check the cache/page.
|
||||
* !!!
|
||||
* If we have to retry with an env with a larger
|
||||
* cache, we jump out of this loop. However, we
|
||||
* will still be working on the same argv when we
|
||||
* get back into the for-loop.
|
||||
*/
|
||||
ret = __db_util_cache(dbenv, dbp1, &cache, &resize);
|
||||
(void)dbp1->close(dbp1, 0);
|
||||
if (ret != 0)
|
||||
goto shutdown;
|
||||
|
||||
if (resize) {
|
||||
(void)dbp->close(dbp, 0);
|
||||
d_close = 0;
|
||||
|
||||
(void)dbenv->close(dbenv, 0);
|
||||
e_close = 0;
|
||||
goto retry;
|
||||
}
|
||||
}
|
||||
if ((ret = dbp->verify(dbp,
|
||||
argv[0], NULL, NULL, oflag ? DB_NOORDERCHK : 0)) != 0)
|
||||
dbp->err(dbp, ret, "DB->verify: %s", argv[0]);
|
||||
if ((t_ret = dbp->close(dbp, 0)) != 0 && ret == 0) {
|
||||
dbenv->err(dbenv, ret, "DB->close: %s", argv[0]);
|
||||
ret = t_ret;
|
||||
}
|
||||
d_close = 0;
|
||||
if (ret != 0)
|
||||
goto shutdown;
|
||||
}
|
||||
|
||||
if (0) {
|
||||
shutdown: exitval = 1;
|
||||
}
|
||||
|
||||
if (d_close && (ret = dbp->close(dbp, 0)) != 0) {
|
||||
exitval = 1;
|
||||
dbenv->err(dbenv, ret, "close");
|
||||
}
|
||||
if (e_close && (ret = dbenv->close(dbenv, 0)) != 0) {
|
||||
exitval = 1;
|
||||
fprintf(stderr,
|
||||
"%s: dbenv->close: %s\n", progname, db_strerror(ret));
|
||||
}
|
||||
|
||||
/* Resend any caught signal. */
|
||||
__db_util_sigresend();
|
||||
|
||||
return (exitval == 0 ? EXIT_SUCCESS : EXIT_FAILURE);
|
||||
}
|
||||
|
||||
int
|
||||
db_verify_usage()
|
||||
{
|
||||
fprintf(stderr, "%s\n",
|
||||
"usage: db_verify [-NoqV] [-h home] [-P password] db_file ...");
|
||||
return (EXIT_FAILURE);
|
||||
}
|
||||
|
||||
int
|
||||
db_verify_version_check(progname)
|
||||
const char *progname;
|
||||
{
|
||||
int v_major, v_minor, v_patch;
|
||||
|
||||
/* Make sure we're loaded with the right version of the DB library. */
|
||||
(void)db_version(&v_major, &v_minor, &v_patch);
|
||||
if (v_major != DB_VERSION_MAJOR ||
|
||||
v_minor != DB_VERSION_MINOR || v_patch != DB_VERSION_PATCH) {
|
||||
fprintf(stderr,
|
||||
"%s: version %d.%d.%d doesn't match library version %d.%d.%d\n",
|
||||
progname, DB_VERSION_MAJOR, DB_VERSION_MINOR,
|
||||
DB_VERSION_PATCH, v_major, v_minor, v_patch);
|
||||
return (EXIT_FAILURE);
|
||||
}
|
||||
return (0);
|
||||
}
|
@ -1,160 +0,0 @@
|
||||
Document file - DO NOT EDIT
|
||||
|
||||
<BEGIN> BUILD_PENTIUMgnu_BUILDRULE
|
||||
db_verify.out
|
||||
<END>
|
||||
|
||||
<BEGIN> BUILD_PENTIUMgnu_MACRO_AR
|
||||
ar386
|
||||
<END>
|
||||
|
||||
<BEGIN> BUILD_PENTIUMgnu_MACRO_ARCHIVE
|
||||
$(PRJ_DIR)/PENTIUMgnu/db_verify.a
|
||||
<END>
|
||||
|
||||
<BEGIN> BUILD_PENTIUMgnu_MACRO_AS
|
||||
cc386
|
||||
<END>
|
||||
|
||||
<BEGIN> BUILD_PENTIUMgnu_MACRO_CC
|
||||
cc386
|
||||
<END>
|
||||
|
||||
<BEGIN> BUILD_PENTIUMgnu_MACRO_CFLAGS
|
||||
-g \
|
||||
-mpentium \
|
||||
-ansi \
|
||||
-nostdinc \
|
||||
-DRW_MULTI_THREAD \
|
||||
-D_REENTRANT \
|
||||
-fvolatile \
|
||||
-nostdlib \
|
||||
-fno-builtin \
|
||||
-fno-defer-pop \
|
||||
-I$(PRJ_DIR)/.. \
|
||||
-I$(PRJ_DIR)/../.. \
|
||||
-I$(WIND_BASE)/target/h \
|
||||
-DCPU=PENTIUM
|
||||
<END>
|
||||
|
||||
<BEGIN> BUILD_PENTIUMgnu_MACRO_CFLAGS_AS
|
||||
-g \
|
||||
-mpentium \
|
||||
-ansi \
|
||||
-nostdinc \
|
||||
-fvolatile \
|
||||
-nostdlib \
|
||||
-fno-builtin \
|
||||
-fno-defer-pop \
|
||||
-P \
|
||||
-x \
|
||||
assembler-with-cpp \
|
||||
-I$(WIND_BASE)/target/h \
|
||||
-DCPU=PENTIUM
|
||||
<END>
|
||||
|
||||
<BEGIN> BUILD_PENTIUMgnu_MACRO_CPP
|
||||
cc386 -E -P -xc
|
||||
<END>
|
||||
|
||||
<BEGIN> BUILD_PENTIUMgnu_MACRO_LD
|
||||
ld386
|
||||
<END>
|
||||
|
||||
<BEGIN> BUILD_PENTIUMgnu_MACRO_LDDEPS
|
||||
|
||||
<END>
|
||||
|
||||
<BEGIN> BUILD_PENTIUMgnu_MACRO_LDFLAGS
|
||||
-X -N
|
||||
<END>
|
||||
|
||||
<BEGIN> BUILD_PENTIUMgnu_MACRO_LD_PARTIAL_FLAGS
|
||||
-X -r
|
||||
<END>
|
||||
|
||||
<BEGIN> BUILD_PENTIUMgnu_MACRO_NM
|
||||
nm386 -g
|
||||
<END>
|
||||
|
||||
<BEGIN> BUILD_PENTIUMgnu_MACRO_OPTION_DEFINE_MACRO
|
||||
-D
|
||||
<END>
|
||||
|
||||
<BEGIN> BUILD_PENTIUMgnu_MACRO_OPTION_INCLUDE_DIR
|
||||
-I
|
||||
<END>
|
||||
|
||||
<BEGIN> BUILD_PENTIUMgnu_MACRO_POST_BUILD_RULE
|
||||
|
||||
<END>
|
||||
|
||||
<BEGIN> BUILD_PENTIUMgnu_MACRO_PRJ_LIBS
|
||||
|
||||
<END>
|
||||
|
||||
<BEGIN> BUILD_PENTIUMgnu_MACRO_SIZE
|
||||
size386
|
||||
<END>
|
||||
|
||||
<BEGIN> BUILD_PENTIUMgnu_RO_DEPEND_PATH
|
||||
{$(WIND_BASE)/target/h/} \
|
||||
{$(WIND_BASE)/target/src/} \
|
||||
{$(WIND_BASE)/target/config/}
|
||||
<END>
|
||||
|
||||
<BEGIN> BUILD_PENTIUMgnu_TC
|
||||
::tc_PENTIUMgnu
|
||||
<END>
|
||||
|
||||
<BEGIN> BUILD_RULE_archive
|
||||
|
||||
<END>
|
||||
|
||||
<BEGIN> BUILD_RULE_db_verify.out
|
||||
|
||||
<END>
|
||||
|
||||
<BEGIN> BUILD_RULE_objects
|
||||
|
||||
<END>
|
||||
|
||||
<BEGIN> BUILD__CURRENT
|
||||
PENTIUMgnu
|
||||
<END>
|
||||
|
||||
<BEGIN> BUILD__LIST
|
||||
PENTIUMgnu
|
||||
<END>
|
||||
|
||||
<BEGIN> CORE_INFO_TYPE
|
||||
::prj_vxApp
|
||||
<END>
|
||||
|
||||
<BEGIN> CORE_INFO_VERSION
|
||||
2.0
|
||||
<END>
|
||||
|
||||
<BEGIN> FILE_db_verify.c_dependDone
|
||||
FALSE
|
||||
<END>
|
||||
|
||||
<BEGIN> FILE_db_verify.c_dependencies
|
||||
|
||||
<END>
|
||||
|
||||
<BEGIN> FILE_db_verify.c_objects
|
||||
db_verify.o
|
||||
<END>
|
||||
|
||||
<BEGIN> FILE_db_verify.c_tool
|
||||
C/C++ compiler
|
||||
<END>
|
||||
|
||||
<BEGIN> PROJECT_FILES
|
||||
$(PRJ_DIR)/db_verify.c
|
||||
<END>
|
||||
|
||||
<BEGIN> userComments
|
||||
db_verify
|
||||
<END>
|
@ -1,51 +0,0 @@
|
||||
#
|
||||
# Custom Makefile shell
|
||||
#
|
||||
# This file may be edited freely, since it will not be regenerated
|
||||
# by the project manager.
|
||||
#
|
||||
# Use this makefile to define rules to make external binaries
|
||||
# and deposit them in the $(EXTERNAL_BINARIES_DIR) directory.
|
||||
#
|
||||
# If you have specified external modules during your component
|
||||
# creation, you will find make rules already in place below.
|
||||
# You will likely have to edit these to suit your individual
|
||||
# build setup.
|
||||
#
|
||||
# You may wish to use the CPU, BUILD_SPEC or TOOL make variables in
|
||||
# your Makefile to support builds for different architectures. Use
|
||||
# the FORCE_EXTERNAL_MAKE phony target to ensure that your external
|
||||
# make always runs.
|
||||
#
|
||||
# The example below assumes that your custom makefile is in the
|
||||
# mySourceTree directory, and that the binary file it produces
|
||||
# is placed into the $(BUILD_SPEC) sub-directory.
|
||||
#
|
||||
# EXTERNAL_SOURCE_BASE = /folk/me/mySourceTree
|
||||
# EXTERNAL_MODULE = myLibrary.o
|
||||
# EXTERNAL_MAKE = make
|
||||
#
|
||||
# $(EXTERNAL_BINARIES_DIR)/$(EXTERNAL_MODULE) : FORCE_EXTERNAL_MAKE
|
||||
# $(EXTERNAL_MAKE) -C $(EXTERNAL_SOURCE_BASE) \
|
||||
# -f $(EXTERNAL_SOURCE_BASE)/Makefile \
|
||||
# CPU=$(CPU) BUILD_SPEC=$(BUILD_SPEC) $(@F)
|
||||
# $(CP) $(subst /,$(DIRCHAR),$(EXTERNAL_SOURCE_BASE)/$(BUILD_SPEC)/$(@F) $@)
|
||||
#
|
||||
# If you are not adding your external modules from the component wizard,
|
||||
# you will have to include them in your component yourself:
|
||||
#
|
||||
# From the GUI, you can do this with the Component's 'Add external module'
|
||||
# dialog.
|
||||
#
|
||||
# If you are using the command line, add the module(s) by editing the
|
||||
# MODULES line in component.cdf file, e.g.
|
||||
#
|
||||
# Component INCLUDE_MYCOMPONENT {
|
||||
#
|
||||
# MODULES foo.o goo.o \
|
||||
# myLibrary.o
|
||||
#
|
||||
|
||||
|
||||
# rules to build custom libraries
|
||||
|
@ -1,30 +0,0 @@
|
||||
/* component.cdf - dynamically updated configuration */
|
||||
|
||||
/*
|
||||
* NOTE: you may edit this file to alter the configuration
|
||||
* But all non-configuration information, including comments,
|
||||
* will be lost upon rebuilding this project.
|
||||
*/
|
||||
|
||||
/* Component information */
|
||||
|
||||
Component INCLUDE_DB_VERIFY {
|
||||
ENTRY_POINTS ALL_GLOBAL_SYMBOLS
|
||||
MODULES db_verify.o
|
||||
NAME db_verify
|
||||
PREF_DOMAIN ANY
|
||||
_INIT_ORDER usrComponentsInit
|
||||
}
|
||||
|
||||
/* EntryPoint information */
|
||||
|
||||
/* Module information */
|
||||
|
||||
Module db_verify.o {
|
||||
|
||||
NAME db_verify.o
|
||||
SRC_PATH_NAME $PRJ_DIR/../db_verify.c
|
||||
}
|
||||
|
||||
/* Parameter information */
|
||||
|
@ -1,475 +0,0 @@
|
||||
Document file - DO NOT EDIT
|
||||
|
||||
<BEGIN> CORE_INFO_TYPE
|
||||
::prj_component
|
||||
<END>
|
||||
|
||||
<BEGIN> CORE_INFO_VERSION
|
||||
AE1.1
|
||||
<END>
|
||||
|
||||
<BEGIN> BUILD__CURRENT
|
||||
PENTIUM2gnu.debug
|
||||
<END>
|
||||
|
||||
<BEGIN> BUILD_PENTIUM2gnu.debug_CURRENT_TARGET
|
||||
default
|
||||
<END>
|
||||
|
||||
<BEGIN> BUILD_PENTIUM2gnu.debug_DEFAULTFORCPU
|
||||
1
|
||||
<END>
|
||||
|
||||
<BEGIN> BUILD_PENTIUM2gnu.debug_FILE_$(PRJ_DIR)/../db_verify.c_infoTags
|
||||
toolMacro objects
|
||||
<END>
|
||||
|
||||
<BEGIN> BUILD_PENTIUM2gnu.debug_FILE_$(PRJ_DIR)/../db_verify.c_objects
|
||||
db_verify.o
|
||||
<END>
|
||||
|
||||
<BEGIN> BUILD_PENTIUM2gnu.debug_FILE_$(PRJ_DIR)/../db_verify.c_toolMacro
|
||||
CC
|
||||
<END>
|
||||
|
||||
<BEGIN> BUILD_PENTIUM2gnu.debug_FILE_$(PRJ_DIR)/../db_verify.c_objects
|
||||
db_verify.o
|
||||
<END>
|
||||
|
||||
<BEGIN> BUILD_PENTIUM2gnu.debug_FILE_$(PRJ_DIR)/../db_verify.c_toolMacro
|
||||
CC
|
||||
<END>
|
||||
|
||||
<BEGIN> BUILD_PENTIUM2gnu.debug_FILE_$(PRJ_DIR)/compConfig.c_infoTags
|
||||
toolMacro objects
|
||||
<END>
|
||||
|
||||
<BEGIN> BUILD_PENTIUM2gnu.debug_FILE_$(PRJ_DIR)/compConfig.c_objects
|
||||
compConfig.o
|
||||
<END>
|
||||
|
||||
<BEGIN> BUILD_PENTIUM2gnu.debug_FILE_$(PRJ_DIR)/compConfig.c_toolMacro
|
||||
CC
|
||||
<END>
|
||||
|
||||
<BEGIN> BUILD_PENTIUM2gnu.debug_MACRO_AR
|
||||
arpentium
|
||||
<END>
|
||||
|
||||
<BEGIN> BUILD_PENTIUM2gnu.debug_MACRO_AS
|
||||
ccpentium
|
||||
<END>
|
||||
|
||||
<BEGIN> BUILD_PENTIUM2gnu.debug_MACRO_CC
|
||||
ccpentium
|
||||
<END>
|
||||
|
||||
<BEGIN> BUILD_PENTIUM2gnu.debug_MACRO_CFLAGS
|
||||
-mcpu=pentiumpro \
|
||||
-march=pentiumpro \
|
||||
-ansi \
|
||||
-DRW_MULTI_THREAD \
|
||||
-D_REENTRANT \
|
||||
-g \
|
||||
-nostdlib \
|
||||
-fno-builtin \
|
||||
-fno-defer-pop \
|
||||
-MD \
|
||||
-Wall \
|
||||
-I. \
|
||||
-I$(WIND_BASE)/target/h \
|
||||
-I$(PRJ_DIR)/../.. \
|
||||
-I$(PRJ_DIR)/../../.. \
|
||||
-DCPU=PENTIUM2
|
||||
<END>
|
||||
|
||||
<BEGIN> BUILD_PENTIUM2gnu.debug_MACRO_CFLAGS_AS
|
||||
-mcpu=pentiumpro \
|
||||
-march=pentiumpro \
|
||||
-ansi \
|
||||
-g \
|
||||
-nostdlib \
|
||||
-fno-builtin \
|
||||
-fno-defer-pop \
|
||||
-P \
|
||||
-x \
|
||||
assembler-with-cpp \
|
||||
-Wall \
|
||||
-I. \
|
||||
-I$(WIND_BASE)/target/h \
|
||||
-DCPU=PENTIUM2
|
||||
<END>
|
||||
|
||||
<BEGIN> BUILD_PENTIUM2gnu.debug_MACRO_CPP
|
||||
ccpentium -E -P
|
||||
<END>
|
||||
|
||||
<BEGIN> BUILD_PENTIUM2gnu.debug_MACRO_CPPFILT
|
||||
c++filtpentium --strip-underscores
|
||||
<END>
|
||||
|
||||
<BEGIN> BUILD_PENTIUM2gnu.debug_MACRO_LD
|
||||
ldpentium
|
||||
<END>
|
||||
|
||||
<BEGIN> BUILD_PENTIUM2gnu.debug_MACRO_LDFLAGS
|
||||
-X
|
||||
<END>
|
||||
|
||||
<BEGIN> BUILD_PENTIUM2gnu.debug_MACRO_LDPARTIAL
|
||||
ccpentium \
|
||||
-B$(WIND_BASE)/host/$(WIND_HOST_TYPE)/lib/gcc-lib/ \
|
||||
-nostdlib \
|
||||
-r \
|
||||
-Wl,-X
|
||||
<END>
|
||||
|
||||
<BEGIN> BUILD_PENTIUM2gnu.debug_MACRO_LD_PARTIAL_FLAGS
|
||||
-X -r
|
||||
<END>
|
||||
|
||||
<BEGIN> BUILD_PENTIUM2gnu.debug_MACRO_NM
|
||||
nmpentium -g
|
||||
<END>
|
||||
|
||||
<BEGIN> BUILD_PENTIUM2gnu.debug_MACRO_OPTION_DEFINE_MACRO
|
||||
-D
|
||||
<END>
|
||||
|
||||
<BEGIN> BUILD_PENTIUM2gnu.debug_MACRO_OPTION_GENERATE_DEPENDENCY_FILE
|
||||
-MD
|
||||
<END>
|
||||
|
||||
<BEGIN> BUILD_PENTIUM2gnu.debug_MACRO_OPTION_INCLUDE_DIR
|
||||
-I
|
||||
<END>
|
||||
|
||||
<BEGIN> BUILD_PENTIUM2gnu.debug_MACRO_RELEASE
|
||||
0
|
||||
<END>
|
||||
|
||||
<BEGIN> BUILD_PENTIUM2gnu.debug_MACRO_SIZE
|
||||
sizepentium
|
||||
<END>
|
||||
|
||||
<BEGIN> BUILD_PENTIUM2gnu.debug_RELEASE
|
||||
0
|
||||
<END>
|
||||
|
||||
<BEGIN> BUILD_PENTIUM2gnu.debug_RO_DEPEND_PATH
|
||||
$(WIND_BASE)/target/h/
|
||||
<END>
|
||||
|
||||
<BEGIN> BUILD_PENTIUM2gnu.debug_TC
|
||||
::tc_PENTIUM2gnu.debug
|
||||
<END>
|
||||
|
||||
<BEGIN> BUILD_PENTIUM2gnu.release_DEFAULTFORCPU
|
||||
0
|
||||
<END>
|
||||
|
||||
<BEGIN> BUILD_PENTIUM2gnu.release_FILE_$(PRJ_DIR)/../db_verify.c_infoTags
|
||||
toolMacro objects
|
||||
<END>
|
||||
|
||||
<BEGIN> BUILD_PENTIUM2gnu.release_FILE_$(PRJ_DIR)/../db_verify.c_objects
|
||||
db_verify.o
|
||||
<END>
|
||||
|
||||
<BEGIN> BUILD_PENTIUM2gnu.release_FILE_$(PRJ_DIR)/../db_verify.c_toolMacro
|
||||
CC
|
||||
<END>
|
||||
|
||||
<BEGIN> BUILD_PENTIUM2gnu.release_FILE_$(PRJ_DIR)/compConfig.c_infoTags
|
||||
toolMacro objects
|
||||
<END>
|
||||
|
||||
<BEGIN> BUILD_PENTIUM2gnu.release_FILE_$(PRJ_DIR)/compConfig.c_objects
|
||||
compConfig.o
|
||||
<END>
|
||||
|
||||
<BEGIN> BUILD_PENTIUM2gnu.release_FILE_$(PRJ_DIR)/compConfig.c_toolMacro
|
||||
CC
|
||||
<END>
|
||||
|
||||
<BEGIN> BUILD_PENTIUM2gnu.release_MACRO_AR
|
||||
arpentium
|
||||
<END>
|
||||
|
||||
<BEGIN> BUILD_PENTIUM2gnu.release_MACRO_AS
|
||||
ccpentium
|
||||
<END>
|
||||
|
||||
<BEGIN> BUILD_PENTIUM2gnu.release_MACRO_CC
|
||||
ccpentium
|
||||
<END>
|
||||
|
||||
<BEGIN> BUILD_PENTIUM2gnu.release_MACRO_CFLAGS
|
||||
-mcpu=pentiumpro \
|
||||
-march=pentiumpro \
|
||||
-ansi \
|
||||
-DRW_MULTI_THREAD \
|
||||
-D_REENTRANT \
|
||||
-O2 \
|
||||
-nostdlib \
|
||||
-fno-builtin \
|
||||
-fno-defer-pop \
|
||||
-MD \
|
||||
-Wall \
|
||||
-I. \
|
||||
-I$(WIND_BASE)/target/h \
|
||||
-I$(PRJ_DIR)/../.. \
|
||||
-I$(PRJ_DIR)/../../.. \
|
||||
-DCPU=PENTIUM2
|
||||
<END>
|
||||
|
||||
<BEGIN> BUILD_PENTIUM2gnu.release_MACRO_CFLAGS_AS
|
||||
-mcpu=pentiumpro \
|
||||
-march=pentiumpro \
|
||||
-ansi \
|
||||
-O2 \
|
||||
-nostdlib \
|
||||
-fno-builtin \
|
||||
-fno-defer-pop \
|
||||
-P \
|
||||
-x \
|
||||
assembler-with-cpp \
|
||||
-Wall \
|
||||
-I. \
|
||||
-I$(WIND_BASE)/target/h \
|
||||
-DCPU=PENTIUM2
|
||||
<END>
|
||||
|
||||
<BEGIN> BUILD_PENTIUM2gnu.release_MACRO_CPP
|
||||
ccpentium -E -P
|
||||
<END>
|
||||
|
||||
<BEGIN> BUILD_PENTIUM2gnu.release_MACRO_CPPFILT
|
||||
c++filtpentium --strip-underscores
|
||||
<END>
|
||||
|
||||
<BEGIN> BUILD_PENTIUM2gnu.release_MACRO_LD
|
||||
ldpentium
|
||||
<END>
|
||||
|
||||
<BEGIN> BUILD_PENTIUM2gnu.release_MACRO_LDFLAGS
|
||||
-X
|
||||
<END>
|
||||
|
||||
<BEGIN> BUILD_PENTIUM2gnu.release_MACRO_LDPARTIAL
|
||||
ccpentium \
|
||||
-B$(WIND_BASE)/host/$(WIND_HOST_TYPE)/lib/gcc-lib/ \
|
||||
-nostdlib \
|
||||
-r \
|
||||
-Wl,-X
|
||||
<END>
|
||||
|
||||
<BEGIN> BUILD_PENTIUM2gnu.release_MACRO_LD_PARTIAL_FLAGS
|
||||
-X -r
|
||||
<END>
|
||||
|
||||
<BEGIN> BUILD_PENTIUM2gnu.release_MACRO_NM
|
||||
nmpentium -g
|
||||
<END>
|
||||
|
||||
<BEGIN> BUILD_PENTIUM2gnu.release_MACRO_OPTION_DEFINE_MACRO
|
||||
-D
|
||||
<END>
|
||||
|
||||
<BEGIN> BUILD_PENTIUM2gnu.release_MACRO_OPTION_GENERATE_DEPENDENCY_FILE
|
||||
-MD
|
||||
<END>
|
||||
|
||||
<BEGIN> BUILD_PENTIUM2gnu.release_MACRO_OPTION_INCLUDE_DIR
|
||||
-I
|
||||
<END>
|
||||
|
||||
<BEGIN> BUILD_PENTIUM2gnu.release_MACRO_RELEASE
|
||||
1
|
||||
<END>
|
||||
|
||||
<BEGIN> BUILD_PENTIUM2gnu.release_MACRO_SIZE
|
||||
sizepentium
|
||||
<END>
|
||||
|
||||
<BEGIN> BUILD_PENTIUM2gnu.release_RELEASE
|
||||
1
|
||||
<END>
|
||||
|
||||
<BEGIN> BUILD_PENTIUM2gnu.release_RO_DEPEND_PATH
|
||||
$(WIND_BASE)/target/h/
|
||||
<END>
|
||||
|
||||
<BEGIN> BUILD_PENTIUM2gnu.release_TC
|
||||
::tc_PENTIUM2gnu.release
|
||||
<END>
|
||||
|
||||
<BEGIN> BUILD_PENTIUMgnu.debug_DEFAULTFORCPU
|
||||
1
|
||||
<END>
|
||||
|
||||
<BEGIN> BUILD_PENTIUMgnu.debug_FILE_$(PRJ_DIR)/../db_verify.c_infoTags
|
||||
toolMacro objects
|
||||
<END>
|
||||
|
||||
<BEGIN> BUILD_PENTIUMgnu.debug_FILE_$(PRJ_DIR)/../db_verify.c_objects
|
||||
db_verify.o
|
||||
<END>
|
||||
|
||||
<BEGIN> BUILD_PENTIUMgnu.debug_FILE_$(PRJ_DIR)/../db_verify.c_toolMacro
|
||||
CC
|
||||
<END>
|
||||
|
||||
<BEGIN> BUILD_PENTIUMgnu.debug_FILE_$(PRJ_DIR)/compConfig.c_infoTags
|
||||
toolMacro objects
|
||||
<END>
|
||||
|
||||
<BEGIN> BUILD_PENTIUMgnu.debug_FILE_$(PRJ_DIR)/compConfig.c_objects
|
||||
compConfig.o
|
||||
<END>
|
||||
|
||||
<BEGIN> BUILD_PENTIUMgnu.debug_FILE_$(PRJ_DIR)/compConfig.c_toolMacro
|
||||
CC
|
||||
<END>
|
||||
|
||||
<BEGIN> BUILD_PENTIUMgnu.debug_MACRO_AR
|
||||
arpentium
|
||||
<END>
|
||||
|
||||
<BEGIN> BUILD_PENTIUMgnu.debug_MACRO_AS
|
||||
ccpentium
|
||||
<END>
|
||||
|
||||
<BEGIN> BUILD_PENTIUMgnu.debug_MACRO_CC
|
||||
ccpentium
|
||||
<END>
|
||||
|
||||
<BEGIN> BUILD_PENTIUMgnu.debug_MACRO_CFLAGS
|
||||
-mcpu=pentium \
|
||||
-march=pentium \
|
||||
-ansi \
|
||||
-DRW_MULTI_THREAD \
|
||||
-D_REENTRANT \
|
||||
-g \
|
||||
-nostdlib \
|
||||
-fno-builtin \
|
||||
-fno-defer-pop \
|
||||
-MD \
|
||||
-Wall \
|
||||
-I. \
|
||||
-I$(WIND_BASE)/target/h \
|
||||
-I$(PRJ_DIR)/../.. \
|
||||
-I$(PRJ_DIR)/../../.. \
|
||||
-DCPU=PENTIUM
|
||||
<END>
|
||||
|
||||
<BEGIN> BUILD_PENTIUMgnu.debug_MACRO_CFLAGS_AS
|
||||
-mcpu=pentium \
|
||||
-march=pentium \
|
||||
-ansi \
|
||||
-g \
|
||||
-nostdlib \
|
||||
-fno-builtin \
|
||||
-fno-defer-pop \
|
||||
-P \
|
||||
-x \
|
||||
assembler-with-cpp \
|
||||
-Wall \
|
||||
-I. \
|
||||
-I$(WIND_BASE)/target/h \
|
||||
-DCPU=PENTIUM
|
||||
<END>
|
||||
|
||||
<BEGIN> BUILD_PENTIUMgnu.debug_MACRO_CPP
|
||||
ccpentium -E -P
|
||||
<END>
|
||||
|
||||
<BEGIN> BUILD_PENTIUMgnu.debug_MACRO_CPPFILT
|
||||
c++filtpentium --strip-underscores
|
||||
<END>
|
||||
|
||||
<BEGIN> BUILD_PENTIUMgnu.debug_MACRO_LD
|
||||
ldpentium
|
||||
<END>
|
||||
|
||||
<BEGIN> BUILD_PENTIUMgnu.debug_MACRO_LDFLAGS
|
||||
-X
|
||||
<END>
|
||||
|
||||
<BEGIN> BUILD_PENTIUMgnu.debug_MACRO_LDPARTIAL
|
||||
ccpentium \
|
||||
-B$(WIND_BASE)/host/$(WIND_HOST_TYPE)/lib/gcc-lib/ \
|
||||
-nostdlib \
|
||||
-r \
|
||||
-Wl,-X
|
||||
<END>
|
||||
|
||||
<BEGIN> BUILD_PENTIUMgnu.debug_MACRO_LD_PARTIAL_FLAGS
|
||||
-X -r
|
||||
<END>
|
||||
|
||||
<BEGIN> BUILD_PENTIUMgnu.debug_MACRO_NM
|
||||
nmpentium -g
|
||||
<END>
|
||||
|
||||
<BEGIN> BUILD_PENTIUMgnu.debug_MACRO_OPTION_DEFINE_MACRO
|
||||
-D
|
||||
<END>
|
||||
|
||||
<BEGIN> BUILD_PENTIUMgnu.debug_MACRO_OPTION_GENERATE_DEPENDENCY_FILE
|
||||
-MD
|
||||
<END>
|
||||
|
||||
<BEGIN> BUILD_PENTIUMgnu.debug_MACRO_OPTION_INCLUDE_DIR
|
||||
-I
|
||||
<END>
|
||||
|
||||
<BEGIN> BUILD_PENTIUMgnu.debug_MACRO_RELEASE
|
||||
0
|
||||
<END>
|
||||
|
||||
<BEGIN> BUILD_PENTIUMgnu.debug_MACRO_SIZE
|
||||
sizepentium
|
||||
<END>
|
||||
|
||||
<BEGIN> BUILD_PENTIUMgnu.debug_RELEASE
|
||||
0
|
||||
<END>
|
||||
|
||||
<BEGIN> BUILD_PENTIUMgnu.debug_RO_DEPEND_PATH
|
||||
$(WIND_BASE)/target/h/
|
||||
<END>
|
||||
|
||||
<BEGIN> BUILD_PENTIUMgnu.debug_TC
|
||||
::tc_PENTIUMgnu.debug
|
||||
<END>
|
||||
|
||||
<BEGIN> BUILD__LIST
|
||||
PENTIUM2gnu.debug PENTIUM2gnu.release PENTIUMgnu.debug
|
||||
<END>
|
||||
|
||||
<BEGIN> PROJECT_FILES
|
||||
$(PRJ_DIR)/../db_verify.c \
|
||||
$(PRJ_DIR)/compConfig.c
|
||||
<END>
|
||||
|
||||
<BEGIN> WCC__CDF_PATH
|
||||
$(PRJ_DIR)
|
||||
<END>
|
||||
|
||||
<BEGIN> WCC__CURRENT
|
||||
PENTIUM2gnu.debug
|
||||
<END>
|
||||
|
||||
<BEGIN> WCC__LIST
|
||||
PENTIUM2gnu.debug
|
||||
<END>
|
||||
|
||||
<BEGIN> WCC__MXR_LIBS
|
||||
lib$(CPU)$(TOOL)vx.a
|
||||
<END>
|
||||
|
||||
<BEGIN> WCC__OBJS_PATH
|
||||
$(WIND_BASE)/target/lib/obj$CPU$TOOLvx
|
||||
<END>
|
||||
|
@ -1,178 +0,0 @@
|
||||
/*-
|
||||
* See the file LICENSE for redistribution information.
|
||||
*
|
||||
* Copyright (c) 1997-2002
|
||||
* Sleepycat Software. All rights reserved.
|
||||
*
|
||||
* $Id: ex_access.c,v 11.22 2002/09/03 12:54:26 bostic Exp $
|
||||
*/
|
||||
|
||||
#include <sys/types.h>
|
||||
|
||||
#include <stdio.h>
|
||||
#include <stdlib.h>
|
||||
#include <string.h>
|
||||
|
||||
#ifdef _WIN32
|
||||
extern int getopt(int, char * const *, const char *);
|
||||
#else
|
||||
#include <unistd.h>
|
||||
#endif
|
||||
|
||||
#include <db_config.h>
|
||||
#include <db_int.h>
|
||||
|
||||
#define DATABASE "access.db"
|
||||
int dbdemo_main __P((int, char *[]));
|
||||
int dbdemo_usage __P((void));
|
||||
|
||||
int
|
||||
dbdemo(args)
|
||||
char *args;
|
||||
{
|
||||
int argc;
|
||||
char **argv;
|
||||
|
||||
__db_util_arg("dbdemo", args, &argc, &argv);
|
||||
return (dbdemo_main(argc, argv) ? EXIT_FAILURE : EXIT_SUCCESS);
|
||||
}
|
||||
|
||||
#include <stdio.h>
|
||||
#define ERROR_RETURN ERROR
|
||||
|
||||
int
|
||||
dbdemo_main(argc, argv)
|
||||
int argc;
|
||||
char *argv[];
|
||||
{
|
||||
extern int optind, __db_getopt_reset;
|
||||
DB *dbp;
|
||||
DBC *dbcp;
|
||||
DBT key, data;
|
||||
u_int32_t len;
|
||||
int ch, ret, rflag;
|
||||
char *database, *p, *t, buf[1024], rbuf[1024];
|
||||
const char *progname = "dbdemo"; /* Program name. */
|
||||
|
||||
rflag = 0;
|
||||
__db_getopt_reset = 1;
|
||||
while ((ch = getopt(argc, argv, "r")) != EOF)
|
||||
switch (ch) {
|
||||
case 'r':
|
||||
rflag = 1;
|
||||
break;
|
||||
case '?':
|
||||
default:
|
||||
return (dbdemo_usage());
|
||||
}
|
||||
argc -= optind;
|
||||
argv += optind;
|
||||
|
||||
/* Accept optional database name. */
|
||||
database = *argv == NULL ? DATABASE : argv[0];
|
||||
|
||||
/* Optionally discard the database. */
|
||||
if (rflag)
|
||||
(void)remove(database);
|
||||
|
||||
/* Create and initialize database object, open the database. */
|
||||
if ((ret = db_create(&dbp, NULL, 0)) != 0) {
|
||||
fprintf(stderr,
|
||||
"%s: db_create: %s\n", progname, db_strerror(ret));
|
||||
return (EXIT_FAILURE);
|
||||
}
|
||||
dbp->set_errfile(dbp, stderr);
|
||||
dbp->set_errpfx(dbp, progname);
|
||||
if ((ret = dbp->set_pagesize(dbp, 1024)) != 0) {
|
||||
dbp->err(dbp, ret, "set_pagesize");
|
||||
goto err1;
|
||||
}
|
||||
if ((ret = dbp->set_cachesize(dbp, 0, 32 * 1024, 0)) != 0) {
|
||||
dbp->err(dbp, ret, "set_cachesize");
|
||||
goto err1;
|
||||
}
|
||||
if ((ret = dbp->open(dbp,
|
||||
NULL, database, NULL, DB_BTREE, DB_CREATE, 0664)) != 0) {
|
||||
dbp->err(dbp, ret, "%s: open", database);
|
||||
goto err1;
|
||||
}
|
||||
|
||||
/*
|
||||
* Insert records into the database, where the key is the user
|
||||
* input and the data is the user input in reverse order.
|
||||
*/
|
||||
memset(&key, 0, sizeof(DBT));
|
||||
memset(&data, 0, sizeof(DBT));
|
||||
for (;;) {
|
||||
printf("input> ");
|
||||
fflush(stdout);
|
||||
if (fgets(buf, sizeof(buf), stdin) == NULL)
|
||||
break;
|
||||
if (strcmp(buf, "exit\n") == 0 || strcmp(buf, "quit\n") == 0)
|
||||
break;
|
||||
if ((len = strlen(buf)) <= 1)
|
||||
continue;
|
||||
for (t = rbuf, p = buf + (len - 2); p >= buf;)
|
||||
*t++ = *p--;
|
||||
*t++ = '\0';
|
||||
|
||||
key.data = buf;
|
||||
data.data = rbuf;
|
||||
data.size = key.size = len - 1;
|
||||
|
||||
switch (ret =
|
||||
dbp->put(dbp, NULL, &key, &data, DB_NOOVERWRITE)) {
|
||||
case 0:
|
||||
break;
|
||||
default:
|
||||
dbp->err(dbp, ret, "DB->put");
|
||||
if (ret != DB_KEYEXIST)
|
||||
goto err1;
|
||||
break;
|
||||
}
|
||||
}
|
||||
printf("\n");
|
||||
|
||||
/* Acquire a cursor for the database. */
|
||||
if ((ret = dbp->cursor(dbp, NULL, &dbcp, 0)) != 0) {
|
||||
dbp->err(dbp, ret, "DB->cursor");
|
||||
goto err1;
|
||||
}
|
||||
|
||||
/* Initialize the key/data pair so the flags aren't set. */
|
||||
memset(&key, 0, sizeof(key));
|
||||
memset(&data, 0, sizeof(data));
|
||||
|
||||
/* Walk through the database and print out the key/data pairs. */
|
||||
while ((ret = dbcp->c_get(dbcp, &key, &data, DB_NEXT)) == 0)
|
||||
printf("%.*s : %.*s\n",
|
||||
(int)key.size, (char *)key.data,
|
||||
(int)data.size, (char *)data.data);
|
||||
if (ret != DB_NOTFOUND) {
|
||||
dbp->err(dbp, ret, "DBcursor->get");
|
||||
goto err2;
|
||||
}
|
||||
|
||||
/* Close everything down. */
|
||||
if ((ret = dbcp->c_close(dbcp)) != 0) {
|
||||
dbp->err(dbp, ret, "DBcursor->close");
|
||||
goto err1;
|
||||
}
|
||||
if ((ret = dbp->close(dbp, 0)) != 0) {
|
||||
fprintf(stderr,
|
||||
"%s: DB->close: %s\n", progname, db_strerror(ret));
|
||||
return (EXIT_FAILURE);
|
||||
}
|
||||
return (EXIT_SUCCESS);
|
||||
|
||||
err2: (void)dbcp->c_close(dbcp);
|
||||
err1: (void)dbp->close(dbp, 0);
|
||||
return (EXIT_FAILURE);
|
||||
}
|
||||
|
||||
int
|
||||
dbdemo_usage()
|
||||
{
|
||||
(void)fprintf(stderr, "usage: ex_access [-r] [database]\n");
|
||||
return (EXIT_FAILURE);
|
||||
}
|
@ -1,160 +0,0 @@
|
||||
Document file - DO NOT EDIT
|
||||
|
||||
<BEGIN> BUILD_PENTIUMgnu_BUILDRULE
|
||||
dbdemo.out
|
||||
<END>
|
||||
|
||||
<BEGIN> BUILD_PENTIUMgnu_MACRO_AR
|
||||
ar386
|
||||
<END>
|
||||
|
||||
<BEGIN> BUILD_PENTIUMgnu_MACRO_ARCHIVE
|
||||
$(PRJ_DIR)/PENTIUMgnu/dbdemo.a
|
||||
<END>
|
||||
|
||||
<BEGIN> BUILD_PENTIUMgnu_MACRO_AS
|
||||
cc386
|
||||
<END>
|
||||
|
||||
<BEGIN> BUILD_PENTIUMgnu_MACRO_CC
|
||||
cc386
|
||||
<END>
|
||||
|
||||
<BEGIN> BUILD_PENTIUMgnu_MACRO_CFLAGS
|
||||
-g \
|
||||
-mpentium \
|
||||
-ansi \
|
||||
-nostdinc \
|
||||
-DRW_MULTI_THREAD \
|
||||
-D_REENTRANT \
|
||||
-fvolatile \
|
||||
-nostdlib \
|
||||
-fno-builtin \
|
||||
-fno-defer-pop \
|
||||
-I$(PRJ_DIR)/.. \
|
||||
-I$(PRJ_DIR)/../.. \
|
||||
-I$(WIND_BASE)/target/h \
|
||||
-DCPU=PENTIUM
|
||||
<END>
|
||||
|
||||
<BEGIN> BUILD_PENTIUMgnu_MACRO_CFLAGS_AS
|
||||
-g \
|
||||
-mpentium \
|
||||
-ansi \
|
||||
-nostdinc \
|
||||
-fvolatile \
|
||||
-nostdlib \
|
||||
-fno-builtin \
|
||||
-fno-defer-pop \
|
||||
-P \
|
||||
-x \
|
||||
assembler-with-cpp \
|
||||
-I$(WIND_BASE)/target/h \
|
||||
-DCPU=PENTIUM
|
||||
<END>
|
||||
|
||||
<BEGIN> BUILD_PENTIUMgnu_MACRO_CPP
|
||||
cc386 -E -P -xc
|
||||
<END>
|
||||
|
||||
<BEGIN> BUILD_PENTIUMgnu_MACRO_LD
|
||||
ld386
|
||||
<END>
|
||||
|
||||
<BEGIN> BUILD_PENTIUMgnu_MACRO_LDDEPS
|
||||
|
||||
<END>
|
||||
|
||||
<BEGIN> BUILD_PENTIUMgnu_MACRO_LDFLAGS
|
||||
-X -N
|
||||
<END>
|
||||
|
||||
<BEGIN> BUILD_PENTIUMgnu_MACRO_LD_PARTIAL_FLAGS
|
||||
-X -r
|
||||
<END>
|
||||
|
||||
<BEGIN> BUILD_PENTIUMgnu_MACRO_NM
|
||||
nm386 -g
|
||||
<END>
|
||||
|
||||
<BEGIN> BUILD_PENTIUMgnu_MACRO_OPTION_DEFINE_MACRO
|
||||
-D
|
||||
<END>
|
||||
|
||||
<BEGIN> BUILD_PENTIUMgnu_MACRO_OPTION_INCLUDE_DIR
|
||||
-I
|
||||
<END>
|
||||
|
||||
<BEGIN> BUILD_PENTIUMgnu_MACRO_POST_BUILD_RULE
|
||||
|
||||
<END>
|
||||
|
||||
<BEGIN> BUILD_PENTIUMgnu_MACRO_PRJ_LIBS
|
||||
|
||||
<END>
|
||||
|
||||
<BEGIN> BUILD_PENTIUMgnu_MACRO_SIZE
|
||||
size386
|
||||
<END>
|
||||
|
||||
<BEGIN> BUILD_PENTIUMgnu_RO_DEPEND_PATH
|
||||
{$(WIND_BASE)/target/h/} \
|
||||
{$(WIND_BASE)/target/src/} \
|
||||
{$(WIND_BASE)/target/config/}
|
||||
<END>
|
||||
|
||||
<BEGIN> BUILD_PENTIUMgnu_TC
|
||||
::tc_PENTIUMgnu
|
||||
<END>
|
||||
|
||||
<BEGIN> BUILD_RULE_archive
|
||||
|
||||
<END>
|
||||
|
||||
<BEGIN> BUILD_RULE_dbdemo.out
|
||||
|
||||
<END>
|
||||
|
||||
<BEGIN> BUILD_RULE_objects
|
||||
|
||||
<END>
|
||||
|
||||
<BEGIN> BUILD__CURRENT
|
||||
PENTIUMgnu
|
||||
<END>
|
||||
|
||||
<BEGIN> BUILD__LIST
|
||||
PENTIUMgnu
|
||||
<END>
|
||||
|
||||
<BEGIN> CORE_INFO_TYPE
|
||||
::prj_vxApp
|
||||
<END>
|
||||
|
||||
<BEGIN> CORE_INFO_VERSION
|
||||
2.0
|
||||
<END>
|
||||
|
||||
<BEGIN> FILE_dbdemo.c_dependDone
|
||||
FALSE
|
||||
<END>
|
||||
|
||||
<BEGIN> FILE_dbdemo.c_dependencies
|
||||
|
||||
<END>
|
||||
|
||||
<BEGIN> FILE_dbdemo.c_objects
|
||||
dbdemo.o
|
||||
<END>
|
||||
|
||||
<BEGIN> FILE_dbdemo.c_tool
|
||||
C/C++ compiler
|
||||
<END>
|
||||
|
||||
<BEGIN> PROJECT_FILES
|
||||
$(PRJ_DIR)/dbdemo.c
|
||||
<END>
|
||||
|
||||
<BEGIN> userComments
|
||||
dbdemo
|
||||
<END>
|
@ -1,51 +0,0 @@
|
||||
#
|
||||
# Custom Makefile shell
|
||||
#
|
||||
# This file may be edited freely, since it will not be regenerated
|
||||
# by the project manager.
|
||||
#
|
||||
# Use this makefile to define rules to make external binaries
|
||||
# and deposit them in the $(EXTERNAL_BINARIES_DIR) directory.
|
||||
#
|
||||
# If you have specified external modules during your component
|
||||
# creation, you will find make rules already in place below.
|
||||
# You will likely have to edit these to suit your individual
|
||||
# build setup.
|
||||
#
|
||||
# You may wish to use the CPU, BUILD_SPEC or TOOL make variables in
|
||||
# your Makefile to support builds for different architectures. Use
|
||||
# the FORCE_EXTERNAL_MAKE phony target to ensure that your external
|
||||
# make always runs.
|
||||
#
|
||||
# The example below assumes that your custom makefile is in the
|
||||
# mySourceTree directory, and that the binary file it produces
|
||||
# is placed into the $(BUILD_SPEC) sub-directory.
|
||||
#
|
||||
# EXTERNAL_SOURCE_BASE = /folk/me/mySourceTree
|
||||
# EXTERNAL_MODULE = myLibrary.o
|
||||
# EXTERNAL_MAKE = make
|
||||
#
|
||||
# $(EXTERNAL_BINARIES_DIR)/$(EXTERNAL_MODULE) : FORCE_EXTERNAL_MAKE
|
||||
# $(EXTERNAL_MAKE) -C $(EXTERNAL_SOURCE_BASE) \
|
||||
# -f $(EXTERNAL_SOURCE_BASE)/Makefile \
|
||||
# CPU=$(CPU) BUILD_SPEC=$(BUILD_SPEC) $(@F)
|
||||
# $(CP) $(subst /,$(DIRCHAR),$(EXTERNAL_SOURCE_BASE)/$(BUILD_SPEC)/$(@F) $@)
|
||||
#
|
||||
# If you are not adding your external modules from the component wizard,
|
||||
# you will have to include them in your component yourself:
|
||||
#
|
||||
# From the GUI, you can do this with the Component's 'Add external module'
|
||||
# dialog.
|
||||
#
|
||||
# If you are using the command line, add the module(s) by editing the
|
||||
# MODULES line in component.cdf file, e.g.
|
||||
#
|
||||
# Component INCLUDE_MYCOMPONENT {
|
||||
#
|
||||
# MODULES foo.o goo.o \
|
||||
# myLibrary.o
|
||||
#
|
||||
|
||||
|
||||
# rules to build custom libraries
|
||||
|
@ -1,30 +0,0 @@
|
||||
/* component.cdf - dynamically updated configuration */
|
||||
|
||||
/*
|
||||
* NOTE: you may edit this file to alter the configuration
|
||||
* But all non-configuration information, including comments,
|
||||
* will be lost upon rebuilding this project.
|
||||
*/
|
||||
|
||||
/* Component information */
|
||||
|
||||
Component INCLUDE_DBDEMO {
|
||||
ENTRY_POINTS ALL_GLOBAL_SYMBOLS
|
||||
MODULES dbdemo.o
|
||||
NAME dbdemo
|
||||
PREF_DOMAIN ANY
|
||||
_INIT_ORDER usrComponentsInit
|
||||
}
|
||||
|
||||
/* EntryPoint information */
|
||||
|
||||
/* Module information */
|
||||
|
||||
Module dbdemo.o {
|
||||
|
||||
NAME dbdemo.o
|
||||
SRC_PATH_NAME $PRJ_DIR/../dbdemo.c
|
||||
}
|
||||
|
||||
/* Parameter information */
|
||||
|
@ -1,475 +0,0 @@
|
||||
Document file - DO NOT EDIT
|
||||
|
||||
<BEGIN> CORE_INFO_TYPE
|
||||
::prj_component
|
||||
<END>
|
||||
|
||||
<BEGIN> CORE_INFO_VERSION
|
||||
AE1.1
|
||||
<END>
|
||||
|
||||
<BEGIN> BUILD__CURRENT
|
||||
PENTIUM2gnu.debug
|
||||
<END>
|
||||
|
||||
<BEGIN> BUILD_PENTIUM2gnu.debug_CURRENT_TARGET
|
||||
default
|
||||
<END>
|
||||
|
||||
<BEGIN> BUILD_PENTIUM2gnu.debug_DEFAULTFORCPU
|
||||
1
|
||||
<END>
|
||||
|
||||
<BEGIN> BUILD_PENTIUM2gnu.debug_FILE_$(PRJ_DIR)/../dbdemo.c_infoTags
|
||||
toolMacro objects
|
||||
<END>
|
||||
|
||||
<BEGIN> BUILD_PENTIUM2gnu.debug_FILE_$(PRJ_DIR)/../dbdemo.c_objects
|
||||
dbdemo.o
|
||||
<END>
|
||||
|
||||
<BEGIN> BUILD_PENTIUM2gnu.debug_FILE_$(PRJ_DIR)/../dbdemo.c_toolMacro
|
||||
CC
|
||||
<END>
|
||||
|
||||
<BEGIN> BUILD_PENTIUM2gnu.debug_FILE_$(PRJ_DIR)/../dbdemo.c_objects
|
||||
dbdemo.o
|
||||
<END>
|
||||
|
||||
<BEGIN> BUILD_PENTIUM2gnu.debug_FILE_$(PRJ_DIR)/../dbdemo.c_toolMacro
|
||||
CC
|
||||
<END>
|
||||
|
||||
<BEGIN> BUILD_PENTIUM2gnu.debug_FILE_$(PRJ_DIR)/compConfig.c_infoTags
|
||||
toolMacro objects
|
||||
<END>
|
||||
|
||||
<BEGIN> BUILD_PENTIUM2gnu.debug_FILE_$(PRJ_DIR)/compConfig.c_objects
|
||||
compConfig.o
|
||||
<END>
|
||||
|
||||
<BEGIN> BUILD_PENTIUM2gnu.debug_FILE_$(PRJ_DIR)/compConfig.c_toolMacro
|
||||
CC
|
||||
<END>
|
||||
|
||||
<BEGIN> BUILD_PENTIUM2gnu.debug_MACRO_AR
|
||||
arpentium
|
||||
<END>
|
||||
|
||||
<BEGIN> BUILD_PENTIUM2gnu.debug_MACRO_AS
|
||||
ccpentium
|
||||
<END>
|
||||
|
||||
<BEGIN> BUILD_PENTIUM2gnu.debug_MACRO_CC
|
||||
ccpentium
|
||||
<END>
|
||||
|
||||
<BEGIN> BUILD_PENTIUM2gnu.debug_MACRO_CFLAGS
|
||||
-mcpu=pentiumpro \
|
||||
-march=pentiumpro \
|
||||
-ansi \
|
||||
-DRW_MULTI_THREAD \
|
||||
-D_REENTRANT \
|
||||
-g \
|
||||
-nostdlib \
|
||||
-fno-builtin \
|
||||
-fno-defer-pop \
|
||||
-MD \
|
||||
-Wall \
|
||||
-I. \
|
||||
-I$(WIND_BASE)/target/h \
|
||||
-I$(PRJ_DIR)/../.. \
|
||||
-I$(PRJ_DIR)/../../.. \
|
||||
-DCPU=PENTIUM2
|
||||
<END>
|
||||
|
||||
<BEGIN> BUILD_PENTIUM2gnu.debug_MACRO_CFLAGS_AS
|
||||
-mcpu=pentiumpro \
|
||||
-march=pentiumpro \
|
||||
-ansi \
|
||||
-g \
|
||||
-nostdlib \
|
||||
-fno-builtin \
|
||||
-fno-defer-pop \
|
||||
-P \
|
||||
-x \
|
||||
assembler-with-cpp \
|
||||
-Wall \
|
||||
-I. \
|
||||
-I$(WIND_BASE)/target/h \
|
||||
-DCPU=PENTIUM2
|
||||
<END>
|
||||
|
||||
<BEGIN> BUILD_PENTIUM2gnu.debug_MACRO_CPP
|
||||
ccpentium -E -P
|
||||
<END>
|
||||
|
||||
<BEGIN> BUILD_PENTIUM2gnu.debug_MACRO_CPPFILT
|
||||
c++filtpentium --strip-underscores
|
||||
<END>
|
||||
|
||||
<BEGIN> BUILD_PENTIUM2gnu.debug_MACRO_LD
|
||||
ldpentium
|
||||
<END>
|
||||
|
||||
<BEGIN> BUILD_PENTIUM2gnu.debug_MACRO_LDFLAGS
|
||||
-X
|
||||
<END>
|
||||
|
||||
<BEGIN> BUILD_PENTIUM2gnu.debug_MACRO_LDPARTIAL
|
||||
ccpentium \
|
||||
-B$(WIND_BASE)/host/$(WIND_HOST_TYPE)/lib/gcc-lib/ \
|
||||
-nostdlib \
|
||||
-r \
|
||||
-Wl,-X
|
||||
<END>
|
||||
|
||||
<BEGIN> BUILD_PENTIUM2gnu.debug_MACRO_LD_PARTIAL_FLAGS
|
||||
-X -r
|
||||
<END>
|
||||
|
||||
<BEGIN> BUILD_PENTIUM2gnu.debug_MACRO_NM
|
||||
nmpentium -g
|
||||
<END>
|
||||
|
||||
<BEGIN> BUILD_PENTIUM2gnu.debug_MACRO_OPTION_DEFINE_MACRO
|
||||
-D
|
||||
<END>
|
||||
|
||||
<BEGIN> BUILD_PENTIUM2gnu.debug_MACRO_OPTION_GENERATE_DEPENDENCY_FILE
|
||||
-MD
|
||||
<END>
|
||||
|
||||
<BEGIN> BUILD_PENTIUM2gnu.debug_MACRO_OPTION_INCLUDE_DIR
|
||||
-I
|
||||
<END>
|
||||
|
||||
<BEGIN> BUILD_PENTIUM2gnu.debug_MACRO_RELEASE
|
||||
0
|
||||
<END>
|
||||
|
||||
<BEGIN> BUILD_PENTIUM2gnu.debug_MACRO_SIZE
|
||||
sizepentium
|
||||
<END>
|
||||
|
||||
<BEGIN> BUILD_PENTIUM2gnu.debug_RELEASE
|
||||
0
|
||||
<END>
|
||||
|
||||
<BEGIN> BUILD_PENTIUM2gnu.debug_RO_DEPEND_PATH
|
||||
$(WIND_BASE)/target/h/
|
||||
<END>
|
||||
|
||||
<BEGIN> BUILD_PENTIUM2gnu.debug_TC
|
||||
::tc_PENTIUM2gnu.debug
|
||||
<END>
|
||||
|
||||
<BEGIN> BUILD_PENTIUM2gnu.release_DEFAULTFORCPU
|
||||
0
|
||||
<END>
|
||||
|
||||
<BEGIN> BUILD_PENTIUM2gnu.release_FILE_$(PRJ_DIR)/../dbdemo.c_infoTags
|
||||
toolMacro objects
|
||||
<END>
|
||||
|
||||
<BEGIN> BUILD_PENTIUM2gnu.release_FILE_$(PRJ_DIR)/../dbdemo.c_objects
|
||||
dbdemo.o
|
||||
<END>
|
||||
|
||||
<BEGIN> BUILD_PENTIUM2gnu.release_FILE_$(PRJ_DIR)/../dbdemo.c_toolMacro
|
||||
CC
|
||||
<END>
|
||||
|
||||
<BEGIN> BUILD_PENTIUM2gnu.release_FILE_$(PRJ_DIR)/compConfig.c_infoTags
|
||||
toolMacro objects
|
||||
<END>
|
||||
|
||||
<BEGIN> BUILD_PENTIUM2gnu.release_FILE_$(PRJ_DIR)/compConfig.c_objects
|
||||
compConfig.o
|
||||
<END>
|
||||
|
||||
<BEGIN> BUILD_PENTIUM2gnu.release_FILE_$(PRJ_DIR)/compConfig.c_toolMacro
|
||||
CC
|
||||
<END>
|
||||
|
||||
<BEGIN> BUILD_PENTIUM2gnu.release_MACRO_AR
|
||||
arpentium
|
||||
<END>
|
||||
|
||||
<BEGIN> BUILD_PENTIUM2gnu.release_MACRO_AS
|
||||
ccpentium
|
||||
<END>
|
||||
|
||||
<BEGIN> BUILD_PENTIUM2gnu.release_MACRO_CC
|
||||
ccpentium
|
||||
<END>
|
||||
|
||||
<BEGIN> BUILD_PENTIUM2gnu.release_MACRO_CFLAGS
|
||||
-mcpu=pentiumpro \
|
||||
-march=pentiumpro \
|
||||
-ansi \
|
||||
-DRW_MULTI_THREAD \
|
||||
-D_REENTRANT \
|
||||
-O2 \
|
||||
-nostdlib \
|
||||
-fno-builtin \
|
||||
-fno-defer-pop \
|
||||
-MD \
|
||||
-Wall \
|
||||
-I. \
|
||||
-I$(WIND_BASE)/target/h \
|
||||
-I$(PRJ_DIR)/../.. \
|
||||
-I$(PRJ_DIR)/../../.. \
|
||||
-DCPU=PENTIUM2
|
||||
<END>
|
||||
|
||||
<BEGIN> BUILD_PENTIUM2gnu.release_MACRO_CFLAGS_AS
|
||||
-mcpu=pentiumpro \
|
||||
-march=pentiumpro \
|
||||
-ansi \
|
||||
-O2 \
|
||||
-nostdlib \
|
||||
-fno-builtin \
|
||||
-fno-defer-pop \
|
||||
-P \
|
||||
-x \
|
||||
assembler-with-cpp \
|
||||
-Wall \
|
||||
-I. \
|
||||
-I$(WIND_BASE)/target/h \
|
||||
-DCPU=PENTIUM2
|
||||
<END>
|
||||
|
||||
<BEGIN> BUILD_PENTIUM2gnu.release_MACRO_CPP
|
||||
ccpentium -E -P
|
||||
<END>
|
||||
|
||||
<BEGIN> BUILD_PENTIUM2gnu.release_MACRO_CPPFILT
|
||||
c++filtpentium --strip-underscores
|
||||
<END>
|
||||
|
||||
<BEGIN> BUILD_PENTIUM2gnu.release_MACRO_LD
|
||||
ldpentium
|
||||
<END>
|
||||
|
||||
<BEGIN> BUILD_PENTIUM2gnu.release_MACRO_LDFLAGS
|
||||
-X
|
||||
<END>
|
||||
|
||||
<BEGIN> BUILD_PENTIUM2gnu.release_MACRO_LDPARTIAL
|
||||
ccpentium \
|
||||
-B$(WIND_BASE)/host/$(WIND_HOST_TYPE)/lib/gcc-lib/ \
|
||||
-nostdlib \
|
||||
-r \
|
||||
-Wl,-X
|
||||
<END>
|
||||
|
||||
<BEGIN> BUILD_PENTIUM2gnu.release_MACRO_LD_PARTIAL_FLAGS
|
||||
-X -r
|
||||
<END>
|
||||
|
||||
<BEGIN> BUILD_PENTIUM2gnu.release_MACRO_NM
|
||||
nmpentium -g
|
||||
<END>
|
||||
|
||||
<BEGIN> BUILD_PENTIUM2gnu.release_MACRO_OPTION_DEFINE_MACRO
|
||||
-D
|
||||
<END>
|
||||
|
||||
<BEGIN> BUILD_PENTIUM2gnu.release_MACRO_OPTION_GENERATE_DEPENDENCY_FILE
|
||||
-MD
|
||||
<END>
|
||||
|
||||
<BEGIN> BUILD_PENTIUM2gnu.release_MACRO_OPTION_INCLUDE_DIR
|
||||
-I
|
||||
<END>
|
||||
|
||||
<BEGIN> BUILD_PENTIUM2gnu.release_MACRO_RELEASE
|
||||
1
|
||||
<END>
|
||||
|
||||
<BEGIN> BUILD_PENTIUM2gnu.release_MACRO_SIZE
|
||||
sizepentium
|
||||
<END>
|
||||
|
||||
<BEGIN> BUILD_PENTIUM2gnu.release_RELEASE
|
||||
1
|
||||
<END>
|
||||
|
||||
<BEGIN> BUILD_PENTIUM2gnu.release_RO_DEPEND_PATH
|
||||
$(WIND_BASE)/target/h/
|
||||
<END>
|
||||
|
||||
<BEGIN> BUILD_PENTIUM2gnu.release_TC
|
||||
::tc_PENTIUM2gnu.release
|
||||
<END>
|
||||
|
||||
<BEGIN> BUILD_PENTIUMgnu.debug_DEFAULTFORCPU
|
||||
1
|
||||
<END>
|
||||
|
||||
<BEGIN> BUILD_PENTIUMgnu.debug_FILE_$(PRJ_DIR)/../dbdemo.c_infoTags
|
||||
toolMacro objects
|
||||
<END>
|
||||
|
||||
<BEGIN> BUILD_PENTIUMgnu.debug_FILE_$(PRJ_DIR)/../dbdemo.c_objects
|
||||
dbdemo.o
|
||||
<END>
|
||||
|
||||
<BEGIN> BUILD_PENTIUMgnu.debug_FILE_$(PRJ_DIR)/../dbdemo.c_toolMacro
|
||||
CC
|
||||
<END>
|
||||
|
||||
<BEGIN> BUILD_PENTIUMgnu.debug_FILE_$(PRJ_DIR)/compConfig.c_infoTags
|
||||
toolMacro objects
|
||||
<END>
|
||||
|
||||
<BEGIN> BUILD_PENTIUMgnu.debug_FILE_$(PRJ_DIR)/compConfig.c_objects
|
||||
compConfig.o
|
||||
<END>
|
||||
|
||||
<BEGIN> BUILD_PENTIUMgnu.debug_FILE_$(PRJ_DIR)/compConfig.c_toolMacro
|
||||
CC
|
||||
<END>
|
||||
|
||||
<BEGIN> BUILD_PENTIUMgnu.debug_MACRO_AR
|
||||
arpentium
|
||||
<END>
|
||||
|
||||
<BEGIN> BUILD_PENTIUMgnu.debug_MACRO_AS
|
||||
ccpentium
|
||||
<END>
|
||||
|
||||
<BEGIN> BUILD_PENTIUMgnu.debug_MACRO_CC
|
||||
ccpentium
|
||||
<END>
|
||||
|
||||
<BEGIN> BUILD_PENTIUMgnu.debug_MACRO_CFLAGS
|
||||
-mcpu=pentium \
|
||||
-march=pentium \
|
||||
-ansi \
|
||||
-DRW_MULTI_THREAD \
|
||||
-D_REENTRANT \
|
||||
-g \
|
||||
-nostdlib \
|
||||
-fno-builtin \
|
||||
-fno-defer-pop \
|
||||
-MD \
|
||||
-Wall \
|
||||
-I. \
|
||||
-I$(WIND_BASE)/target/h \
|
||||
-I$(PRJ_DIR)/../.. \
|
||||
-I$(PRJ_DIR)/../../.. \
|
||||
-DCPU=PENTIUM
|
||||
<END>
|
||||
|
||||
<BEGIN> BUILD_PENTIUMgnu.debug_MACRO_CFLAGS_AS
|
||||
-mcpu=pentium \
|
||||
-march=pentium \
|
||||
-ansi \
|
||||
-g \
|
||||
-nostdlib \
|
||||
-fno-builtin \
|
||||
-fno-defer-pop \
|
||||
-P \
|
||||
-x \
|
||||
assembler-with-cpp \
|
||||
-Wall \
|
||||
-I. \
|
||||
-I$(WIND_BASE)/target/h \
|
||||
-DCPU=PENTIUM
|
||||
<END>
|
||||
|
||||
<BEGIN> BUILD_PENTIUMgnu.debug_MACRO_CPP
|
||||
ccpentium -E -P
|
||||
<END>
|
||||
|
||||
<BEGIN> BUILD_PENTIUMgnu.debug_MACRO_CPPFILT
|
||||
c++filtpentium --strip-underscores
|
||||
<END>
|
||||
|
||||
<BEGIN> BUILD_PENTIUMgnu.debug_MACRO_LD
|
||||
ldpentium
|
||||
<END>
|
||||
|
||||
<BEGIN> BUILD_PENTIUMgnu.debug_MACRO_LDFLAGS
|
||||
-X
|
||||
<END>
|
||||
|
||||
<BEGIN> BUILD_PENTIUMgnu.debug_MACRO_LDPARTIAL
|
||||
ccpentium \
|
||||
-B$(WIND_BASE)/host/$(WIND_HOST_TYPE)/lib/gcc-lib/ \
|
||||
-nostdlib \
|
||||
-r \
|
||||
-Wl,-X
|
||||
<END>
|
||||
|
||||
<BEGIN> BUILD_PENTIUMgnu.debug_MACRO_LD_PARTIAL_FLAGS
|
||||
-X -r
|
||||
<END>
|
||||
|
||||
<BEGIN> BUILD_PENTIUMgnu.debug_MACRO_NM
|
||||
nmpentium -g
|
||||
<END>
|
||||
|
||||
<BEGIN> BUILD_PENTIUMgnu.debug_MACRO_OPTION_DEFINE_MACRO
|
||||
-D
|
||||
<END>
|
||||
|
||||
<BEGIN> BUILD_PENTIUMgnu.debug_MACRO_OPTION_GENERATE_DEPENDENCY_FILE
|
||||
-MD
|
||||
<END>
|
||||
|
||||
<BEGIN> BUILD_PENTIUMgnu.debug_MACRO_OPTION_INCLUDE_DIR
|
||||
-I
|
||||
<END>
|
||||
|
||||
<BEGIN> BUILD_PENTIUMgnu.debug_MACRO_RELEASE
|
||||
0
|
||||
<END>
|
||||
|
||||
<BEGIN> BUILD_PENTIUMgnu.debug_MACRO_SIZE
|
||||
sizepentium
|
||||
<END>
|
||||
|
||||
<BEGIN> BUILD_PENTIUMgnu.debug_RELEASE
|
||||
0
|
||||
<END>
|
||||
|
||||
<BEGIN> BUILD_PENTIUMgnu.debug_RO_DEPEND_PATH
|
||||
$(WIND_BASE)/target/h/
|
||||
<END>
|
||||
|
||||
<BEGIN> BUILD_PENTIUMgnu.debug_TC
|
||||
::tc_PENTIUMgnu.debug
|
||||
<END>
|
||||
|
||||
<BEGIN> BUILD__LIST
|
||||
PENTIUM2gnu.debug PENTIUM2gnu.release PENTIUMgnu.debug
|
||||
<END>
|
||||
|
||||
<BEGIN> PROJECT_FILES
|
||||
$(PRJ_DIR)/../dbdemo.c \
|
||||
$(PRJ_DIR)/compConfig.c
|
||||
<END>
|
||||
|
||||
<BEGIN> WCC__CDF_PATH
|
||||
$(PRJ_DIR)
|
||||
<END>
|
||||
|
||||
<BEGIN> WCC__CURRENT
|
||||
PENTIUM2gnu.debug
|
||||
<END>
|
||||
|
||||
<BEGIN> WCC__LIST
|
||||
PENTIUM2gnu.debug
|
||||
<END>
|
||||
|
||||
<BEGIN> WCC__MXR_LIBS
|
||||
lib$(CPU)$(TOOL)vx.a
|
||||
<END>
|
||||
|
||||
<BEGIN> WCC__OBJS_PATH
|
||||
$(WIND_BASE)/target/lib/obj$CPU$TOOLvx
|
||||
<END>
|
||||
|
23
bdb/dist/s_all
vendored
23
bdb/dist/s_all
vendored
@ -1,20 +1,7 @@
|
||||
#!/bin/sh -
|
||||
# $Id: s_all,v 1.10 2001/08/04 14:01:44 bostic Exp $
|
||||
|
||||
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
|
||||
}
|
||||
|
||||
make_dir ../test_server
|
||||
make_dir ../dbinc_auto
|
||||
sh s_dir
|
||||
|
||||
#sh s_perm # permissions.
|
||||
sh s_symlink # symbolic links.
|
||||
@ -30,7 +17,7 @@ sh s_include # standard include files.
|
||||
|
||||
sh s_win32 # Win32 include files.
|
||||
sh s_win32_dsp # Win32 build environment.
|
||||
sh s_vxworks # VxWorks include files.
|
||||
sh s_java # Java support.
|
||||
sh s_test # Test suite support.
|
||||
sh s_tags # Tags files.
|
||||
#sh s_vxworks # VxWorks include files.
|
||||
#sh s_java # Java support.
|
||||
#sh s_test # Test suite support.
|
||||
#sh s_tags # Tags files.
|
||||
|
42
bdb/dist/s_dir
vendored
Normal file
42
bdb/dist/s_dir
vendored
Normal file
@ -0,0 +1,42 @@
|
||||
#!/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
|
||||
|
Loading…
x
Reference in New Issue
Block a user