1
0
mirror of https://git.savannah.gnu.org/git/coreutils.git synced 2026-10-28 15:15:08 +03:00

declare program_name consistently

* src/base64.c: Likewise.
* src/basename.c: Likewise.
* src/cat.c: Likewise.
* src/chcon.c: Likewise.
* src/chgrp.c: Likewise.
* src/chmod.c: Likewise.
* src/chown.c: Likewise.
* src/chroot.c: Likewise.
* src/cksum.c: Likewise.
* src/comm.c: Likewise.
* src/cp.c: Likewise.
* src/csplit.c: Likewise.
* src/cut.c: Likewise.
* src/date.c: Likewise.
* src/dd.c: Likewise.
* src/df.c: Likewise.
* src/dircolors.c: Likewise.
* src/dirname.c: Likewise.
* src/du.c: Likewise.
* src/echo.c: Likewise.
* src/env.c: Likewise.
* src/expand.c: Likewise.
* src/expr.c: Likewise.
* src/factor.c: Likewise.
* src/fmt.c: Likewise.
* src/fold.c: Likewise.
* src/groups.c: Likewise.
* src/head.c: Likewise.
* src/hostid.c: Likewise.
* src/hostname.c: Likewise.
* src/id.c: Likewise.
* src/install.c: Likewise.
* src/join.c: Likewise.
* src/kill.c: Likewise.
* src/link.c: Likewise.
* src/ln.c: Likewise.
* src/logname.c: Likewise.
* src/ls.c: Likewise.
* src/md5sum.c: Likewise.
* src/mkdir.c: Likewise.
* src/mkfifo.c: Likewise.
* src/mknod.c: Likewise.
* src/mktemp.c: Likewise.
* src/mv.c: Likewise.
* src/nice.c: Likewise.
* src/nl.c: Likewise.
* src/nohup.c: Likewise.
* src/od.c: Likewise.
* src/paste.c: Likewise.
* src/pathchk.c: Likewise.
* src/pinky.c: Likewise.
* src/pr.c: Likewise.
* src/printenv.c: Likewise.
* src/printf.c: Likewise.
* src/ptx.c: Likewise.
* src/pwd.c: Likewise.
* src/readlink.c: Likewise.
* src/rm.c: Likewise.
* src/rmdir.c: Likewise.
* src/runcon.c: Likewise.
* src/seq.c: Likewise.
* src/setuidgid.c: Likewise.
* src/shuf.c: Likewise.
* src/sleep.c: Likewise.
* src/sort.c: Likewise.
* src/split.c: Likewise.
* src/stat.c: Likewise.
* src/stty.c: Likewise.
* src/su.c: Likewise.
* src/sum.c: Likewise.
* src/sync.c: Likewise.
* src/tac.c: Likewise.
* src/tail.c: Likewise.
* src/tee.c: Likewise.
* src/test.c: Likewise.
* src/timeout.c: Likewise.
* src/touch.c: Likewise.
* src/tr.c: Likewise.
* src/true.c: Likewise.
* src/tsort.c: Likewise.
* src/tty.c: Likewise.
* src/uname.c: Likewise.
* src/unexpand.c: Likewise.
* src/uniq.c: Likewise.
* src/unlink.c: Likewise.
* src/uptime.c: Likewise.
* src/users.c: Likewise.
* src/wc.c: Likewise.
* src/who.c: Likewise.
* src/whoami.c: Likewise.
* src/yes.c: Likewise.
This commit is contained in:
Jim Meyering
2008-06-02 17:47:32 +02:00
parent eebe731014
commit 434258ca73
91 changed files with 91 additions and 91 deletions

View File

