Blame src/systemkey-args.c.bak

Packit 549fdc
/*   -*- buffer-read-only: t -*- vi: set ro:
Packit 549fdc
 *
Packit 549fdc
 *  DO NOT EDIT THIS FILE   (systemkey-args.c)
Packit 549fdc
 *
Packit 549fdc
 *  It has been AutoGen-ed
Packit 549fdc
 *  From the definitions    systemkey-args.def
Packit 549fdc
 *  and the template file   options
Packit 549fdc
 *
Packit 549fdc
 * Generated from AutoOpts 41:1:16 templates.
Packit 549fdc
 *
Packit 549fdc
 *  AutoOpts is a copyrighted work.  This source file is not encumbered
Packit 549fdc
 *  by AutoOpts licensing, but is provided under the licensing terms chosen
Packit 549fdc
 *  by the systemkey-tool author or copyright holder.  AutoOpts is
Packit 549fdc
 *  licensed under the terms of the LGPL.  The redistributable library
Packit 549fdc
 *  (``libopts'') is licensed under the terms of either the LGPL or, at the
Packit 549fdc
 *  users discretion, the BSD license.  See the AutoOpts and/or libopts sources
Packit 549fdc
 *  for details.
Packit 549fdc
 *
Packit 549fdc
 * The systemkey-tool program is copyrighted and licensed
Packit 549fdc
 * under the following terms:
Packit 549fdc
 *
Packit 549fdc
 *  Copyright (C) 2000-2018 Free Software Foundation, and others, all rights reserved.
Packit 549fdc
 *  This is free software. It is licensed for use, modification and
Packit 549fdc
 *  redistribution under the terms of the GNU General Public License,
Packit 549fdc
 *  version 3 or later <http://gnu.org/licenses/gpl.html>
Packit 549fdc
 *
Packit 549fdc
 *  systemkey-tool is free software: you can redistribute it and/or modify it
Packit 549fdc
 *  under the terms of the GNU General Public License as published by the
Packit 549fdc
 *  Free Software Foundation, either version 3 of the License, or
Packit 549fdc
 *  (at your option) any later version.
Packit 549fdc
 *
Packit 549fdc
 *  systemkey-tool is distributed in the hope that it will be useful, but
Packit 549fdc
 *  WITHOUT ANY WARRANTY; without even the implied warranty of
Packit 549fdc
 *  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
Packit 549fdc
 *  See the GNU General Public License for more details.
Packit 549fdc
 *
Packit 549fdc
 *  You should have received a copy of the GNU General Public License along
Packit 549fdc
 *  with this program.  If not, see <http://www.gnu.org/licenses/>.
Packit 549fdc
 */
Packit 549fdc
Packit 549fdc
#ifndef __doxygen__
Packit 549fdc
#define OPTION_CODE_COMPILE 1
Packit 549fdc
#include "systemkey-args.h"
Packit 549fdc
#include <sys/types.h>
Packit 549fdc
Packit 549fdc
#include <limits.h>
Packit 549fdc
#include <stdio.h>
Packit 549fdc
#include <stdlib.h>
Packit 549fdc
#include <errno.h>
Packit 549fdc
Packit 549fdc
#ifdef  __cplusplus
Packit 549fdc
extern "C" {
Packit 549fdc
#endif
Packit 549fdc
extern FILE * option_usage_fp;
Packit 549fdc
#define zCopyright      (systemkey_tool_opt_strs+0)
Packit 549fdc
#define zLicenseDescrip (systemkey_tool_opt_strs+289)
Packit 549fdc
Packit 549fdc
Packit 549fdc
#ifndef NULL
Packit 549fdc
#  define NULL 0
Packit 549fdc
#endif
Packit 549fdc
Packit 549fdc
/**
Packit 549fdc
 *  static const strings for systemkey-tool options
Packit 549fdc
 */
Packit 549fdc
static char const systemkey_tool_opt_strs[1628] =
Packit 549fdc
/*     0 */ "systemkey-tool 3.6.2\n"
Packit 549fdc
            "Copyright (C) 2000-2018 Free Software Foundation, and others, all rights reserved.\n"
Packit 549fdc
            "This is free software. It is licensed for use, modification and\n"
Packit 549fdc
            "redistribution under the terms of the GNU General Public License,\n"
Packit 549fdc
            "version 3 or later <http://gnu.org/licenses/gpl.html>\n\0"
Packit 549fdc
/*   289 */ "systemkey-tool is free software: you can redistribute it and/or modify it\n"
Packit 549fdc
            "under the terms of the GNU General Public License as published by the Free\n"
Packit 549fdc
            "Software Foundation, either version 3 of the License, or (at your option)\n"
Packit 549fdc
            "any later version.\n\n"
Packit 549fdc
            "systemkey-tool is distributed in the hope that it will be useful, but\n"
Packit 549fdc
            "WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY\n"
Packit 549fdc
            "or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License\n"
Packit 549fdc
            "for more details.\n\n"
Packit 549fdc
            "You should have received a copy of the GNU General Public License along\n"
Packit 549fdc
            "with this program.  If not, see <http://www.gnu.org/licenses/>.\n\0"
Packit 549fdc
/*   906 */ "Enable debugging\0"
Packit 549fdc
/*   923 */ "DEBUG\0"
Packit 549fdc
/*   929 */ "debug\0"
Packit 549fdc
/*   935 */ "Input file\0"
Packit 549fdc
/*   946 */ "INFILE\0"
Packit 549fdc
/*   953 */ "infile\0"
Packit 549fdc
/*   960 */ "Output file\0"
Packit 549fdc
/*   972 */ "OUTFILE\0"
Packit 549fdc
/*   980 */ "outfile\0"
Packit 549fdc
/*   988 */ "Lists all stored keys.\0"
Packit 549fdc
/*  1011 */ "LIST\0"
Packit 549fdc
/*  1016 */ "list\0"
Packit 549fdc
/*  1021 */ "Delete the key identified by the given URL.\0"
Packit 549fdc
/*  1065 */ "DELETE\0"
Packit 549fdc
/*  1072 */ "delete\0"
Packit 549fdc
/*  1079 */ "Use the DER format for keys.\0"
Packit 549fdc
/*  1108 */ "INDER\0"
Packit 549fdc
/*  1114 */ "no-inder\0"
Packit 549fdc
/*  1123 */ "no\0"
Packit 549fdc
/*  1126 */ "Use DER format for output keys\0"
Packit 549fdc
/*  1157 */ "OUTDER\0"
Packit 549fdc
/*  1164 */ "no-outder\0"
Packit 549fdc
/*  1174 */ "display extended usage information and exit\0"
Packit 549fdc
/*  1218 */ "help\0"
Packit 549fdc
/*  1223 */ "extended usage information passed thru pager\0"
Packit 549fdc
/*  1268 */ "more-help\0"
Packit 549fdc
/*  1278 */ "output version information and exit\0"
Packit 549fdc
/*  1314 */ "version\0"
Packit 549fdc
/*  1322 */ "SYSTEMKEY_TOOL\0"
Packit 549fdc
/*  1337 */ "systemkey-tool - GnuTLS system key tool\n"
Packit 549fdc
            "Usage:  %s [ -<flag> [<val>] | --<name>[{=| }<val>] ]...\n\0"
Packit 549fdc
/*  1435 */ "bugs@gnutls.org\0"
Packit 549fdc
/*  1451 */ "\n\0"
Packit 549fdc
/*  1453 */ "Program that allows handling user keys as stored in the system in a uniform\n"
Packit 549fdc
            "way.\n\0"
Packit 549fdc
/*  1535 */ "systemkey-tool 3.6.2\0"
Packit 549fdc
/*  1556 */ "systemkey-tool [options]\n"
Packit 549fdc
            "systemkey-tool --help for usage instructions.\n";
Packit 549fdc
Packit 549fdc
/**
Packit 549fdc
 *  debug option description:
Packit 549fdc
 */
Packit 549fdc
/** Descriptive text for the debug option */
Packit 549fdc
#define DEBUG_DESC      (systemkey_tool_opt_strs+906)
Packit 549fdc
/** Upper-cased name for the debug option */
Packit 549fdc
#define DEBUG_NAME      (systemkey_tool_opt_strs+923)
Packit 549fdc
/** Name string for the debug option */
Packit 549fdc
#define DEBUG_name      (systemkey_tool_opt_strs+929)
Packit 549fdc
/** Compiled in flag settings for the debug option */
Packit 549fdc
#define DEBUG_FLAGS     (OPTST_DISABLED \
Packit 549fdc
        | OPTST_SET_ARGTYPE(OPARG_TYPE_NUMERIC))
