db_config.h File Reference

#include <sys/types.h>
#include <sys/stat.h>
#include <direct.h>
#include <fcntl.h>
#include <io.h>
#include <limits.h>
#include <memory.h>
#include <process.h>
#include <signal.h>
#include <stdio.h>
#include <stdlib.h>
#include <time.h>
#include <errno.h>
#include <windows.h>

Go to the source code of this file.

Defines

#define __STDC__   1
#define DB_WIN32   1
#define getcwd(buf, size)   _getcwd(buf, size)
#define HAVE__FSTATI64   1
#define HAVE_EXIT_SUCCESS   1
#define HAVE_FILESYSTEM_NOTZERO   1
#define HAVE_GETCWD   1
#define HAVE_MEMCMP   1
#define HAVE_MEMCPY   1
#define HAVE_MEMMOVE   1
#define HAVE_MEMORY_H   1
#define HAVE_MUTEX_THREADS   1
#define HAVE_MUTEX_WIN32   1
#define HAVE_QSORT   1
#define HAVE_RAISE   1
#define HAVE_SNPRINTF   1
#define HAVE_STDLIB_H   1
#define HAVE_STRDUP   1
#define HAVE_STRERROR   1
#define HAVE_STRING_H   1
#define HAVE_STRINGS_H   1
#define HAVE_STRTOUL   1
#define HAVE_SYS_STAT_H   1
#define HAVE_SYS_TYPES_H   1
#define HAVE_VSNPRINTF   1
#define NO_SYSTEM_INCLUDES
#define PACKAGE_BUGREPORT   "support@sleepycat.com"
#define PACKAGE_NAME   "Berkeley DB"
#define PACKAGE_STRING   "Berkeley DB 4.1.24"
#define PACKAGE_TARNAME   "db-4.1.24"
#define PACKAGE_VERSION   "4.1.24"
#define snprintf   _snprintf
#define STDC_HEADERS   1
#define strcasecmp   __db_Cstrcasecmp
#define strncasecmp   __db_Cstrncasecmp
#define vsnprintf   _vsnprintf
#define WIN32_LEAN_AND_MEAN

Functions

int getopt (int, char *const *, const char *)

Variables

char * optarg
int optind


Define Documentation

#define __STDC__   1
 

Definition at line 440 of file db_config.h.

#define DB_WIN32   1
 

Definition at line 427 of file db_config.h.

#define getcwd buf,
size   )     _getcwd(buf, size)
 

Definition at line 404 of file db_config.h.

Referenced by __log_archive(), my_getwd(), parse_args(), and setup().

#define HAVE__FSTATI64   1
 

Definition at line 283 of file db_config.h.

#define HAVE_EXIT_SUCCESS   1
 

Definition at line 39 of file db_config.h.

#define HAVE_FILESYSTEM_NOTZERO   1
 

Definition at line 45 of file db_config.h.

#define HAVE_GETCWD   1
 

Definition at line 48 of file db_config.h.

#define HAVE_MEMCMP   1
 

Definition at line 66 of file db_config.h.

#define HAVE_MEMCPY   1
 

Definition at line 69 of file db_config.h.

#define HAVE_MEMMOVE   1
 

Definition at line 72 of file db_config.h.

#define HAVE_MEMORY_H   1
 

Definition at line 75 of file db_config.h.

#define HAVE_MUTEX_THREADS   1
 

Definition at line 155 of file db_config.h.

#define HAVE_MUTEX_WIN32   1
 

Definition at line 173 of file db_config.h.

#define HAVE_QSORT   1
 

Definition at line 197 of file db_config.h.

#define HAVE_RAISE   1
 

Definition at line 200 of file db_config.h.

#define HAVE_SNPRINTF   1
 

Definition at line 215 of file db_config.h.

#define HAVE_STDLIB_H   1
 

Definition at line 221 of file db_config.h.

#define HAVE_STRDUP   1
 

Definition at line 227 of file db_config.h.

#define HAVE_STRERROR   1
 

Definition at line 230 of file db_config.h.

#define HAVE_STRING_H   1
 

