Lines Matching +full:- +full:_
2 * EDIT THIS FILE WITH CAUTION (ntpsnmpd-opts.c)
4 * It has been AutoGen-ed May 25, 2024 at 12:04:35 AM by AutoGen 5.18.16
5 * From the definitions ntpsnmpd-opts.def
21 * Copyright (C) 1992-2024 The University of Delaware and Network Time Foundation, all rights reserved.
26 * <http://opensource.org/licenses/ntp-license.php>
41 #include "ntpsnmpd-opts.h"
70 "Copyright (C) 1992-2024 The University of Delaware and Network Time Foundation, all rights reserved.\n"
75 " <http://opensource.org/licenses/ntp-license.php>\n\0"
92 /* 1069 */ "The socket address ntpsnmpd uses to connect to net-snmpd\0"
99 /* 1270 */ "more-help\0"
103 /* 1363 */ "save-opts\0"
106 /* 1415 */ "no-load-opts\0"
109 /* 1440 */ "ntpsnmpd - NTP SNMP MIB agent - Ver. 4.2.8p18\n"
110 "Usage: %s [ -<flag> [<val>] | --<name>[{=| }<val>] ]...\n\0"
123 /** Upper-cased name for the nofork option */
135 /** Upper-cased name for the syslog option */
147 /** Upper-cased name for the agentXSocket option */
210 /* last opt argumnt */ { NULL }, /* --nofork */
222 /* last opt argumnt */ { NULL }, /* --syslog */
422 { INDEX_OPT_MORE_HELP, /* more-help option index */
424 NO_EQUIVALENT, /* '-#' option index */
446 #include <autoopts/usage-txt.h>
452 * AutoGen specific wrapper function for gettext. It relies on the macro _()
453 * to convert from English to the target language, then strdup-duplicates the
476 res = (char *)VOIDP(_(pz));
478 res = (char *)VOIDP(_(pz));
480 res = (char *)VOIDP(_(pz));
486 fputs(_("No memory for duping translated strings\n"), stderr);
509 * Guard against re-translation. It won't work. The strings will have
523 } while (--ix > 0);
524 /* prevent re-translation and disable "libopts" domain lookup */
527 coerce_it(VOIDP(&(opts->pzCopyright)));
528 coerce_it(VOIDP(&(opts->pzCopyNotice)));
529 coerce_it(VOIDP(&(opts->pzFullVersion)));
530 coerce_it(VOIDP(&(opts->pzUsageTitle)));
531 coerce_it(VOIDP(&(opts->pzExplain)));
532 coerce_it(VOIDP(&(opts->pzDetail)));
534 tOptDesc * od = opts->pOptDesc;
535 for (ix = opts->optCt; ix > 0; ix--, od++)
536 coerce_it(VOIDP(&(od->pzText)));
562 puts(_("ntpsnmpd 4.2.8p18\n\
563 Copyright (C) 1992-2024 The University of Delaware and Network Time Foundation, all rights reserved.\n\
567 puts(_(" <http://ntp.org/license>\n\
568 <http://opensource.org/licenses/ntp-license.php>\n"));
571 puts(_("Permission to use, copy, modify, and distribute this software and its\n\
582 /* referenced via ntpsnmpdOptions.pOptDesc->pzText */
583 puts(_("Do not fork"));
585 /* referenced via ntpsnmpdOptions.pOptDesc->pzText */
586 puts(_("Log to syslog()"));
588 /* referenced via ntpsnmpdOptions.pOptDesc->pzText */
589 puts(_("The socket address ntpsnmpd uses to connect to net-snmpd"));
591 /* referenced via ntpsnmpdOptions.pOptDesc->pzText */
592 puts(_("display extended usage information and exit"));
594 /* referenced via ntpsnmpdOptions.pOptDesc->pzText */
595 puts(_("extended usage information passed thru pager"));
597 /* referenced via ntpsnmpdOptions.pOptDesc->pzText */
598 puts(_("output version information and exit"));
600 /* referenced via ntpsnmpdOptions.pOptDesc->pzText */
601 puts(_("save the option state to a config file"));
603 /* referenced via ntpsnmpdOptions.pOptDesc->pzText */
604 puts(_("load options from a config file"));
607 puts(_("ntpsnmpd - NTP SNMP MIB agent - Ver. 4.2.8p18\n\
608 Usage: %s [ -<flag> [<val>] | --<name>[{=| }<val>] ]...\n"));
611 puts(_("\n"));
614 puts(_("ntpsnmpd 4.2.8p18"));
617 puts(_("<<<NOT-FOUND>>>"));
620 puts(_("<<<NOT-FOUND>>>"));
621 /* LIBOPTS-MESSAGES: */
623 puts(_("allocation of %d bytes failed\n"));
625 puts(_("allocation of %d bytes failed\n"));
627 puts(_("AutoOpts function called without option descriptor\n"));
629 puts(_("\tThis exceeds the compiled library version: "));
631 puts(_("Automated Options Processing Error!\n"
634 puts(_("realloc of %d bytes at 0x%p failed\n"));
636 puts(_("\tThis is less than the minimum library version: "));
638 puts(_("Automated Options version %s\n"
639 "\tCopyright (C) 1999-2017 by Bruce Korb - all rights reserved\n"));
641 puts(_("(AutoOpts bug): %s.\n"));
643 puts(_("optionResetOpt() called, but reset-option not configured"));
645 puts(_("could not locate the 'help' option"));
647 puts(_("optionProcess() was called with invalid data"));
649 puts(_("invalid argument type specified"));
651 puts(_("defaulted to option with optional arg"));
653 puts(_("aliasing option is out of range."));
655 puts(_("%s error: the keyword '%s' is ambiguous for %s\n"));
657 puts(_(" The following options match:\n"));
659 puts(_("%s: ambiguous option name: %s (matches %d options)\n"));
661 puts(_("%s: Command line arguments required\n"));
663 puts(_("%d %s%s options allowed\n"));
665 puts(_("%s error %d (%s) calling %s for '%s'\n"));
667 puts(_("interprocess pipe"));
669 puts(_("error: version option argument '%c' invalid. Use:\n"
670 "\t'v' - version only\n"
671 "\t'c' - version and copyright\n"
672 "\t'n' - version and full copyright notice\n"));
674 puts(_("%s error: the '%s' and '%s' options conflict\n"));
676 puts(_("%s: The '%s' option has been disabled."));
678 puts(_("%s: The '%s' option has been disabled."));
680 puts(_("-equivalence"));
682 puts(_("%s: illegal option -- %c\n"));
684 puts(_("%s: illegal option -- %c\n"));
686 puts(_("%s: illegal option -- %s\n"));
688 puts(_("%s: illegal option -- %s\n"));
690 puts(_("%s: illegal option -- %s\n"));
692 puts(_("%s: unknown vendor extension option -- %s\n"));
694 puts(_(" or an integer from %d through %d\n"));
696 puts(_(" or an integer from %d through %d\n"));
698 puts(_("%s error: invalid option descriptor for %s\n"));
700 puts(_("%s error: invalid option descriptor for %s\n"));
702 puts(_("%s: invalid option name: %s\n"));
704 puts(_("%s: The '%s' option requires an argument.\n"));
706 puts(_("(AutoOpts bug): Equivalenced option '%s' was equivalenced to both\n"
709 puts(_("%s error: The %s option is required\n"));
711 puts(_("%s: The '%s' option cannot have an argument.\n"));
713 puts(_("%s: Command line arguments are not allowed.\n"));
715 puts(_("error %d (%s) creating %s\n"));
717 puts(_("%s error: '%s' does not match any %s keywords.\n"));
719 puts(_("%s error: The '%s' option requires an argument.\n"));
721 puts(_("error %d (%s) stat-ing %s\n"));
723 puts(_("error %d (%s) stat-ing %s\n"));
725 puts(_("%s error: no saved option state\n"));
727 puts(_("'%s' is not a command line option.\n"));
729 puts(_("%s error: '%s' is not a recognizable date/time.\n"));
731 puts(_("%s error: '%s' is not a recognizable time duration.\n"));
733 puts(_("%s error: The %s option must appear %d times.\n"));
735 puts(_("%s error: '%s' is not a recognizable number.\n"));
737 puts(_("%s error: %s exceeds %s keyword count\n"));
739 puts(_("Try '%s %s' for more information.\n"));
741 puts(_("one %s%s option allowed\n"));
743 puts(_("standard output"));
745 puts(_("standard output"));
747 puts(_("standard output"));
749 puts(_("standard output"));
751 puts(_("standard output"));
753 puts(_("standard output"));
755 puts(_("standard error"));
757 puts(_("standard error"));
759 puts(_("standard error"));
761 puts(_("standard error"));
763 puts(_("write"));
765 puts(_("write"));
767 puts(_("write"));
769 puts(_("write"));
771 puts(_("write"));
773 puts(_("write"));
775 puts(_("%s error: %s option value %ld is out of range.\n"));
777 puts(_("%s error: %s option requires the %s option\n"));
779 puts(_("%s warning: cannot save options - %s not regular file\n"));
781 puts(_("%s warning: cannot save options - %s not regular file\n"));
783 puts(_("%s warning: cannot save options - %s not regular file\n"));
785 puts(_("%s warning: cannot save options - %s not regular file\n"));
786 /* END-LIBOPTS-MESSAGES */
788 /* USAGE-TEXT: */
790 puts(_("\t\t\t\t- an alternate for '%s'\n"));
792 puts(_("Version, usage and configuration options:"));
794 puts(_("\t\t\t\t- default option for unnamed options\n"));
796 puts(_("\t\t\t\t- disabled as '--%s'\n"));
798 puts(_(" --- %-14s %s\n"));
800 puts(_("This option has been disabled"));
802 puts(_("\t\t\t\t- enabled by default\n"));
804 puts(_("%s error: only "));
806 puts(_(" - examining environment variables named %s_*\n"));
808 puts(_("\t\t\t\t- file must not pre-exist\n"));
810 puts(_("\t\t\t\t- file must pre-exist\n"));
812 puts(_("Options are specified by doubled hyphens and their name or by a single\n"
815 puts(_("\n"
820 puts(_(" or an integer mask with any of the lower %d bits set\n"));
822 puts(_("\t\t\t\t- is a set membership option\n"));
824 puts(_("\t\t\t\t- must appear between %d and %d times\n"));
826 puts(_("Options are specified by single or double hyphens and their name.\n"));
828 puts(_("\t\t\t\t- may appear multiple times\n"));
830 puts(_("\t\t\t\t- may not be preset\n"));
832 puts(_(" Arg Option-Name Description\n"));
834 puts(_(" Flg Arg Option-Name Description\n"));
836 puts(_(" Flg Arg Option-Name Description\n"));
838 puts(_(" %3s %s"));
840 puts(_(" %3s %s"));
842 puts(_("The '-#<number>' option may omit the hash char\n"));
844 puts(_("All arguments are named options.\n"));
846 puts(_(" - reading file %s"));
848 puts(_("\n"
851 puts(_("\n"
854 puts(_("\n"
857 puts(_("\t\t\t\t- may NOT appear - preset only\n"));
859 puts(_("\n"
862 puts(_("\n"
865 puts(_("prohibits these options:\n"));
867 puts(_("prohibits the option '%s'\n"));
869 puts(_("%s%ld to %ld"));
871 puts(_("%sgreater than or equal to %ld"));
873 puts(_("%s%ld exactly"));
875 puts(_("%sit must lie in one of the ranges:\n"));
877 puts(_("%sit must be in the range:\n"));
879 puts(_(", or\n"));
881 puts(_("%sis scalable with a suffix: k/K/m/M/g/G/t/T\n"));
883 puts(_("%sless than or equal to %ld"));
885 puts(_("Operands and options may be intermixed. They will be reordered.\n"));
887 puts(_("requires the option '%s'\n"));
889 puts(_("requires these options:\n"));
891 puts(_(" Arg Option-Name Req? Description\n"));
893 puts(_(" Flg Arg Option-Name Req? Description\n"));
895 puts(_("or you may use a numeric representation. Preceding these with a '!'\n"
900 puts(_("\t\t\t\t- may appear up to %d times\n"));
902 puts(_("The valid \"%s\" option keywords are:\n"));
904 puts(_("The next option supports vendor supported extra options:"));
906 puts(_("These additional options are:"));
907 /* END-USAGE-TEXT */
913 /* ntpsnmpd-opts.c ends here */