]> git.ipfire.org Git - thirdparty/coreutils.git/commitdiff
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 8e429a7161e7832824dbf7fd87dbde1a140c17b1..503efe7e54ec081e78d11ed32852c0dcf7ce2cb2 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 6d67585d969b8b55b1a69127874004613d7aa6fb..2f3cf38c8981aaf8b8235aed7fcb17ef71f5cf45 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 a31e0a9b01e838920808944d6c5fafb8b3d3eda1..774aee07f8ba732c6e84a1f100ac2abd73d0ed3a 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 c52d90f20d16db6dd9688e2701e620c39749e379..b993ecd3742745845281fc0990f2b8143bbfa71f 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 9a1d685b97c8780487ae700add292f8b1ecd5fbb..05bf8433d3e4b596d108405de1bd228c13d2bc63 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 b0fe973fc11e6cb32b6d54a426f3b6e00fe4dd58..b1c448ea9d48b676cb0c660cedb135d83e14c39a 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 d27a4d8f4a22cd9196ff97e99ea67a9d4a87f7fd..81f69175430fa591baa760e0930d980606f44713 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 aaa42afcbd9f3af294a427c66bbcacb42981525d..a3c387ec98b11ec6e441ac1bc2e2da0fb8a268be 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 8a4fdbe99b19a9b976d02e884b49380738664d62..ad03cdd4a338dae2147f043e614aff9072572a74 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 087899c5f7fafad8b9d72b0ccbc6508ca970f9d7..e74bbab678162712bf7195e7ab8ed6464768cefa 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 c49a48040ed2a60b862e2eb9e62bcdb943554392..c0973fb00b9b171bccd5117afbe8deb5c00056ce 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 4365686c8ae906c95828eeb1c08f477b4429b7dc..b0b3c85dd07c0bec95428072d57f2718c188d8f4 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 03eba93668b3238b503103d0ff2cf043792f04e4..dd2176282c0149678200fbafa22454882535ad4f 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 f5a3f8d6ec1d51c15440f28f303f080c04b25c1a..bdf31ccdeaa656276155c9e01ad7cb26d330ffe2 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 ccf3e31284d3dea2f772a80419d250a0f63903a7..43ab930eae93f67e4868008079ef875a1069bdb3 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 c343c2e82ff2c4a1d71c52f30c74e08d8d2c4ece..75c4f94b0d92ed9adcfa3223448dd8f81c36af4e 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 ee0514b7698be4f377e9a59e9f870cc7761c3448..20c05e152e492e1ecd56c0bd94eedee2ae41fec4 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 10bcd177039734756796d4e0c8eea0f29ec87da1..9a0407c5164e637c04d3f2ad1a4e54e2dd7fdeb0 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 0a7d8ca4e747741c0426f5859c39657770ba805b..c2c7fc076adf183dbed6f85d2d1542caf499e242 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 0a52917412d1dab23cde4daa8272d297aacab948..ca640b81e798c836274c6a1a432ae892af2440f1 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 c549105dc0479b8dd7c435e2656698320c9e224b..09ef59edaf2938c720519d6b20a7c889b5be3de3 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 ae0055ac609e1b683f6d5faf0ff500f759f21622..75c763a10b3c11c4efb2c70e0324dc44b9ed415a 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 b863cfce6aeb5ed23c9c6c5361626bf3712377c3..3cf94799e27f8fa7e9a9debbe2e0d26f90f3828c 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 9d508f995bf3198d15a6e5819525b7a3ded71a96..e9ed348eab5c8a92ec559befb6c3706fded62374 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 5f664178bd4da8e019bf5a3820a2dd87e9303d48..b08f190f866f7e70d71ee3427fbebdb590257099 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 97dc02520d88baf5870b57454361a7b531a8763b..9750a774b2458f070a6d81c711f4ae135d4038b1 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)