Definition at line 236 of file db_config.h.

#define HAVE_STRINGS_H   1
 

Definition at line 233 of file db_config.h.

#define HAVE_STRTOUL   1
 

Definition at line 239 of file db_config.h.

#define HAVE_SYS_STAT_H   1
 

Definition at line 259 of file db_config.h.

#define HAVE_SYS_TYPES_H   1
 

Definition at line 265 of file db_config.h.

#define HAVE_VSNPRINTF   1
 

Definition at line 274 of file db_config.h.

#define NO_SYSTEM_INCLUDES
 

Definition at line 399 of file db_config.h.

#define PACKAGE_BUGREPORT   "support@sleepycat.com"
 

Definition at line 286 of file db_config.h.

#define PACKAGE_NAME   "Berkeley DB"
 

Definition at line 289 of file db_config.h.

#define PACKAGE_STRING   "Berkeley DB 4.1.24"
 

Definition at line 292 of file db_config.h.

#define PACKAGE_TARNAME   "db-4.1.24"
 

Definition at line 295 of file db_config.h.

#define PACKAGE_VERSION   "4.1.24"
 

Definition at line 298 of file db_config.h.

#define snprintf   _snprintf
 

Definition at line 405 of file db_config.h.

Referenced by __db_apprec(), __db_backup_name(), __db_e_attach(), __db_e_remfile(), __db_errcall(), __db_prdbt(), __db_prheader(), __db_pthread_mutex_lock(), __db_r_attach(), __log_name(), __os_dirlist(), __os_open(), __os_unique_name(), __qam_extent_names(), __qam_fprobe(), __qam_fremove(), __qam_remove(), __qam_rename(), _ErrorFunc(), _GetLsn(), field_real::add(), bdb_DbOpen(), bdb_DbRemove(), bdb_DbRename(), bdb_RandCommand(), berkdb_Cmd(), CHECK_ALLOWED_ERROR(), check_setup(), check_tables(), create_paths(), db_Cmd(), db_strerror(), del_tree(), env_Cmd(), env_DbRemove(), env_DbRename(), Dbdih::execDUMP_STATE_ORD(), finish_defaults(), get_class(), gzprintf(), install_db(), Java_com_sleepycat_db_DbEnv_txn_1recover(), Java_com_sleepycat_db_DbEnv_txn_1stat(), main(), mysql_install_db(), NdbDaemon_Make(), open_log_file(), LocalConfig::parseHostName(), read_defaults(), removef(), report_exception(), run_test(), String::set(), set_object_field(), setup(), showTime(), start_master(), start_slave(), stop_server(), Field_decimal::store(), tcl_DbAssociate(), tcl_DbcDup(), tcl_DbCursor(), tcl_DbDelete(), tcl_DbGet(), tcl_DbGetjoin(), tcl_DbJoin(), tcl_DbPut(), tcl_DbTruncate(), tcl_Mutex(), tcl_Txn(), test_sys_file(), userDbInsertSubscriber(), and wait_for_server_start().

#define STDC_HEADERS   1
 

Definition at line 304 of file db_config.h.

#define strcasecmp   __db_Cstrcasecmp
 

Definition at line 353 of file db_config.h.

Referenced by __db_parse(), __os_rename(), _rl_qsort_string_compare(), CommandInterpreter::analyseAfterFirstToken(), Config::change(), checkConnectionSupport(), Operate::evaluate(), NDBT_TestSuite::execute(), CommandInterpreter::execute_impl(), CommandInterpreter::executeClusterLog(), CommandInterpreter::executeForAll(), CommandInterpreter::executeHelp(), CommandInterpreter::executePurge(), CommandInterpreter::executeRestart(), CommandInterpreter::executeShow(), ConfigInfo::getAlias(), ConfigInfo::isSection(), NDBT_TestCaseImpl1::isVerify(), ndb_mgm_match_event_severity(), CommandInterpreter::parseBlockSpecification(), InitConfigFileParser::parseDefaultSectionHeader(), print_nodes(), NDBT_TestSuite::printTestCaseSummary(), CPCD::Process::Process(), PropertiesImpl::setCaseInsensitiveNames(), and NDBT_TestCaseImpl1::tableExists().