Packit 549fdc
Packit 549fdc
/**
Packit 549fdc
 *  infile option description:
Packit 549fdc
 */
Packit 549fdc
/** Descriptive text for the infile option */
Packit 549fdc
#define INFILE_DESC      (systemkey_tool_opt_strs+935)
Packit 549fdc
/** Upper-cased name for the infile option */
Packit 549fdc
#define INFILE_NAME      (systemkey_tool_opt_strs+946)
Packit 549fdc
/** Name string for the infile option */
Packit 549fdc
#define INFILE_name      (systemkey_tool_opt_strs+953)
Packit 549fdc
/** Compiled in flag settings for the infile option */
Packit 549fdc
#define INFILE_FLAGS     (OPTST_DISABLED \
Packit 549fdc
        | OPTST_SET_ARGTYPE(OPARG_TYPE_FILE))
Packit 549fdc
Packit 549fdc
/**
Packit 549fdc
 *  outfile option description:
Packit 549fdc
 */
Packit 549fdc
/** Descriptive text for the outfile option */
Packit 549fdc
#define OUTFILE_DESC      (systemkey_tool_opt_strs+960)
Packit 549fdc
/** Upper-cased name for the outfile option */
Packit 549fdc
#define OUTFILE_NAME      (systemkey_tool_opt_strs+972)
Packit 549fdc
/** Name string for the outfile option */
Packit 549fdc
#define OUTFILE_name      (systemkey_tool_opt_strs+980)
Packit 549fdc
/** Compiled in flag settings for the outfile option */
Packit 549fdc
#define OUTFILE_FLAGS     (OPTST_DISABLED \
Packit 549fdc
        | OPTST_SET_ARGTYPE(OPARG_TYPE_STRING))
Packit 549fdc
Packit 549fdc
/**
Packit 549fdc
 *  list option description:
Packit 549fdc
 */
Packit 549fdc
/** Descriptive text for the list option */
Packit 549fdc
#define LIST_DESC      (systemkey_tool_opt_strs+988)
Packit 549fdc
/** Upper-cased name for the list option */
Packit 549fdc
#define LIST_NAME      (systemkey_tool_opt_strs+1011)
Packit 549fdc
/** Name string for the list option */
Packit 549fdc
#define LIST_name      (systemkey_tool_opt_strs+1016)
Packit 549fdc
/** Compiled in flag settings for the list option */
Packit 549fdc
#define LIST_FLAGS     (OPTST_DISABLED)
Packit 549fdc
Packit 549fdc
/**
Packit 549fdc
 *  delete option description:
Packit 549fdc
 */
Packit 549fdc
/** Descriptive text for the delete option */
Packit 549fdc
#define DELETE_DESC      (systemkey_tool_opt_strs+1021)
Packit 549fdc
/** Upper-cased name for the delete option */
Packit 549fdc
#define DELETE_NAME      (systemkey_tool_opt_strs+1065)
Packit 549fdc
/** Name string for the delete option */
Packit 549fdc
#define DELETE_name      (systemkey_tool_opt_strs+1072)
Packit 549fdc
/** Compiled in flag settings for the delete option */
Packit 549fdc
#define DELETE_FLAGS     (OPTST_DISABLED \
Packit 549fdc
        | OPTST_SET_ARGTYPE(OPARG_TYPE_STRING))
Packit 549fdc
Packit 549fdc
/**
Packit 549fdc
 *  inder option description:
Packit 549fdc
 */
Packit 549fdc
/** Descriptive text for the inder option */
Packit 549fdc
#define INDER_DESC      (systemkey_tool_opt_strs+1079)
Packit 549fdc
/** Upper-cased name for the inder option */
Packit 549fdc
#define INDER_NAME      (systemkey_tool_opt_strs+1108)
Packit 549fdc
/** disablement name for the inder option */
Packit 549fdc
#define NOT_INDER_name  (systemkey_tool_opt_strs+1114)
Packit 549fdc
/** disablement prefix for the inder option */
Packit 549fdc
#define NOT_INDER_PFX   (systemkey_tool_opt_strs+1123)
Packit 549fdc
/** Name string for the inder option */
Packit 549fdc
#define INDER_name      (NOT_INDER_name + 3)
Packit 549fdc
/** Compiled in flag settings for the inder option */
Packit 549fdc
#define INDER_FLAGS     (OPTST_DISABLED)
Packit 549fdc
Packit 549fdc
/**
Packit 549fdc
 *  outder option description:
Packit 549fdc
 */
Packit 549fdc
/** Descriptive text for the outder option */
Packit 549fdc
#define OUTDER_DESC      (systemkey_tool_opt_strs+1126)
Packit 549fdc
/** Upper-cased name for the outder option */
Packit 549fdc
#define OUTDER_NAME      (systemkey_tool_opt_strs+1157)
Packit 549fdc
/** disablement name for the outder option */
Packit 549fdc
#define NOT_OUTDER_name  (systemkey_tool_opt_strs+1164)
Packit 549fdc
/** disablement prefix for the outder option */
Packit 549fdc
#define NOT_OUTDER_PFX   (systemkey_tool_opt_strs+1123)
Packit 549fdc
/** Name string for the outder option */
Packit 549fdc
#define OUTDER_name      (NOT_OUTDER_name + 3)
Packit 549fdc
/** Compiled in flag settings for the outder option */
Packit 549fdc
#define OUTDER_FLAGS     (OPTST_DISABLED)
Packit 549fdc
Packit 549fdc
/*
Packit 549fdc
 *  Help/More_Help/Version option descriptions:
Packit 549fdc
 */
Packit 549fdc
#define HELP_DESC       (systemkey_tool_opt_strs+1174)
Packit 549fdc
#define HELP_name       (systemkey_tool_opt_strs+1218)
Packit 549fdc
#ifdef HAVE_WORKING_FORK
Packit 549fdc
#define MORE_HELP_DESC  (systemkey_tool_opt_strs+1223)
Packit 549fdc
#define MORE_HELP_name  (systemkey_tool_opt_strs+1268)
Packit 549fdc
#define MORE_HELP_FLAGS (OPTST_IMM | OPTST_NO_INIT)
Packit 549fdc
#else
Packit 549fdc
#define MORE_HELP_DESC  HELP_DESC
Packit 549fdc
#define MORE_HELP_name  HELP_name
Packit 549fdc
#define MORE_HELP_FLAGS (OPTST_OMITTED | OPTST_NO_INIT)
Packit 549fdc
#endif
Packit 549fdc
#ifdef NO_OPTIONAL_OPT_ARGS
Packit 549fdc
#  define VER_FLAGS     (OPTST_IMM | OPTST_NO_INIT)
Packit 549fdc
#else
Packit 549fdc
#  define VER_FLAGS     (OPTST_SET_ARGTYPE(OPARG_TYPE_STRING) | \
Packit 549fdc
                         OPTST_ARG_OPTIONAL | OPTST_IMM | OPTST_NO_INIT)
Packit 549fdc
#endif
Packit 549fdc
#define VER_DESC        (systemkey_tool_opt_strs+1278)
Packit 549fdc
#define VER_name        (systemkey_tool_opt_strs+1314)
Packit 549fdc
/**
Packit 549fdc
 *  Declare option callback procedures
Packit 549fdc
 */
Packit 549fdc
extern tOptProc
Packit 549fdc
    optionBooleanVal,   optionNestedVal,    optionNumericVal,
Packit 549fdc
    optionPagedUsage,   optionPrintVersion, optionResetOpt,
Packit 549fdc
    optionStackArg,     optionTimeDate,     optionTimeVal,
Packit 549fdc
    optionUnstackArg,   optionVendorOption;
Packit 549fdc
static tOptProc
Packit 549fdc
    doOptDebug, doOptInfile, doUsageOpt;
Packit 549fdc
#define VER_PROC        optionPrintVersion
Packit 549fdc
Packit 549fdc
/* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * */
Packit 549fdc
/**
Packit 549fdc
 *  Define the systemkey-tool Option Descriptions.
Packit 549fdc
 * This is an array of OPTION_CT entries, one for each
Packit 549fdc
 * option that the systemkey-tool program responds to.
Packit 549fdc
 */
