define PROGRAM_NAME
authorJim Meyering <jim@meyering.net>
Sat, 3 Apr 1999 05:01:48 +0000 (05:01 +0000)
committerJim Meyering <jim@meyering.net>
Sat, 3 Apr 1999 05:01:48 +0000 (05:01 +0000)
26 files changed:
src/cat.c
src/cksum.c
src/comm.c
src/csplit.c
src/cut.c
src/expand.c
src/fmt.c
src/fold.c
src/head.c
src/join.c
src/md5sum.c
src/nl.c
src/od.c
src/paste.c
src/pr.c
src/ptx.c
src/sort.c
src/split.c
src/sum.c
src/tac.c
src/tail.c
src/tr.c
src/tsort.c
src/unexpand.c
src/uniq.c
src/wc.c

index 8e429a7..503efe7 100644 (file)
--- a/src/cat.c
+++ b/src/cat.c
@@ -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))
index 6d67585..2f3cf38 100644 (file)
@@ -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>
index a31e0a9..774aee0 100644 (file)
@@ -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))
index c52d90f..b993ecd 100644 (file)
@@ -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
index 9a1d685..05bf843 100644 (file)
--- a/src/cut.c
+++ b/src/cut.c
@@ -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)                                           \
index b0fe973..b1c448e 100644 (file)
@@ -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
index d27a4d8..81f6917 100644 (file)
--- a/src/fmt.c
+++ b/src/fmt.c
@@ -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.  */
 
index aaa42af..a3c387e 100644 (file)
@@ -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;
 
index 8a4fdbe..ad03cdd 100644 (file)
@@ -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;
 
index 087899c..e74bbab 100644 (file)
@@ -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.  */
index c49a480..c0973fb 100644 (file)
@@ -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.  */
index 4365686..b0b3c85 100644 (file)
--- a/src/nl.c
+++ b/src/nl.c
@@ -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
index 03eba93..dd21762 100644 (file)
--- a/src/od.c
+++ b/src/od.c
@@ -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
index f5a3f8d..bdf31cc 100644 (file)
@@ -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'
 
index ccf3e31..43ab930 100644 (file)
--- a/src/pr.c
+++ b/src/pr.c
 #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
index c343c2e..75c4f94 100644 (file)
--- a/src/ptx.c
+++ b/src/ptx.c
@@ -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
 
index ee0514b..20c05e1 100644 (file)
@@ -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
index 10bcd17..9a0407c 100644 (file)
@@ -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. */
index 0a7d8ca..c2c7fc0 100644 (file)
--- a/src/sum.c
+++ b/src/sum.c
@@ -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;
 
index 0a52917..ca640b8 100644 (file)
--- a/src/tac.c
+++ b/src/tac.c
@@ -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
index c549105..09ef59e 100644 (file)
@@ -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
index ae0055a..75c763a 100644 (file)
--- a/src/tr.c
+++ b/src/tr.c
@@ -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.  */
index b863cfc..3cf9479 100644 (file)
@@ -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"
 
index 9d508f9..e9ed348 100644 (file)
@@ -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
index 5f66417..b08f190 100644 (file)
@@ -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))
index 97dc025..9750a77 100644 (file)
--- a/src/wc.c
+++ b/src/wc.c
@@ -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)