#include "long-options.h"
#include "posixtm.h"
+/* The official name of this program (e.g., no `g' prefix). */
+#define PROGRAM_NAME "date"
+
+#define AUTHORS "David MacKenzie"
+
#ifndef STDC_HEADERS
size_t strftime ();
time_t time ();
bindtextdomain (PACKAGE, LOCALEDIR);
textdomain (PACKAGE);
- parse_long_options (argc, argv, "date", GNU_PACKAGE, VERSION,
- "David MacKenzie", usage);
+ parse_long_options (argc, argv, PROGRAM_NAME, GNU_PACKAGE, VERSION,
+ AUTHORS, usage);
while ((optc = getopt_long (argc, argv, "d:f:r:Rs:u", long_options, NULL))
!= -1)
#include "error.h"
#include "long-options.h"
+/* The official name of this program (e.g., no `g' prefix). */
+#define PROGRAM_NAME "env"
+
+#define AUTHORS "Richard Mlynarik and David MacKenzie"
+
int putenv ();
extern char **environ;
bindtextdomain (PACKAGE, LOCALEDIR);
textdomain (PACKAGE);
- parse_long_options (argc, argv, "env", GNU_PACKAGE, VERSION,
- "Richard Mlynarik and David MacKenzie", usage);
+ parse_long_options (argc, argv, PROGRAM_NAME, GNU_PACKAGE, VERSION,
+ AUTHORS, usage);
while ((optc = getopt_long (argc, argv, "+iu:", longopts, NULL)) != -1)
{
#include "error.h"
#include "long-options.h"
+/* The official name of this program (e.g., no `g' prefix). */
+#define PROGRAM_NAME "id"
+
+#define AUTHORS "Arnold Robbins and David MacKenzie"
+
#ifndef _POSIX_VERSION
struct passwd *getpwuid ();
struct group *getgrgid ();
bindtextdomain (PACKAGE, LOCALEDIR);
textdomain (PACKAGE);
- parse_long_options (argc, argv, "id", GNU_PACKAGE, VERSION,
- "Arnold Robbins and David MacKenzie", usage);
+ parse_long_options (argc, argv, PROGRAM_NAME, GNU_PACKAGE, VERSION,
+ AUTHORS, usage);
while ((optc = getopt_long (argc, argv, "agnruG", longopts, NULL)) != -1)
{
#include "system.h"
#include "long-options.h"
+/* The official name of this program (e.g., no `g' prefix). */
+#define PROGRAM_NAME "logname"
+
+#define AUTHORS "FIXME: unknown"
+
/* The name this program was run with. */
char *program_name;
bindtextdomain (PACKAGE, LOCALEDIR);
textdomain (PACKAGE);
- parse_long_options (argc, argv, "logname", GNU_PACKAGE, VERSION,
- "FIXME: unknown", usage);
+ parse_long_options (argc, argv, PROGRAM_NAME, GNU_PACKAGE, VERSION,
+ AUTHORS, usage);
while ((c = getopt_long (argc, argv, "", long_options, NULL)) != -1)
{
#include "error.h"
#include "long-options.h"
+/* The official name of this program (e.g., no `g' prefix). */
+#define PROGRAM_NAME "pathchk"
+
+#define AUTHORS "David MacKenzie and Jim Meyering"
+
#ifdef _POSIX_VERSION
# ifndef PATH_MAX
# define PATH_MAX_FOR(p) pathconf ((p), _PC_PATH_MAX)
bindtextdomain (PACKAGE, LOCALEDIR);
textdomain (PACKAGE);
- parse_long_options (argc, argv, "pathchk", GNU_PACKAGE, VERSION,
- "David MacKenzie and Jim Meyering", usage);
+ parse_long_options (argc, argv, PROGRAM_NAME, GNU_PACKAGE, VERSION,
+ AUTHORS, usage);
while ((optc = getopt_long (argc, argv, "p", longopts, NULL)) != -1)
{
#include "long-options.h"
#include "readutmp.h"
+/* The official name of this program (e.g., no `g' prefix). */
+#define PROGRAM_NAME "pinky"
+
+#define AUTHORS "Joseph Arceneaux, David MacKenzie, and Kaveh Ghazi"
+
#ifndef MAXHOSTNAMELEN
# define MAXHOSTNAMELEN 64
#endif
bindtextdomain (PACKAGE, LOCALEDIR);
textdomain (PACKAGE);
- parse_long_options (argc, argv, "pinky", GNU_PACKAGE, VERSION,
- "Joseph Arceneaux, David MacKenzie, and Kaveh Ghazi",
- usage);
+ parse_long_options (argc, argv, PROGRAM_NAME, GNU_PACKAGE, VERSION,
+ AUTHORS, usage);
while ((optc = getopt_long (argc, argv, "sfwiqbhlp", longopts, &longind))
!= -1)
#include "error.h"
#include "long-options.h"
+/* The official name of this program (e.g., no `g' prefix). */
+#define PROGRAM_NAME "printenv"
+
+#define AUTHORS "David MacKenzie and Richard Mlynarik"
+
/* The name this program was run with. */
char *program_name;
bindtextdomain (PACKAGE, LOCALEDIR);
textdomain (PACKAGE);
- parse_long_options (argc, argv, "printenv", GNU_PACKAGE, VERSION,
- "David MacKenzie and Richard Mlynarik", usage);
+ parse_long_options (argc, argv, PROGRAM_NAME, GNU_PACKAGE, VERSION,
+ AUTHORS, usage);
while ((c = getopt_long (argc, argv, "", long_options, NULL)) != -1)
{
#include "long-options.h"
#include "xstrtod.h"
+/* The official name of this program (e.g., no `g' prefix). */
+#define PROGRAM_NAME "seq"
+
+#define AUTHORS "Ulrich Drepper"
+
static double scan_double_arg PARAMS ((const char *arg));
static int check_format PARAMS ((const char *format_string));
static char *get_width_format PARAMS ((void));
bindtextdomain (PACKAGE, LOCALEDIR);
textdomain (PACKAGE);
- parse_long_options (argc, argv, "seq", GNU_PACKAGE, VERSION,
- "Ulrich Drepper", usage);
+ parse_long_options (argc, argv, PROGRAM_NAME, GNU_PACKAGE, VERSION,
+ AUTHORS, usage);
equal_width = 0;
format_str = NULL;
#include "error.h"
#include "long-options.h"
+/* The official name of this program (e.g., no `g' prefix). */
+#define PROGRAM_NAME "sleep"
+
+#define AUTHORS "FIXME: unknown"
+
static long argdecode PARAMS ((const char *s));
/* The name by which this program was run. */
bindtextdomain (PACKAGE, LOCALEDIR);
textdomain (PACKAGE);
- parse_long_options (argc, argv, "sleep", GNU_PACKAGE, VERSION,
- "FIXME: unknown", usage);
+ parse_long_options (argc, argv, PROGRAM_NAME, GNU_PACKAGE, VERSION,
+ AUTHORS, usage);
while ((c = getopt_long (argc, argv, "", long_options, NULL)) != -1)
{
#include "error.h"
+/* The official name of this program (e.g., no `g' prefix). */
+#define PROGRAM_NAME "su"
+
+#define AUTHORS "David MacKenzie"
+
#if HAVE_PATHS_H
# include <paths.h>
#endif
bindtextdomain (PACKAGE, LOCALEDIR);
textdomain (PACKAGE);
- parse_long_options (argc, argv, "su", GNU_PACKAGE, VERSION,
- "David MacKenzie", usage);
+ parse_long_options (argc, argv, PROGRAM_NAME, GNU_PACKAGE, VERSION,
+ AUTHORS, usage);
fast_startup = 0;
simulate_login = 0;
#include "error.h"
#include "long-options.h"
+/* The official name of this program (e.g., no `g' prefix). */
+#define PROGRAM_NAME "tee"
+
+#define AUTHORS "Mike Parker, Richard M. Stallman, and David MacKenzie"
+
int full_write ();
static int tee PARAMS ((int nfiles, const char **files));
bindtextdomain (PACKAGE, LOCALEDIR);
textdomain (PACKAGE);
- parse_long_options (argc, argv, "tee", GNU_PACKAGE, VERSION,
- "Mike Parker, Richard M. Stallman, and David MacKenzie",
- usage);
+ parse_long_options (argc, argv, PROGRAM_NAME, GNU_PACKAGE, VERSION,
+ AUTHORS, usage);
append = 0;
ignore_interrupts = 0;
#include "error.h"
#include "long-options.h"
+/* The official name of this program (e.g., no `g' prefix). */
+#define PROGRAM_NAME "tty"
+
+#define AUTHORS "David MacKenzie"
+
/* The name under which this program was run. */
char *program_name;
bindtextdomain (PACKAGE, LOCALEDIR);
textdomain (PACKAGE);
- parse_long_options (argc, argv, "tty", GNU_PACKAGE, VERSION,
- "David MacKenzie", usage);
+ parse_long_options (argc, argv, PROGRAM_NAME, GNU_PACKAGE, VERSION,
+ AUTHORS, usage);
silent = 0;
#include "error.h"
#include "long-options.h"
+/* The official name of this program (e.g., no `g' prefix). */
+#define PROGRAM_NAME "uname"
+
+#define AUTHORS "David MacKenzie"
+
static void print_element PARAMS ((unsigned int mask, char *element));
/* Values that are bitwise or'd into `toprint'. */
bindtextdomain (PACKAGE, LOCALEDIR);
textdomain (PACKAGE);
- parse_long_options (argc, argv, "uname", GNU_PACKAGE, VERSION,
- "David MacKenzie", usage);
+ parse_long_options (argc, argv, PROGRAM_NAME, GNU_PACKAGE, VERSION,
+ AUTHORS, usage);
toprint = 0;
#include "readutmp.h"
#include "system.h"
+/* The official name of this program (e.g., no `g' prefix). */
+#define PROGRAM_NAME "uptime"
+
+#define AUTHORS "Joseph Arceneaux and David MacKenzie"
+
int getloadavg ();
/* The name this program was run with. */
bindtextdomain (PACKAGE, LOCALEDIR);
textdomain (PACKAGE);
- parse_long_options (argc, argv, "uptime", GNU_PACKAGE, VERSION,
- "Joseph Arceneaux and David MacKenzie", usage);
+ parse_long_options (argc, argv, PROGRAM_NAME, GNU_PACKAGE, VERSION,
+ AUTHORS, usage);
while ((optc = getopt_long (argc, argv, "", longopts, &longind)) != -1)
{
#include "readutmp.h"
#include "system.h"
+/* The official name of this program (e.g., no `g' prefix). */
+#define PROGRAM_NAME "users"
+
+#define AUTHORS "Joseph Arceneaux and David MacKenzie"
+
/* The name this program was run with. */
char *program_name;
bindtextdomain (PACKAGE, LOCALEDIR);
textdomain (PACKAGE);
- parse_long_options (argc, argv, "users", GNU_PACKAGE, VERSION,
- "Joseph Arceneaux and David MacKenzie", usage);
+ parse_long_options (argc, argv, PROGRAM_NAME, GNU_PACKAGE, VERSION,
+ AUTHORS, usage);
while ((optc = getopt_long (argc, argv, "", longopts, &longind)) != -1)
{
#include "readutmp.h"
#include "system.h"
+/* The official name of this program (e.g., no `g' prefix). */
+#define PROGRAM_NAME "who"
+
+#define AUTHORS "Joseph Arceneaux and David MacKenzie"
+
#ifndef MAXHOSTNAMELEN
# define MAXHOSTNAMELEN 64
#endif
bindtextdomain (PACKAGE, LOCALEDIR);
textdomain (PACKAGE);
- parse_long_options (argc, argv, "who", GNU_PACKAGE, VERSION,
- "Joseph Arceneaux and David MacKenzie", usage);
+ parse_long_options (argc, argv, PROGRAM_NAME, GNU_PACKAGE, VERSION,
+ AUTHORS, usage);
while ((optc = getopt_long (argc, argv, "ilmqsuwHT", longopts, &longind))
!= -1)
#include "system.h"
#include "long-options.h"
+/* The official name of this program (e.g., no `g' prefix). */
+#define PROGRAM_NAME "whoami"
+
+#define AUTHORS "Richard Mlynarik"
+
/* The name this program was run with. */
char *program_name;
bindtextdomain (PACKAGE, LOCALEDIR);
textdomain (PACKAGE);
- parse_long_options (argc, argv, "whoami", GNU_PACKAGE, VERSION,
- "Richard Mlynarik", usage);
+ parse_long_options (argc, argv, PROGRAM_NAME, GNU_PACKAGE, VERSION,
+ AUTHORS, usage);
while ((c = getopt_long (argc, argv, "", long_options, NULL)) != -1)
{