rsstats 0.0.1
Redis Enterprise Statistic collector
rsstats-opts.c File Reference
#include "rsstats-opts.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 rsstats-opts.c:

Go to the source code of this file.

Macros

#define OPTION_CODE_COMPILE   1
 
#define zCopyright   (rsstats_opt_strs+0)
 
#define zLicenseDescrip   (rsstats_opt_strs+258)
 
#define NULL   0
 
#define INPUT_DESC   (rsstats_opt_strs+861)
 input option description: More...
 
#define INPUT_NAME   (rsstats_opt_strs+902)
 Upper-cased name for the input option. More...
 
#define INPUT_name   (rsstats_opt_strs+908)
 Name string for the input option. More...
 
#define INPUT_DFT_ARG   (rsstats_opt_strs+914)
 The compiled in default value for the input option argument. More...
 
#define INPUT_FLAGS
 Compiled in flag settings for the input option. More...
 
#define OUTPUT_DESC   (rsstats_opt_strs+929)
 output option description: More...
 
#define OUTPUT_NAME   (rsstats_opt_strs+994)
 Upper-cased name for the output option. More...
 
#define OUTPUT_name   (rsstats_opt_strs+1001)
 Name string for the output option. More...
 
#define OUTPUT_DFT_ARG   (rsstats_opt_strs+1008)
 The compiled in default value for the output option argument. More...
 
#define OUTPUT_FLAGS
 Compiled in flag settings for the output option. More...
 
#define CLUSTERS_DESC   (rsstats_opt_strs+1020)
 clusters option description: More...
 
#define CLUSTERS_NAME   (rsstats_opt_strs+1081)
 Upper-cased name for the clusters option. More...
 
#define CLUSTERS_name   (rsstats_opt_strs+1090)
 Name string for the clusters option. More...
 
#define CLUSTERS_DFT_ARG   (rsstats_opt_strs+1099)
 The compiled in default value for the clusters option argument. More...
 
#define CLUSTERS_FLAGS
 Compiled in flag settings for the clusters option. More...
 
#define REPORTS_DESC   (rsstats_opt_strs+1103)
 reports option description: More...
 
#define REPORTS_NAME   (rsstats_opt_strs+1162)
 Upper-cased name for the reports option. More...
 
#define REPORTS_name   (rsstats_opt_strs+1170)
 Name string for the reports option. More...
 
#define REPORTS_DFT_ARG   (NULL)
 The compiled in default value for the reports option argument. More...
 
#define ReportsCookieBits   VOIDP(REPORTS_BDBS|REPORTS_CLUSTER)
 
#define REPORTS_FLAGS
 Compiled in flag settings for the reports option. More...
 
#define HELP_DESC   (rsstats_opt_strs+1178)
 
#define HELP_name   (rsstats_opt_strs+1222)
 
#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   (rsstats_opt_strs+1282)
 
#define VER_name   (rsstats_opt_strs+1318)
 
#define SAVE_OPTS_DESC   (rsstats_opt_strs+1326)
 
#define SAVE_OPTS_name   (rsstats_opt_strs+1365)
 
#define LOAD_OPTS_DESC   (rsstats_opt_strs+1375)
 
#define LOAD_OPTS_NAME   (rsstats_opt_strs+1407)
 
#define NO_LOAD_OPTS_name   (rsstats_opt_strs+1417)
 
#define LOAD_OPTS_pfx   (rsstats_opt_strs+1430)
 
#define LOAD_OPTS_name   (NO_LOAD_OPTS_name + 3)
 
#define VER_PROC   optionPrintVersion
 
#define zPROGNAME   (rsstats_opt_strs+1433)
 Reference to the upper cased version of rsstats. More...
 
#define zUsageTitle   (rsstats_opt_strs+1441)
 Reference to the title line for rsstats usage. More...
 
#define zRcName   (rsstats_opt_strs+1570)
 rsstats configuration file name. More...
 
#define zBugsAddr   (rsstats_opt_strs+1581)
 The rsstats program bug email address. More...
 
