#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 |
|
|
Definition at line 440 of file db_config.h. |
|
|
Definition at line 427 of file db_config.h. |
|
|
Definition at line 404 of file db_config.h. Referenced by __log_archive(), my_getwd(), parse_args(), and setup(). |
|
|
Definition at line 283 of file db_config.h. |
|
|
Definition at line 39 of file db_config.h. |
|
|
Definition at line 45 of file db_config.h. |
|
|
Definition at line 48 of file db_config.h. |
|
|
Definition at line 66 of file db_config.h. |
|
|
Definition at line 69 of file db_config.h. |
|
|
Definition at line 72 of file db_config.h. |
|
|
Definition at line 75 of file db_config.h. |
|
|
Definition at line 155 of file db_config.h. |
|
|
Definition at line 173 of file db_config.h. |
|
|
Definition at line 197 of file db_config.h. |
|
|
Definition at line 200 of file db_config.h. |
|
|
Definition at line 215 of file db_config.h. |
|
|
Definition at line 221 of file db_config.h. |
|
|
Definition at line 227 of file db_config.h. |
|
|
Definition at line 230 of file db_config.h. |
|
|
Definition at line 236 of file db_config.h. |
|
|
Definition at line 233 of file db_config.h. |
|
|
Definition at line 239 of file db_config.h. |
|
|
Definition at line 259 of file db_config.h. |
|
|
Definition at line 265 of file db_config.h. |
|
|
Definition at line 274 of file db_config.h. |
|
|
Definition at line 399 of file db_config.h. |
|
|
Definition at line 286 of file db_config.h. |
|
|
Definition at line 289 of file db_config.h. |
|
|
Definition at line 292 of file db_config.h. |
|
|
Definition at line 295 of file db_config.h. |
|
|
Definition at line 298 of file db_config.h. |
|
|
|
Definition at line 304 of file db_config.h. |
|
|
|
Definition at line 354 of file db_config.h. Referenced by CommandInterpreter::execute_impl(), and Config::printConfigFile(). |
|
|
Definition at line 406 of file db_config.h. Referenced by __db_errcall(), __db_logmsg(), basestring_vsnprintf(), fdprintf(), log(), and removef(). |
|
|
Definition at line 392 of file db_config.h. |
|
||||||||||||||||
|
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 }
|
|
|
Definition at line 56 of file getopt.c. Referenced by arg_match_long(), arg_match_short(), getopt(), LIST_HEAD(), main(), and parse_args(). |
|
|
Definition at line 53 of file getopt.c. Referenced by NDBT_TestSuite::execute(), getopt(), main(), NDB_MAIN(), and parse_args(). |
1.4.3