@@ -38,7 +38,7 @@
#define AUTHORS proper_name ("Simon Josefsson")
/* The invocation name of this program. */
char *program_name;
char const *program_name;
static const struct option long_options[] = {
{"decode", no_argument, 0, 'd'},

View File

@@ -40,7 +40,7 @@
#define AUTHORS proper_name ("FIXME unknown")
/* The name this program was run with. */
char *program_name;
char const *program_name;
void
usage (int status)

View File

@@ -52,7 +52,7 @@
#define max(h,i) ((h) > (i) ? (h) : (i))
/* Name under which this program was invoked. */
char *program_name;
char const *program_name;
/* Name of input file. May be "-". */
static char const *infile;

View File

@@ -56,7 +56,7 @@ enum Verbosity
};
/* The name the program was run with. */
char *program_name;
char const *program_name;
/* If nonzero, and the systems has support for it, change the context
of symbolic links rather than any files they point to. */

View File

@@ -43,7 +43,7 @@
#endif
/* The name the program was run with. */
char *program_name;
char const *program_name;
/* The argument to the --reference option. Use the group ID of this file.
This file must exist. */

View File

@@ -59,7 +59,7 @@ enum Verbosity
};
/* The name the program was run with. */
char *program_name;
char const *program_name;
/* The desired change to the mode. */
static struct mode_change *change;

View File

@@ -48,7 +48,7 @@
proper_name ("Jim Meyering")
/* The name the program was run with. */
char *program_name;
char const *program_name;
/* The argument to the --reference option. Use the owner and group IDs
of this file. This file must exist. */

View File

@@ -33,7 +33,7 @@
#define AUTHORS proper_name ("Roland McGrath")
/* The name this program was run with, for error messages. */
char *program_name;
char const *program_name;
void
usage (int status)

View File

@@ -114,7 +114,7 @@ main (void)
# define BUFLEN (1 << 16)
/* The name this program was run with. */
char *program_name;
char const *program_name;
static uint_fast32_t const crctab[256] =
{

View File

@@ -40,7 +40,7 @@
#define min(x, y) ((x) < (y) ? (x) : (y))
/* The name this program was run with. */
char *program_name;
char const *program_name;
/* True if the LC_COLLATE locale is hard. */
static bool hard_LC_COLLATE;

View File

@@ -89,7 +89,7 @@ enum
#define INITIAL_ENTRY_TAB_SIZE 70
/* The invocation name of this program. */
char *program_name;
char const *program_name;
/* True if the kernel is SELinux enabled. */
static bool selinux_enabled;

View File

@@ -129,7 +129,7 @@ static void save_line_to_file (const struct cstring *line);
void usage (int status);
/* The name this program was run with. */
char *program_name;
char const *program_name;
/* Start of buffer list. */
static struct buffer_record *head = NULL;

View File

@@ -121,7 +121,7 @@ enum operating_mode
};
/* The name this program was run with. */
char *program_name;
char const *program_name;
static enum operating_mode operating_mode;

View File

@@ -78,7 +78,7 @@ ARGMATCH_VERIFY (time_spec_string, time_spec);
static char const rfc_2822_format[] = "%a, %d %b %Y %H:%M:%S %z";
/* The name this program was run with, for error messages. */
char *program_name;
char const *program_name;
/* For long options that have no equivalent short option, use a
non-character as a pseudo short option, starting with CHAR_MAX + 1. */

View File

@@ -129,7 +129,7 @@ enum
};
/* The name this program was run with. */
char *program_name;
char const *program_name;
/* The name of the input file, or NULL for the standard input. */
static char const *input_file = NULL;

View File

@@ -43,7 +43,7 @@
proper_name ("Paul Eggert")
/* Name this program was run with. */
char *program_name;
char const *program_name;
/* If true, show inode information. */
static bool inode_format;

View File

@@ -87,7 +87,7 @@ static struct option const long_options[] =
{NULL, 0, NULL, 0}
};
char *program_name;
char const *program_name;
void
usage (int status)

View File

@@ -36,7 +36,7 @@
proper_name ("Jim Meyering")
/* The name this program was run with. */
char *program_name;
char const *program_name;
void
usage (int status)

View File

@@ -127,7 +127,7 @@ struct dulevel
};
/* Name under which this program was invoked. */
char *program_name;
char const *program_name;
/* If true, display counts for all files, not just directories. */
static bool opt_all = false;

View File

