sc_const_long_option:
@grep '^ *static.*struct option ' $$($(VC_LIST_EXCEPT)) \
- | grep -v 'const struct option const' && { \
+ | grep -Ev 'const struct option|struct option const' && { \
echo 1>&2 '$(ME): add "const" to the above declarations'; \
exit 1; } || :
#define AUTHORS proper_name ("Simon Josefsson")
-static const struct option const long_options[] =
+static struct option const long_options[] =
{
{"decode", no_argument, 0, 'd'},
{"wrap", required_argument, 0, 'w'},
bool show_tabs = false;
int file_open_mode = O_RDONLY;
- static const struct option const long_options[] =
+ static struct option const long_options[] =
{
{"number-nonblank", no_argument, NULL, 'b'},
{"number", no_argument, NULL, 'n'},
REFERENCE_FILE_OPTION
};
-static const struct option const long_options[] =
+static struct option const long_options[] =
{
{"recursive", no_argument, NULL, 'R'},
{"dereference", no_argument, NULL, DEREFERENCE_OPTION},
REFERENCE_FILE_OPTION
};
-static const struct option const long_options[] =
+static struct option const long_options[] =
{
{"recursive", no_argument, NULL, 'R'},
{"changes", no_argument, NULL, 'c'},
REFERENCE_FILE_OPTION
};
-static const struct option const long_options[] =
+static struct option const long_options[] =
{
{"changes", no_argument, NULL, 'c'},
{"recursive", no_argument, NULL, 'R'},
REFERENCE_FILE_OPTION
};
-static const struct option const long_options[] =
+static struct option const long_options[] =
{
{"recursive", no_argument, NULL, 'R'},
{"changes", no_argument, NULL, 'c'},
OUTPUT_DELIMITER_OPTION
};
-static const struct option const long_options[] =
+static struct option const long_options[] =
{
{"check-order", no_argument, NULL, CHECK_ORDER_OPTION},
{"nocheck-order", no_argument, NULL, NOCHECK_ORDER_OPTION},
};
ARGMATCH_VERIFY (reply_args, reply_vals);
-static const struct option const long_opts[] =
+static struct option const long_opts[] =
{
{"archive", no_argument, NULL, 'a'},
{"backup", optional_argument, NULL, 'b'},
/* The set of signals that are caught. */
static sigset_t caught_signals;
-static const struct option const longopts[] =
+static struct option const longopts[] =
{
{"digits", required_argument, NULL, 'n'},
{"quiet", no_argument, NULL, 'q'},
COMPLEMENT_OPTION
};
-static const struct option const longopts[] =
+static struct option const longopts[] =
{
{"bytes", required_argument, NULL, 'b'},
{"characters", required_argument, NULL, 'c'},
static char const short_options[] = "d:f:I::r:Rs:u";
-static const struct option const long_options[] =
+static struct option const long_options[] =
{
{"date", required_argument, NULL, 'd'},
{"file", required_argument, NULL, 'f'},
};
/* Conversion symbols, for conv="...". */
-static const struct symbol_value const conversions[] =
+static struct symbol_value const conversions[] =
{
{"ascii", C_ASCII | C_TWOBUFS}, /* EBCDIC to ASCII. */
{"ebcdic", C_EBCDIC | C_TWOBUFS}, /* ASCII to EBCDIC. */
};
/* Flags, for iflag="..." and oflag="...". */
-static const struct symbol_value const flags[] =
+static struct symbol_value const flags[] =
{
{"append", O_APPEND},
{"binary", O_BINARY},
};
/* Status, for status="...". */
-static const struct symbol_value const statuses[] =
+static struct symbol_value const statuses[] =
{
{"noxfer", STATUS_NOXFER},
{"", 0}
SYNC_OPTION
};
-static const struct option const long_options[] =
+static struct option const long_options[] =
{
{"all", no_argument, NULL, 'a'},
{"block-size", required_argument, NULL, 'B'},
#define array_len(Array) (sizeof (Array) / sizeof *(Array))
verify (array_len (slack_codes) == array_len (ls_codes));
-static const struct option const long_options[] =
+static struct option const long_options[] =
{
{"bourne-shell", no_argument, NULL, 'b'},
{"sh", no_argument, NULL, 'b'},
TIME_STYLE_OPTION
};
-static const struct option const long_options[] =
+static struct option const long_options[] =
{
{"all", no_argument, NULL, 'a'},
{"apparent-size", no_argument, NULL, APPARENT_SIZE_OPTION},
extern char **environ;
-static const struct option const longopts[] =
+static struct option const longopts[] =
{
{"ignore-environment", no_argument, NULL, 'i'},
{"unset", required_argument, NULL, 'u'},
static char const shortopts[] = "it:0::1::2::3::4::5::6::7::8::9::";
-static const struct option const longopts[] =
+static struct option const longopts[] =
{
{"tabs", required_argument, NULL, 't'},
{"initial", no_argument, NULL, 'i'},
/* Decode options and launch execution. */
-static const struct option const long_options[] =
+static struct option const long_options[] =
{
{"crown-margin", no_argument, NULL, 'c'},
{"prefix", required_argument, NULL, 'p'},
static char const shortopts[] = "bsw:0::1::2::3::4::5::6::7::8::9::";
-static const struct option const longopts[] =
+static struct option const longopts[] =
{
{"bytes", no_argument, NULL, 'b'},
{"spaces", no_argument, NULL, 's'},
proper_name ("James Youngman")
-static const struct option const longopts[] =
+static struct option const longopts[] =
{
{GETOPT_HELP_OPTION_DECL},
{GETOPT_VERSION_OPTION_DECL},
PRESUME_INPUT_PIPE_OPTION = CHAR_MAX + 1
};
-static const struct option const long_options[] =
+static struct option const long_options[] =
{
{"bytes", required_argument, NULL, 'c'},
{"lines", required_argument, NULL, 'n'},
knows when `context' has not been set to a meaningful value. */
static security_context_t context = NULL;
-static const struct option const longopts[] =
+static struct option const longopts[] =
{
{"context", no_argument, NULL, 'Z'},
{"group", no_argument, NULL, 'g'},
PRESERVE_CONTEXT_OPTION = CHAR_MAX + 1
};
-static const struct option const long_options[] =
+static struct option const long_options[] =
{
{"backup", optional_argument, NULL, 'b'},
{GETOPT_SELINUX_CONTEXT_OPTION_DECL},
};
-static const struct option const longopts[] =
+static struct option const longopts[] =
{
{"ignore-case", no_argument, NULL, 'i'},
{"check-order", no_argument, NULL, CHECK_ORDER_OPTION},
"N::O::P::Q::R::S::T::U::V::W::X::Y::Z::"
"ln:s:t";
-static const struct option const long_options[] =
+static struct option const long_options[] =
{
{"list", no_argument, NULL, 'l'},
{"signal", required_argument, NULL, 's'},
/* Initial size of the dest_set hash table. */
enum { DEST_INFO_INITIAL_CAPACITY = 61 };
-static const struct option const long_options[] =
+static struct option const long_options[] =
{
{"backup", optional_argument, NULL, 'b'},
{"directory", no_argument, NULL, 'F'},
TIME_STYLE_OPTION
};
-static const struct option const long_options[] =
+static struct option const long_options[] =
{
{"all", no_argument, NULL, 'a'},
{"escape", no_argument, NULL, 'b'},
QUIET_OPTION
};
-static const struct option const long_options[] =
+static struct option const long_options[] =
{
{ "binary", no_argument, NULL, 'b' },
{ "check", no_argument, NULL, 'c' },
#define AUTHORS proper_name ("David MacKenzie")
-static const struct option const longopts[] =
+static struct option const longopts[] =
{
{GETOPT_SELINUX_CONTEXT_OPTION_DECL},
{"mode", required_argument, NULL, 'm'},
#define AUTHORS proper_name ("David MacKenzie")
-static const struct option const longopts[] =
+static struct option const longopts[] =
{
{GETOPT_SELINUX_CONTEXT_OPTION_DECL},
{"mode", required_argument, NULL, 'm'},
#define AUTHORS proper_name ("David MacKenzie")
-static const struct option const longopts[] =
+static struct option const longopts[] =
{
{GETOPT_SELINUX_CONTEXT_OPTION_DECL},
{"mode", required_argument, NULL, 'm'},
TMPDIR_OPTION = CHAR_MAX + 1
};
-static const struct option const longopts[] =
+static struct option const longopts[] =
{
{"directory", no_argument, NULL, 'd'},
{"quiet", no_argument, NULL, 'q'},
I_ALWAYS_YES, I_ALWAYS_NO, I_ASK_USER
};
-static const struct option const long_options[] =
+static struct option const long_options[] =
{
{"backup", optional_argument, NULL, 'b'},
{"force", no_argument, NULL, 'f'},
# define NZERO 20
#endif
-static const struct option const longopts[] =
+static struct option const longopts[] =
{
{"adjustment", required_argument, NULL, 'n'},
{NULL, 0, NULL, 0}
/* True if we have ever read standard input. */
static bool have_read_stdin;
-static const struct option const longopts[] =
+static struct option const longopts[] =
{
{"header-numbering", required_argument, NULL, 'h'},
{"body-numbering", required_argument, NULL, 'b'},
TRADITIONAL_OPTION = CHAR_MAX + 1
};
-static const struct option const long_options[] =
+static struct option const long_options[] =
{
{"skip-bytes", required_argument, NULL, 'j'},
{"address-radix", required_argument, NULL, 'A'},
/* A pointer to the character after the end of `delims'. */
static char const *delim_end;
-static const struct option const longopts[] =
+static struct option const longopts[] =
{
{"serial", no_argument, NULL, 's'},
{"delimiters", required_argument, NULL, 'd'},
PORTABILITY_OPTION = CHAR_MAX + 1
};
-static const struct option const longopts[] =
+static struct option const longopts[] =
{
{"portability", no_argument, NULL, PORTABILITY_OPTION},
{GETOPT_HELP_OPTION_DECL},
static char const *time_format;
static int time_format_width;
-static const struct option const longopts[] =
+static struct option const longopts[] =
{
{GETOPT_HELP_OPTION_DECL},
{GETOPT_VERSION_OPTION_DECL},
static char const short_options[] =
"-0123456789D:FJN:S::TW:abcde::fh:i::l:mn::o:rs::tvw:";
-static const struct option const long_options[] =
+static struct option const long_options[] =
{
{"pages", required_argument, NULL, PAGES_OPTION},
{"columns", required_argument, NULL, COLUMNS_OPTION},
`----------------------------------------------------------------------*/
/* Long options equivalences. */
-static const struct option const long_options[] =
+static struct option const long_options[] =
{
{"auto-reference", no_argument, NULL, 'A'},
{"break-file", required_argument, NULL, 'b'},
/* If true, report error messages. */
static bool verbose;
-static const struct option const longopts[] =
+static struct option const longopts[] =
{
{"canonicalize", no_argument, NULL, 'f'},
{"canonicalize-existing", no_argument, NULL, 'e'},
interactive_always /* 2: default, -i or --interactive=always */
};
-static const struct option const long_opts[] =
+static struct option const long_opts[] =
{
{"directory", no_argument, NULL, 'd'},
{"force", no_argument, NULL, 'f'},
IGNORE_FAIL_ON_NON_EMPTY_OPTION = CHAR_MAX + 1
};
-static const struct option const longopts[] =
+static struct option const longopts[] =
{
/* Don't name this `--force' because it's not close enough in meaning
to e.g. rm's -f option. */
#define AUTHORS proper_name ("Russell Coker")
-static const struct option const long_options[] =
+static struct option const long_options[] =
{
{"role", required_argument, NULL, 'r'},
{"type", required_argument, NULL, 't'},
/* FIXME: make this an option. */
static char const terminator[] = "\n";
-static const struct option const long_options[] =
+static struct option const long_options[] =
{
{ "equal-width", no_argument, NULL, 'w'},
{ "format", required_argument, NULL, 'f'},
RANDOM_SOURCE_OPTION = CHAR_MAX + 1
};
-static const struct option const long_opts[] =
+static struct option const long_opts[] =
{
{"exact", no_argument, NULL, 'x'},
{"force", no_argument, NULL, 'f'},
RANDOM_SOURCE_OPTION = CHAR_MAX + 1
};
-static const struct option const long_opts[] =
+static struct option const long_opts[] =
{
{"echo", no_argument, NULL, 'e'},
{"input-range", required_argument, NULL, 'i'},
static char const short_options[] = "-bcCdfgik:mMno:rRsS:t:T:uy:z";
-static const struct option const long_options[] =
+static struct option const long_options[] =
{
{"ignore-leading-blanks", no_argument, NULL, 'b'},
{"check", optional_argument, NULL, CHECK_OPTION},
VERBOSE_OPTION = CHAR_MAX + 1
};
-static const struct option const longopts[] =
+static struct option const longopts[] =
{
{"bytes", required_argument, NULL, 'b'},
{"lines", required_argument, NULL, 'l'},
PRINTF_OPTION = CHAR_MAX + 1
};
-static const struct option const long_options[] =
+static struct option const long_options[] =
{
{"context", no_argument, 0, 'Z'},
{"dereference", no_argument, NULL, 'L'},
unsigned long mask; /* Other bits to turn off for this mode. */
};
-static const struct mode_info const mode_info[] =
+static struct mode_info const mode_info[] =
{
{"parenb", control, REV, PARENB, 0},
{"parodd", control, REV, PARODD, 0},
/* Control characters. */
-static const struct control_info const control_info[] =
+static struct control_info const control_info[] =
{
{"intr", CINTR, VINTR},
{"quit", CQUIT, VQUIT},
/* Current position, to know when to wrap. */
static int current_col;
-static const struct option const longopts[] =
+static struct option const longopts[] =
{
{"all", no_argument, NULL, 'a'},
{"save", no_argument, NULL, 'g'},
unsigned long int value; /* Numeric value. */
};
-static const struct speed_map const speeds[] =
+static struct speed_map const speeds[] =
{
{"0", B0, 0},
{"50", B50, 50},
/* If true, change some environment vars to indicate the user su'd to. */
static bool change_environment;
-static const struct option const longopts[] =
+static struct option const longopts[] =
{
{"command", required_argument, NULL, 'c'},
{"fast", no_argument, NULL, 'f'},
/* True if any of the files read were the standard input. */
static bool have_read_stdin;
-static const struct option const longopts[] =
+static struct option const longopts[] =
{
{"sysv", no_argument, NULL, 's'},
{GETOPT_HELP_OPTION_DECL},
static char compiled_separator_fastmap[UCHAR_MAX + 1];
static struct re_registers regs;
-static const struct option const longopts[] =
+static struct option const longopts[] =
{
{"before", no_argument, NULL, 'b'},
{"regex", no_argument, NULL, 'r'},
LONG_FOLLOW_OPTION
};
-static const struct option const long_options[] =
+static struct option const long_options[] =
{
{"bytes", required_argument, NULL, 'c'},
{"follow", optional_argument, NULL, LONG_FOLLOW_OPTION},
/* If true, ignore interrupts. */
static bool ignore_interrupts;
-static const struct option const long_options[] =
+static struct option const long_options[] =
{
{"append", no_argument, NULL, 'a'},
{"ignore-interrupts", no_argument, NULL, 'i'},
static int monitored_pid;
static int sigs_to_ignore[NSIG]; /* so monitor can ignore sigs it resends. */
-static const struct option const long_options[] =
+static struct option const long_options[] =
{
{"signal", required_argument, NULL, 's'},
{NULL, 0, NULL, 0}
TIME_OPTION = CHAR_MAX + 1
};
-static const struct option const longopts[] =
+static struct option const longopts[] =
{
{"time", required_argument, NULL, TIME_OPTION},
{"no-create", no_argument, NULL, 'c'},
two specification strings and the delete switch is not given. */
static char xlate[N_CHARS];
-static const struct option const long_options[] =
+static struct option const long_options[] =
{
{"complement", no_argument, NULL, 'c'},
{"delete", no_argument, NULL, 'd'},
/* (-r) Reference file to use size from */
static char const *ref_file;
-static const struct option const longopts[] =
+static struct option const longopts[] =
{
{"no-create", no_argument, NULL, 'c'},
{"io-blocks", no_argument, NULL, 'o'},
/* If true, return an exit status but produce no output. */
static bool silent;
-static const struct option const longopts[] =
+static struct option const longopts[] =
{
{"silent", no_argument, NULL, 's'},
{"quiet", no_argument, NULL, 's'},
/* Operating system. */
#define PRINT_OPERATING_SYSTEM 128
-static const struct option const uname_long_options[] =
+static struct option const uname_long_options[] =
{
{"all", no_argument, NULL, 'a'},
{"kernel-name", no_argument, NULL, 's'},
{NULL, 0, NULL, 0}
};
-static const struct option const arch_long_options[] =
+static struct option const arch_long_options[] =
{
{GETOPT_HELP_OPTION_DECL},
{GETOPT_VERSION_OPTION_DECL},
CONVERT_FIRST_ONLY_OPTION = CHAR_MAX + 1
};
-static const struct option const longopts[] =
+static struct option const longopts[] =
{
{"tabs", required_argument, NULL, 't'},
{"all", no_argument, NULL, 'a'},
/* Select whether/how to delimit groups of duplicate lines. */
static enum delimit_method delimit_groups;
-static const struct option const longopts[] =
+static struct option const longopts[] =
{
{"count", no_argument, NULL, 'c'},
{"repeated", no_argument, NULL, 'd'},
FILES0_FROM_OPTION = CHAR_MAX + 1
};
-static const struct option const longopts[] =
+static struct option const longopts[] =
{
{"bytes", no_argument, NULL, 'c'},
{"chars", no_argument, NULL, 'm'},
LOOKUP_OPTION = CHAR_MAX + 1
};
-static const struct option const longopts[] =
+static struct option const longopts[] =
{
{"all", no_argument, NULL, 'a'},
{"boot", no_argument, NULL, 'b'},