|
Packit |
aea12f |
/* -*- buffer-read-only: t -*- vi: set ro:
|
|
Packit |
aea12f |
*
|
|
Packit |
aea12f |
* DO NOT EDIT THIS FILE (systemkey-args.c)
|
|
Packit |
aea12f |
*
|
|
Packit |
aea12f |
* It has been AutoGen-ed
|
|
Packit |
aea12f |
* From the definitions systemkey-args.def
|
|
Packit |
aea12f |
* and the template file options
|
|
Packit |
aea12f |
*
|
|
Packit Service |
991b93 |
* Generated from AutoOpts 42:1:17 templates.
|
|
Packit |
aea12f |
*
|
|
Packit |
aea12f |
* AutoOpts is a copyrighted work. This source file is not encumbered
|
|
Packit |
aea12f |
* by AutoOpts licensing, but is provided under the licensing terms chosen
|
|
Packit |
aea12f |
* by the systemkey-tool author or copyright holder. AutoOpts is
|
|
Packit |
aea12f |
* licensed under the terms of the LGPL. The redistributable library
|
|
Packit |
aea12f |
* (``libopts'') is licensed under the terms of either the LGPL or, at the
|
|
Packit |
aea12f |
* users discretion, the BSD license. See the AutoOpts and/or libopts sources
|
|
Packit |
aea12f |
* for details.
|
|
Packit |
aea12f |
*
|
|
Packit |
aea12f |
* The systemkey-tool program is copyrighted and licensed
|
|
Packit |
aea12f |
* under the following terms:
|
|
Packit |
aea12f |
*
|
|
Packit Service |
991b93 |
* Copyright (C) 2000-2020 Free Software Foundation, and others, all rights reserved.
|
|
Packit |
aea12f |
* This is free software. It is licensed for use, modification and
|
|
Packit |
aea12f |
* redistribution under the terms of the GNU General Public License,
|
|
Packit |
aea12f |
* version 3 or later <http://gnu.org/licenses/gpl.html>
|
|
Packit |
aea12f |
*
|
|
Packit |
aea12f |
* systemkey-tool is free software: you can redistribute it and/or modify it
|
|
Packit |
aea12f |
* under the terms of the GNU General Public License as published by the
|
|
Packit |
aea12f |
* Free Software Foundation, either version 3 of the License, or
|
|
Packit |
aea12f |
* (at your option) any later version.
|
|
Packit |
aea12f |
*
|
|
Packit |
aea12f |
* systemkey-tool is distributed in the hope that it will be useful, but
|
|
Packit |
aea12f |
* WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
Packit |
aea12f |
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
|
|
Packit |
aea12f |
* See the GNU General Public License for more details.
|
|
Packit |
aea12f |
*
|
|
Packit |
aea12f |
* You should have received a copy of the GNU General Public License along
|
|
Packit |
aea12f |
* with this program. If not, see <http://www.gnu.org/licenses/>.
|
|
Packit |
aea12f |
*/
|
|
Packit |
aea12f |
|
|
Packit |
aea12f |
#ifndef __doxygen__
|
|
Packit |
aea12f |
#define OPTION_CODE_COMPILE 1
|
|
Packit |
aea12f |
#include "systemkey-args.h"
|
|
Packit |
aea12f |
#include <sys/types.h>
|
|
Packit Service |
991b93 |
#include <sys/stat.h>
|
|
Packit |
aea12f |
|
|
Packit Service |
991b93 |
#include <errno.h>
|
|
Packit Service |
991b93 |
#include <fcntl.h>
|
|
Packit |
aea12f |
#include <limits.h>
|
|
Packit |
aea12f |
#include <stdio.h>
|
|
Packit |
aea12f |
#include <stdlib.h>
|
|
Packit Service |
991b93 |
#include <string.h>
|
|
Packit Service |
991b93 |
#include <unistd.h>
|
|
Packit |
aea12f |
|
|
Packit |
aea12f |
#ifdef __cplusplus
|
|
Packit |
aea12f |
extern "C" {
|
|
Packit |
aea12f |
#endif
|
|
Packit |
aea12f |
extern FILE * option_usage_fp;
|
|
Packit |
aea12f |
#define zCopyright (systemkey_tool_opt_strs+0)
|
|
Packit Service |
991b93 |
#define zLicenseDescrip (systemkey_tool_opt_strs+290)
|
|
Packit |
aea12f |
|
|
Packit |
aea12f |
|
|
Packit |
aea12f |
#ifndef NULL
|
|
Packit |
aea12f |
# define NULL 0
|
|
Packit |
aea12f |
#endif
|
|
Packit |
aea12f |
|
|
Packit |
aea12f |
/**
|
|
Packit |
aea12f |
* static const strings for systemkey-tool options
|
|
Packit |
aea12f |
*/
|
|
Packit Service |
991b93 |
static char const systemkey_tool_opt_strs[1630] =
|
|
Packit Service |
991b93 |
/* 0 */ "systemkey-tool 3.6.14\n"
|
|
Packit Service |
991b93 |
"Copyright (C) 2000-2020 Free Software Foundation, and others, all rights reserved.\n"
|
|
Packit |
aea12f |
"This is free software. It is licensed for use, modification and\n"
|
|
Packit |
aea12f |
"redistribution under the terms of the GNU General Public License,\n"
|
|
Packit |
aea12f |
"version 3 or later <http://gnu.org/licenses/gpl.html>\n\0"
|
|
Packit Service |
991b93 |
/* 290 */ "systemkey-tool is free software: you can redistribute it and/or modify it\n"
|
|
Packit |
aea12f |
"under the terms of the GNU General Public License as published by the Free\n"
|
|
Packit |
aea12f |
"Software Foundation, either version 3 of the License, or (at your option)\n"
|
|
Packit |
aea12f |
"any later version.\n\n"
|
|
Packit |
aea12f |
"systemkey-tool is distributed in the hope that it will be useful, but\n"
|
|
Packit |
aea12f |
"WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY\n"
|
|
Packit |
aea12f |
"or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License\n"
|
|
Packit |
aea12f |
"for more details.\n\n"
|
|
Packit |
aea12f |
"You should have received a copy of the GNU General Public License along\n"
|
|
Packit |
aea12f |
"with this program. If not, see <http://www.gnu.org/licenses/>.\n\0"
|
|
Packit Service |
991b93 |
/* 907 */ "Enable debugging\0"
|
|
Packit Service |
991b93 |
/* 924 */ "DEBUG\0"
|
|
Packit Service |
991b93 |
/* 930 */ "debug\0"
|
|
Packit Service |
991b93 |
/* 936 */ "Input file\0"
|
|
Packit Service |
991b93 |
/* 947 */ "INFILE\0"
|
|
Packit Service |
991b93 |
/* 954 */ "infile\0"
|
|
Packit Service |
991b93 |
/* 961 */ "Output file\0"
|
|
Packit Service |
991b93 |
/* 973 */ "OUTFILE\0"
|
|
Packit Service |
991b93 |
/* 981 */ "outfile\0"
|
|
Packit Service |
991b93 |
/* 989 */ "Lists all stored keys.\0"
|
|
Packit Service |
991b93 |
/* 1012 */ "LIST\0"
|
|
Packit Service |
991b93 |
/* 1017 */ "list\0"
|
|
Packit Service |
991b93 |
/* 1022 */ "Delete the key identified by the given URL.\0"
|
|
Packit Service |
991b93 |
/* 1066 */ "DELETE\0"
|
|
Packit Service |
991b93 |
/* 1073 */ "delete\0"
|
|
Packit Service |
991b93 |
/* 1080 */ "Use the DER format for keys.\0"
|
|
Packit Service |
991b93 |
/* 1109 */ "INDER\0"
|
|
Packit Service |
991b93 |
/* 1115 */ "no-inder\0"
|
|
Packit Service |
991b93 |
/* 1124 */ "no\0"
|
|
Packit Service |
991b93 |
/* 1127 */ "Use DER format for output keys\0"
|
|
Packit Service |
991b93 |
/* 1158 */ "OUTDER\0"
|
|
Packit Service |
991b93 |
/* 1165 */ "no-outder\0"
|
|
Packit Service |
991b93 |
/* 1175 */ "display extended usage information and exit\0"
|
|
Packit Service |
991b93 |
/* 1219 */ "help\0"
|
|
Packit Service |
991b93 |
/* 1224 */ "extended usage information passed thru pager\0"
|
|
Packit Service |
991b93 |
/* 1269 */ "more-help\0"
|
|
Packit Service |
991b93 |
/* 1279 */ "output version information and exit\0"
|
|
Packit Service |
991b93 |
/* 1315 */ "version\0"
|
|
Packit Service |
991b93 |
/* 1323 */ "SYSTEMKEY_TOOL\0"
|
|
Packit Service |
991b93 |
/* 1338 */ "systemkey-tool - GnuTLS system key tool\n"
|
|
Packit |
aea12f |
"Usage: %s [ -<flag> [<val>] | --<name>[{=| }<val>] ]...\n\0"
|
|
Packit Service |
991b93 |
/* 1436 */ "bugs@gnutls.org\0"
|
|
Packit Service |
991b93 |
/* 1452 */ "\n\0"
|
|
Packit Service |
991b93 |
/* 1454 */ "Program that allows handling user keys as stored in the system in a uniform\n"
|
|
Packit |
aea12f |
"way.\n\0"
|
|
Packit Service |
991b93 |
/* 1536 */ "systemkey-tool 3.6.14\0"
|
|
Packit Service |
991b93 |
/* 1558 */ "systemkey-tool [options]\n"
|
|
Packit |
aea12f |
"systemkey-tool --help for usage instructions.\n";
|
|
Packit |
aea12f |
|
|
Packit |
aea12f |
/**
|
|
Packit |
aea12f |
* debug option description:
|
|
Packit |
aea12f |
*/
|
|
Packit |
aea12f |
/** Descriptive text for the debug option */
|
|
Packit Service |
991b93 |
#define DEBUG_DESC (systemkey_tool_opt_strs+907)
|
|
Packit |
aea12f |
/** Upper-cased name for the debug option */
|
|
Packit Service |
991b93 |
#define DEBUG_NAME (systemkey_tool_opt_strs+924)
|
|
Packit |
aea12f |
/** Name string for the debug option */
|
|
Packit Service |
991b93 |
#define DEBUG_name (systemkey_tool_opt_strs+930)
|
|
Packit |
aea12f |
/** Compiled in flag settings for the debug option */
|
|
Packit |
aea12f |
#define DEBUG_FLAGS (OPTST_DISABLED \
|
|
Packit |
aea12f |
| OPTST_SET_ARGTYPE(OPARG_TYPE_NUMERIC))
|
|
Packit |
aea12f |
|
|
Packit |
aea12f |
/**
|
|
Packit |
aea12f |
* infile option description:
|
|
Packit |
aea12f |
*/
|
|
Packit |
aea12f |
/** Descriptive text for the infile option */
|
|
Packit Service |
991b93 |
#define INFILE_DESC (systemkey_tool_opt_strs+936)
|
|
Packit |
aea12f |
/** Upper-cased name for the infile option */
|
|
Packit Service |
991b93 |
#define INFILE_NAME (systemkey_tool_opt_strs+947)
|
|
Packit |
aea12f |
/** Name string for the infile option */
|
|
Packit Service |
991b93 |
#define INFILE_name (systemkey_tool_opt_strs+954)
|
|
Packit |
aea12f |
/** Compiled in flag settings for the infile option */
|
|
Packit |
aea12f |
#define INFILE_FLAGS (OPTST_DISABLED \
|
|
Packit |
aea12f |
| OPTST_SET_ARGTYPE(OPARG_TYPE_FILE))
|
|
Packit |
aea12f |
|
|
Packit |
aea12f |
/**
|
|
Packit |
aea12f |
* outfile option description:
|
|
Packit |
aea12f |
*/
|
|
Packit |
aea12f |
/** Descriptive text for the outfile option */
|
|
Packit Service |
991b93 |
#define OUTFILE_DESC (systemkey_tool_opt_strs+961)
|
|
Packit |
aea12f |
/** Upper-cased name for the outfile option */
|
|
Packit Service |
991b93 |
#define OUTFILE_NAME (systemkey_tool_opt_strs+973)
|
|
Packit |
aea12f |
/** Name string for the outfile option */
|
|
Packit Service |
991b93 |
#define OUTFILE_name (systemkey_tool_opt_strs+981)
|
|
Packit |
aea12f |
/** Compiled in flag settings for the outfile option */
|
|
Packit |
aea12f |
#define OUTFILE_FLAGS (OPTST_DISABLED \
|
|
Packit |
aea12f |
| OPTST_SET_ARGTYPE(OPARG_TYPE_STRING))
|
|
Packit |
aea12f |
|
|
Packit |
aea12f |
/**
|
|
Packit |
aea12f |
* list option description:
|
|
Packit |
aea12f |
*/
|
|
Packit |
aea12f |
/** Descriptive text for the list option */
|
|
Packit Service |
991b93 |
#define LIST_DESC (systemkey_tool_opt_strs+989)
|
|
Packit |
aea12f |
/** Upper-cased name for the list option */
|
|
Packit Service |
991b93 |
#define LIST_NAME (systemkey_tool_opt_strs+1012)
|
|
Packit |
aea12f |
/** Name string for the list option */
|
|
Packit Service |
991b93 |
#define LIST_name (systemkey_tool_opt_strs+1017)
|
|
Packit |
aea12f |
/** Compiled in flag settings for the list option */
|
|
Packit |
aea12f |
#define LIST_FLAGS (OPTST_DISABLED)
|
|
Packit |
aea12f |
|
|
Packit |
aea12f |
/**
|
|
Packit |
aea12f |
* delete option description:
|
|
Packit |
aea12f |
*/
|
|
Packit |
aea12f |
/** Descriptive text for the delete option */
|
|
Packit Service |
991b93 |
#define DELETE_DESC (systemkey_tool_opt_strs+1022)
|
|
Packit |
aea12f |
/** Upper-cased name for the delete option */
|
|
Packit Service |
991b93 |
#define DELETE_NAME (systemkey_tool_opt_strs+1066)
|
|
Packit |
aea12f |
/** Name string for the delete option */
|
|
Packit Service |
991b93 |
#define DELETE_name (systemkey_tool_opt_strs+1073)
|
|
Packit |
aea12f |
/** Compiled in flag settings for the delete option */
|
|
Packit |
aea12f |
#define DELETE_FLAGS (OPTST_DISABLED \
|
|
Packit |
aea12f |
| OPTST_SET_ARGTYPE(OPARG_TYPE_STRING))
|
|
Packit |
aea12f |
|
|
Packit |
aea12f |
/**
|
|
Packit |
aea12f |
* inder option description:
|
|
Packit |
aea12f |
*/
|
|
Packit |
aea12f |
/** Descriptive text for the inder option */
|
|
Packit Service |
991b93 |
#define INDER_DESC (systemkey_tool_opt_strs+1080)
|
|
Packit |
aea12f |
/** Upper-cased name for the inder option */
|
|
Packit Service |
991b93 |
#define INDER_NAME (systemkey_tool_opt_strs+1109)
|
|
Packit |
aea12f |
/** disablement name for the inder option */
|
|
Packit Service |
991b93 |
#define NOT_INDER_name (systemkey_tool_opt_strs+1115)
|
|
Packit |
aea12f |
/** disablement prefix for the inder option */
|
|
Packit Service |
991b93 |
#define NOT_INDER_PFX (systemkey_tool_opt_strs+1124)
|
|
Packit |
aea12f |
/** Name string for the inder option */
|
|
Packit |
aea12f |
#define INDER_name (NOT_INDER_name + 3)
|
|
Packit |
aea12f |
/** Compiled in flag settings for the inder option */
|
|
Packit |
aea12f |
#define INDER_FLAGS (OPTST_DISABLED)
|
|
Packit |
aea12f |
|
|
Packit |
aea12f |
/**
|
|
Packit |
aea12f |
* outder option description:
|
|
Packit |
aea12f |
*/
|
|
Packit |
aea12f |
/** Descriptive text for the outder option */
|
|
Packit Service |
991b93 |
#define OUTDER_DESC (systemkey_tool_opt_strs+1127)
|
|
Packit |
aea12f |
/** Upper-cased name for the outder option */
|
|
Packit Service |
991b93 |
#define OUTDER_NAME (systemkey_tool_opt_strs+1158)
|
|
Packit |
aea12f |
/** disablement name for the outder option */
|
|
Packit Service |
991b93 |
#define NOT_OUTDER_name (systemkey_tool_opt_strs+1165)
|
|
Packit |
aea12f |
/** disablement prefix for the outder option */
|
|
Packit Service |
991b93 |
#define NOT_OUTDER_PFX (systemkey_tool_opt_strs+1124)
|
|
Packit |
aea12f |
/** Name string for the outder option */
|
|
Packit |
aea12f |
#define OUTDER_name (NOT_OUTDER_name + 3)
|
|
Packit |
aea12f |
/** Compiled in flag settings for the outder option */
|
|
Packit |
aea12f |
#define OUTDER_FLAGS (OPTST_DISABLED)
|
|
Packit |
aea12f |
|
|
Packit |
aea12f |
/*
|
|
Packit |
aea12f |
* Help/More_Help/Version option descriptions:
|
|
Packit |
aea12f |
*/
|
|
Packit Service |
991b93 |
#define HELP_DESC (systemkey_tool_opt_strs+1175)
|
|
Packit Service |
991b93 |
#define HELP_name (systemkey_tool_opt_strs+1219)
|
|
Packit |
aea12f |
#ifdef HAVE_WORKING_FORK
|
|
Packit Service |
991b93 |
#define MORE_HELP_DESC (systemkey_tool_opt_strs+1224)
|
|
Packit Service |
991b93 |
#define MORE_HELP_name (systemkey_tool_opt_strs+1269)
|
|
Packit |
aea12f |
#define MORE_HELP_FLAGS (OPTST_IMM | OPTST_NO_INIT)
|
|
Packit |
aea12f |
#else
|
|
Packit |
aea12f |
#define MORE_HELP_DESC HELP_DESC
|
|
Packit |
aea12f |
#define MORE_HELP_name HELP_name
|
|
Packit |
aea12f |
#define MORE_HELP_FLAGS (OPTST_OMITTED | OPTST_NO_INIT)
|
|
Packit |
aea12f |
#endif
|
|
Packit |
aea12f |
#ifdef NO_OPTIONAL_OPT_ARGS
|
|
Packit |
aea12f |
# define VER_FLAGS (OPTST_IMM | OPTST_NO_INIT)
|
|
Packit |
aea12f |
#else
|
|
Packit |
aea12f |
# define VER_FLAGS (OPTST_SET_ARGTYPE(OPARG_TYPE_STRING) | \
|
|
Packit |
aea12f |
OPTST_ARG_OPTIONAL | OPTST_IMM | OPTST_NO_INIT)
|
|
Packit |
aea12f |
#endif
|
|
Packit Service |
991b93 |
#define VER_DESC (systemkey_tool_opt_strs+1279)
|
|
Packit Service |
991b93 |
#define VER_name (systemkey_tool_opt_strs+1315)
|
|
Packit |
aea12f |
/**
|
|
Packit |
aea12f |
* Declare option callback procedures
|
|
Packit |
aea12f |
*/
|
|
Packit |
aea12f |
extern tOptProc
|
|
Packit |
aea12f |
optionBooleanVal, optionNestedVal, optionNumericVal,
|
|
Packit |
aea12f |
optionPagedUsage, optionPrintVersion, optionResetOpt,
|
|
Packit |
aea12f |
optionStackArg, optionTimeDate, optionTimeVal,
|
|
Packit |
aea12f |
optionUnstackArg, optionVendorOption;
|
|
Packit |
aea12f |
static tOptProc
|
|
Packit |
aea12f |
doOptDebug, doOptInfile, doUsageOpt;
|
|
Packit |
aea12f |
#define VER_PROC optionPrintVersion
|
|
Packit |
aea12f |
|
|
Packit |
aea12f |
/* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * */
|
|
Packit |
aea12f |
/**
|
|
Packit |
aea12f |
* Define the systemkey-tool Option Descriptions.
|
|
Packit |
aea12f |
* This is an array of OPTION_CT entries, one for each
|
|
Packit |
aea12f |
* option that the systemkey-tool program responds to.
|
|
Packit |
aea12f |
*/
|
|
Packit |
aea12f |
static tOptDesc optDesc[OPTION_CT] = {
|
|
Packit |
aea12f |
{ /* entry idx, value */ 0, VALUE_OPT_DEBUG,
|
|
Packit |
aea12f |
/* equiv idx, value */ 0, VALUE_OPT_DEBUG,
|
|
Packit |
aea12f |
/* equivalenced to */ NO_EQUIVALENT,
|
|
Packit |
aea12f |
/* min, max, act ct */ 0, 1, 0,
|
|
Packit |
aea12f |
/* opt state flags */ DEBUG_FLAGS, 0,
|
|
Packit |
aea12f |
/* last opt argumnt */ { NULL }, /* --debug */
|
|
Packit |
aea12f |
/* arg list/cookie */ NULL,
|
|
Packit |
aea12f |
/* must/cannot opts */ NULL, NULL,
|
|
Packit |
aea12f |
/* option proc */ doOptDebug,
|
|
Packit |
aea12f |
/* desc, NAME, name */ DEBUG_DESC, DEBUG_NAME, DEBUG_name,
|
|
Packit |
aea12f |
/* disablement strs */ NULL, NULL },
|
|
Packit |
aea12f |
|
|
Packit |
aea12f |
{ /* entry idx, value */ 1, VALUE_OPT_INFILE,
|
|
Packit |
aea12f |
/* equiv idx, value */ 1, VALUE_OPT_INFILE,
|
|
Packit |
aea12f |
/* equivalenced to */ NO_EQUIVALENT,
|
|
Packit |
aea12f |
/* min, max, act ct */ 0, 1, 0,
|
|
Packit |
aea12f |
/* opt state flags */ INFILE_FLAGS, 0,
|
|
Packit |
aea12f |
/* last opt argumnt */ { NULL }, /* --infile */
|
|
Packit |
aea12f |
/* arg list/cookie */ NULL,
|
|
Packit |
aea12f |
/* must/cannot opts */ NULL, NULL,
|
|
Packit |
aea12f |
/* option proc */ doOptInfile,
|
|
Packit |
aea12f |
/* desc, NAME, name */ INFILE_DESC, INFILE_NAME, INFILE_name,
|
|
Packit |
aea12f |
/* disablement strs */ NULL, NULL },
|
|
Packit |
aea12f |
|
|
Packit |
aea12f |
{ /* entry idx, value */ 2, VALUE_OPT_OUTFILE,
|
|
Packit |
aea12f |
/* equiv idx, value */ 2, VALUE_OPT_OUTFILE,
|
|
Packit |
aea12f |
/* equivalenced to */ NO_EQUIVALENT,
|
|
Packit |
aea12f |
/* min, max, act ct */ 0, 1, 0,
|
|
Packit |
aea12f |
/* opt state flags */ OUTFILE_FLAGS, 0,
|
|
Packit |
aea12f |
/* last opt argumnt */ { NULL }, /* --outfile */
|
|
Packit |
aea12f |
/* arg list/cookie */ NULL,
|
|
Packit |
aea12f |
/* must/cannot opts */ NULL, NULL,
|
|
Packit |
aea12f |
/* option proc */ NULL,
|
|
Packit |
aea12f |
/* desc, NAME, name */ OUTFILE_DESC, OUTFILE_NAME, OUTFILE_name,
|
|
Packit |
aea12f |
/* disablement strs */ NULL, NULL },
|
|
Packit |
aea12f |
|
|
Packit |
aea12f |
{ /* entry idx, value */ 3, VALUE_OPT_LIST,
|
|
Packit |
aea12f |
/* equiv idx, value */ 3, VALUE_OPT_LIST,
|
|
Packit |
aea12f |
/* equivalenced to */ NO_EQUIVALENT,
|
|
Packit |
aea12f |
/* min, max, act ct */ 0, 1, 0,
|
|
Packit |
aea12f |
/* opt state flags */ LIST_FLAGS, 0,
|
|
Packit |
aea12f |
/* last opt argumnt */ { NULL }, /* --list */
|
|
Packit |
aea12f |
/* arg list/cookie */ NULL,
|
|
Packit |
aea12f |
/* must/cannot opts */ NULL, NULL,
|
|
Packit |
aea12f |
/* option proc */ NULL,
|
|
Packit |
aea12f |
/* desc, NAME, name */ LIST_DESC, LIST_NAME, LIST_name,
|
|
Packit |
aea12f |
/* disablement strs */ NULL, NULL },
|
|
Packit |
aea12f |
|
|
Packit |
aea12f |
{ /* entry idx, value */ 4, VALUE_OPT_DELETE,
|
|
Packit |
aea12f |
/* equiv idx, value */ 4, VALUE_OPT_DELETE,
|
|
Packit |
aea12f |
/* equivalenced to */ NO_EQUIVALENT,
|
|
Packit |
aea12f |
/* min, max, act ct */ 0, 1, 0,
|
|
Packit |
aea12f |
/* opt state flags */ DELETE_FLAGS, 0,
|
|
Packit |
aea12f |
/* last opt argumnt */ { NULL }, /* --delete */
|
|
Packit |
aea12f |
/* arg list/cookie */ NULL,
|
|
Packit |
aea12f |
/* must/cannot opts */ NULL, NULL,
|
|
Packit |
aea12f |
/* option proc */ NULL,
|
|
Packit |
aea12f |
/* desc, NAME, name */ DELETE_DESC, DELETE_NAME, DELETE_name,
|
|
Packit |
aea12f |
/* disablement strs */ NULL, NULL },
|
|
Packit |
aea12f |
|
|
Packit |
aea12f |
{ /* entry idx, value */ 5, VALUE_OPT_INDER,
|
|
Packit |
aea12f |
/* equiv idx, value */ 5, VALUE_OPT_INDER,
|
|
Packit |
aea12f |
/* equivalenced to */ NO_EQUIVALENT,
|
|
Packit |
aea12f |
/* min, max, act ct */ 0, 1, 0,
|
|
Packit |
aea12f |
/* opt state flags */ INDER_FLAGS, 0,
|
|
Packit |
aea12f |
/* last opt argumnt */ { NULL }, /* --inder */
|
|
Packit |
aea12f |
/* arg list/cookie */ NULL,
|
|
Packit |
aea12f |
/* must/cannot opts */ NULL, NULL,
|
|
Packit |
aea12f |
/* option proc */ NULL,
|
|
Packit |
aea12f |
/* desc, NAME, name */ INDER_DESC, INDER_NAME, INDER_name,
|
|
Packit |
aea12f |
/* disablement strs */ NOT_INDER_name, NOT_INDER_PFX },
|
|
Packit |
aea12f |
|
|
Packit |
aea12f |
{ /* entry idx, value */ 6, VALUE_OPT_OUTDER,
|
|
Packit |
aea12f |
/* equiv idx, value */ 6, VALUE_OPT_OUTDER,
|
|
Packit |
aea12f |
/* equivalenced to */ NO_EQUIVALENT,
|
|
Packit |
aea12f |
/* min, max, act ct */ 0, 1, 0,
|
|
Packit |
aea12f |
/* opt state flags */ OUTDER_FLAGS, 0,
|
|
Packit |
aea12f |
/* last opt argumnt */ { NULL }, /* --outder */
|
|
Packit |
aea12f |
/* arg list/cookie */ NULL,
|
|
Packit |
aea12f |
/* must/cannot opts */ NULL, NULL,
|
|
Packit |
aea12f |
/* option proc */ NULL,
|
|
Packit |
aea12f |
/* desc, NAME, name */ OUTDER_DESC, OUTDER_NAME, OUTDER_name,
|
|
Packit |
aea12f |
/* disablement strs */ NOT_OUTDER_name, NOT_OUTDER_PFX },
|
|
Packit |
aea12f |
|
|
Packit |
aea12f |
{ /* entry idx, value */ INDEX_OPT_VERSION, VALUE_OPT_VERSION,
|
|
Packit |
aea12f |
/* equiv idx value */ NO_EQUIVALENT, VALUE_OPT_VERSION,
|
|
Packit |
aea12f |
/* equivalenced to */ NO_EQUIVALENT,
|
|
Packit |
aea12f |
/* min, max, act ct */ 0, 1, 0,
|
|
Packit |
aea12f |
/* opt state flags */ VER_FLAGS, AOUSE_VERSION,
|
|
Packit |
aea12f |
/* last opt argumnt */ { NULL },
|
|
Packit |
aea12f |
/* arg list/cookie */ NULL,
|
|
Packit |
aea12f |
/* must/cannot opts */ NULL, NULL,
|
|
Packit |
aea12f |
/* option proc */ VER_PROC,
|
|
Packit |
aea12f |
/* desc, NAME, name */ VER_DESC, NULL, VER_name,
|
|
Packit |
aea12f |
/* disablement strs */ NULL, NULL },
|
|
Packit |
aea12f |
|
|
Packit |
aea12f |
|
|
Packit |
aea12f |
|
|
Packit |
aea12f |
{ /* entry idx, value */ INDEX_OPT_HELP, VALUE_OPT_HELP,
|
|
Packit |
aea12f |
/* equiv idx value */ NO_EQUIVALENT, VALUE_OPT_HELP,
|
|
Packit |
aea12f |
/* equivalenced to */ NO_EQUIVALENT,
|
|
Packit |
aea12f |
/* min, max, act ct */ 0, 1, 0,
|
|
Packit |
aea12f |
/* opt state flags */ OPTST_IMM | OPTST_NO_INIT, AOUSE_HELP,
|
|
Packit |
aea12f |
/* last opt argumnt */ { NULL },
|
|
Packit |
aea12f |
/* arg list/cookie */ NULL,
|
|
Packit |
aea12f |
/* must/cannot opts */ NULL, NULL,
|
|
Packit |
aea12f |
/* option proc */ doUsageOpt,
|
|
Packit |
aea12f |
/* desc, NAME, name */ HELP_DESC, NULL, HELP_name,
|
|
Packit |
aea12f |
/* disablement strs */ NULL, NULL },
|
|
Packit |
aea12f |
|
|
Packit |
aea12f |
{ /* entry idx, value */ INDEX_OPT_MORE_HELP, VALUE_OPT_MORE_HELP,
|
|
Packit |
aea12f |
/* equiv idx value */ NO_EQUIVALENT, VALUE_OPT_MORE_HELP,
|
|
Packit |
aea12f |
/* equivalenced to */ NO_EQUIVALENT,
|
|
Packit |
aea12f |
/* min, max, act ct */ 0, 1, 0,
|
|
Packit |
aea12f |
/* opt state flags */ MORE_HELP_FLAGS, AOUSE_MORE_HELP,
|
|
Packit |
aea12f |
/* last opt argumnt */ { NULL },
|
|
Packit |
aea12f |
/* arg list/cookie */ NULL,
|
|
Packit |
aea12f |
/* must/cannot opts */ NULL, NULL,
|
|
Packit |
aea12f |
/* option proc */ optionPagedUsage,
|
|
Packit |
aea12f |
/* desc, NAME, name */ MORE_HELP_DESC, NULL, MORE_HELP_name,
|
|
Packit |
aea12f |
/* disablement strs */ NULL, NULL }
|
|
Packit |
aea12f |
};
|
|
Packit |
aea12f |
|
|
Packit |
aea12f |
|
|
Packit |
aea12f |
/* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * */
|
|
Packit |
aea12f |
/** Reference to the upper cased version of systemkey-tool. */
|
|
Packit Service |
991b93 |
#define zPROGNAME (systemkey_tool_opt_strs+1323)
|
|
Packit |
aea12f |
/** Reference to the title line for systemkey-tool usage. */
|
|
Packit Service |
991b93 |
#define zUsageTitle (systemkey_tool_opt_strs+1338)
|
|
Packit |
aea12f |
/** There is no systemkey-tool configuration file. */
|
|
Packit |
aea12f |
#define zRcName NULL
|
|
Packit |
aea12f |
/** There are no directories to search for systemkey-tool config files. */
|
|
Packit |
aea12f |
#define apzHomeList NULL
|
|
Packit |
aea12f |
/** The systemkey-tool program bug email address. */
|
|
Packit Service |
991b93 |
#define zBugsAddr (systemkey_tool_opt_strs+1436)
|
|
Packit |
aea12f |
/** Clarification/explanation of what systemkey-tool does. */
|
|
Packit Service |
991b93 |
#define zExplain (systemkey_tool_opt_strs+1452)
|
|
Packit |
aea12f |
/** Extra detail explaining what systemkey-tool does. */
|
|
Packit Service |
991b93 |
#define zDetail (systemkey_tool_opt_strs+1454)
|
|
Packit |
aea12f |
/** The full version string for systemkey-tool. */
|
|
Packit Service |
991b93 |
#define zFullVersion (systemkey_tool_opt_strs+1536)
|
|
Packit Service |
991b93 |
/* extracted from optcode.tlib near line 342 */
|
|
Packit |
aea12f |
|
|
Packit |
aea12f |
#if defined(ENABLE_NLS)
|
|
Packit |
aea12f |
# define OPTPROC_BASE OPTPROC_TRANSLATE | OPTPROC_NXLAT_OPT
|
|
Packit |
aea12f |
static tOptionXlateProc translate_option_strings;
|
|
Packit |
aea12f |
#else
|
|
Packit |
aea12f |
# define OPTPROC_BASE OPTPROC_NONE
|
|
Packit |
aea12f |
# define translate_option_strings NULL
|
|
Packit |
aea12f |
#endif /* ENABLE_NLS */
|
|
Packit |
aea12f |
|
|
Packit |
aea12f |
#define systemkey_tool_full_usage (NULL)
|
|
Packit Service |
991b93 |
#define systemkey_tool_short_usage (systemkey_tool_opt_strs+1558)
|
|
Packit |
aea12f |
|
|
Packit |
aea12f |
#endif /* not defined __doxygen__ */
|
|
Packit |
aea12f |
|
|
Packit |
aea12f |
/*
|
|
Packit |
aea12f |
* Create the static procedure(s) declared above.
|
|
Packit |
aea12f |
*/
|
|
Packit |
aea12f |
/**
|
|
Packit |
aea12f |
* The callout function that invokes the optionUsage function.
|
|
Packit |
aea12f |
*
|
|
Packit |
aea12f |
* @param[in] opts the AutoOpts option description structure
|
|
Packit |
aea12f |
* @param[in] od the descriptor for the "help" (usage) option.
|
|
Packit |
aea12f |
* @noreturn
|
|
Packit |
aea12f |
*/
|
|
Packit |
aea12f |
static void
|
|
Packit |
aea12f |
doUsageOpt(tOptions * opts, tOptDesc * od)
|
|
Packit |
aea12f |
{
|
|
Packit |
aea12f |
int ex_code;
|
|
Packit |
aea12f |
ex_code = SYSTEMKEY_TOOL_EXIT_SUCCESS;
|
|
Packit |
aea12f |
optionUsage(&systemkey_toolOptions, ex_code);
|
|
Packit |
aea12f |
/* NOTREACHED */
|
|
Packit |
aea12f |
exit(SYSTEMKEY_TOOL_EXIT_FAILURE);
|
|
Packit |
aea12f |
(void)opts;
|
|
Packit |
aea12f |
(void)od;
|
|
Packit |
aea12f |
}
|
|
Packit |
aea12f |
|
|
Packit |
aea12f |
/* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * */
|
|
Packit |
aea12f |
/**
|
|
Packit |
aea12f |
* Code to handle the debug option.
|
|
Packit |
aea12f |
* Specifies the debug level.
|
|
Packit |
aea12f |
* @param[in] pOptions the systemkey-tool options data structure
|
|
Packit |
aea12f |
* @param[in,out] pOptDesc the option descriptor for this option.
|
|
Packit |
aea12f |
*/
|
|
Packit |
aea12f |
static void
|
|
Packit |
aea12f |
doOptDebug(tOptions* pOptions, tOptDesc* pOptDesc)
|
|
Packit |
aea12f |
{
|
|
Packit |
aea12f |
static struct {long rmin, rmax;} const rng[1] = {
|
|
Packit |
aea12f |
{ 0 , 9999 } };
|
|
Packit |
aea12f |
int ix;
|
|
Packit |
aea12f |
|
|
Packit |
aea12f |
if (pOptions <= OPTPROC_EMIT_LIMIT)
|
|
Packit |
aea12f |
goto emit_ranges;
|
|
Packit |
aea12f |
optionNumericVal(pOptions, pOptDesc);
|
|
Packit |
aea12f |
|
|
Packit |
aea12f |
for (ix = 0; ix < 1; ix++) {
|
|
Packit |
aea12f |
if (pOptDesc->optArg.argInt < rng[ix].rmin)
|
|
Packit |
aea12f |
continue; /* ranges need not be ordered. */
|
|
Packit |
aea12f |
if (pOptDesc->optArg.argInt == rng[ix].rmin)
|
|
Packit |
aea12f |
return;
|
|
Packit |
aea12f |
if (rng[ix].rmax == LONG_MIN)
|
|
Packit |
aea12f |
continue;
|
|
Packit |
aea12f |
if (pOptDesc->optArg.argInt <= rng[ix].rmax)
|
|
Packit |
aea12f |
return;
|
|
Packit |
aea12f |
}
|
|
Packit |
aea12f |
|
|
Packit |
aea12f |
option_usage_fp = stderr;
|
|
Packit |
aea12f |
|
|
Packit |
aea12f |
emit_ranges:
|
|
Packit |
aea12f |
optionShowRange(pOptions, pOptDesc, VOIDP(rng), 1);
|
|
Packit |
aea12f |
}
|
|
Packit |
aea12f |
|
|
Packit |
aea12f |
/* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * */
|
|
Packit |
aea12f |
/**
|
|
Packit |
aea12f |
* Code to handle the infile option.
|
|
Packit |
aea12f |
*
|
|
Packit |
aea12f |
* @param[in] pOptions the systemkey-tool options data structure
|
|
Packit |
aea12f |
* @param[in,out] pOptDesc the option descriptor for this option.
|
|
Packit |
aea12f |
*/
|
|
Packit |
aea12f |
static void
|
|
Packit |
aea12f |
doOptInfile(tOptions* pOptions, tOptDesc* pOptDesc)
|
|
Packit |
aea12f |
{
|
|
Packit |
aea12f |
static teOptFileType const type =
|
|
Packit |
aea12f |
FTYPE_MODE_MUST_EXIST + FTYPE_MODE_NO_OPEN;
|
|
Packit |
aea12f |
static tuFileMode mode;
|
|
Packit |
aea12f |
#ifndef O_CLOEXEC
|
|
Packit |
aea12f |
# define O_CLOEXEC 0
|
|
Packit |
aea12f |
#endif
|
|
Packit |
aea12f |
mode.file_flags = O_CLOEXEC;
|
|
Packit |
aea12f |
|
|
Packit |
aea12f |
/*
|
|
Packit |
aea12f |
* This function handles special invalid values for "pOptions"
|
|
Packit |
aea12f |
*/
|
|
Packit |
aea12f |
optionFileCheck(pOptions, pOptDesc, type, mode);
|
|
Packit |
aea12f |
}
|
|
Packit |
aea12f |
/* extracted from optmain.tlib near line 1250 */
|
|
Packit |
aea12f |
|
|
Packit |
aea12f |
/**
|
|
Packit |
aea12f |
* The directory containing the data associated with systemkey-tool.
|
|
Packit |
aea12f |
*/
|
|
Packit |
aea12f |
#ifndef PKGDATADIR
|
|
Packit |
aea12f |
# define PKGDATADIR ""
|
|
Packit |
aea12f |
#endif
|
|
Packit |
aea12f |
|
|
Packit |
aea12f |
/**
|
|
Packit |
aea12f |
* Information about the person or institution that packaged systemkey-tool
|
|
Packit |
aea12f |
* for the current distribution.
|
|
Packit |
aea12f |
*/
|
|
Packit |
aea12f |
#ifndef WITH_PACKAGER
|
|
Packit |
aea12f |
# define systemkey_tool_packager_info NULL
|
|
Packit |
aea12f |
#else
|
|
Packit |
aea12f |
/** Packager information for systemkey-tool. */
|
|
Packit |
aea12f |
static char const systemkey_tool_packager_info[] =
|
|
Packit |
aea12f |
"Packaged by " WITH_PACKAGER
|
|
Packit |
aea12f |
|
|
Packit |
aea12f |
# ifdef WITH_PACKAGER_VERSION
|
|
Packit |
aea12f |
" ("WITH_PACKAGER_VERSION")"
|
|
Packit |
aea12f |
# endif
|
|
Packit |
aea12f |
|
|
Packit |
aea12f |
# ifdef WITH_PACKAGER_BUG_REPORTS
|
|
Packit |
aea12f |
"\nReport systemkey_tool bugs to " WITH_PACKAGER_BUG_REPORTS
|
|
Packit |
aea12f |
# endif
|
|
Packit |
aea12f |
"\n";
|
|
Packit |
aea12f |
#endif
|
|
Packit |
aea12f |
#ifndef __doxygen__
|
|
Packit |
aea12f |
|
|
Packit |
aea12f |
#endif /* __doxygen__ */
|
|
Packit |
aea12f |
/**
|
|
Packit |
aea12f |
* The option definitions for systemkey-tool. The one structure that
|
|
Packit |
aea12f |
* binds them all.
|
|
Packit |
aea12f |
*/
|
|
Packit |
aea12f |
tOptions systemkey_toolOptions = {
|
|
Packit |
aea12f |
OPTIONS_STRUCT_VERSION,
|
|
Packit |
aea12f |
0, NULL, /* original argc + argv */
|
|
Packit |
aea12f |
( OPTPROC_BASE
|
|
Packit |
aea12f |
+ OPTPROC_ERRSTOP
|
|
Packit |
aea12f |
+ OPTPROC_SHORTOPT
|
|
Packit |
aea12f |
+ OPTPROC_LONGOPT
|
|
Packit |
aea12f |
+ OPTPROC_NO_REQ_OPT
|
|
Packit |
aea12f |
+ OPTPROC_NEGATIONS
|
|
Packit |
aea12f |
+ OPTPROC_NO_ARGS
|
|
Packit |
aea12f |
+ OPTPROC_GNUUSAGE
|
|
Packit |
aea12f |
+ OPTPROC_MISUSE ),
|
|
Packit |
aea12f |
0, NULL, /* current option index, current option */
|
|
Packit |
aea12f |
NULL, NULL, zPROGNAME,
|
|
Packit |
aea12f |
zRcName, zCopyright, zLicenseDescrip,
|
|
Packit |
aea12f |
zFullVersion, apzHomeList, zUsageTitle,
|
|
Packit |
aea12f |
zExplain, zDetail, optDesc,
|
|
Packit |
aea12f |
zBugsAddr, /* address to send bugs to */
|
|
Packit |
aea12f |
NULL, NULL, /* extensions/saved state */
|
|
Packit |
aea12f |
optionUsage, /* usage procedure */
|
|
Packit |
aea12f |
translate_option_strings, /* translation procedure */
|
|
Packit |
aea12f |
/*
|
|
Packit |
aea12f |
* Indexes to special options
|
|
Packit |
aea12f |
*/
|
|
Packit |
aea12f |
{ INDEX_OPT_MORE_HELP, /* more-help option index */
|
|
Packit |
aea12f |
NO_EQUIVALENT, /* save option index */
|
|
Packit |
aea12f |
NO_EQUIVALENT, /* '-#' option index */
|
|
Packit |
aea12f |
NO_EQUIVALENT /* index of default opt */
|
|
Packit |
aea12f |
},
|
|
Packit |
aea12f |
10 /* full option count */, 7 /* user option count */,
|
|
Packit |
aea12f |
systemkey_tool_full_usage, systemkey_tool_short_usage,
|
|
Packit |
aea12f |
NULL, NULL,
|
|
Packit |
aea12f |
PKGDATADIR, systemkey_tool_packager_info
|
|
Packit |
aea12f |
};
|
|
Packit |
aea12f |
|
|
Packit |
aea12f |
#if ENABLE_NLS
|
|
Packit |
aea12f |
/**
|
|
Packit |
aea12f |
* This code is designed to translate translatable option text for the
|
|
Packit |
aea12f |
* systemkey-tool program. These translations happen upon entry
|
|
Packit |
aea12f |
* to optionProcess().
|
|
Packit |
aea12f |
*/
|
|
Packit |
aea12f |
#include <stdio.h>
|
|
Packit |
aea12f |
#include <stdlib.h>
|
|
Packit |
aea12f |
#include <string.h>
|
|
Packit |
aea12f |
#include <unistd.h>
|
|
Packit |
aea12f |
#ifdef HAVE_DCGETTEXT
|
|
Packit |
aea12f |
# include <gettext.h>
|
|
Packit |
aea12f |
#endif
|
|
Packit |
aea12f |
#include <autoopts/usage-txt.h>
|
|
Packit |
aea12f |
|
|
Packit |
aea12f |
static char * AO_gettext(char const * pz);
|
|
Packit |
aea12f |
static void coerce_it(void ** s);
|
|
Packit |
aea12f |
|
|
Packit |
aea12f |
/**
|
|
Packit |
aea12f |
* AutoGen specific wrapper function for gettext. It relies on the macro _()
|
|
Packit |
aea12f |
* to convert from English to the target language, then strdup-duplicates the
|
|
Packit |
aea12f |
* result string. It tries the "libopts" domain first, then whatever has been
|
|
Packit |
aea12f |
* set via the \a textdomain(3) call.
|
|
Packit |
aea12f |
*
|
|
Packit |
aea12f |
* @param[in] pz the input text used as a lookup key.
|
|
Packit |
aea12f |
* @returns the translated text (if there is one),
|
|
Packit |
aea12f |
* or the original text (if not).
|
|
Packit |
aea12f |
*/
|
|
Packit |
aea12f |
static char *
|
|
Packit |
aea12f |
AO_gettext(char const * pz)
|
|
Packit |
aea12f |
{
|
|
Packit |
aea12f |
char * res;
|
|
Packit |
aea12f |
if (pz == NULL)
|
|
Packit |
aea12f |
return NULL;
|
|
Packit |
aea12f |
#ifdef HAVE_DCGETTEXT
|
|
Packit |
aea12f |
/*
|
|
Packit |
aea12f |
* While processing the option_xlateable_txt data, try to use the
|
|
Packit |
aea12f |
* "libopts" domain. Once we switch to the option descriptor data,
|
|
Packit |
aea12f |
* do *not* use that domain.
|
|
Packit |
aea12f |
*/
|
|
Packit |
aea12f |
if (option_xlateable_txt.field_ct != 0) {
|
|
Packit |
aea12f |
res = dgettext("libopts", pz);
|
|
Packit |
aea12f |
if (res == pz)
|
|
Packit |
aea12f |
res = (char *)VOIDP(_(pz));
|
|
Packit |
aea12f |
} else
|
|
Packit |
aea12f |
res = (char *)VOIDP(_(pz));
|
|
Packit |
aea12f |
#else
|
|
Packit |
aea12f |
res = (char *)VOIDP(_(pz));
|
|
Packit |
aea12f |
#endif
|
|
Packit |
aea12f |
if (res == pz)
|
|
Packit |
aea12f |
return res;
|
|
Packit |
aea12f |
res = strdup(res);
|
|
Packit |
aea12f |
if (res == NULL) {
|
|
Packit |
aea12f |
fputs(_("No memory for duping translated strings\n"), stderr);
|
|
Packit |
aea12f |
exit(SYSTEMKEY_TOOL_EXIT_FAILURE);
|
|
Packit |
aea12f |
}
|
|
Packit |
aea12f |
return res;
|
|
Packit |
aea12f |
}
|
|
Packit |
aea12f |
|
|
Packit |
aea12f |
/**
|
|
Packit |
aea12f |
* All the pointers we use are marked "* const", but they are stored in
|
|
Packit |
aea12f |
* writable memory. Coerce the mutability and set the pointer.
|
|
Packit |
aea12f |
*/
|
|
Packit |
aea12f |
static void coerce_it(void ** s) { *s = AO_gettext(*s);
|
|
Packit |
aea12f |
}
|
|
Packit |
aea12f |
|
|
Packit |
aea12f |
/**
|
|
Packit |
aea12f |
* Translate all the translatable strings in the systemkey_toolOptions
|
|
Packit |
aea12f |
* structure defined above. This is done only once.
|
|
Packit |
aea12f |
*/
|
|
Packit |
aea12f |
static void
|
|
Packit |
aea12f |
translate_option_strings(void)
|
|
Packit |
aea12f |
{
|
|
Packit |
aea12f |
tOptions * const opts = &systemkey_toolOptions;
|
|
Packit |
aea12f |
|
|
Packit |
aea12f |
/*
|
|
Packit |
aea12f |
* Guard against re-translation. It won't work. The strings will have
|
|
Packit |
aea12f |
* been changed by the first pass through this code. One shot only.
|
|
Packit |
aea12f |
*/
|
|
Packit |
aea12f |
if (option_xlateable_txt.field_ct != 0) {
|
|
Packit |
aea12f |
/*
|
|
Packit |
aea12f |
* Do the translations. The first pointer follows the field count
|
|
Packit |
aea12f |
* field. The field count field is the size of a pointer.
|
|
Packit |
aea12f |
*/
|
|
Packit |
aea12f |
char ** ppz = (char**)VOIDP(&(option_xlateable_txt));
|
|
Packit |
aea12f |
int ix = option_xlateable_txt.field_ct;
|
|
Packit |
aea12f |
|
|
Packit |
aea12f |
do {
|
|
Packit |
aea12f |
ppz++; /* skip over field_ct */
|
|
Packit |
aea12f |
*ppz = AO_gettext(*ppz);
|
|
Packit |
aea12f |
} while (--ix > 0);
|
|
Packit |
aea12f |
/* prevent re-translation and disable "libopts" domain lookup */
|
|
Packit |
aea12f |
option_xlateable_txt.field_ct = 0;
|
|
Packit |
aea12f |
|
|
Packit |
aea12f |
coerce_it(VOIDP(&(opts->pzCopyright)));
|
|
Packit |
aea12f |
coerce_it(VOIDP(&(opts->pzCopyNotice)));
|
|
Packit |
aea12f |
coerce_it(VOIDP(&(opts->pzFullVersion)));
|
|
Packit |
aea12f |
coerce_it(VOIDP(&(opts->pzUsageTitle)));
|
|
Packit |
aea12f |
coerce_it(VOIDP(&(opts->pzExplain)));
|
|
Packit |
aea12f |
coerce_it(VOIDP(&(opts->pzDetail)));
|
|
Packit |
aea12f |
{
|
|
Packit |
aea12f |
tOptDesc * od = opts->pOptDesc;
|
|
Packit |
aea12f |
for (ix = opts->optCt; ix > 0; ix--, od++)
|
|
Packit |
aea12f |
coerce_it(VOIDP(&(od->pzText)));
|
|
Packit |
aea12f |
}
|
|
Packit |
aea12f |
}
|
|
Packit |
aea12f |
}
|
|
Packit |
aea12f |
#endif /* ENABLE_NLS */
|
|
Packit |
aea12f |
|
|
Packit |
aea12f |
#ifdef DO_NOT_COMPILE_THIS_CODE_IT_IS_FOR_GETTEXT
|
|
Packit |
aea12f |
/** I18N function strictly for xgettext. Do not compile. */
|
|
Packit |
aea12f |
static void bogus_function(void) {
|
|
Packit |
aea12f |
/* TRANSLATORS:
|
|
Packit |
aea12f |
|
|
Packit |
aea12f |
The following dummy function was crated solely so that xgettext can
|
|
Packit |
aea12f |
extract the correct strings. These strings are actually referenced
|
|
Packit |
aea12f |
by a field name in the systemkey_toolOptions structure noted in the
|
|
Packit |
aea12f |
comments below. The literal text is defined in systemkey_tool_opt_strs.
|
|
Packit Service |
991b93 |
|
|
Packit |
aea12f |
NOTE: the strings below are segmented with respect to the source string
|
|
Packit |
aea12f |
systemkey_tool_opt_strs. The strings above are handed off for translation
|
|
Packit |
aea12f |
at run time a paragraph at a time. Consequently, they are presented here
|
|
Packit |
aea12f |
for translation a paragraph at a time.
|
|
Packit Service |
991b93 |
|
|
Packit |
aea12f |
ALSO: often the description for an option will reference another option
|
|
Packit |
aea12f |
by name. These are set off with apostrophe quotes (I hope). Do not
|
|
Packit |
aea12f |
translate option names.
|
|
Packit |
aea12f |
*/
|
|
Packit |
aea12f |
/* referenced via systemkey_toolOptions.pzCopyright */
|
|
Packit Service |
991b93 |
puts(_("systemkey-tool 3.6.14\n\
|
|
Packit Service |
991b93 |
Copyright (C) 2000-2020 Free Software Foundation, and others, all rights reserved.\n\
|
|
Packit |
aea12f |
This is free software. It is licensed for use, modification and\n\
|
|
Packit |
aea12f |
redistribution under the terms of the GNU General Public License,\n\
|
|
Packit |
aea12f |
version 3 or later <http://gnu.org/licenses/gpl.html>\n"));
|
|
Packit |
aea12f |
|
|
Packit |
aea12f |
/* referenced via systemkey_toolOptions.pzCopyNotice */
|
|
Packit |
aea12f |
puts(_("systemkey-tool is free software: you can redistribute it and/or modify it\n\
|
|
Packit |
aea12f |
under the terms of the GNU General Public License as published by the Free\n\
|
|
Packit |
aea12f |
Software Foundation, either version 3 of the License, or (at your option)\n\
|
|
Packit |
aea12f |
any later version.\n\n"));
|
|
Packit |
aea12f |
puts(_("systemkey-tool is distributed in the hope that it will be useful, but\n\
|
|
Packit |
aea12f |
WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY\n\
|
|
Packit |
aea12f |
or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License\n\
|
|
Packit |
aea12f |
for more details.\n\n"));
|
|
Packit |
aea12f |
puts(_("You should have received a copy of the GNU General Public License along\n\
|
|
Packit |
aea12f |
with this program. If not, see <http://www.gnu.org/licenses/>.\n"));
|
|
Packit |
aea12f |
|
|
Packit |
aea12f |
/* referenced via systemkey_toolOptions.pOptDesc->pzText */
|
|
Packit |
aea12f |
puts(_("Enable debugging"));
|
|
Packit |
aea12f |
|
|
Packit |
aea12f |
/* referenced via systemkey_toolOptions.pOptDesc->pzText */
|
|
Packit |
aea12f |
puts(_("Input file"));
|
|
Packit |
aea12f |
|
|
Packit |
aea12f |
/* referenced via systemkey_toolOptions.pOptDesc->pzText */
|
|
Packit |
aea12f |
puts(_("Output file"));
|
|
Packit |
aea12f |
|
|
Packit |
aea12f |
/* referenced via systemkey_toolOptions.pOptDesc->pzText */
|
|
Packit |
aea12f |
puts(_("Lists all stored keys."));
|
|
Packit |
aea12f |
|
|
Packit |
aea12f |
/* referenced via systemkey_toolOptions.pOptDesc->pzText */
|
|
Packit |
aea12f |
puts(_("Delete the key identified by the given URL."));
|
|
Packit |
aea12f |
|
|
Packit |
aea12f |
/* referenced via systemkey_toolOptions.pOptDesc->pzText */
|
|
Packit |
aea12f |
puts(_("Use the DER format for keys."));
|
|
Packit |
aea12f |
|
|
Packit |
aea12f |
/* referenced via systemkey_toolOptions.pOptDesc->pzText */
|
|
Packit |
aea12f |
puts(_("Use DER format for output keys"));
|
|
Packit |
aea12f |
|
|
Packit |
aea12f |
/* referenced via systemkey_toolOptions.pOptDesc->pzText */
|
|
Packit |
aea12f |
puts(_("display extended usage information and exit"));
|
|
Packit |
aea12f |
|
|
Packit |
aea12f |
/* referenced via systemkey_toolOptions.pOptDesc->pzText */
|
|
Packit |
aea12f |
puts(_("extended usage information passed thru pager"));
|
|
Packit |
aea12f |
|
|
Packit |
aea12f |
/* referenced via systemkey_toolOptions.pOptDesc->pzText */
|
|
Packit |
aea12f |
puts(_("output version information and exit"));
|
|
Packit |
aea12f |
|
|
Packit |
aea12f |
/* referenced via systemkey_toolOptions.pzUsageTitle */
|
|
Packit |
aea12f |
puts(_("systemkey-tool - GnuTLS system key tool\n\
|
|
Packit |
aea12f |
Usage: %s [ -<flag> [<val>] | --<name>[{=| }<val>] ]...\n"));
|
|
Packit |
aea12f |
|
|
Packit |
aea12f |
/* referenced via systemkey_toolOptions.pzExplain */
|
|
Packit |
aea12f |
puts(_("\n"));
|
|
Packit |
aea12f |
|
|
Packit |
aea12f |
/* referenced via systemkey_toolOptions.pzDetail */
|
|
Packit |
aea12f |
puts(_("Program that allows handling user keys as stored in the system in a uniform\n\
|
|
Packit |
aea12f |
way.\n"));
|
|
Packit |
aea12f |
|
|
Packit |
aea12f |
/* referenced via systemkey_toolOptions.pzFullVersion */
|
|
Packit Service |
991b93 |
puts(_("systemkey-tool 3.6.14"));
|
|
Packit |
aea12f |
|
|
Packit |
aea12f |
/* referenced via systemkey_toolOptions.pzFullUsage */
|
|
Packit |
aea12f |
puts(_("<<<NOT-FOUND>>>"));
|
|
Packit |
aea12f |
|
|
Packit |
aea12f |
/* referenced via systemkey_toolOptions.pzShortUsage */
|
|
Packit |
aea12f |
puts(_("systemkey-tool [options]\n\
|
|
Packit |
aea12f |
systemkey-tool --help for usage instructions.\n"));
|
|
Packit |
aea12f |
/* LIBOPTS-MESSAGES: */
|
|
Packit |
aea12f |
#line 67 "../autoopts.c"
|
|
Packit |
aea12f |
puts(_("allocation of %d bytes failed\n"));
|
|
Packit Service |
991b93 |
#line 89 "../autoopts.c"
|
|
Packit |
aea12f |
puts(_("allocation of %d bytes failed\n"));
|
|
Packit Service |
991b93 |
#line 48 "../init.c"
|
|
Packit |
aea12f |
puts(_("AutoOpts function called without option descriptor\n"));
|
|
Packit Service |
991b93 |
#line 81 "../init.c"
|
|
Packit |
aea12f |
puts(_("\tThis exceeds the compiled library version: "));
|
|
Packit Service |
991b93 |
#line 79 "../init.c"
|
|
Packit |
aea12f |
puts(_("Automated Options Processing Error!\n"
|
|
Packit |
aea12f |
"\t%s called AutoOpts function with structure version %d:%d:%d.\n"));
|
|
Packit Service |
991b93 |
#line 78 "../autoopts.c"
|
|
Packit |
aea12f |
puts(_("realloc of %d bytes at 0x%p failed\n"));
|
|
Packit Service |
991b93 |
#line 83 "../init.c"
|
|
Packit |
aea12f |
puts(_("\tThis is less than the minimum library version: "));
|
|
Packit |
aea12f |
#line 121 "../version.c"
|
|
Packit |
aea12f |
puts(_("Automated Options version %s\n"
|
|
Packit Service |
991b93 |
"\tCopyright (C) 1999-2017 by Bruce Korb - all rights reserved\n"));
|
|
Packit Service |
991b93 |
#line 49 "../makeshell.c"
|
|
Packit |
aea12f |
puts(_("(AutoOpts bug): %s.\n"));
|
|
Packit |
aea12f |
#line 90 "../reset.c"
|
|
Packit |
aea12f |
puts(_("optionResetOpt() called, but reset-option not configured"));
|
|
Packit Service |
991b93 |
#line 241 "../usage.c"
|
|
Packit |
aea12f |
puts(_("could not locate the 'help' option"));
|
|
Packit Service |
991b93 |
#line 330 "../autoopts.c"
|
|
Packit |
aea12f |
puts(_("optionProcess() was called with invalid data"));
|
|
Packit Service |
991b93 |
#line 697 "../usage.c"
|
|
Packit |
aea12f |
puts(_("invalid argument type specified"));
|
|
Packit Service |
991b93 |
#line 568 "../find.c"
|
|
Packit |
aea12f |
puts(_("defaulted to option with optional arg"));
|
|
Packit |
aea12f |
#line 76 "../alias.c"
|
|
Packit |
aea12f |
puts(_("aliasing option is out of range."));
|
|
Packit Service |
991b93 |
#line 210 "../enum.c"
|
|
Packit |
aea12f |
puts(_("%s error: the keyword '%s' is ambiguous for %s\n"));
|
|
Packit Service |
991b93 |
#line 78 "../find.c"
|
|
Packit |
aea12f |
puts(_(" The following options match:\n"));
|
|
Packit Service |
991b93 |
#line 263 "../find.c"
|
|
Packit |
aea12f |
puts(_("%s: ambiguous option name: %s (matches %d options)\n"));
|
|
Packit |
aea12f |
#line 161 "../check.c"
|
|
Packit |
aea12f |
puts(_("%s: Command line arguments required\n"));
|
|
Packit |
aea12f |
#line 43 "../alias.c"
|
|
Packit |
aea12f |
puts(_("%d %s%s options allowed\n"));
|
|
Packit Service |
991b93 |
#line 56 "../makeshell.c"
|
|
Packit |
aea12f |
puts(_("%s error %d (%s) calling %s for '%s'\n"));
|
|
Packit Service |
991b93 |
#line 268 "../makeshell.c"
|
|
Packit |
aea12f |
puts(_("interprocess pipe"));
|
|
Packit Service |
991b93 |
#line 171 "../version.c"
|
|
Packit |
aea12f |
puts(_("error: version option argument '%c' invalid. Use:\n"
|
|
Packit |
aea12f |
"\t'v' - version only\n"
|
|
Packit |
aea12f |
"\t'c' - version and copyright\n"
|
|
Packit |
aea12f |
"\t'n' - version and full copyright notice\n"));
|
|
Packit |
aea12f |
#line 58 "../check.c"
|
|
Packit |
aea12f |
puts(_("%s error: the '%s' and '%s' options conflict\n"));
|
|
Packit Service |
991b93 |
#line 187 "../find.c"
|
|
Packit |
aea12f |
puts(_("%s: The '%s' option has been disabled."));
|
|
Packit Service |
991b93 |
#line 400 "../find.c"
|
|
Packit |
aea12f |
puts(_("%s: The '%s' option has been disabled."));
|
|
Packit |
aea12f |
#line 38 "../alias.c"
|
|
Packit |
aea12f |
puts(_("-equivalence"));
|
|
Packit Service |
991b93 |
#line 439 "../find.c"
|
|
Packit |
aea12f |
puts(_("%s: illegal option -- %c\n"));
|
|
Packit |
aea12f |
#line 110 "../reset.c"
|
|
Packit |
aea12f |
puts(_("%s: illegal option -- %c\n"));
|
|
Packit Service |
991b93 |
#line 241 "../find.c"
|
|
Packit |
aea12f |
puts(_("%s: illegal option -- %s\n"));
|
|
Packit Service |
991b93 |
#line 740 "../find.c"
|
|
Packit |
aea12f |
puts(_("%s: illegal option -- %s\n"));
|
|
Packit |
aea12f |
#line 118 "../reset.c"
|
|
Packit |
aea12f |
puts(_("%s: illegal option -- %s\n"));
|
|
Packit Service |
991b93 |
#line 305 "../find.c"
|
|
Packit |
aea12f |
puts(_("%s: unknown vendor extension option -- %s\n"));
|
|
Packit Service |
991b93 |
#line 135 "../enum.c"
|
|
Packit |
aea12f |
puts(_(" or an integer from %d through %d\n"));
|
|
Packit Service |
991b93 |
#line 145 "../enum.c"
|
|
Packit |
aea12f |
puts(_(" or an integer from %d through %d\n"));
|
|
Packit Service |
991b93 |
#line 696 "../usage.c"
|
|
Packit |
aea12f |
puts(_("%s error: invalid option descriptor for %s\n"));
|
|
Packit Service |
991b93 |
#line 1030 "../usage.c"
|
|
Packit |
aea12f |
puts(_("%s error: invalid option descriptor for %s\n"));
|
|
Packit Service |
991b93 |
#line 355 "../find.c"
|
|
Packit |
aea12f |
puts(_("%s: invalid option name: %s\n"));
|
|
Packit Service |
991b93 |
#line 497 "../find.c"
|
|
Packit |
aea12f |
puts(_("%s: The '%s' option requires an argument.\n"));
|
|
Packit Service |
991b93 |
#line 150 "../autoopts.c"
|
|
Packit |
aea12f |
puts(_("(AutoOpts bug): Equivalenced option '%s' was equivalenced to both\n"
|
|
Packit |
aea12f |
"\t'%s' and '%s'."));
|
|
Packit |
aea12f |
#line 94 "../check.c"
|
|
Packit |
aea12f |
puts(_("%s error: The %s option is required\n"));
|
|
Packit Service |
991b93 |
#line 602 "../find.c"
|
|
Packit |
aea12f |
puts(_("%s: The '%s' option cannot have an argument.\n"));
|
|
Packit |
aea12f |
#line 151 "../check.c"
|
|
Packit |
aea12f |
puts(_("%s: Command line arguments are not allowed.\n"));
|
|
Packit Service |
991b93 |
#line 568 "../save.c"
|
|
Packit |
aea12f |
puts(_("error %d (%s) creating %s\n"));
|
|
Packit Service |
991b93 |
#line 210 "../enum.c"
|
|
Packit |
aea12f |
puts(_("%s error: '%s' does not match any %s keywords.\n"));
|
|
Packit |
aea12f |
#line 93 "../reset.c"
|
|
Packit |
aea12f |
puts(_("%s error: The '%s' option requires an argument.\n"));
|
|
Packit Service |
991b93 |
#line 122 "../save.c"
|
|
Packit |
aea12f |
puts(_("error %d (%s) stat-ing %s\n"));
|
|
Packit Service |
991b93 |
#line 175 "../save.c"
|
|
Packit |
aea12f |
puts(_("error %d (%s) stat-ing %s\n"));
|
|
Packit |
aea12f |
#line 143 "../restore.c"
|
|
Packit |
aea12f |
puts(_("%s error: no saved option state\n"));
|
|
Packit Service |
991b93 |
#line 225 "../autoopts.c"
|
|
Packit |
aea12f |
puts(_("'%s' is not a command line option.\n"));
|
|
Packit |
aea12f |
#line 113 "../time.c"
|
|
Packit |
aea12f |
puts(_("%s error: '%s' is not a recognizable date/time.\n"));
|
|
Packit |
aea12f |
#line 50 "../time.c"
|
|
Packit |
aea12f |
puts(_("%s error: '%s' is not a recognizable time duration.\n"));
|
|
Packit |
aea12f |
#line 92 "../check.c"
|
|
Packit |
aea12f |
puts(_("%s error: The %s option must appear %d times.\n"));
|
|
Packit |
aea12f |
#line 165 "../numeric.c"
|
|
Packit |
aea12f |
puts(_("%s error: '%s' is not a recognizable number.\n"));
|
|
Packit Service |
991b93 |
#line 176 "../enum.c"
|
|
Packit |
aea12f |
puts(_("%s error: %s exceeds %s keyword count\n"));
|
|
Packit Service |
991b93 |
#line 279 "../usage.c"
|
|
Packit |
aea12f |
puts(_("Try '%s %s' for more information.\n"));
|
|
Packit |
aea12f |
#line 45 "../alias.c"
|
|
Packit |
aea12f |
puts(_("one %s%s option allowed\n"));
|
|
Packit Service |
991b93 |
#line 170 "../makeshell.c"
|
|
Packit |
aea12f |
puts(_("standard output"));
|
|
Packit Service |
991b93 |
#line 905 "../makeshell.c"
|
|
Packit |
aea12f |
puts(_("standard output"));
|
|
Packit Service |
991b93 |
#line 223 "../usage.c"
|
|
Packit |
aea12f |
puts(_("standard output"));
|
|
Packit Service |
991b93 |
#line 364 "../usage.c"
|
|
Packit |
aea12f |
puts(_("standard output"));
|
|
Packit Service |
991b93 |
#line 574 "../usage.c"
|
|
Packit |
aea12f |
puts(_("standard output"));
|
|
Packit Service |
991b93 |
#line 178 "../version.c"
|
|
Packit |
aea12f |
puts(_("standard output"));
|
|
Packit Service |
991b93 |
#line 223 "../usage.c"
|
|
Packit |
aea12f |
puts(_("standard error"));
|
|
Packit Service |
991b93 |
#line 364 "../usage.c"
|
|
Packit |
aea12f |
puts(_("standard error"));
|
|
Packit Service |
991b93 |
#line 574 "../usage.c"
|
|
Packit |
aea12f |
puts(_("standard error"));
|
|
Packit Service |
991b93 |
#line 178 "../version.c"
|
|
Packit |
aea12f |
puts(_("standard error"));
|
|
Packit Service |
991b93 |
#line 170 "../makeshell.c"
|
|
Packit |
aea12f |
puts(_("write"));
|
|
Packit Service |
991b93 |
#line 905 "../makeshell.c"
|
|
Packit |
aea12f |
puts(_("write"));
|
|
Packit Service |
991b93 |
#line 222 "../usage.c"
|
|
Packit |
aea12f |
puts(_("write"));
|
|
Packit Service |
991b93 |
#line 363 "../usage.c"
|
|
Packit |
aea12f |
puts(_("write"));
|
|
Packit Service |
991b93 |
#line 573 "../usage.c"
|
|
Packit |
aea12f |
puts(_("write"));
|
|
Packit Service |
991b93 |
#line 177 "../version.c"
|
|
Packit |
aea12f |
puts(_("write"));
|
|
Packit |
aea12f |
#line 60 "../numeric.c"
|
|
Packit |
aea12f |
puts(_("%s error: %s option value %ld is out of range.\n"));
|
|
Packit |
aea12f |
#line 44 "../check.c"
|
|
Packit |
aea12f |
puts(_("%s error: %s option requires the %s option\n"));
|
|
Packit Service |
991b93 |
#line 121 "../save.c"
|
|
Packit |
aea12f |
puts(_("%s warning: cannot save options - %s not regular file\n"));
|
|
Packit Service |
991b93 |
#line 174 "../save.c"
|
|
Packit |
aea12f |
puts(_("%s warning: cannot save options - %s not regular file\n"));
|
|
Packit Service |
991b93 |
#line 193 "../save.c"
|
|
Packit |
aea12f |
puts(_("%s warning: cannot save options - %s not regular file\n"));
|
|
Packit Service |
991b93 |
#line 567 "../save.c"
|
|
Packit |
aea12f |
puts(_("%s warning: cannot save options - %s not regular file\n"));
|
|
Packit |
aea12f |
/* END-LIBOPTS-MESSAGES */
|
|
Packit |
aea12f |
|
|
Packit |
aea12f |
/* USAGE-TEXT: */
|
|
Packit Service |
991b93 |
#line 822 "../usage.c"
|
|
Packit |
aea12f |
puts(_("\t\t\t\t- an alternate for '%s'\n"));
|
|
Packit Service |
991b93 |
#line 1097 "../usage.c"
|
|
Packit |
aea12f |
puts(_("Version, usage and configuration options:"));
|
|
Packit Service |
991b93 |
#line 873 "../usage.c"
|
|
Packit |
aea12f |
puts(_("\t\t\t\t- default option for unnamed options\n"));
|
|
Packit Service |
991b93 |
#line 786 "../usage.c"
|
|
Packit |
aea12f |
puts(_("\t\t\t\t- disabled as '--%s'\n"));
|
|
Packit Service |
991b93 |
#line 1066 "../usage.c"
|
|
Packit |
aea12f |
puts(_(" --- %-14s %s\n"));
|
|
Packit Service |
991b93 |
#line 1064 "../usage.c"
|
|
Packit |
aea12f |
puts(_("This option has been disabled"));
|
|
Packit Service |
991b93 |
#line 813 "../usage.c"
|
|
Packit |
aea12f |
puts(_("\t\t\t\t- enabled by default\n"));
|
|
Packit |
aea12f |
#line 40 "../alias.c"
|
|
Packit |
aea12f |
puts(_("%s error: only "));
|
|
Packit Service |
991b93 |
#line 1143 "../usage.c"
|
|
Packit |
aea12f |
puts(_(" - examining environment variables named %s_*\n"));
|
|
Packit |
aea12f |
#line 168 "../file.c"
|
|
Packit |
aea12f |
puts(_("\t\t\t\t- file must not pre-exist\n"));
|
|
Packit |
aea12f |
#line 172 "../file.c"
|
|
Packit |
aea12f |
puts(_("\t\t\t\t- file must pre-exist\n"));
|
|
Packit Service |
991b93 |
#line 329 "../usage.c"
|
|
Packit |
aea12f |
puts(_("Options are specified by doubled hyphens and their name or by a single\n"
|
|
Packit |
aea12f |
"hyphen and the flag character.\n"));
|
|
Packit Service |
991b93 |
#line 882 "../makeshell.c"
|
|
Packit |
aea12f |
puts(_("\n"
|
|
Packit |
aea12f |
"= = = = = = = =\n\n"
|
|
Packit |
aea12f |
"This incarnation of genshell will produce\n"
|
|
Packit |
aea12f |
"a shell script to parse the options for %s:\n\n"));
|
|
Packit Service |
991b93 |
#line 142 "../enum.c"
|
|
Packit |
aea12f |
puts(_(" or an integer mask with any of the lower %d bits set\n"));
|
|
Packit Service |
991b93 |
#line 846 "../usage.c"
|
|
Packit |
aea12f |
puts(_("\t\t\t\t- is a set membership option\n"));
|
|
Packit Service |
991b93 |
#line 867 "../usage.c"
|
|
Packit |
aea12f |
puts(_("\t\t\t\t- must appear between %d and %d times\n"));
|
|
Packit Service |
991b93 |
#line 331 "../usage.c"
|
|
Packit |
aea12f |
puts(_("Options are specified by single or double hyphens and their name.\n"));
|
|
Packit Service |
991b93 |
#line 853 "../usage.c"
|
|
Packit |
aea12f |
puts(_("\t\t\t\t- may appear multiple times\n"));
|
|
Packit Service |
991b93 |
#line 840 "../usage.c"
|
|
Packit |
aea12f |
puts(_("\t\t\t\t- may not be preset\n"));
|
|
Packit Service |
991b93 |
#line 1258 "../usage.c"
|
|
Packit |
aea12f |
puts(_(" Arg Option-Name Description\n"));
|
|
Packit Service |
991b93 |
#line 1194 "../usage.c"
|
|
Packit |
aea12f |
puts(_(" Flg Arg Option-Name Description\n"));
|
|
Packit Service |
991b93 |
#line 1252 "../usage.c"
|
|
Packit |
aea12f |
puts(_(" Flg Arg Option-Name Description\n"));
|
|
Packit Service |
991b93 |
#line 1253 "../usage.c"
|
|
Packit |
aea12f |
puts(_(" %3s %s"));
|
|
Packit Service |
991b93 |
#line 1259 "../usage.c"
|
|
Packit |
aea12f |
puts(_(" %3s %s"));
|
|
Packit Service |
991b93 |
#line 336 "../usage.c"
|
|
Packit |
aea12f |
puts(_("The '-#<number>' option may omit the hash char\n"));
|
|
Packit Service |
991b93 |
#line 332 "../usage.c"
|
|
Packit |
aea12f |
puts(_("All arguments are named options.\n"));
|
|
Packit Service |
991b93 |
#line 920 "../usage.c"
|
|
Packit |
aea12f |
puts(_(" - reading file %s"));
|
|
Packit Service |
991b93 |
#line 358 "../usage.c"
|
|
Packit |
aea12f |
puts(_("\n"
|
|
Packit |
aea12f |
"Please send bug reports to: <%s>\n"));
|
|
Packit |
aea12f |
#line 100 "../version.c"
|
|
Packit |
aea12f |
puts(_("\n"
|
|
Packit |
aea12f |
"Please send bug reports to: <%s>\n"));
|
|
Packit |
aea12f |
#line 129 "../version.c"
|
|
Packit |
aea12f |
puts(_("\n"
|
|
Packit |
aea12f |
"Please send bug reports to: <%s>\n"));
|
|
Packit Service |
991b93 |
#line 852 "../usage.c"
|
|
Packit |
aea12f |
puts(_("\t\t\t\t- may NOT appear - preset only\n"));
|
|
Packit Service |
991b93 |
#line 893 "../usage.c"
|
|
Packit |
aea12f |
puts(_("\n"
|
|
Packit |
aea12f |
"The following option preset mechanisms are supported:\n"));
|
|
Packit Service |
991b93 |
#line 1141 "../usage.c"
|
|
Packit |
aea12f |
puts(_("\n"
|
|
Packit |
aea12f |
"The following option preset mechanisms are supported:\n"));
|
|
Packit Service |
991b93 |
#line 631 "../usage.c"
|
|
Packit |
aea12f |
puts(_("prohibits these options:\n"));
|
|
Packit Service |
991b93 |
#line 626 "../usage.c"
|
|
Packit |
aea12f |
puts(_("prohibits the option '%s'\n"));
|
|
Packit |
aea12f |
#line 81 "../numeric.c"
|
|
Packit |
aea12f |
puts(_("%s%ld to %ld"));
|
|
Packit |
aea12f |
#line 79 "../numeric.c"
|
|
Packit |
aea12f |
puts(_("%sgreater than or equal to %ld"));
|
|
Packit |
aea12f |
#line 75 "../numeric.c"
|
|
Packit |
aea12f |
puts(_("%s%ld exactly"));
|
|
Packit |
aea12f |
#line 68 "../numeric.c"
|
|
Packit |
aea12f |
puts(_("%sit must lie in one of the ranges:\n"));
|
|
Packit |
aea12f |
#line 68 "../numeric.c"
|
|
Packit |
aea12f |
puts(_("%sit must be in the range:\n"));
|
|
Packit |
aea12f |
#line 88 "../numeric.c"
|
|
Packit |
aea12f |
puts(_(", or\n"));
|
|
Packit |
aea12f |
#line 66 "../numeric.c"
|
|
Packit |
aea12f |
puts(_("%sis scalable with a suffix: k/K/m/M/g/G/t/T\n"));
|
|
Packit |
aea12f |
#line 77 "../numeric.c"
|
|
Packit |
aea12f |
puts(_("%sless than or equal to %ld"));
|
|
Packit Service |
991b93 |
#line 339 "../usage.c"
|
|
Packit |
aea12f |
puts(_("Operands and options may be intermixed. They will be reordered.\n"));
|
|
Packit Service |
991b93 |
#line 601 "../usage.c"
|
|
Packit |
aea12f |
puts(_("requires the option '%s'\n"));
|
|
Packit Service |
991b93 |
#line 604 "../usage.c"
|
|
Packit |
aea12f |
puts(_("requires these options:\n"));
|
|
Packit Service |
991b93 |
#line 1270 "../usage.c"
|
|
Packit |
aea12f |
puts(_(" Arg Option-Name Req? Description\n"));
|
|
Packit Service |
991b93 |
#line 1264 "../usage.c"
|
|
Packit |
aea12f |
puts(_(" Flg Arg Option-Name Req? Description\n"));
|
|
Packit Service |
991b93 |
#line 143 "../enum.c"
|
|
Packit |
aea12f |
puts(_("or you may use a numeric representation. Preceding these with a '!'\n"
|
|
Packit |
aea12f |
"will clear the bits, specifying 'none' will clear all bits, and 'all'\n"
|
|
Packit |
aea12f |
"will set them all. Multiple entries may be passed as an option\n"
|
|
Packit |
aea12f |
"argument list.\n"));
|
|
Packit Service |
991b93 |
#line 859 "../usage.c"
|
|
Packit |
aea12f |
puts(_("\t\t\t\t- may appear up to %d times\n"));
|
|
Packit Service |
991b93 |
#line 52 "../enum.c"
|
|
Packit |
aea12f |
puts(_("The valid \"%s\" option keywords are:\n"));
|
|
Packit Service |
991b93 |
#line 1101 "../usage.c"
|
|
Packit |
aea12f |
puts(_("The next option supports vendor supported extra options:"));
|
|
Packit Service |
991b93 |
#line 722 "../usage.c"
|
|
Packit |
aea12f |
puts(_("These additional options are:"));
|
|
Packit |
aea12f |
/* END-USAGE-TEXT */
|
|
Packit |
aea12f |
}
|
|
Packit |
aea12f |
#endif /* uncompilable code */
|
|
Packit |
aea12f |
#ifdef __cplusplus
|
|
Packit |
aea12f |
}
|
|
Packit |
aea12f |
#endif
|
|
Packit |
aea12f |
/* systemkey-args.c ends here */
|