#define strncasecmp   __db_Cstrncasecmp
 

Definition at line 354 of file db_config.h.

Referenced by CommandInterpreter::execute_impl(), and Config::printConfigFile().

#define vsnprintf   _vsnprintf
 

Definition at line 406 of file db_config.h.

Referenced by __db_errcall(), __db_logmsg(), basestring_vsnprintf(), fdprintf(), log(), and removef().

#define WIN32_LEAN_AND_MEAN
 

Definition at line 392 of file db_config.h.


Function Documentation

int getopt int  ,
char *const *  ,
const char * 
 

Definition at line 74 of file getopt.c.

References __db_getopt_reset, __db_rpath(), BADARG, BADCH, EMSG, NULL, optarg, opterr, optind, optopt, optreset, progname, and strchr().

Referenced by LIST_HEAD(), and main().

00078 {
00079         static char *progname;
00080         static char *place = EMSG;              /* option letter processing */
00081         char *oli;                              /* option letter list index */
00082 
00083         /*
00084          * VxWorks needs to be able to repeatedly call getopt from multiple
00085          * programs within its global name space.
00086          */
00087         if (__db_getopt_reset) {
00088                 __db_getopt_reset = 0;
00089 
00090                 opterr = optind = 1;
00091                 optopt = optreset = 0;
00092                 optarg = NULL;
00093                 progname = NULL;
00094                 place = EMSG;
00095         }
00096         if (!progname) {
00097                 if ((progname = __db_rpath(*nargv)) == NULL)
00098                         progname = *nargv;
00099                 else
00100                         ++progname;
00101         }
00102 
00103         if (optreset || !*place) {              /* update scanning pointer */
00104                 optreset = 0;
00105                 if (optind >= nargc || *(place = nargv[optind]) != '-') {
00106                         place = EMSG;
00107                         return (EOF);
00108                 }
00109                 if (place[1] && *++place == '-') {      /* found "--" */
00110                         ++optind;
00111                         place = EMSG;
00112                         return (EOF);
00113                 }
00114         }                                       /* option letter okay? */
00115         if ((optopt = (int)*place++) == (int)':' ||
00116             !(oli = strchr(ostr, optopt))) {
00117                 /*
00118                  * if the user didn't specify '-' as an option,
00119                  * assume it means EOF.
00120                  */
00121                 if (optopt == (int)'-')
00122                         return (EOF);
00123                 if (!*place)
00124                         ++optind;
00125                 if (opterr && *ostr != ':')
00126                         (void)fprintf(stderr,
00127                             "%s: illegal option -- %c\n", progname, optopt);
00128                 return (BADCH);
00129         }
00130         if (*++oli != ':') {                    /* don't need argument */
00131                 optarg = NULL;
00132                 if (!*place)
00133                         ++optind;
00134         }
00135         else {                                  /* need an argument */
00136                 if (*place)                     /* no white space */
00137                         optarg = place;
00138                 else if (nargc <= ++optind) {   /* no arg */
00139                         place = EMSG;
00140                         if (*ostr == ':')
00141                                 return (BADARG);
00142                         if (opterr)
00143                                 (void)fprintf(stderr,
00144                                     "%s: option requires an argument -- %c\n",
00145                                     progname, optopt);
00146                         return (BADCH);
00147                 }
00148                 else                            /* white space */
00149                         optarg = nargv[optind];
00150                 place = EMSG;
00151                 ++optind;
00152         }
00153         return (optopt);                        /* dump back option letter */
00154 }


Variable Documentation

char* optarg
 

Definition at line 56 of file getopt.c.

Referenced by arg_match_long(), arg_match_short(), getopt(), LIST_HEAD(), main(), and parse_args().

int optind
 

Definition at line 53 of file getopt.c.

Referenced by NDBT_TestSuite::execute(), getopt(), main(), NDB_MAIN(), and parse_args().


Generated on Wed Jul 20 21:06:36 2005 for MySQL 5.0.9 Beta by  doxygen 1.4.3