@@ -51,7 +51,7 @@ enum { DEFAULT_ECHO_TO_XPG = false };
#endif
/* The name this program was run with. */
char *program_name;
char const *program_name;
void
usage (int status)

View File

@@ -97,7 +97,7 @@ int putenv ();
extern char **environ;
/* The name by which this program was run. */
char *program_name;
char const *program_name;
static struct option const longopts[] =
{

View File

@@ -52,7 +52,7 @@
#define OUTPUT_BLOCK 256
/* The name this program was run with. */
char *program_name;
char const *program_name;
/* If true, convert blanks even after nonblank characters have been
read on the line. */

View File

@@ -82,7 +82,7 @@ typedef struct valinfo VALUE;
static char **args;
/* The name this program was run with. */
char *program_name;
char const *program_name;
static VALUE *eval (bool);
static bool nomoreargs (void);

View File

@@ -60,7 +60,7 @@ static const unsigned char wheel_tab[] =
#define WHEEL_END (wheel_tab + (sizeof wheel_tab / sizeof wheel_tab[0]))
/* The name this program was run with. */
char *program_name;
char const *program_name;
void
usage (int status)

View File

@@ -168,7 +168,7 @@ static void put_word (WORD *w);
static void put_space (int space);
/* The name this program was run with. */
const char *program_name;
char const *program_name;
/* Option values. */

View File

@@ -35,7 +35,7 @@
#define AUTHORS proper_name ("David MacKenzie")
/* The name this program was run with. */
char *program_name;
char const *program_name;
/* If nonzero, try to break on whitespace. */
static bool break_spaces;

View File

@@ -30,7 +30,7 @@
#include "group-list.h"
/* The name this program was run with. */
char *program_name;
char const *program_name;
/* The official name of this program (e.g., no `g' prefix). */
#define PROGRAM_NAME "groups"

View File

@@ -65,7 +65,7 @@ enum header_mode
};
/* The name this program was run with. */
char *program_name;
char const *program_name;
/* Have we ever read standard input? */
static bool have_read_stdin;

View File

@@ -34,7 +34,7 @@
#define AUTHORS proper_name ("Jim Meyering")
/* The name this program was run with, for error messages. */
char *program_name;
char const *program_name;
void
usage (int status)

View File

@@ -51,7 +51,7 @@ sethostname (char *name, size_t namelen)
#endif
/* The name this program was run with. */
char *program_name;
char const *program_name;
void
usage (int status)

View File

@@ -45,7 +45,7 @@ static void print_user (uid_t uid);
static void print_full_info (const char *username);
/* The name this program was run with. */
char *program_name;
char const *program_name;
/* If true, output user/group name instead of ID number. -n */
static bool use_name = false;

View File

@@ -93,7 +93,7 @@ static int make_ancestor (char const *dir, char const *component,
void usage (int status);
/* The name this program was run with, for error messages. */
char *program_name;
char const *program_name;
/* The user name that will own the files, or NULL to make the owner
the current user ID. */

View File

@@ -80,7 +80,7 @@ struct seq
};
/* The name this program was run with. */
char *program_name;
char const *program_name;
/* The previous line read from each file. */
static struct line *prevline[2];

View File

@@ -61,7 +61,7 @@
#endif
/* The name this program was run with, for error messages. */
char *program_name;
char const *program_name;
static char const short_options[] =
"0::1::2::3::4::5::6::7::8::9::"

View File

@@ -36,7 +36,7 @@
#define AUTHORS proper_name ("Michael Stone")
/* Name this program was run with. */
char *program_name;
char const *program_name;
void
usage (int status)

View File

@@ -58,7 +58,7 @@
#endif
/* The name by which the program was run, for error messages. */
char *program_name;
char const *program_name;
/* FIXME: document */
static enum backup_type backup_type;

View File

@@ -30,7 +30,7 @@
#define AUTHORS proper_name ("FIXME: unknown")
/* The name this program was run with. */
char *program_name;
char const *program_name;
void
usage (int status)

View File

@@ -245,7 +245,7 @@ static void parse_ls_color (void);
void usage (int status);
/* The name this program was run with. */
char *program_name;
char const *program_name;
/* Initial size of hash table.
Most hierarchies are likely to be shallower than this. */

