mkernel 0.0.2
Micro-kernel framework, everything as a module
|
#include "mkernel-opt.h"
#include <sys/types.h>
#include <sys/stat.h>
#include <errno.h>
#include <fcntl.h>
#include <limits.h>
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <unistd.h>
Go to the source code of this file.
Macros | |
#define | OPTION_CODE_COMPILE 1 |
#define | zCopyright (mkernel_opt_strs+0) |
#define | zLicenseDescrip (mkernel_opt_strs+266) |
#define | NULL 0 |
#define | MODULE_PATH_DESC (mkernel_opt_strs+892) |
module-path option description: More... | |
#define | MODULE_PATH_NAME (mkernel_opt_strs+918) |
Upper-cased name for the module-path option. More... | |
#define | MODULE_PATH_name (mkernel_opt_strs+930) |
Name string for the module-path option. More... | |
#define | MODULE_PATH_FLAGS |
Compiled in flag settings for the module-path option. More... | |
#define | HELP_DESC (mkernel_opt_strs+942) |
#define | HELP_name (mkernel_opt_strs+986) |
#define | MORE_HELP_DESC HELP_DESC |
#define | MORE_HELP_name HELP_name |
#define | MORE_HELP_FLAGS (OPTST_OMITTED | OPTST_NO_INIT) |
#define | VER_FLAGS |
#define | VER_DESC (mkernel_opt_strs+1046) |
#define | VER_name (mkernel_opt_strs+1082) |
#define | SAVE_OPTS_DESC (mkernel_opt_strs+1090) |
#define | SAVE_OPTS_name (mkernel_opt_strs+1129) |
#define | LOAD_OPTS_DESC (mkernel_opt_strs+1139) |
#define | LOAD_OPTS_NAME (mkernel_opt_strs+1171) |
#define | NO_LOAD_OPTS_name (mkernel_opt_strs+1181) |
#define | LOAD_OPTS_pfx (mkernel_opt_strs+1194) |
#define | LOAD_OPTS_name (NO_LOAD_OPTS_name + 3) |
#define | VER_PROC optionPrintVersion |
#define | zPROGNAME (mkernel_opt_strs+1197) |
Reference to the upper cased version of mkernel. More... | |
#define | zUsageTitle (mkernel_opt_strs+1205) |
Reference to the title line for mkernel usage. More... | |
#define | zRcName (mkernel_opt_strs+1321) |
mkernel configuration file name. More... | |
#define | zBugsAddr (mkernel_opt_strs+1332) |
The mkernel program bug email address. More... | |
#define | zExplain (mkernel_opt_strs+1354) |
Clarification/explanation of what mkernel does. More... | |
#define | zDetail (mkernel_opt_strs+1423) |
Extra detail explaining what mkernel does. More... | |
#define | zFullVersion (mkernel_opt_strs+1610) |
The full version string for mkernel. More... | |
#define | OPTPROC_BASE OPTPROC_NONE |
#define | translate_option_strings NULL |
#define | mkernel_full_usage (NULL) |
#define | mkernel_short_usage (NULL) |
#define | PKGDATADIR "" |
The directory containing the data associated with mkernel. More... | |
#define | mkernel_packager_info NULL |
Information about the person or institution that packaged mkernel for the current distribution. More... | |
Variables | |
FILE * | option_usage_fp |
tOptProc | optionBooleanVal |
Declare option callback procedures. More... | |
tOptProc | optionNestedVal |
tOptProc | optionNumericVal |
tOptProc | optionPagedUsage |
tOptProc | optionPrintVersion |
tOptProc | optionResetOpt |
tOptProc | optionStackArg |
tOptProc | optionTimeDate |
tOptProc | optionTimeVal |
tOptProc | optionUnstackArg |
tOptProc | optionVendorOption |
tOptions | mkernelOptions |
The option definitions for mkernel. More... | |
#define HELP_DESC (mkernel_opt_strs+942) |
Definition at line 129 of file mkernel-opt.c.
#define HELP_name (mkernel_opt_strs+986) |
Definition at line 130 of file mkernel-opt.c.
#define LOAD_OPTS_DESC (mkernel_opt_strs+1139) |
Definition at line 150 of file mkernel-opt.c.
#define LOAD_OPTS_NAME (mkernel_opt_strs+1171) |
Definition at line 151 of file mkernel-opt.c.
#define LOAD_OPTS_name (NO_LOAD_OPTS_name + 3) |
Definition at line 154 of file mkernel-opt.c.
#define LOAD_OPTS_pfx (mkernel_opt_strs+1194) |
Definition at line 153 of file mkernel-opt.c.
#define mkernel_full_usage (NULL) |
Definition at line 281 of file mkernel-opt.c.
#define mkernel_packager_info NULL |
Information about the person or institution that packaged mkernel for the current distribution.
Definition at line 321 of file mkernel-opt.c.
#define mkernel_short_usage (NULL) |
Definition at line 282 of file mkernel-opt.c.
#define MODULE_PATH_DESC (mkernel_opt_strs+892) |
module-path option description:
Descriptive text for the module-path option
Definition at line 117 of file mkernel-opt.c.
#define MODULE_PATH_FLAGS |
Compiled in flag settings for the module-path option.
Definition at line 123 of file mkernel-opt.c.
#define MODULE_PATH_NAME (mkernel_opt_strs+918) |
Upper-cased name for the module-path option.
Definition at line 119 of file mkernel-opt.c.
#define MODULE_PATH_name (mkernel_opt_strs+930) |
Name string for the module-path option.
Definition at line 121 of file mkernel-opt.c.
#define MORE_HELP_DESC HELP_DESC |
Definition at line 136 of file mkernel-opt.c.
#define MORE_HELP_FLAGS (OPTST_OMITTED | OPTST_NO_INIT) |
Definition at line 138 of file mkernel-opt.c.
#define MORE_HELP_name HELP_name |
Definition at line 137 of file mkernel-opt.c.
#define NO_LOAD_OPTS_name (mkernel_opt_strs+1181) |
Definition at line 152 of file mkernel-opt.c.
#define NULL 0 |
Definition at line 64 of file mkernel-opt.c.
#define OPTION_CODE_COMPILE 1 |
Definition at line 42 of file mkernel-opt.c.
#define OPTPROC_BASE OPTPROC_NONE |
Definition at line 277 of file mkernel-opt.c.
#define PKGDATADIR "" |
The directory containing the data associated with mkernel.
Definition at line 313 of file mkernel-opt.c.
#define SAVE_OPTS_DESC (mkernel_opt_strs+1090) |
Definition at line 148 of file mkernel-opt.c.
#define SAVE_OPTS_name (mkernel_opt_strs+1129) |
Definition at line 149 of file mkernel-opt.c.
#define translate_option_strings NULL |
Definition at line 278 of file mkernel-opt.c.
#define VER_DESC (mkernel_opt_strs+1046) |
Definition at line 146 of file mkernel-opt.c.
#define VER_FLAGS |
Definition at line 143 of file mkernel-opt.c.
#define VER_name (mkernel_opt_strs+1082) |
Definition at line 147 of file mkernel-opt.c.
#define VER_PROC optionPrintVersion |
Definition at line 165 of file mkernel-opt.c.
#define zBugsAddr (mkernel_opt_strs+1332) |
The mkernel program bug email address.
Definition at line 264 of file mkernel-opt.c.
#define zCopyright (mkernel_opt_strs+0) |
Definition at line 59 of file mkernel-opt.c.
#define zDetail (mkernel_opt_strs+1423) |
Extra detail explaining what mkernel does.
Definition at line 268 of file mkernel-opt.c.
#define zExplain (mkernel_opt_strs+1354) |
Clarification/explanation of what mkernel does.
Definition at line 266 of file mkernel-opt.c.
#define zFullVersion (mkernel_opt_strs+1610) |
The full version string for mkernel.
Definition at line 270 of file mkernel-opt.c.
#define zLicenseDescrip (mkernel_opt_strs+266) |
Definition at line 60 of file mkernel-opt.c.
#define zPROGNAME (mkernel_opt_strs+1197) |
Reference to the upper cased version of mkernel.
Definition at line 254 of file mkernel-opt.c.
#define zRcName (mkernel_opt_strs+1321) |
mkernel configuration file name.
Definition at line 258 of file mkernel-opt.c.
#define zUsageTitle (mkernel_opt_strs+1205) |
Reference to the title line for mkernel usage.
Definition at line 256 of file mkernel-opt.c.
tOptions mkernelOptions |
The option definitions for mkernel.
The one structure that binds them all.
Definition at line 343 of file mkernel-opt.c.
|
extern |
|
extern |
Declare option callback procedures.
tOptProc optionNestedVal |
Definition at line 159 of file mkernel-opt.c.
tOptProc optionNumericVal |
Definition at line 159 of file mkernel-opt.c.
tOptProc optionPagedUsage |
Definition at line 160 of file mkernel-opt.c.
tOptProc optionPrintVersion |
Definition at line 160 of file mkernel-opt.c.
tOptProc optionResetOpt |
Definition at line 160 of file mkernel-opt.c.
tOptProc optionStackArg |
Definition at line 161 of file mkernel-opt.c.
tOptProc optionTimeDate |
Definition at line 161 of file mkernel-opt.c.
tOptProc optionTimeVal |
Definition at line 161 of file mkernel-opt.c.
tOptProc optionUnstackArg |
Definition at line 162 of file mkernel-opt.c.
tOptProc optionVendorOption |
Definition at line 162 of file mkernel-opt.c.