#include "long-options.h"
#include "error.h"
+/* The official name of this program (e.g., no `g' prefix). */
+#define PROGRAM_NAME "basename"
+
+#define AUTHORS "FIXME unknown"
+
char *base_name ();
void strip_trailing_slashes ();
bindtextdomain (PACKAGE, LOCALEDIR);
textdomain (PACKAGE);
- parse_long_options (argc, argv, "basename", GNU_PACKAGE, VERSION,
- "FIXME unknown", usage);
+ parse_long_options (argc, argv, PROGRAM_NAME, GNU_PACKAGE, VERSION,
+ AUTHORS, usage);
if (argc == 1 || argc > 3)
{
#include "long-options.h"
#include "error.h"
+/* The official name of this program (e.g., no `g' prefix). */
+#define PROGRAM_NAME "chroot"
+
+#define AUTHORS "Roland McGrath"
+
/* The name this program was run with, for error messages. */
char *program_name;
bindtextdomain (PACKAGE, LOCALEDIR);
textdomain (PACKAGE);
- parse_long_options (argc, argv, "chroot", GNU_PACKAGE, VERSION,
- "Roland McGrath", usage);
+ parse_long_options (argc, argv, PROGRAM_NAME, GNU_PACKAGE, VERSION,
+ AUTHORS, usage);
if (argc == 1)
{
error (0, 0, _("too few arguments"));
#include "long-options.h"
#include "error.h"
+/* The official name of this program (e.g., no `g' prefix). */
+#define PROGRAM_NAME "dirname"
+
+#define AUTHORS "David MacKenzie and Jim Meyering"
+
void strip_trailing_slashes ();
/* The name this program was run with. */
bindtextdomain (PACKAGE, LOCALEDIR);
textdomain (PACKAGE);
- parse_long_options (argc, argv, "dirname", GNU_PACKAGE, VERSION,
- "David MacKenzie and Jim Meyering", usage);
+ parse_long_options (argc, argv, PROGRAM_NAME, GNU_PACKAGE, VERSION,
+ AUTHORS, usage);
if (argc != 2)
{
#include "system.h"
#include "long-options.h"
+/* The official name of this program (e.g., no `g' prefix). */
+#define PROGRAM_NAME "echo"
+
+#define AUTHORS "FIXME unknown"
+
/* echo [-neE] [arg ...]
Output the ARGs. If -n is specified, the trailing newline is
suppressed. If the -e option is given, interpretation of the
/* Don't recognize --help or --version if POSIXLY_CORRECT is set. */
if (getenv ("POSIXLY_CORRECT") == NULL)
- parse_long_options (argc, argv, "echo", GNU_PACKAGE, VERSION,
- "FIXME unknown", usage);
+ parse_long_options (argc, argv, PROGRAM_NAME, GNU_PACKAGE, VERSION,
+ AUTHORS, usage);
else
allow_options = 0;
#include "long-options.h"
#include "error.h"
+/* The official name of this program (e.g., no `g' prefix). */
+#define PROGRAM_NAME "expr"
+
+#define AUTHORS "Mike Parker"
+
#define NEW(type) ((type *) xmalloc (sizeof (type)))
#define OLD(x) free ((char *) x)
/* Recognize --help or --version only if POSIXLY_CORRECT is not set. */
if (!posixly_correct)
- parse_long_options (argc, argv, "expr", GNU_PACKAGE, VERSION,
- "Mike Parker", usage);
+ parse_long_options (argc, argv, PROGRAM_NAME, GNU_PACKAGE, VERSION,
+ AUTHORS, usage);
if (argc == 1)
{
#include "xstrtoul.h"
#include "readtokens.h"
+/* The official name of this program (e.g., no `g' prefix). */
+#define PROGRAM_NAME "factor"
+
+#define AUTHORS "Paul Rubin"
+
/* Token delimiters when reading from a file. */
#define DELIM "\n\t "
bindtextdomain (PACKAGE, LOCALEDIR);
textdomain (PACKAGE);
- parse_long_options (argc, argv, "factor", GNU_PACKAGE, VERSION,
- "Paul Rubin", usage);
+ parse_long_options (argc, argv, PROGRAM_NAME, GNU_PACKAGE, VERSION,
+ AUTHORS, usage);
fail = 0;
if (argc == 1)
#include "long-options.h"
#include "error.h"
+/* The official name of this program (e.g., no `g' prefix). */
+#define PROGRAM_NAME "hostid"
+
+#define AUTHORS "Jim Meyering"
+
/* The name this program was run with, for error messages. */
char *program_name;
bindtextdomain (PACKAGE, LOCALEDIR);
textdomain (PACKAGE);
- parse_long_options (argc, argv, "hostid", GNU_PACKAGE, VERSION,
- "Jim Meyering", usage);
+ parse_long_options (argc, argv, PROGRAM_NAME, GNU_PACKAGE, VERSION,
+ AUTHORS, usage);
if (argc > 1)
{
#include "long-options.h"
#include "error.h"
+/* The official name of this program (e.g., no `g' prefix). */
+#define PROGRAM_NAME "hostname"
+
+#define AUTHORS "Jim Meyering"
+
#if !defined(HAVE_SETHOSTNAME) && defined(HAVE_SYSINFO) && \
defined (HAVE_SYS_SYSTEMINFO_H) && defined(HAVE_LIMITS_H)
# include <sys/systeminfo.h>
bindtextdomain (PACKAGE, LOCALEDIR);
textdomain (PACKAGE);
- parse_long_options (argc, argv, "hostname", GNU_PACKAGE, VERSION,
- "Jim Meyering", usage);
+ parse_long_options (argc, argv, PROGRAM_NAME, GNU_PACKAGE, VERSION,
+ AUTHORS, usage);
#ifdef HAVE_SETHOSTNAME
if (argc == 2)
#include "long-options.h"
#include "error.h"
+/* The official name of this program (e.g., no `g' prefix). */
+#define PROGRAM_NAME "nice"
+
+#define AUTHORS "David MacKenzie"
+
#ifdef NICE_PRIORITY
# define GET_PRIORITY() nice (0)
#else
bindtextdomain (PACKAGE, LOCALEDIR);
textdomain (PACKAGE);
- parse_long_options (argc, argv, "nice", GNU_PACKAGE, VERSION,
- "David MacKenzie", usage);
+ parse_long_options (argc, argv, PROGRAM_NAME, GNU_PACKAGE, VERSION,
+ AUTHORS, usage);
for (i = 1; i < argc; /* empty */)
{
#include "long-options.h"
#include "error.h"
+/* The official name of this program (e.g., no `g' prefix). */
+#define PROGRAM_NAME "printf"
+
+#define AUTHORS "David MacKenzie"
+
#ifndef STDC_HEADERS
double strtod ();
long int strtol ();
/* Don't recognize --help or --version if POSIXLY_CORRECT is set. */
posixly_correct = (getenv ("POSIXLY_CORRECT") != NULL);
if (!posixly_correct)
- parse_long_options (argc, argv, "printf", GNU_PACKAGE, VERSION,
- "David MacKenzie", usage);
+ parse_long_options (argc, argv, PROGRAM_NAME, GNU_PACKAGE, VERSION,
+ AUTHORS, usage);
if (argc == 1)
{
#include "long-options.h"
#include "error.h"
+/* The official name of this program (e.g., no `g' prefix). */
+#define PROGRAM_NAME "pwd"
+
+#define AUTHORS "Jim Meyering"
+
char *xgetcwd ();
/* The name this program was run with. */
bindtextdomain (PACKAGE, LOCALEDIR);
textdomain (PACKAGE);
- parse_long_options (argc, argv, "pwd", GNU_PACKAGE, VERSION,
- "Jim Meyering", usage);
+ parse_long_options (argc, argv, PROGRAM_NAME, GNU_PACKAGE, VERSION,
+ AUTHORS, usage);
if (argc != 1)
error (0, 0, _("ignoring non-option arguments"));
#include "error.h"
#include "xstrtol.h"
+/* The official name of this program (e.g., no `g' prefix). */
+#define PROGRAM_NAME "stty"
+
+#define AUTHORS "David MacKenzie"
+
#ifndef _POSIX_VDISABLE
# define _POSIX_VDISABLE ((unsigned char) 0)
#endif
bindtextdomain (PACKAGE, LOCALEDIR);
textdomain (PACKAGE);
- parse_long_options (argc, argv, "stty", GNU_PACKAGE, VERSION,
- "David MacKenzie", usage);
+ parse_long_options (argc, argv, PROGRAM_NAME, GNU_PACKAGE, VERSION,
+ AUTHORS, usage);
output_type = changed;
verbose_output = 0;
#include "system.h"
#include "long-options.h"
+/* The official name of this program (e.g., no `g' prefix). */
+#define PROGRAM_NAME "yes"
+
+#define AUTHORS "David MacKenzie"
+
/* The name this program was run with. */
char *program_name;
/* Don't recognize --help or --version if POSIXLY_CORRECT is set. */
if (getenv ("POSIXLY_CORRECT") == NULL)
- parse_long_options (argc, argv, "yes", GNU_PACKAGE, VERSION,
- "David MacKenzie", usage);
+ parse_long_options (argc, argv, PROGRAM_NAME, GNU_PACKAGE, VERSION,
+ AUTHORS, usage);
if (argc == 1)
while (1)