View File

@@ -121,7 +121,7 @@ static bool warn = false;
static bool quiet = false;
/* The name this program was run with. */
char *program_name;
char const *program_name;
/* For long options that have no equivalent short option, use a
non-character as a pseudo short option, starting with CHAR_MAX + 1. */

View File

@@ -37,7 +37,7 @@
#define AUTHORS proper_name ("David MacKenzie")
/* The name this program was run with. */
char *program_name;
char const *program_name;
static struct option const longopts[] =
{

View File

@@ -33,7 +33,7 @@
#define AUTHORS proper_name ("David MacKenzie")
/* The name this program was run with. */
char *program_name;
char const *program_name;
static struct option const longopts[] =
{

View File

@@ -34,7 +34,7 @@
#define AUTHORS proper_name ("David MacKenzie")
/* The name this program was run with. */
char *program_name;
char const *program_name;
static struct option const longopts[] =
{

View File

@@ -36,7 +36,7 @@
static const char *default_template = "tmp.XXXXXXXXXX";
/* The name this program was run with. */
char *program_name;
char const *program_name;
/* For long options that have no equivalent short option, use a
non-character as a pseudo short option, starting with CHAR_MAX + 1. */

View File

@@ -57,7 +57,7 @@ enum
};
/* The name this program was run with. */
char *program_name;
char const *program_name;
/* Remove any trailing slashes from each SOURCE argument. */
static bool remove_trailing_slashes;

View File

@@ -56,7 +56,7 @@
#endif
/* The name this program was run with. */
char *program_name;
char const *program_name;
static struct option const longopts[] =
{

View File

@@ -62,7 +62,7 @@ enum section
};
/* The name this program was run with. */
char *program_name;
char const *program_name;
/* Format of body lines (-b). */
static char const *body_type = "t";

View File

@@ -43,7 +43,7 @@ enum
NOHUP_FAILURE = 127
};
char *program_name;
char const *program_name;
void
usage (int status)

View File

@@ -114,7 +114,7 @@ struct tspec
};
/* The name this program was run with. */
char *program_name;
char const *program_name;
/* Convert the number of 8-bit bytes of a binary representation to
the number of characters (digits + sign if the type is signed)

View File

@@ -55,7 +55,7 @@
#define EMPTY_DELIM '\0'
/* Name this program was run with. */
char *program_name;
char const *program_name;
/* If nonzero, we have read standard input at some point. */
static bool have_read_stdin;

View File

@@ -72,7 +72,7 @@
static bool validate_file_name (char *, bool, bool);
/* The name this program was run with. */
char *program_name;
char const *program_name;
/* For long options that have no equivalent short option, use a
non-character as a pseudo short option, starting with CHAR_MAX + 1. */

View File

@@ -45,7 +45,7 @@
char *ttyname ();
/* The name this program was run with. */
const char *program_name;
char const *program_name;
/* If true, display the hours:minutes since each user has touched
the keyboard, or blank if within the last minute, or days followed

View File

@@ -446,7 +446,7 @@ static void print_sep_string (void);
static void separator_string (const char *optarg_S);
/* The name under which this program was invoked. */
char *program_name;
char const *program_name;
/* All of the columns to print. */
static COLUMN *column_vector;

View File

@@ -46,7 +46,7 @@ enum { PRINTENV_FAILURE = 2 };
proper_name ("Richard Mlynarik")
/* The name this program was run with. */
char *program_name;
char const *program_name;
extern char **environ;

View File

@@ -79,7 +79,7 @@ static char const *const cfcc_msg =
N_("warning: %s: character(s) following character constant have been ignored");
/* The name this program was run with. */
char *program_name;
char const *program_name;
void
usage (int status)

View File

@@ -69,7 +69,7 @@
#define Sword 1
/* The name this program was run with. */
char *program_name;
char const *program_name;
/* Program options. */

View File

@@ -40,7 +40,7 @@ struct file_name
};
/* The name this program was run with. */
char *program_name;
char const *program_name;
void
usage (int status)