#define zExplain   (rsstats_opt_strs+1603)
 Clarification/explanation of what rsstats does. More...
 
#define zDetail   (rsstats_opt_strs+1672)
 Extra detail explaining what rsstats does. More...
 
#define zFullVersion   (rsstats_opt_strs+1859)
 The full version string for rsstats. More...
 
#define OPTPROC_BASE   OPTPROC_NONE
 
#define translate_option_strings   NULL
 
#define rsstats_full_usage   (NULL)
 
#define rsstats_short_usage   (NULL)
 
#define O_CLOEXEC   0
 
#define PKGDATADIR   ""
 The directory containing the data associated with rsstats. More...
 
#define rsstats_packager_info   NULL
 Information about the person or institution that packaged rsstats 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 rsstatsOptions
 The option definitions for rsstats. More...
 

Macro Definition Documentation

◆ CLUSTERS_DESC

#define CLUSTERS_DESC   (rsstats_opt_strs+1020)

clusters option description:

Descriptive text for the clusters option

Definition at line 159 of file rsstats-opts.c.

◆ CLUSTERS_DFT_ARG

#define CLUSTERS_DFT_ARG   (rsstats_opt_strs+1099)

The compiled in default value for the clusters option argument.

Definition at line 165 of file rsstats-opts.c.

◆ CLUSTERS_FLAGS

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

Compiled in flag settings for the clusters option.

Definition at line 167 of file rsstats-opts.c.

◆ CLUSTERS_NAME

#define CLUSTERS_NAME   (rsstats_opt_strs+1081)

Upper-cased name for the clusters option.

Definition at line 161 of file rsstats-opts.c.

◆ CLUSTERS_name

#define CLUSTERS_name   (rsstats_opt_strs+1090)

Name string for the clusters option.

Definition at line 163 of file rsstats-opts.c.

◆ HELP_DESC

#define HELP_DESC   (rsstats_opt_strs+1178)

Definition at line 189 of file rsstats-opts.c.

◆ HELP_name

#define HELP_name   (rsstats_opt_strs+1222)

Definition at line 190 of file rsstats-opts.c.

◆ INPUT_DESC

#define INPUT_DESC   (rsstats_opt_strs+861)

input option description:

Descriptive text for the input option

Definition at line 129 of file rsstats-opts.c.

◆ INPUT_DFT_ARG

#define INPUT_DFT_ARG   (rsstats_opt_strs+914)

The compiled in default value for the input option argument.

Definition at line 135 of file rsstats-opts.c.

◆ INPUT_FLAGS

#define INPUT_FLAGS
Value:
(OPTST_DISABLED \
| OPTST_SET_ARGTYPE(OPARG_TYPE_FILE))

Compiled in flag settings for the input option.

Definition at line 137 of file rsstats-opts.c.

◆ INPUT_NAME

#define INPUT_NAME   (rsstats_opt_strs+902)

Upper-cased name for the input option.

Definition at line 131 of file rsstats-opts.c.

◆ INPUT_name

#define INPUT_name   (rsstats_opt_strs+908)

Name string for the input option.

Definition at line 133 of file rsstats-opts.c.

◆ LOAD_OPTS_DESC

#define LOAD_OPTS_DESC   (rsstats_opt_strs+1375)

Definition at line 210 of file rsstats-opts.c.

◆ LOAD_OPTS_NAME

#define LOAD_OPTS_NAME   (rsstats_opt_strs+1407)

Definition at line 211 of file rsstats-opts.c.

◆ LOAD_OPTS_name

#define LOAD_OPTS_name   (NO_LOAD_OPTS_name + 3)

Definition at line 214 of file rsstats-opts.c.

◆ LOAD_OPTS_pfx

#define LOAD_OPTS_pfx   (rsstats_opt_strs+1430)

Definition at line 213 of file rsstats-opts.c.

◆ MORE_HELP_DESC

#define MORE_HELP_DESC   HELP_DESC