Packit 549fdc
static tOptDesc optDesc[OPTION_CT] = {
Packit 549fdc
  {  /* entry idx, value */ 0, VALUE_OPT_DEBUG,
Packit 549fdc
     /* equiv idx, value */ 0, VALUE_OPT_DEBUG,
Packit 549fdc
     /* equivalenced to  */ NO_EQUIVALENT,
Packit 549fdc
     /* min, max, act ct */ 0, 1, 0,
Packit 549fdc
     /* opt state flags  */ DEBUG_FLAGS, 0,
Packit 549fdc
     /* last opt argumnt */ { NULL }, /* --debug */
Packit 549fdc
     /* arg list/cookie  */ NULL,
Packit 549fdc
     /* must/cannot opts */ NULL, NULL,
Packit 549fdc
     /* option proc      */ doOptDebug,
Packit 549fdc
     /* desc, NAME, name */ DEBUG_DESC, DEBUG_NAME, DEBUG_name,
Packit 549fdc
     /* disablement strs */ NULL, NULL },
Packit 549fdc
Packit 549fdc
  {  /* entry idx, value */ 1, VALUE_OPT_INFILE,
Packit 549fdc
     /* equiv idx, value */ 1, VALUE_OPT_INFILE,
Packit 549fdc
     /* equivalenced to  */ NO_EQUIVALENT,
Packit 549fdc
     /* min, max, act ct */ 0, 1, 0,
Packit 549fdc
     /* opt state flags  */ INFILE_FLAGS, 0,
Packit 549fdc
     /* last opt argumnt */ { NULL }, /* --infile */
Packit 549fdc
     /* arg list/cookie  */ NULL,
Packit 549fdc
     /* must/cannot opts */ NULL, NULL,
Packit 549fdc
     /* option proc      */ doOptInfile,
Packit 549fdc
     /* desc, NAME, name */ INFILE_DESC, INFILE_NAME, INFILE_name,
Packit 549fdc
     /* disablement strs */ NULL, NULL },
Packit 549fdc
Packit 549fdc
  {  /* entry idx, value */ 2, VALUE_OPT_OUTFILE,
Packit 549fdc
     /* equiv idx, value */ 2, VALUE_OPT_OUTFILE,
Packit 549fdc
     /* equivalenced to  */ NO_EQUIVALENT,
Packit 549fdc
     /* min, max, act ct */ 0, 1, 0,
Packit 549fdc
     /* opt state flags  */ OUTFILE_FLAGS, 0,
Packit 549fdc
     /* last opt argumnt */ { NULL }, /* --outfile */
Packit 549fdc
     /* arg list/cookie  */ NULL,
Packit 549fdc
     /* must/cannot opts */ NULL, NULL,
Packit 549fdc
     /* option proc      */ NULL,
Packit 549fdc
     /* desc, NAME, name */ OUTFILE_DESC, OUTFILE_NAME, OUTFILE_name,
Packit 549fdc
     /* disablement strs */ NULL, NULL },
Packit 549fdc
Packit 549fdc
  {  /* entry idx, value */ 3, VALUE_OPT_LIST,
Packit 549fdc
     /* equiv idx, value */ 3, VALUE_OPT_LIST,
Packit 549fdc
     /* equivalenced to  */ NO_EQUIVALENT,
Packit 549fdc
     /* min, max, act ct */ 0, 1, 0,
Packit 549fdc
     /* opt state flags  */ LIST_FLAGS, 0,
Packit 549fdc
     /* last opt argumnt */ { NULL }, /* --list */
Packit 549fdc
     /* arg list/cookie  */ NULL,
Packit 549fdc
     /* must/cannot opts */ NULL, NULL,
Packit 549fdc
     /* option proc      */ NULL,
Packit 549fdc
     /* desc, NAME, name */ LIST_DESC, LIST_NAME, LIST_name,
Packit 549fdc
     /* disablement strs */ NULL, NULL },
Packit 549fdc
Packit 549fdc
  {  /* entry idx, value */ 4, VALUE_OPT_DELETE,
Packit 549fdc
     /* equiv idx, value */ 4, VALUE_OPT_DELETE,
Packit 549fdc
     /* equivalenced to  */ NO_EQUIVALENT,
Packit 549fdc
     /* min, max, act ct */ 0, 1, 0,
Packit 549fdc
     /* opt state flags  */ DELETE_FLAGS, 0,
Packit 549fdc
     /* last opt argumnt */ { NULL }, /* --delete */
Packit 549fdc
     /* arg list/cookie  */ NULL,
Packit 549fdc
     /* must/cannot opts */ NULL, NULL,
Packit 549fdc
     /* option proc      */ NULL,
Packit 549fdc
     /* desc, NAME, name */ DELETE_DESC, DELETE_NAME, DELETE_name,
Packit 549fdc
     /* disablement strs */ NULL, NULL },
Packit 549fdc
Packit 549fdc
  {  /* entry idx, value */ 5, VALUE_OPT_INDER,
Packit 549fdc
     /* equiv idx, value */ 5, VALUE_OPT_INDER,
Packit 549fdc
     /* equivalenced to  */ NO_EQUIVALENT,
Packit 549fdc
     /* min, max, act ct */ 0, 1, 0,
Packit 549fdc
     /* opt state flags  */ INDER_FLAGS, 0,
Packit 549fdc
     /* last opt argumnt */ { NULL }, /* --inder */
Packit 549fdc
     /* arg list/cookie  */ NULL,
Packit 549fdc
     /* must/cannot opts */ NULL, NULL,
Packit 549fdc
     /* option proc      */ NULL,
Packit 549fdc
     /* desc, NAME, name */ INDER_DESC, INDER_NAME, INDER_name,
Packit 549fdc
     /* disablement strs */ NOT_INDER_name, NOT_INDER_PFX },
Packit 549fdc
Packit 549fdc
  {  /* entry idx, value */ 6, VALUE_OPT_OUTDER,
Packit 549fdc
     /* equiv idx, value */ 6, VALUE_OPT_OUTDER,
Packit 549fdc
     /* equivalenced to  */ NO_EQUIVALENT,
Packit 549fdc
     /* min, max, act ct */ 0, 1, 0,
Packit 549fdc
     /* opt state flags  */ OUTDER_FLAGS, 0,
Packit 549fdc
     /* last opt argumnt */ { NULL }, /* --outder */
Packit 549fdc
     /* arg list/cookie  */ NULL,
Packit 549fdc
     /* must/cannot opts */ NULL, NULL,
Packit 549fdc
     /* option proc      */ NULL,
Packit 549fdc
     /* desc, NAME, name */ OUTDER_DESC, OUTDER_NAME, OUTDER_name,
Packit 549fdc
     /* disablement strs */ NOT_OUTDER_name, NOT_OUTDER_PFX },
Packit 549fdc
Packit 549fdc
  {  /* entry idx, value */ INDEX_OPT_VERSION, VALUE_OPT_VERSION,
Packit 549fdc
     /* equiv idx value  */ NO_EQUIVALENT, VALUE_OPT_VERSION,
Packit 549fdc
     /* equivalenced to  */ NO_EQUIVALENT,
Packit 549fdc
     /* min, max, act ct */ 0, 1, 0,
Packit 549fdc
     /* opt state flags  */ VER_FLAGS, AOUSE_VERSION,
Packit 549fdc
     /* last opt argumnt */ { NULL },
Packit 549fdc
     /* arg list/cookie  */ NULL,
Packit 549fdc
     /* must/cannot opts */ NULL, NULL,
Packit 549fdc
     /* option proc      */ VER_PROC,
Packit 549fdc
     /* desc, NAME, name */ VER_DESC, NULL, VER_name,
Packit 549fdc
     /* disablement strs */ NULL, NULL },
Packit 549fdc
Packit 549fdc
Packit 549fdc
Packit 549fdc
  {  /* entry idx, value */ INDEX_OPT_HELP, VALUE_OPT_HELP,
Packit 549fdc
     /* equiv idx value  */ NO_EQUIVALENT, VALUE_OPT_HELP,
Packit 549fdc
     /* equivalenced to  */ NO_EQUIVALENT,
Packit 549fdc
     /* min, max, act ct */ 0, 1, 0,
Packit 549fdc
     /* opt state flags  */ OPTST_IMM | OPTST_NO_INIT, AOUSE_HELP,
Packit 549fdc
     /* last opt argumnt */ { NULL },
Packit 549fdc
     /* arg list/cookie  */ NULL,
Packit 549fdc
     /* must/cannot opts */ NULL, NULL,
Packit 549fdc
     /* option proc      */ doUsageOpt,
Packit 549fdc
     /* desc, NAME, name */ HELP_DESC, NULL, HELP_name,
Packit 549fdc
     /* disablement strs */ NULL, NULL },
Packit 549fdc
Packit 549fdc
  {  /* entry idx, value */ INDEX_OPT_MORE_HELP, VALUE_OPT_MORE_HELP,
Packit 549fdc
     /* equiv idx value  */ NO_EQUIVALENT, VALUE_OPT_MORE_HELP,
Packit 549fdc
     /* equivalenced to  */ NO_EQUIVALENT,
Packit 549fdc
     /* min, max, act ct */ 0, 1, 0,
Packit 549fdc
     /* opt state flags  */ MORE_HELP_FLAGS, AOUSE_MORE_HELP,
Packit 549fdc
     /* last opt argumnt */ { NULL },
Packit 549fdc
     /* arg list/cookie  */ NULL,
Packit 549fdc
     /* must/cannot opts */ NULL,  NULL,
Packit 549fdc
     /* option proc      */ optionPagedUsage,
Packit 549fdc
     /* desc, NAME, name */ MORE_HELP_DESC, NULL, MORE_HELP_name,
Packit 549fdc
     /* disablement strs */ NULL, NULL }
Packit 549fdc
};
Packit 549fdc
Packit 549fdc
Packit 549fdc
/* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * */
Packit 549fdc
/** Reference to the upper cased version of systemkey-tool. */
Packit 549fdc
#define zPROGNAME       (systemkey_tool_opt_strs+1322)
Packit 549fdc
/** Reference to the title line for systemkey-tool usage. */
Packit 549fdc
#define zUsageTitle     (systemkey_tool_opt_strs+1337)
Packit 549fdc
/** There is no systemkey-tool configuration file. */
Packit 549fdc
#define zRcName         NULL
Packit 549fdc
/** There are no directories to search for systemkey-tool config files. */
Packit 549fdc
#define apzHomeList     NULL
Packit 549fdc
/** The systemkey-tool program bug email address. */
Packit 549fdc
#define zBugsAddr       (systemkey_tool_opt_strs+1435)
Packit 549fdc
/** Clarification/explanation of what systemkey-tool does. */
Packit 549fdc
#define zExplain        (systemkey_tool_opt_strs+1451)
Packit 549fdc
/** Extra detail explaining what systemkey-tool does. */
Packit 549fdc
#define zDetail         (systemkey_tool_opt_strs+1453)
Packit 549fdc
/** The full version string for systemkey-tool. */
Packit 549fdc
#define zFullVersion    (systemkey_tool_opt_strs+1535)
Packit 549fdc
/* extracted from optcode.tlib near line 364 */
Packit 549fdc
Packit 549fdc
#if defined(ENABLE_NLS)
Packit 549fdc
# define OPTPROC_BASE OPTPROC_TRANSLATE | OPTPROC_NXLAT_OPT
Packit 549fdc
  static tOptionXlateProc translate_option_strings;