View File

@@ -33,7 +33,7 @@
#define AUTHORS proper_name ("Dmitry V. Levin")
/* Name this program was run with. */
char *program_name;
char const *program_name;
/* If true, do not output the trailing newline. */
static bool no_newline;

View File

@@ -67,7 +67,7 @@
proper_name ("Jim Meyering")
/* Name this program was run with. */
char *program_name;
char const *program_name;
/* For long options that have no equivalent short option, use a
non-character as a pseudo short option, starting with CHAR_MAX + 1. */

View File

@@ -39,7 +39,7 @@
#define AUTHORS proper_name ("David MacKenzie")
/* The name this program was run with. */
char *program_name;
char const *program_name;
/* If true, remove empty parent directories. */
static bool remove_empty_parents;

View File

@@ -73,7 +73,7 @@ static struct option long_options[] = {
};
/* The name the program was run with. */
char *program_name;
char const *program_name;
void
usage (int status)

View File

@@ -44,7 +44,7 @@
static bool equal_width;
/* The name that this program was run with. */
char *program_name;
char const *program_name;
/* The string used to separate two numbers. */
static char const *separator;

View File

@@ -39,7 +39,7 @@
#define SETUIDGID_FAILURE 111
char *program_name;
char const *program_name;
void
usage (int status)

View File

@@ -37,7 +37,7 @@
#define AUTHORS proper_name ("Paul Eggert")
/* The name this program was run with. */
char *program_name;
char const *program_name;
void
usage (int status)

View File

@@ -36,7 +36,7 @@
proper_name ("Paul Eggert")
/* The name by which this program was run. */
char *program_name;
char const *program_name;
void
usage (int status)

View File

@@ -184,7 +184,7 @@ struct month
};
/* The name this program was run with. */
char *program_name;
char const *program_name;
/* FIXME: None of these tables work with multibyte character sets.
Also, there are many other bugs when handling multibyte characters.

View File

@@ -47,7 +47,7 @@
#define DEFAULT_SUFFIX_LENGTH 2
/* The name this program was run with. */
char *program_name;
char const *program_name;
/* Base name of output files. */
static char const *outbase;

View File

@@ -173,7 +173,7 @@ static struct option const long_options[] = {
{NULL, 0, NULL, 0}
};
char *program_name;
char const *program_name;
/* Whether to follow symbolic links; True for --dereference (-L). */
static bool follow_links;

View File

@@ -456,7 +456,7 @@ static struct option longopts[] =
};
/* The name this program was run with. */
char *program_name;
char const *program_name;
static void wrapf (const char *message, ...)
__attribute__ ((__format__ (__printf__, 1, 2)));

View File

@@ -129,7 +129,7 @@ static void run_shell (char const *, char const *, char **, size_t)
ATTRIBUTE_NORETURN;
/* The name this program was run with. */
char *program_name;
char const *program_name;
/* If true, pass the `-f' option to the subshell. */
static bool fast_startup;

View File

@@ -37,7 +37,7 @@
proper_name ("David MacKenzie")
/* The name this program was run with. */
char *program_name;
char const *program_name;
/* True if any of the files read were the standard input. */
static bool have_read_stdin;

View File

@@ -31,7 +31,7 @@
#define AUTHORS proper_name ("Jim Meyering")
/* The name this program was run with. */
char *program_name;
char const *program_name;
void
usage (int status)

View File

@@ -76,7 +76,7 @@ tac -r -s '.\|
#define WRITESIZE 8192
/* The name this program was run with. */
char *program_name;
char const *program_name;
/* The string that separates the records of the file. */
static char const *separator;

View File

@@ -163,7 +163,7 @@ static uintmax_t max_n_unchanged_stats_between_opens =
DEFAULT_MAX_N_UNCHANGED_STATS_BETWEEN_OPENS;
/* The name this program was run with. */
char *program_name;
char const *program_name;
/* The process ID of the process (presumably on the current host)
that is writing to all followed files. */

View File