Definition at line 196 of file rsstats-opts.c.

◆ MORE_HELP_FLAGS

#define MORE_HELP_FLAGS   (OPTST_OMITTED | OPTST_NO_INIT)

Definition at line 198 of file rsstats-opts.c.

◆ MORE_HELP_name

#define MORE_HELP_name   HELP_name

Definition at line 197 of file rsstats-opts.c.

◆ NO_LOAD_OPTS_name

#define NO_LOAD_OPTS_name   (rsstats_opt_strs+1417)

Definition at line 212 of file rsstats-opts.c.

◆ NULL

#define NULL   0

Definition at line 64 of file rsstats-opts.c.

◆ O_CLOEXEC

#define O_CLOEXEC   0

◆ OPTION_CODE_COMPILE

#define OPTION_CODE_COMPILE   1

Definition at line 42 of file rsstats-opts.c.

◆ OPTPROC_BASE

#define OPTPROC_BASE   OPTPROC_NONE

Definition at line 373 of file rsstats-opts.c.

◆ OUTPUT_DESC

#define OUTPUT_DESC   (rsstats_opt_strs+929)

output option description:

Descriptive text for the output option

Definition at line 144 of file rsstats-opts.c.

◆ OUTPUT_DFT_ARG

#define OUTPUT_DFT_ARG   (rsstats_opt_strs+1008)

The compiled in default value for the output option argument.

Definition at line 150 of file rsstats-opts.c.

◆ OUTPUT_FLAGS

#define OUTPUT_FLAGS
Value:
(OPTST_DISABLED \
| OPTST_SET_ARGTYPE(OPARG_TYPE_FILE))

Compiled in flag settings for the output option.

Definition at line 152 of file rsstats-opts.c.

◆ OUTPUT_NAME

#define OUTPUT_NAME   (rsstats_opt_strs+994)

Upper-cased name for the output option.

Definition at line 146 of file rsstats-opts.c.

◆ OUTPUT_name

#define OUTPUT_name   (rsstats_opt_strs+1001)

Name string for the output option.

Definition at line 148 of file rsstats-opts.c.

◆ PKGDATADIR

#define PKGDATADIR   ""

The directory containing the data associated with rsstats.

Definition at line 478 of file rsstats-opts.c.

◆ REPORTS_DESC

#define REPORTS_DESC   (rsstats_opt_strs+1103)

reports option description:

Descriptive text for the reports option

Definition at line 174 of file rsstats-opts.c.

◆ REPORTS_DFT_ARG

#define REPORTS_DFT_ARG   (NULL)

The compiled in default value for the reports option argument.

Definition at line 180 of file rsstats-opts.c.

◆ REPORTS_FLAGS

#define REPORTS_FLAGS
Value:
(OPTST_DISABLED \
| OPTST_SET_ARGTYPE(OPARG_TYPE_MEMBERSHIP))

Compiled in flag settings for the reports option.

Definition at line 183 of file rsstats-opts.c.

◆ REPORTS_NAME

#define REPORTS_NAME   (rsstats_opt_strs+1162)

Upper-cased name for the reports option.

Definition at line 176 of file rsstats-opts.c.

◆ REPORTS_name

#define REPORTS_name   (rsstats_opt_strs+1170)

Name string for the reports option.

Definition at line 178 of file rsstats-opts.c.

◆ ReportsCookieBits

#define ReportsCookieBits   VOIDP(REPORTS_BDBS|REPORTS_CLUSTER)

Definition at line 181 of file rsstats-opts.c.

◆ rsstats_full_usage

#define rsstats_full_usage   (NULL)

Definition at line 377 of file rsstats-opts.c.

◆ rsstats_packager_info

#define rsstats_packager_info   NULL

Information about the person or institution that packaged rsstats for the current distribution.

Definition at line 486 of file rsstats-opts.c.

◆ rsstats_short_usage

#define rsstats_short_usage   (NULL)

Definition at line 378 of file rsstats-opts.c.