Packit 549fdc
#else
Packit 549fdc
# define OPTPROC_BASE OPTPROC_NONE
Packit 549fdc
# define translate_option_strings NULL
Packit 549fdc
#endif /* ENABLE_NLS */
Packit 549fdc
Packit 549fdc
#define systemkey_tool_full_usage (NULL)
Packit 549fdc
#define systemkey_tool_short_usage (systemkey_tool_opt_strs+1556)
Packit 549fdc
Packit 549fdc
#endif /* not defined __doxygen__ */
Packit 549fdc
Packit 549fdc
/*
Packit 549fdc
 *  Create the static procedure(s) declared above.
Packit 549fdc
 */
Packit 549fdc
/**
Packit 549fdc
 * The callout function that invokes the optionUsage function.
Packit 549fdc
 *
Packit 549fdc
 * @param[in] opts the AutoOpts option description structure
Packit 549fdc
 * @param[in] od   the descriptor for the "help" (usage) option.
Packit 549fdc
 * @noreturn
Packit 549fdc
 */
Packit 549fdc
static void
Packit 549fdc
doUsageOpt(tOptions * opts, tOptDesc * od)
Packit 549fdc
{
Packit 549fdc
    int ex_code;
Packit 549fdc
    ex_code = SYSTEMKEY_TOOL_EXIT_SUCCESS;
Packit 549fdc
    optionUsage(&systemkey_toolOptions, ex_code);
Packit 549fdc
    /* NOTREACHED */
Packit 549fdc
    exit(SYSTEMKEY_TOOL_EXIT_FAILURE);
Packit 549fdc
    (void)opts;
Packit 549fdc
    (void)od;
Packit 549fdc
}
Packit 549fdc
Packit 549fdc
/* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * */
Packit 549fdc
/**
Packit 549fdc
 * Code to handle the debug option.
Packit 549fdc
 * Specifies the debug level.
Packit 549fdc
 * @param[in] pOptions the systemkey-tool options data structure
Packit 549fdc
 * @param[in,out] pOptDesc the option descriptor for this option.
Packit 549fdc
 */
Packit 549fdc
static void
Packit 549fdc
doOptDebug(tOptions* pOptions, tOptDesc* pOptDesc)
Packit 549fdc
{
Packit 549fdc
    static struct {long rmin, rmax;} const rng[1] = {
Packit 549fdc
        { 0 ,  9999 } };
Packit 549fdc
    int  ix;
Packit 549fdc
Packit 549fdc
    if (pOptions <= OPTPROC_EMIT_LIMIT)
Packit 549fdc
        goto emit_ranges;
Packit 549fdc
    optionNumericVal(pOptions, pOptDesc);
Packit 549fdc
Packit 549fdc
    for (ix = 0; ix < 1; ix++) {
Packit 549fdc
        if (pOptDesc->optArg.argInt < rng[ix].rmin)
Packit 549fdc
            continue;  /* ranges need not be ordered. */
Packit 549fdc
        if (pOptDesc->optArg.argInt == rng[ix].rmin)
Packit 549fdc
            return;
Packit 549fdc
        if (rng[ix].rmax == LONG_MIN)
Packit 549fdc
            continue;
Packit 549fdc
        if (pOptDesc->optArg.argInt <= rng[ix].rmax)
Packit 549fdc
            return;
Packit 549fdc
    }
Packit 549fdc
Packit 549fdc
    option_usage_fp = stderr;
Packit 549fdc
Packit 549fdc
 emit_ranges:
Packit 549fdc
optionShowRange(pOptions, pOptDesc, VOIDP(rng), 1);
Packit 549fdc
}
Packit 549fdc
Packit 549fdc
/* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * */
Packit 549fdc
/**
Packit 549fdc
 * Code to handle the infile option.
Packit 549fdc
 *
Packit 549fdc
 * @param[in] pOptions the systemkey-tool options data structure
Packit 549fdc
 * @param[in,out] pOptDesc the option descriptor for this option.
Packit 549fdc
 */
Packit 549fdc
static void
Packit 549fdc
doOptInfile(tOptions* pOptions, tOptDesc* pOptDesc)
Packit 549fdc
{
Packit 549fdc
    static teOptFileType const  type =
Packit 549fdc
        FTYPE_MODE_MUST_EXIST + FTYPE_MODE_NO_OPEN;
Packit 549fdc
    static tuFileMode           mode;
Packit 549fdc
#ifndef O_CLOEXEC
Packit 549fdc
#  define O_CLOEXEC 0
Packit 549fdc
#endif
Packit 549fdc
    mode.file_flags = O_CLOEXEC;
Packit 549fdc
Packit 549fdc
    /*
Packit 549fdc
     * This function handles special invalid values for "pOptions"
Packit 549fdc
     */
Packit 549fdc
    optionFileCheck(pOptions, pOptDesc, type, mode);
Packit 549fdc
}
Packit 549fdc
/* extracted from optmain.tlib near line 1250 */
Packit 549fdc
Packit 549fdc
/**
Packit 549fdc
 * The directory containing the data associated with systemkey-tool.
Packit 549fdc
 */
Packit 549fdc
#ifndef  PKGDATADIR
Packit 549fdc
# define PKGDATADIR ""
Packit 549fdc
#endif
Packit 549fdc
Packit 549fdc
/**
Packit 549fdc
 * Information about the person or institution that packaged systemkey-tool
Packit 549fdc
 * for the current distribution.
Packit 549fdc
 */
Packit 549fdc
#ifndef  WITH_PACKAGER
Packit 549fdc
# define systemkey_tool_packager_info NULL
Packit 549fdc
#else
Packit 549fdc
/** Packager information for systemkey-tool. */
Packit 549fdc
static char const systemkey_tool_packager_info[] =
Packit 549fdc
    "Packaged by " WITH_PACKAGER
Packit 549fdc
Packit 549fdc
# ifdef WITH_PACKAGER_VERSION
Packit 549fdc
        " ("WITH_PACKAGER_VERSION")"
