mkernel 0.0.1
Micro-kernel framework, everything as a module
mkernel-opt.c File Reference
#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>
Include dependency graph for mkernel-opt.c:

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...
 

Macro Definition Documentation

◆ HELP_DESC

#define HELP_DESC   (mkernel_opt_strs+942)

Definition at line 129 of file mkernel-opt.c.

◆ HELP_name

#define HELP_name   (mkernel_opt_strs+986)

Definition at line 130 of file mkernel-opt.c.

◆ LOAD_OPTS_DESC

#define LOAD_OPTS_DESC   (mkernel_opt_strs+1139)

Definition at line 150 of file mkernel-opt.c.

◆ LOAD_OPTS_NAME

#define LOAD_OPTS_NAME   (mkernel_opt_strs+1171)

Definition at line 151 of file mkernel-opt.c.

◆ LOAD_OPTS_name

#define LOAD_OPTS_name   (NO_LOAD_OPTS_name + 3)

Definition at line 154 of file mkernel-opt.c.

◆ LOAD_OPTS_pfx

#define LOAD_OPTS_pfx   (mkernel_opt_strs+1194)

Definition at line 153 of file mkernel-opt.c.

◆ mkernel_full_usage

#define mkernel_full_usage   (NULL)

Definition at line 281 of file mkernel-opt.c.

◆ mkernel_packager_info

#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.

◆ mkernel_short_usage

#define mkernel_short_usage   (NULL)

Definition at line 282 of file mkernel-opt.c.

◆ MODULE_PATH_DESC

#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.

◆ MODULE_PATH_FLAGS

#define MODULE_PATH_FLAGS
Value:
(OPTST_DISABLED \
| OPTST_SET_ARGTYPE(OPARG_TYPE_STRING))

Compiled in flag settings for the module-path option.

Definition at line 123 of file mkernel-opt.c.

◆ MODULE_PATH_NAME

#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.

◆ MODULE_PATH_name

#define MODULE_PATH_name   (mkernel_opt_strs+930)

Name string for the module-path option.

Definition at line 121 of file mkernel-opt.c.

◆ MORE_HELP_DESC

#define MORE_HELP_DESC   HELP_DESC

Definition at line 136 of file mkernel-opt.c.

◆ MORE_HELP_FLAGS

#define MORE_HELP_FLAGS   (OPTST_OMITTED | OPTST_NO_INIT)

Definition at line 138 of file mkernel-opt.c.

◆ MORE_HELP_name

#define MORE_HELP_name   HELP_name

Definition at line 137 of file mkernel-opt.c.

◆ NO_LOAD_OPTS_name

#define NO_LOAD_OPTS_name   (mkernel_opt_strs+1181)

Definition at line 152 of file mkernel-opt.c.

◆ NULL

#define NULL   0

Definition at line 64 of file mkernel-opt.c.

◆ OPTION_CODE_COMPILE

#define OPTION_CODE_COMPILE   1

Definition at line 42 of file mkernel-opt.c.

◆ OPTPROC_BASE

#define OPTPROC_BASE   OPTPROC_NONE

Definition at line 277 of file mkernel-opt.c.

◆ PKGDATADIR

#define PKGDATADIR   ""

The directory containing the data associated with mkernel.

Definition at line 313 of file mkernel-opt.c.

◆ SAVE_OPTS_DESC

#define SAVE_OPTS_DESC   (mkernel_opt_strs+1090)

Definition at line 148 of file mkernel-opt.c.

◆ SAVE_OPTS_name

#define SAVE_OPTS_name   (mkernel_opt_strs+1129)

Definition at line 149 of file mkernel-opt.c.

◆ translate_option_strings

#define translate_option_strings   NULL

Definition at line 278 of file mkernel-opt.c.

◆ VER_DESC

#define VER_DESC   (mkernel_opt_strs+1046)

Definition at line 146 of file mkernel-opt.c.

◆ VER_FLAGS

#define VER_FLAGS
Value:
(OPTST_SET_ARGTYPE(OPARG_TYPE_STRING) | \
OPTST_ARG_OPTIONAL | OPTST_IMM | OPTST_NO_INIT)

Definition at line 143 of file mkernel-opt.c.

◆ VER_name

#define VER_name   (mkernel_opt_strs+1082)

Definition at line 147 of file mkernel-opt.c.

◆ VER_PROC

#define VER_PROC   optionPrintVersion

Definition at line 165 of file mkernel-opt.c.

◆ zBugsAddr

#define zBugsAddr   (mkernel_opt_strs+1332)

The mkernel program bug email address.

Definition at line 264 of file mkernel-opt.c.

◆ zCopyright

#define zCopyright   (mkernel_opt_strs+0)

Definition at line 59 of file mkernel-opt.c.

◆ zDetail

#define zDetail   (mkernel_opt_strs+1423)

Extra detail explaining what mkernel does.

Definition at line 268 of file mkernel-opt.c.

◆ zExplain

#define zExplain   (mkernel_opt_strs+1354)

Clarification/explanation of what mkernel does.

Definition at line 266 of file mkernel-opt.c.

◆ zFullVersion

#define zFullVersion   (mkernel_opt_strs+1610)

The full version string for mkernel.

Definition at line 270 of file mkernel-opt.c.

◆ zLicenseDescrip

#define zLicenseDescrip   (mkernel_opt_strs+266)

Definition at line 60 of file mkernel-opt.c.

◆ zPROGNAME

#define zPROGNAME   (mkernel_opt_strs+1197)

Reference to the upper cased version of mkernel.

Definition at line 254 of file mkernel-opt.c.

◆ zRcName

#define zRcName   (mkernel_opt_strs+1321)

mkernel configuration file name.

Definition at line 258 of file mkernel-opt.c.

◆ zUsageTitle

#define zUsageTitle   (mkernel_opt_strs+1205)

Reference to the title line for mkernel usage.

Definition at line 256 of file mkernel-opt.c.

Variable Documentation

◆ mkernelOptions

tOptions mkernelOptions

The option definitions for mkernel.

The one structure that binds them all.

Definition at line 343 of file mkernel-opt.c.

◆ option_usage_fp

FILE* option_usage_fp
extern

◆ optionBooleanVal

tOptProc optionBooleanVal
extern

Declare option callback procedures.

◆ optionNestedVal

tOptProc optionNestedVal

Definition at line 159 of file mkernel-opt.c.

◆ optionNumericVal

tOptProc optionNumericVal

Definition at line 159 of file mkernel-opt.c.

◆ optionPagedUsage

tOptProc optionPagedUsage

Definition at line 160 of file mkernel-opt.c.

◆ optionPrintVersion

tOptProc optionPrintVersion

Definition at line 160 of file mkernel-opt.c.

◆ optionResetOpt

tOptProc optionResetOpt

Definition at line 160 of file mkernel-opt.c.

◆ optionStackArg

tOptProc optionStackArg

Definition at line 161 of file mkernel-opt.c.

◆ optionTimeDate

tOptProc optionTimeDate

Definition at line 161 of file mkernel-opt.c.

◆ optionTimeVal

tOptProc optionTimeVal

Definition at line 161 of file mkernel-opt.c.

◆ optionUnstackArg

tOptProc optionUnstackArg

Definition at line 162 of file mkernel-opt.c.

◆ optionVendorOption

tOptProc optionVendorOption

Definition at line 162 of file mkernel-opt.c.