◆ SAVE_OPTS_DESC

#define SAVE_OPTS_DESC   (rsstats_opt_strs+1326)

Definition at line 208 of file rsstats-opts.c.

◆ SAVE_OPTS_name

#define SAVE_OPTS_name   (rsstats_opt_strs+1365)

Definition at line 209 of file rsstats-opts.c.

◆ translate_option_strings

#define translate_option_strings   NULL

Definition at line 374 of file rsstats-opts.c.

◆ VER_DESC

#define VER_DESC   (rsstats_opt_strs+1282)

Definition at line 206 of file rsstats-opts.c.

◆ VER_FLAGS

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

Definition at line 203 of file rsstats-opts.c.

◆ VER_name

#define VER_name   (rsstats_opt_strs+1318)

Definition at line 207 of file rsstats-opts.c.

◆ VER_PROC

#define VER_PROC   optionPrintVersion

Definition at line 225 of file rsstats-opts.c.

◆ zBugsAddr

#define zBugsAddr   (rsstats_opt_strs+1581)

The rsstats program bug email address.

Definition at line 360 of file rsstats-opts.c.

◆ zCopyright

#define zCopyright   (rsstats_opt_strs+0)

Definition at line 59 of file rsstats-opts.c.

◆ zDetail

#define zDetail   (rsstats_opt_strs+1672)

Extra detail explaining what rsstats does.

Definition at line 364 of file rsstats-opts.c.

◆ zExplain

#define zExplain   (rsstats_opt_strs+1603)

Clarification/explanation of what rsstats does.

Definition at line 362 of file rsstats-opts.c.

◆ zFullVersion

#define zFullVersion   (rsstats_opt_strs+1859)

The full version string for rsstats.

Definition at line 366 of file rsstats-opts.c.

◆ zLicenseDescrip

#define zLicenseDescrip   (rsstats_opt_strs+258)

Definition at line 60 of file rsstats-opts.c.

◆ zPROGNAME

#define zPROGNAME   (rsstats_opt_strs+1433)

Reference to the upper cased version of rsstats.

Definition at line 350 of file rsstats-opts.c.

◆ zRcName

#define zRcName   (rsstats_opt_strs+1570)

rsstats configuration file name.

Definition at line 354 of file rsstats-opts.c.

◆ zUsageTitle

#define zUsageTitle   (rsstats_opt_strs+1441)

Reference to the title line for rsstats usage.

Definition at line 352 of file rsstats-opts.c.

Variable Documentation

◆ option_usage_fp

FILE* option_usage_fp
extern

◆ optionBooleanVal

tOptProc optionBooleanVal
extern

Declare option callback procedures.

◆ optionNestedVal

tOptProc optionNestedVal

Definition at line 219 of file rsstats-opts.c.

◆ optionNumericVal

tOptProc optionNumericVal

Definition at line 219 of file rsstats-opts.c.

◆ optionPagedUsage

tOptProc optionPagedUsage

Definition at line 220 of file rsstats-opts.c.

◆ optionPrintVersion

tOptProc optionPrintVersion

Definition at line 220 of file rsstats-opts.c.

◆ optionResetOpt

tOptProc optionResetOpt

Definition at line 220 of file rsstats-opts.c.

◆ optionStackArg

tOptProc optionStackArg

Definition at line 221 of file rsstats-opts.c.

◆ optionTimeDate

tOptProc optionTimeDate

Definition at line 221 of file rsstats-opts.c.

◆ optionTimeVal

tOptProc optionTimeVal

Definition at line 221 of file rsstats-opts.c.

◆ optionUnstackArg

tOptProc optionUnstackArg

Definition at line 222 of file rsstats-opts.c.

◆ optionVendorOption

tOptProc optionVendorOption

Definition at line 222 of file rsstats-opts.c.

◆ rsstatsOptions

tOptions rsstatsOptions

The option definitions for rsstats.

The one structure that binds them all.

Definition at line 508 of file rsstats-opts.c.