@@ -42,7 +42,7 @@ static bool append;
static bool ignore_interrupts;
/* The name that this program was run with. */
char *program_name;
char const *program_name;
static struct option const long_options[] =
{

View File

@@ -48,7 +48,7 @@
# include <sys/param.h>
#endif
char *program_name;
char const *program_name;
/* Exit status for syntax errors, etc. */
enum { TEST_TRUE, TEST_FALSE, TEST_FAILURE };

View File

@@ -83,7 +83,7 @@ static int term_signal = SIGTERM; /* same default as kill command. */
static int monitored_pid;
static int sigs_to_ignore[NSIG]; /* so monitor can ignore sigs it resends. */
char *program_name;
char const *program_name;
static struct option const long_options[] = {
{"signal", required_argument, NULL, 's'},

View File

@@ -49,7 +49,7 @@
#define CH_MTIME 2
/* The name by which this program was run. */
char *program_name;
char const *program_name;
/* Which timestamps to change. */
static int change_times;

View File

@@ -194,7 +194,7 @@ es_match (struct E_string const *es, size_t i, char c)
}
/* The name by which this program was run. */
char *program_name;
char const *program_name;
/* When true, each sequence in the input of a repeated character
(call it c) is replaced (in the output) by a single occurrence of c

View File

@@ -33,7 +33,7 @@
#define AUTHORS proper_name ("Jim Meyering")
/* The name this program was run with. */
char *program_name;
char const *program_name;
void
usage (int status)

View File

@@ -60,7 +60,7 @@ struct item
};
/* The name this program was run with. */
char *program_name;
char const *program_name;
/* The head of the sorted list. */
static struct item *head = NULL;

View File

@@ -43,7 +43,7 @@ enum
#define AUTHORS proper_name ("David MacKenzie")
/* The name under which this program was run. */
char *program_name;
char const *program_name;
/* If true, return an exit status but produce no output. */
static bool silent;

View File

@@ -87,7 +87,7 @@
#define PRINT_OPERATING_SYSTEM 128
/* The name this program was run with, for error messages. */
char *program_name;
char const *program_name;
static struct option const uname_long_options[] =
{

View File

@@ -53,7 +53,7 @@
#define OUTPUT_BLOCK 256
/* The name this program was run with. */
char *program_name;
char const *program_name;
/* If true, convert blanks even after nonblank characters have been
read on the line. */

View File

@@ -51,7 +51,7 @@
while (0)
/* The name this program was run with. */
char *program_name;
char const *program_name;
/* True if the LC_COLLATE locale is hard. */
static bool hard_LC_COLLATE;

View File

@@ -36,7 +36,7 @@
#define AUTHORS proper_name ("Michael Stone")
/* Name this program was run with. */
char *program_name;
char const *program_name;
void
usage (int status)

View File

@@ -48,7 +48,7 @@
int getloadavg ();
/* The name this program was run with. */
char *program_name;
char const *program_name;
static void
print_uptime (size_t n, const STRUCT_UTMP *this)

View File

@@ -36,7 +36,7 @@
proper_name ("David MacKenzie")
/* The name this program was run with. */
char *program_name;
char const *program_name;
static int
userid_compare (const void *v_a, const void *v_b)

View File

@@ -50,7 +50,7 @@
#define BUFFER_SIZE (16 * 1024)
/* The name this program was run with. */
char *program_name;
char const *program_name;
/* Cumulative number of lines, words, chars and bytes in all files so far.
max_line_length is the maximum over all files processed so far. */

View File

@@ -99,7 +99,7 @@
char *ttyname ();
/* The name this program was run with. */
char *program_name;
char const *program_name;
/* If true, attempt to canonicalize hostnames via a DNS lookup. */
static bool do_lookup;

View File

@@ -36,7 +36,7 @@
#define AUTHORS proper_name ("Richard Mlynarik")
/* The name this program was run with. */
char *program_name;
char const *program_name;
void
usage (int status)

View File

@@ -32,7 +32,7 @@
#define AUTHORS proper_name ("David MacKenzie")
/* The name this program was run with. */
char *program_name;
char const *program_name;
void
usage (int status)