Packit 549fdc
# endif
Packit 549fdc
Packit 549fdc
# ifdef WITH_PACKAGER_BUG_REPORTS
Packit 549fdc
    "\nReport systemkey_tool bugs to " WITH_PACKAGER_BUG_REPORTS
Packit 549fdc
# endif
Packit 549fdc
    "\n";
Packit 549fdc
#endif
Packit 549fdc
#ifndef __doxygen__
Packit 549fdc
Packit 549fdc
#endif /* __doxygen__ */
Packit 549fdc
/**
Packit 549fdc
 * The option definitions for systemkey-tool.  The one structure that
Packit 549fdc
 * binds them all.
Packit 549fdc
 */
Packit 549fdc
tOptions systemkey_toolOptions = {
Packit 549fdc
    OPTIONS_STRUCT_VERSION,
Packit 549fdc
    0, NULL,                    /* original argc + argv    */
Packit 549fdc
    ( OPTPROC_BASE
Packit 549fdc
    + OPTPROC_ERRSTOP
Packit 549fdc
    + OPTPROC_SHORTOPT
Packit 549fdc
    + OPTPROC_LONGOPT
Packit 549fdc
    + OPTPROC_NO_REQ_OPT
Packit 549fdc
    + OPTPROC_NEGATIONS
Packit 549fdc
    + OPTPROC_NO_ARGS
Packit 549fdc
    + OPTPROC_GNUUSAGE
Packit 549fdc
    + OPTPROC_MISUSE ),
Packit 549fdc
    0, NULL,                    /* current option index, current option */
Packit 549fdc
    NULL,         NULL,         zPROGNAME,
Packit 549fdc
    zRcName,      zCopyright,   zLicenseDescrip,
Packit 549fdc
    zFullVersion, apzHomeList,  zUsageTitle,
Packit 549fdc
    zExplain,     zDetail,      optDesc,
Packit 549fdc
    zBugsAddr,                  /* address to send bugs to */
Packit 549fdc
    NULL, NULL,                 /* extensions/saved state  */
Packit 549fdc
    optionUsage, /* usage procedure */
Packit 549fdc
    translate_option_strings,   /* translation procedure */
Packit 549fdc
    /*
Packit 549fdc
     *  Indexes to special options
Packit 549fdc
     */
Packit 549fdc
    { INDEX_OPT_MORE_HELP, /* more-help option index */
Packit 549fdc
      NO_EQUIVALENT, /* save option index */
Packit 549fdc
      NO_EQUIVALENT, /* '-#' option index */
Packit 549fdc
      NO_EQUIVALENT /* index of default opt */
Packit 549fdc
    },
Packit 549fdc
    10 /* full option count */, 7 /* user option count */,
Packit 549fdc
    systemkey_tool_full_usage, systemkey_tool_short_usage,
Packit 549fdc
    NULL, NULL,
Packit 549fdc
    PKGDATADIR, systemkey_tool_packager_info
Packit 549fdc
};
Packit 549fdc
Packit 549fdc
#if ENABLE_NLS
Packit 549fdc
/**
Packit 549fdc
 * This code is designed to translate translatable option text for the
Packit 549fdc
 * systemkey-tool program.  These translations happen upon entry
Packit 549fdc
 * to optionProcess().
Packit 549fdc
 */
Packit 549fdc
#include <stdio.h>
Packit 549fdc
#include <stdlib.h>
Packit 549fdc
#include <string.h>
Packit 549fdc
#include <unistd.h>
Packit 549fdc
#ifdef HAVE_DCGETTEXT
Packit 549fdc
# include <gettext.h>
Packit 549fdc
#endif
Packit 549fdc
#include <autoopts/usage-txt.h>
Packit 549fdc
Packit 549fdc
static char * AO_gettext(char const * pz);
Packit 549fdc
static void   coerce_it(void ** s);
Packit 549fdc
Packit 549fdc
/**
Packit 549fdc
 * AutoGen specific wrapper function for gettext.  It relies on the macro _()
Packit 549fdc
 * to convert from English to the target language, then strdup-duplicates the
Packit 549fdc
 * result string.  It tries the "libopts" domain first, then whatever has been
Packit 549fdc
 * set via the \a textdomain(3) call.
Packit 549fdc
 *
Packit 549fdc
 * @param[in] pz the input text used as a lookup key.
Packit 549fdc
 * @returns the translated text (if there is one),
Packit 549fdc
 *   or the original text (if not).
Packit 549fdc
 */
Packit 549fdc
static char *
Packit 549fdc
AO_gettext(char const * pz)
Packit 549fdc
{
Packit 549fdc
    char * res;
Packit 549fdc
    if (pz == NULL)
Packit 549fdc
        return NULL;
Packit 549fdc
#ifdef HAVE_DCGETTEXT
Packit 549fdc
    /*
Packit 549fdc
     * While processing the option_xlateable_txt data, try to use the
Packit 549fdc
     * "libopts" domain.  Once we switch to the option descriptor data,
Packit 549fdc
     * do *not* use that domain.
Packit 549fdc
     */
Packit 549fdc
    if (option_xlateable_txt.field_ct != 0) {
Packit 549fdc
        res = dgettext("libopts", pz);
Packit 549fdc
        if (res == pz)
Packit 549fdc
            res = (char *)VOIDP(_(pz));
Packit 549fdc
    } else
Packit 549fdc
        res = (char *)VOIDP(_(pz));
Packit 549fdc
#else
Packit 549fdc
    res = (char *)VOIDP(_(pz));
Packit 549fdc
#endif
Packit 549fdc
    if (res == pz)
Packit 549fdc
        return res;
Packit 549fdc
    res = strdup(res);
Packit 549fdc
    if (res == NULL) {
Packit 549fdc
        fputs(_("No memory for duping translated strings\n"), stderr);
Packit 549fdc
        exit(SYSTEMKEY_TOOL_EXIT_FAILURE);
Packit 549fdc
    }
Packit 549fdc
    return res;
Packit 549fdc
}
Packit 549fdc
Packit 549fdc
/**
Packit 549fdc
 * All the pointers we use are marked "* const", but they are stored in
Packit 549fdc
 * writable memory.  Coerce the mutability and set the pointer.
Packit 549fdc
 */
Packit 549fdc
static void coerce_it(void ** s) { *s = AO_gettext(*s);
Packit 549fdc
}
Packit 549fdc
Packit 549fdc
/**
Packit 549fdc
 * Translate all the translatable strings in the systemkey_toolOptions
Packit 549fdc
 * structure defined above.  This is done only once.
Packit 549fdc
 */
