diff options
author | Jim Meyering <jim@meyering.net> | 1999-04-03 05:01:48 +0000 |
---|---|---|
committer | Jim Meyering <jim@meyering.net> | 1999-04-03 05:01:48 +0000 |
commit | 7c2d5de6c7a61c075fe3fe8012301966c8dfb7b9 (patch) | |
tree | 63cd3274c8e45f123d16619f8e539b216bb477de | |
parent | db6ce0481b41d5c956d190fd3f57cddba4fb2bb3 (diff) | |
download | coreutils-7c2d5de6c7a61c075fe3fe8012301966c8dfb7b9.tar.gz coreutils-7c2d5de6c7a61c075fe3fe8012301966c8dfb7b9.tar.bz2 coreutils-7c2d5de6c7a61c075fe3fe8012301966c8dfb7b9.zip |
define PROGRAM_NAME
-rw-r--r-- | src/cat.c | 3 | ||||
-rw-r--r-- | src/cksum.c | 3 | ||||
-rw-r--r-- | src/comm.c | 3 | ||||
-rw-r--r-- | src/csplit.c | 3 | ||||
-rw-r--r-- | src/cut.c | 3 | ||||
-rw-r--r-- | src/expand.c | 3 | ||||
-rw-r--r-- | src/fmt.c | 3 | ||||
-rw-r--r-- | src/fold.c | 3 | ||||
-rw-r--r-- | src/head.c | 3 | ||||
-rw-r--r-- | src/join.c | 3 | ||||
-rw-r--r-- | src/md5sum.c | 3 | ||||
-rw-r--r-- | src/nl.c | 3 | ||||
-rw-r--r-- | src/od.c | 3 | ||||
-rw-r--r-- | src/paste.c | 3 | ||||
-rw-r--r-- | src/pr.c | 3 | ||||
-rw-r--r-- | src/ptx.c | 3 | ||||
-rw-r--r-- | src/sort.c | 3 | ||||
-rw-r--r-- | src/split.c | 3 | ||||
-rw-r--r-- | src/sum.c | 3 | ||||
-rw-r--r-- | src/tac.c | 3 | ||||
-rw-r--r-- | src/tail.c | 3 | ||||
-rw-r--r-- | src/tr.c | 3 | ||||
-rw-r--r-- | src/tsort.c | 3 | ||||
-rw-r--r-- | src/unexpand.c | 3 | ||||
-rw-r--r-- | src/uniq.c | 3 | ||||
-rw-r--r-- | src/wc.c | 3 |
26 files changed, 78 insertions, 0 deletions
@@ -35,6 +35,9 @@ #include "long-options.h" #include "safe-read.h" +/* The official name of this program (e.g., no `g' prefix). */ +#define PROGRAM_NAME "cat" + /* Undefine, to avoid warning about redefinition on some systems. */ #undef max #define max(h,i) ((h) > (i) ? (h) : (i)) diff --git a/src/cksum.c b/src/cksum.c index 6d67585d9..2f3cf38c8 100644 --- a/src/cksum.c +++ b/src/cksum.c @@ -42,6 +42,9 @@ #include <config.h> +/* The official name of this program (e.g., no `g' prefix). */ +#define PROGRAM_NAME "cksum" + #ifdef CRCTAB # include <stdio.h> diff --git a/src/comm.c b/src/comm.c index a31e0a9b0..774aee07f 100644 --- a/src/comm.c +++ b/src/comm.c @@ -27,6 +27,9 @@ #include "long-options.h" #include "error.h" +/* The official name of this program (e.g., no `g' prefix). */ +#define PROGRAM_NAME "comm" + /* Undefine, to avoid warning about redefinition on some systems. */ #undef min #define min(x, y) ((x) < (y) ? (x) : (y)) diff --git a/src/csplit.c b/src/csplit.c index c52d90f20..b993ecd37 100644 --- a/src/csplit.c +++ b/src/csplit.c @@ -36,6 +36,9 @@ #include "xstrtoul.h" #include "xalloc.h" +/* The official name of this program (e.g., no `g' prefix). */ +#define PROGRAM_NAME "csplit" + #ifdef STDC_HEADERS # include <stdlib.h> #endif @@ -69,6 +69,9 @@ #include "long-options.h" #include "error.h" +/* The official name of this program (e.g., no `g' prefix). */ +#define PROGRAM_NAME "cut" + char *xstrdup (); #define FATAL_ERROR(Message) \ diff --git a/src/expand.c b/src/expand.c index b0fe973fc..b1c448ea9 100644 --- a/src/expand.c +++ b/src/expand.c @@ -42,6 +42,9 @@ #include "error.h" #include "long-options.h" +/* The official name of this program (e.g., no `g' prefix). */ +#define PROGRAM_NAME "expand" + /* The number of bytes added at a time to the amount of memory allocated for the output line. */ #define OUTPUT_BLOCK 256 @@ -31,6 +31,9 @@ #include "long-options.h" #include "xstrtol.h" +/* The official name of this program (e.g., no `g' prefix). */ +#define PROGRAM_NAME "fmt" + /* The following parameters represent the program's idea of what is "best". Adjust to taste, subject to the caveats given. */ diff --git a/src/fold.c b/src/fold.c index aaa42afcb..a3c387ec9 100644 --- a/src/fold.c +++ b/src/fold.c @@ -28,6 +28,9 @@ #include "long-options.h" #include "xstrtol.h" +/* The official name of this program (e.g., no `g' prefix). */ +#define PROGRAM_NAME "fold" + /* The name this program was run with. */ char *program_name; diff --git a/src/head.c b/src/head.c index 8a4fdbe99..ad03cdd4a 100644 --- a/src/head.c +++ b/src/head.c @@ -35,6 +35,9 @@ #include "xstrtoul.h" #include "safe-read.h" +/* The official name of this program (e.g., no `g' prefix). */ +#define PROGRAM_NAME "head" + /* FIXME: someday, make this really *be* `long long'. */ typedef long int U_LONG_LONG; diff --git a/src/join.c b/src/join.c index 087899c5f..e74bbab67 100644 --- a/src/join.c +++ b/src/join.c @@ -36,6 +36,9 @@ #include "error.h" #include "memcasecmp.h" +/* The official name of this program (e.g., no `g' prefix). */ +#define PROGRAM_NAME "join" + #define join system_join /* Undefine, to avoid warning about redefinition on some systems. */ diff --git a/src/md5sum.c b/src/md5sum.c index c49a48040..c0973fb00 100644 --- a/src/md5sum.c +++ b/src/md5sum.c @@ -32,6 +32,9 @@ #include "system.h" #include "error.h" +/* The official name of this program (e.g., no `g' prefix). */ +#define PROGRAM_NAME "md5sum" + /* Most systems do not distinguish between external and internal text representations. */ /* FIXME: This begs for an autoconf test. */ @@ -33,6 +33,9 @@ #include "long-options.h" #include "xstrtol.h" +/* The official name of this program (e.g., no `g' prefix). */ +#define PROGRAM_NAME "nl" + #ifndef TRUE # define TRUE 1 # define FALSE 0 @@ -28,6 +28,9 @@ #include "long-options.h" #include "xstrtoul.h" +/* The official name of this program (e.g., no `g' prefix). */ +#define PROGRAM_NAME "od" + #if defined(__GNUC__) || defined(STDC_HEADERS) # include <float.h> #endif diff --git a/src/paste.c b/src/paste.c index f5a3f8d6e..bdf31ccde 100644 --- a/src/paste.c +++ b/src/paste.c @@ -47,6 +47,9 @@ #include "error.h" #include "long-options.h" +/* The official name of this program (e.g., no `g' prefix). */ +#define PROGRAM_NAME "paste" + /* Indicates that no delimiter should be added in the current position. */ #define EMPTY_DELIM '\0' @@ -305,6 +305,9 @@ #include "long-options.h" #include "xstrtol.h" +/* The official name of this program (e.g., no `g' prefix). */ +#define PROGRAM_NAME "pr" + #ifndef TRUE # define TRUE 1 # define FALSE 0 @@ -31,6 +31,9 @@ #include "long-options.h" #include "regex.h" +/* The official name of this program (e.g., no `g' prefix). */ +#define PROGRAM_NAME "ptx" + /* Number of possible characters in a byte. */ #define CHAR_SET_SIZE 256 diff --git a/src/sort.c b/src/sort.c index ee0514b76..20c05e152 100644 --- a/src/sort.c +++ b/src/sort.c @@ -33,6 +33,9 @@ #include "xstrtod.h" #include "xalloc.h" +/* The official name of this program (e.g., no `g' prefix). */ +#define PROGRAM_NAME "sort" + #if defined ENABLE_NLS && HAVE_LANGINFO_H # include <langinfo.h> #endif diff --git a/src/split.c b/src/split.c index 10bcd1770..9a0407c51 100644 --- a/src/split.c +++ b/src/split.c @@ -33,6 +33,9 @@ #include "safe-read.h" #include "xstrtol.h" +/* The official name of this program (e.g., no `g' prefix). */ +#define PROGRAM_NAME "split" + int full_write (); /* The name this program was run with. */ @@ -29,6 +29,9 @@ #include "long-options.h" #include "safe-read.h" +/* The official name of this program (e.g., no `g' prefix). */ +#define PROGRAM_NAME "sum" + /* The name this program was run with. */ char *program_name; @@ -48,6 +48,9 @@ tac -r -s '.\| #include "long-options.h" #include "safe-read.h" +/* The official name of this program (e.g., no `g' prefix). */ +#define PROGRAM_NAME "tac" + #if defined __MSDOS__ || defined _WIN32 /* Define this to non-zero on systems for which the regular mechanism (of unlinking an open file and expecting to be able to write, seek diff --git a/src/tail.c b/src/tail.c index c549105dc..09ef59eda 100644 --- a/src/tail.c +++ b/src/tail.c @@ -37,6 +37,9 @@ #include "safe-read.h" #include "xstrtoul.h" +/* The official name of this program (e.g., no `g' prefix). */ +#define PROGRAM_NAME "tail" + #ifndef OFF_T_MIN # define OFF_T_MIN TYPE_MINIMUM (off_t) #endif @@ -30,6 +30,9 @@ #include "long-options.h" #include "safe-read.h" +/* The official name of this program (e.g., no `g' prefix). */ +#define PROGRAM_NAME "tr" + #define N_CHARS (UCHAR_MAX + 1) /* A pointer to a function that returns an int. */ diff --git a/src/tsort.c b/src/tsort.c index b863cfce6..3cf94799e 100644 --- a/src/tsort.c +++ b/src/tsort.c @@ -34,6 +34,9 @@ #include "error.h" #include "readtokens.h" +/* The official name of this program (e.g., no `g' prefix). */ +#define PROGRAM_NAME "tsort" + /* Token delimiters when reading from a file. */ #define DELIM " \t\n" diff --git a/src/unexpand.c b/src/unexpand.c index 9d508f995..e9ed348ea 100644 --- a/src/unexpand.c +++ b/src/unexpand.c @@ -45,6 +45,9 @@ #include "long-options.h" #include "error.h" +/* The official name of this program (e.g., no `g' prefix). */ +#define PROGRAM_NAME "unexpand" + /* The number of bytes added at a time to the amount of memory allocated for the output line. */ #define OUTPUT_BLOCK 256 diff --git a/src/uniq.c b/src/uniq.c index 5f664178b..b08f190f8 100644 --- a/src/uniq.c +++ b/src/uniq.c @@ -30,6 +30,9 @@ #include "xstrtol.h" #include "memcasecmp.h" +/* The official name of this program (e.g., no `g' prefix). */ +#define PROGRAM_NAME "uniq" + /* Undefine, to avoid warning about redefinition on some systems. */ #undef min #define min(x, y) ((x) < (y) ? (x) : (y)) @@ -32,6 +32,9 @@ #include "long-options.h" #include "safe-read.h" +/* The official name of this program (e.g., no `g' prefix). */ +#define PROGRAM_NAME "wc" + /* Size of atomic reads. */ #define BUFFER_SIZE (16 * 1024) |