Packit 549fdc
static void
Packit 549fdc
translate_option_strings(void)
Packit 549fdc
{
Packit 549fdc
    tOptions * const opts = &systemkey_toolOptions;
Packit 549fdc
Packit 549fdc
    /*
Packit 549fdc
     *  Guard against re-translation.  It won't work.  The strings will have
Packit 549fdc
     *  been changed by the first pass through this code.  One shot only.
Packit 549fdc
     */
Packit 549fdc
    if (option_xlateable_txt.field_ct != 0) {
Packit 549fdc
        /*
Packit 549fdc
         *  Do the translations.  The first pointer follows the field count
Packit 549fdc
         *  field.  The field count field is the size of a pointer.
Packit 549fdc
         */
Packit 549fdc
        char ** ppz = (char**)VOIDP(&(option_xlateable_txt));
Packit 549fdc
        int     ix  = option_xlateable_txt.field_ct;
Packit 549fdc
Packit 549fdc
        do {
Packit 549fdc
            ppz++; /* skip over field_ct */
Packit 549fdc
            *ppz = AO_gettext(*ppz);
Packit 549fdc
        } while (--ix > 0);
Packit 549fdc
        /* prevent re-translation and disable "libopts" domain lookup */
Packit 549fdc
        option_xlateable_txt.field_ct = 0;
Packit 549fdc
Packit 549fdc
        coerce_it(VOIDP(&(opts->pzCopyright)));
Packit 549fdc
        coerce_it(VOIDP(&(opts->pzCopyNotice)));
Packit 549fdc
        coerce_it(VOIDP(&(opts->pzFullVersion)));
Packit 549fdc
        coerce_it(VOIDP(&(opts->pzUsageTitle)));
Packit 549fdc
        coerce_it(VOIDP(&(opts->pzExplain)));
Packit 549fdc
        coerce_it(VOIDP(&(opts->pzDetail)));
Packit 549fdc
        {
Packit 549fdc
            tOptDesc * od = opts->pOptDesc;
Packit 549fdc
            for (ix = opts->optCt; ix > 0; ix--, od++)
Packit 549fdc
                coerce_it(VOIDP(&(od->pzText)));
Packit 549fdc
        }
Packit 549fdc
    }
Packit 549fdc
}
Packit 549fdc
#endif /* ENABLE_NLS */
Packit 549fdc
Packit 549fdc
#ifdef DO_NOT_COMPILE_THIS_CODE_IT_IS_FOR_GETTEXT
Packit 549fdc
/** I18N function strictly for xgettext.  Do not compile. */
Packit 549fdc
static void bogus_function(void) {
Packit 549fdc
  /* TRANSLATORS:
Packit 549fdc
Packit 549fdc
     The following dummy function was crated solely so that xgettext can
Packit 549fdc
     extract the correct strings.  These strings are actually referenced
Packit 549fdc
     by a field name in the systemkey_toolOptions structure noted in the
Packit 549fdc
     comments below.  The literal text is defined in systemkey_tool_opt_strs.
Packit 549fdc
   
Packit 549fdc
     NOTE: the strings below are segmented with respect to the source string
Packit 549fdc
     systemkey_tool_opt_strs.  The strings above are handed off for translation
Packit 549fdc
     at run time a paragraph at a time.  Consequently, they are presented here
Packit 549fdc
     for translation a paragraph at a time.
Packit 549fdc
   
Packit 549fdc
     ALSO: often the description for an option will reference another option
Packit 549fdc
     by name.  These are set off with apostrophe quotes (I hope).  Do not
Packit 549fdc
     translate option names.
Packit 549fdc
   */
Packit 549fdc
  /* referenced via systemkey_toolOptions.pzCopyright */
Packit 549fdc
  puts(_("systemkey-tool 3.6.2\n\
Packit 549fdc
Copyright (C) 2000-2018 Free Software Foundation, and others, all rights reserved.\n\
Packit 549fdc
This is free software. It is licensed for use, modification and\n\
Packit 549fdc
redistribution under the terms of the GNU General Public License,\n\
Packit 549fdc
version 3 or later <http://gnu.org/licenses/gpl.html>\n"));
Packit 549fdc
Packit 549fdc
  /* referenced via systemkey_toolOptions.pzCopyNotice */
Packit 549fdc
  puts(_("systemkey-tool is free software: you can redistribute it and/or modify it\n\
Packit 549fdc
under the terms of the GNU General Public License as published by the Free\n\
Packit 549fdc
Software Foundation, either version 3 of the License, or (at your option)\n\
Packit 549fdc
any later version.\n\n"));
Packit 549fdc
  puts(_("systemkey-tool is distributed in the hope that it will be useful, but\n\
Packit 549fdc
WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY\n\
Packit 549fdc
or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License\n\
Packit 549fdc
for more details.\n\n"));
Packit 549fdc
  puts(_("You should have received a copy of the GNU General Public License along\n\
Packit 549fdc
with this program.  If not, see <http://www.gnu.org/licenses/>.\n"));
Packit 549fdc
Packit 549fdc
  /* referenced via systemkey_toolOptions.pOptDesc->pzText */
Packit 549fdc
  puts(_("Enable debugging"));
Packit 549fdc
Packit 549fdc
  /* referenced via systemkey_toolOptions.pOptDesc->pzText */
Packit 549fdc
  puts(_("Input file"));
Packit 549fdc
Packit 549fdc
  /* referenced via systemkey_toolOptions.pOptDesc->pzText */
Packit 549fdc
  puts(_("Output file"));
Packit 549fdc
Packit 549fdc
  /* referenced via systemkey_toolOptions.pOptDesc->pzText */
Packit 549fdc
  puts(_("Lists all stored keys."));
Packit 549fdc
Packit 549fdc
  /* referenced via systemkey_toolOptions.pOptDesc->pzText */
Packit 549fdc
  puts(_("Delete the key identified by the given URL."));
Packit 549fdc
Packit 549fdc
  /* referenced via systemkey_toolOptions.pOptDesc->pzText */
Packit 549fdc
  puts(_("Use the DER format for keys."));
Packit 549fdc
Packit 549fdc
  /* referenced via systemkey_toolOptions.pOptDesc->pzText */
Packit 549fdc
  puts(_("Use DER format for output keys"));
Packit 549fdc
Packit 549fdc
  /* referenced via systemkey_toolOptions.pOptDesc->pzText */
Packit 549fdc
  puts(_("display extended usage information and exit"));
Packit 549fdc
Packit 549fdc
  /* referenced via systemkey_toolOptions.pOptDesc->pzText */
Packit 549fdc
  puts(_("extended usage information passed thru pager"));
Packit 549fdc
Packit 549fdc
  /* referenced via systemkey_toolOptions.pOptDesc->pzText */
Packit 549fdc
  puts(_("output version information and exit"));
Packit 549fdc
Packit 549fdc
  /* referenced via systemkey_toolOptions.pzUsageTitle */
Packit 549fdc
  puts(_("systemkey-tool - GnuTLS system key tool\n\
Packit 549fdc
Usage:  %s [ -<flag> [<val>] | --<name>[{=| }<val>] ]...\n"));
Packit 549fdc
Packit 549fdc
  /* referenced via systemkey_toolOptions.pzExplain */
Packit 549fdc
  puts(_("\n"));
Packit 549fdc
Packit 549fdc
  /* referenced via systemkey_toolOptions.pzDetail */
Packit 549fdc
  puts(_("Program that allows handling user keys as stored in the system in a uniform\n\
Packit 549fdc
way.\n"));
Packit 549fdc
Packit 549fdc
  /* referenced via systemkey_toolOptions.pzFullVersion */
Packit 549fdc
  puts(_("systemkey-tool 3.6.2"));
Packit 549fdc
Packit 549fdc
  /* referenced via systemkey_toolOptions.pzFullUsage */
Packit 549fdc
  puts(_("<<<NOT-FOUND>>>"));
Packit 549fdc
Packit 549fdc
  /* referenced via systemkey_toolOptions.pzShortUsage */
Packit 549fdc
  puts(_("systemkey-tool [options]\n\
Packit 549fdc
systemkey-tool --help for usage instructions.\n"));
Packit 549fdc
  /* LIBOPTS-MESSAGES: */
Packit 549fdc
#line 67 "../autoopts.c"
Packit 549fdc
  puts(_("allocation of %d bytes failed\n"));
Packit 549fdc
#line 93 "../autoopts.c"
Packit 549fdc
  puts(_("allocation of %d bytes failed\n"));
Packit 549fdc
#line 53 "../init.c"
Packit 549fdc
  puts(_("AutoOpts function called without option descriptor\n"));
Packit 549fdc
#line 86 "../init.c"
Packit 549fdc
  puts(_("\tThis exceeds the compiled library version:  "));
Packit 549fdc
#line 84 "../init.c"
Packit 549fdc
  puts(_("Automated Options Processing Error!\n"
Packit 549fdc
       "\t%s called AutoOpts function with structure version %d:%d:%d.\n"));
Packit 549fdc
#line 80 "../autoopts.c"
Packit 549fdc
  puts(_("realloc of %d bytes at 0x%p failed\n"));
Packit 549fdc
#line 88 "../init.c"
Packit 549fdc
  puts(_("\tThis is less than the minimum library version:  "));
Packit 549fdc
#line 121 "../version.c"
Packit 549fdc
  puts(_("Automated Options version %s\n"
Packit 549fdc
       "\tCopyright (C) 1999-2014 by Bruce Korb - all rights reserved\n"));
Packit 549fdc
#line 87 "../makeshell.c"
Packit 549fdc
  puts(_("(AutoOpts bug):  %s.\n"));
Packit 549fdc
#line 90 "../reset.c"
Packit 549fdc
  puts(_("optionResetOpt() called, but reset-option not configured"));
Packit 549fdc
#line 295 "../usage.c"
Packit 549fdc
  puts(_("could not locate the 'help' option"));
Packit 549fdc
#line 336 "../autoopts.c"
Packit 549fdc
  puts(_("optionProcess() was called with invalid data"));
Packit 549fdc
#line 751 "../usage.c"
Packit 549fdc
  puts(_("invalid argument type specified"));
Packit 549fdc
#line 598 "../find.c"
Packit 549fdc
  puts(_("defaulted to option with optional arg"));
Packit 549fdc
#line 76 "../alias.c"
Packit 549fdc
  puts(_("aliasing option is out of range."));
Packit 549fdc
#line 235 "../enum.c"
Packit 549fdc
  puts(_("%s error:  the keyword '%s' is ambiguous for %s\n"));
Packit 549fdc
#line 108 "../find.c"
Packit 549fdc
  puts(_("  The following options match:\n"));
Packit 549fdc
#line 293 "../find.c"
Packit 549fdc
  puts(_("%s: ambiguous option name: %s (matches %d options)\n"));
Packit 549fdc
#line 161 "../check.c"
Packit 549fdc
  puts(_("%s: Command line arguments required\n"));
Packit 549fdc
#line 43 "../alias.c"
Packit 549fdc
  puts(_("%d %s%s options allowed\n"));
Packit 549fdc
#line 94 "../makeshell.c"
Packit 549fdc
  puts(_("%s error %d (%s) calling %s for '%s'\n"));
Packit 549fdc
#line 306 "../makeshell.c"
Packit 549fdc
  puts(_("interprocess pipe"));
Packit 549fdc
#line 168 "../version.c"
Packit 549fdc
  puts(_("error: version option argument '%c' invalid.  Use:\n"
Packit 549fdc
       "\t'v' - version only\n"
Packit 549fdc
       "\t'c' - version and copyright\n"
Packit 549fdc
       "\t'n' - version and full copyright notice\n"));
Packit 549fdc
#line 58 "../check.c"
Packit 549fdc
  puts(_("%s error:  the '%s' and '%s' options conflict\n"));
Packit 549fdc
#line 217 "../find.c"
Packit 549fdc
  puts(_("%s: The '%s' option has been disabled."));
Packit 549fdc
#line 430 "../find.c"
Packit 549fdc
  puts(_("%s: The '%s' option has been disabled."));
Packit 549fdc
#line 38 "../alias.c"
Packit 549fdc
  puts(_("-equivalence"));
Packit 549fdc
#line 469 "../find.c"
Packit 549fdc
  puts(_("%s: illegal option -- %c\n"));
Packit 549fdc
#line 110 "../reset.c"
Packit 549fdc
  puts(_("%s: illegal option -- %c\n"));
Packit 549fdc
#line 271 "../find.c"
Packit 549fdc
  puts(_("%s: illegal option -- %s\n"));
Packit 549fdc
#line 755 "../find.c"
Packit 549fdc
  puts(_("%s: illegal option -- %s\n"));
Packit 549fdc
#line 118 "../reset.c"
Packit 549fdc
  puts(_("%s: illegal option -- %s\n"));
Packit 549fdc
#line 335 "../find.c"
Packit 549fdc
  puts(_("%s: unknown vendor extension option -- %s\n"));
Packit 549fdc
#line 160 "../enum.c"
Packit 549fdc
  puts(_("  or an integer from %d through %d\n"));
Packit 549fdc
#line 170 "../enum.c"
Packit 549fdc
  puts(_("  or an integer from %d through %d\n"));
Packit 549fdc
#line 750 "../usage.c"
Packit 549fdc
  puts(_("%s error:  invalid option descriptor for %s\n"));
Packit 549fdc
#line 1084 "../usage.c"
Packit 549fdc
  puts(_("%s error:  invalid option descriptor for %s\n"));
Packit 549fdc
#line 385 "../find.c"
Packit 549fdc
  puts(_("%s: invalid option name: %s\n"));
Packit 549fdc
#line 527 "../find.c"
Packit 549fdc
  puts(_("%s: The '%s' option requires an argument.\n"));
Packit 549fdc
#line 156 "../autoopts.c"
Packit 549fdc
  puts(_("(AutoOpts bug):  Equivalenced option '%s' was equivalenced to both\n"
Packit 549fdc
       "\t'%s' and '%s'."));
Packit 549fdc
#line 94 "../check.c"
Packit 549fdc
  puts(_("%s error:  The %s option is required\n"));
Packit 549fdc
#line 632 "../find.c"
Packit 549fdc
  puts(_("%s: The '%s' option cannot have an argument.\n"));
Packit 549fdc
#line 151 "../check.c"
Packit 549fdc
  puts(_("%s: Command line arguments are not allowed.\n"));
Packit 549fdc
#line 536 "../save.c"
Packit 549fdc
  puts(_("error %d (%s) creating %s\n"));
Packit 549fdc
#line 235 "../enum.c"
Packit 549fdc
  puts(_("%s error:  '%s' does not match any %s keywords.\n"));
Packit 549fdc
#line 93 "../reset.c"
Packit 549fdc
  puts(_("%s error: The '%s' option requires an argument.\n"));
Packit 549fdc
#line 186 "../save.c"
Packit 549fdc
  puts(_("error %d (%s) stat-ing %s\n"));
Packit 549fdc
#line 239 "../save.c"
Packit 549fdc
  puts(_("error %d (%s) stat-ing %s\n"));
Packit 549fdc
#line 143 "../restore.c"
Packit 549fdc
  puts(_("%s error: no saved option state\n"));
Packit 549fdc
#line 231 "../autoopts.c"
Packit 549fdc
  puts(_("'%s' is not a command line option.\n"));
Packit 549fdc
#line 113 "../time.c"
Packit 549fdc
  puts(_("%s error:  '%s' is not a recognizable date/time.\n"));
Packit 549fdc
#line 131 "../save.c"
Packit 549fdc
  puts(_("'%s' not defined\n"));
Packit 549fdc
#line 50 "../time.c"
Packit 549fdc
  puts(_("%s error:  '%s' is not a recognizable time duration.\n"));
Packit 549fdc
#line 92 "../check.c"
Packit 549fdc
  puts(_("%s error:  The %s option must appear %d times.\n"));
Packit 549fdc
#line 165 "../numeric.c"
Packit 549fdc
  puts(_("%s error:  '%s' is not a recognizable number.\n"));
Packit 549fdc
#line 201 "../enum.c"
Packit 549fdc
  puts(_("%s error:  %s exceeds %s keyword count\n"));
Packit 549fdc
#line 333 "../usage.c"
Packit 549fdc
  puts(_("Try '%s %s' for more information.\n"));
Packit 549fdc
#line 45 "../alias.c"
Packit 549fdc
  puts(_("one %s%s option allowed\n"));
Packit 549fdc
#line 208 "../makeshell.c"
Packit 549fdc
  puts(_("standard output"));
Packit 549fdc
#line 943 "../makeshell.c"
Packit 549fdc
  puts(_("standard output"));
Packit 549fdc
#line 277 "../usage.c"
Packit 549fdc
  puts(_("standard output"));
Packit 549fdc
#line 418 "../usage.c"
Packit 549fdc
  puts(_("standard output"));
Packit 549fdc
#line 628 "../usage.c"
Packit 549fdc
  puts(_("standard output"));
Packit 549fdc
#line 175 "../version.c"
Packit 549fdc
  puts(_("standard output"));
Packit 549fdc
#line 277 "../usage.c"
Packit 549fdc
  puts(_("standard error"));
Packit 549fdc
#line 418 "../usage.c"
Packit 549fdc
  puts(_("standard error"));
Packit 549fdc
#line 628 "../usage.c"
Packit 549fdc
  puts(_("standard error"));
Packit 549fdc
#line 175 "../version.c"
Packit 549fdc
  puts(_("standard error"));
Packit 549fdc
#line 208 "../makeshell.c"
Packit 549fdc
  puts(_("write"));
Packit 549fdc
#line 943 "../makeshell.c"
Packit 549fdc
  puts(_("write"));
Packit 549fdc
#line 276 "../usage.c"
Packit 549fdc
  puts(_("write"));
Packit 549fdc
#line 417 "../usage.c"
Packit 549fdc
  puts(_("write"));
Packit 549fdc
#line 627 "../usage.c"
Packit 549fdc
  puts(_("write"));
Packit 549fdc
#line 174 "../version.c"
Packit 549fdc
  puts(_("write"));
Packit 549fdc
#line 60 "../numeric.c"
Packit 549fdc
  puts(_("%s error:  %s option value %ld is out of range.\n"));
Packit 549fdc
#line 44 "../check.c"
Packit 549fdc
  puts(_("%s error:  %s option requires the %s option\n"));
Packit 549fdc
#line 130 "../save.c"
Packit 549fdc
  puts(_("%s warning:  cannot save options - %s not regular file\n"));
Packit 549fdc
#line 185 "../save.c"
Packit 549fdc
  puts(_("%s warning:  cannot save options - %s not regular file\n"));
Packit 549fdc
#line 238 "../save.c"
Packit 549fdc
  puts(_("%s warning:  cannot save options - %s not regular file\n"));
Packit 549fdc
#line 257 "../save.c"
Packit 549fdc
  puts(_("%s warning:  cannot save options - %s not regular file\n"));
Packit 549fdc
#line 535 "../save.c"
Packit 549fdc
  puts(_("%s warning:  cannot save options - %s not regular file\n"));
Packit 549fdc
  /* END-LIBOPTS-MESSAGES */
Packit 549fdc
Packit 549fdc
  /* USAGE-TEXT: */
Packit 549fdc
#line 876 "../usage.c"
Packit 549fdc
  puts(_("\t\t\t\t- an alternate for '%s'\n"));
Packit 549fdc
#line 1151 "../usage.c"
Packit 549fdc
  puts(_("Version, usage and configuration options:"));
Packit 549fdc
#line 927 "../usage.c"
Packit 549fdc
  puts(_("\t\t\t\t- default option for unnamed options\n"));
Packit 549fdc
#line 840 "../usage.c"
Packit 549fdc
  puts(_("\t\t\t\t- disabled as '--%s'\n"));
Packit 549fdc
#line 1120 "../usage.c"
Packit 549fdc
  puts(_(" --- %-14s %s\n"));
Packit 549fdc
#line 1118 "../usage.c"
Packit 549fdc
  puts(_("This option has been disabled"));
Packit 549fdc
#line 867 "../usage.c"
Packit 549fdc
  puts(_("\t\t\t\t- enabled by default\n"));
Packit 549fdc
#line 40 "../alias.c"
Packit 549fdc
  puts(_("%s error:  only "));
Packit 549fdc
#line 1197 "../usage.c"
Packit 549fdc
  puts(_(" - examining environment variables named %s_*\n"));
Packit 549fdc
#line 168 "../file.c"
Packit 549fdc
  puts(_("\t\t\t\t- file must not pre-exist\n"));
Packit 549fdc
#line 172 "../file.c"
Packit 549fdc
  puts(_("\t\t\t\t- file must pre-exist\n"));
Packit 549fdc
#line 383 "../usage.c"
Packit 549fdc
  puts(_("Options are specified by doubled hyphens and their name or by a single\n"
Packit 549fdc
       "hyphen and the flag character.\n"));
Packit 549fdc
#line 921 "../makeshell.c"
Packit 549fdc
  puts(_("\n"
Packit 549fdc
       "= = = = = = = =\n\n"
Packit 549fdc
       "This incarnation of genshell will produce\n"
Packit 549fdc
       "a shell script to parse the options for %s:\n\n"));
Packit 549fdc
#line 167 "../enum.c"
Packit 549fdc
  puts(_("  or an integer mask with any of the lower %d bits set\n"));
Packit 549fdc
#line 900 "../usage.c"
Packit 549fdc
  puts(_("\t\t\t\t- is a set membership option\n"));
Packit 549fdc
#line 921 "../usage.c"
Packit 549fdc
  puts(_("\t\t\t\t- must appear between %d and %d times\n"));
Packit 549fdc
#line 385 "../usage.c"
Packit 549fdc
  puts(_("Options are specified by single or double hyphens and their name.\n"));
Packit 549fdc
#line 907 "../usage.c"
Packit 549fdc
  puts(_("\t\t\t\t- may appear multiple times\n"));
Packit 549fdc
#line 894 "../usage.c"
Packit 549fdc
  puts(_("\t\t\t\t- may not be preset\n"));
Packit 549fdc
#line 1312 "../usage.c"
Packit 549fdc
  puts(_("   Arg Option-Name    Description\n"));
Packit 549fdc
#line 1248 "../usage.c"
Packit 549fdc
  puts(_("  Flg Arg Option-Name    Description\n"));
Packit 549fdc
#line 1306 "../usage.c"
Packit 549fdc
  puts(_("  Flg Arg Option-Name    Description\n"));
Packit 549fdc
#line 1307 "../usage.c"
Packit 549fdc
  puts(_(" %3s %s"));
Packit 549fdc
#line 1313 "../usage.c"
Packit 549fdc
  puts(_(" %3s %s"));
Packit 549fdc
#line 390 "../usage.c"
Packit 549fdc
  puts(_("The '-#<number>' option may omit the hash char\n"));
Packit 549fdc
#line 386 "../usage.c"
Packit 549fdc
  puts(_("All arguments are named options.\n"));
Packit 549fdc
#line 974 "../usage.c"
Packit 549fdc
  puts(_(" - reading file %s"));
Packit 549fdc
#line 412 "../usage.c"
Packit 549fdc
  puts(_("\n"
Packit 549fdc
       "Please send bug reports to:  <%s>\n"));
Packit 549fdc
#line 100 "../version.c"
Packit 549fdc
  puts(_("\n"
Packit 549fdc
       "Please send bug reports to:  <%s>\n"));
Packit 549fdc
#line 129 "../version.c"
Packit 549fdc
  puts(_("\n"
Packit 549fdc
       "Please send bug reports to:  <%s>\n"));
Packit 549fdc
#line 906 "../usage.c"
Packit 549fdc
  puts(_("\t\t\t\t- may NOT appear - preset only\n"));
Packit 549fdc
#line 947 "../usage.c"
Packit 549fdc
  puts(_("\n"
Packit 549fdc
       "The following option preset mechanisms are supported:\n"));
Packit 549fdc
#line 1195 "../usage.c"
Packit 549fdc
  puts(_("\n"
Packit 549fdc
       "The following option preset mechanisms are supported:\n"));
Packit 549fdc
#line 685 "../usage.c"
Packit 549fdc
  puts(_("prohibits these options:\n"));
Packit 549fdc
#line 680 "../usage.c"
Packit 549fdc
  puts(_("prohibits the option '%s'\n"));
Packit 549fdc
#line 81 "../numeric.c"
Packit 549fdc
  puts(_("%s%ld to %ld"));
Packit 549fdc
#line 79 "../numeric.c"
Packit 549fdc
  puts(_("%sgreater than or equal to %ld"));
Packit 549fdc
#line 75 "../numeric.c"
Packit 549fdc
  puts(_("%s%ld exactly"));
Packit 549fdc
#line 68 "../numeric.c"
Packit 549fdc
  puts(_("%sit must lie in one of the ranges:\n"));
Packit 549fdc
#line 68 "../numeric.c"
Packit 549fdc
  puts(_("%sit must be in the range:\n"));
Packit 549fdc
#line 88 "../numeric.c"
Packit 549fdc
  puts(_(", or\n"));
Packit 549fdc
#line 66 "../numeric.c"
Packit 549fdc
  puts(_("%sis scalable with a suffix: k/K/m/M/g/G/t/T\n"));
Packit 549fdc
#line 77 "../numeric.c"
Packit 549fdc
  puts(_("%sless than or equal to %ld"));
Packit 549fdc
#line 393 "../usage.c"
Packit 549fdc
  puts(_("Operands and options may be intermixed.  They will be reordered.\n"));
Packit 549fdc
#line 655 "../usage.c"
Packit 549fdc
  puts(_("requires the option '%s'\n"));
Packit 549fdc
#line 658 "../usage.c"
Packit 549fdc
  puts(_("requires these options:\n"));
Packit 549fdc
#line 1324 "../usage.c"
Packit 549fdc
  puts(_("   Arg Option-Name   Req?  Description\n"));
Packit 549fdc
#line 1318 "../usage.c"
Packit 549fdc
  puts(_("  Flg Arg Option-Name   Req?  Description\n"));
Packit 549fdc
#line 168 "../enum.c"
Packit 549fdc
  puts(_("or you may use a numeric representation.  Preceding these with a '!'\n"
Packit 549fdc
       "will clear the bits, specifying 'none' will clear all bits, and 'all'\n"
Packit 549fdc
       "will set them all.  Multiple entries may be passed as an option\n"
Packit 549fdc
       "argument list.\n"));
Packit 549fdc
#line 913 "../usage.c"
Packit 549fdc
  puts(_("\t\t\t\t- may appear up to %d times\n"));
Packit 549fdc
#line 77 "../enum.c"
Packit 549fdc
  puts(_("The valid \"%s\" option keywords are:\n"));
Packit 549fdc
#line 1155 "../usage.c"
Packit 549fdc
  puts(_("The next option supports vendor supported extra options:"));
Packit 549fdc
#line 776 "../usage.c"
Packit 549fdc
  puts(_("These additional options are:"));
Packit 549fdc
  /* END-USAGE-TEXT */
Packit 549fdc
}
Packit 549fdc
#endif /* uncompilable code */
Packit 549fdc
#ifdef  __cplusplus
Packit 549fdc
}
Packit 549fdc
#endif
Packit 549fdc
/* systemkey-args.c ends here */