1
0
mirror of git://git.sv.gnu.org/coreutils.git synced 2026-04-20 10:51:48 +02:00
This commit is contained in:
Jim Meyering
1994-06-20 14:14:34 +00:00
parent 3a3b00cc54
commit 7a3fb2d7ad
10 changed files with 19 additions and 11 deletions

View File

@@ -40,6 +40,7 @@
#include <sys/types.h>
#include "system.h"
#include "version.h"
#include "long-options.h"
char *basename ();
@@ -82,7 +83,7 @@ main (argc, argv)
program_name = argv[0];
parse_long_options (argc, argv, "basename", usage);
parse_long_options (argc, argv, "basename", version_string, usage);
if (argc == 1 || argc > 3)
usage (1);

View File

@@ -32,6 +32,7 @@
#include <sys/types.h>
#include "system.h"
#include "version.h"
#include "long-options.h"
void strip_trailing_slashes ();
@@ -72,7 +73,7 @@ main (argc, argv)
program_name = argv[0];
parse_long_options (argc, argv, "dirname", usage);
parse_long_options (argc, argv, "dirname", version_string, usage);
if (argc != 2)
usage (1);

View File

@@ -31,6 +31,7 @@ Foundation, 675 Mass Ave, Cambridge, MA 02139, USA. */
#include <stdio.h>
#include <sys/types.h>
#include "system.h"
#include "version.h"
#include "long-options.h"
/* echo [-neE] [arg ...]
@@ -119,7 +120,7 @@ main (argc, argv)
program_name = argv[0];
parse_long_options (argc, argv, "echo", usage);
parse_long_options (argc, argv, "echo", version_string, usage);
/* System V machines already have a /bin/sh with a v9 behaviour. We
use the identical behaviour for these machines so that the

View File

@@ -178,7 +178,7 @@ main (argc, argv)
program_name = argv[0];
parse_long_options (argc, argv, "expr", usage);
parse_long_options (argc, argv, "expr", version_string, usage);
if (argc == 1)
usage (1);

View File

@@ -32,6 +32,7 @@
#include <sys/types.h>
#include "system.h"
#include "version.h"
#include "long-options.h"
#if !defined(HAVE_SETHOSTNAME) && defined(HAVE_SYSINFO) && \
@@ -91,7 +92,7 @@ main (argc, argv)
program_name = argv[0];
parse_long_options (argc, argv, "hostname", usage);
parse_long_options (argc, argv, "hostname", version_string, usage);
#ifdef HAVE_SETHOSTNAME
if (argc == 2)

View File

@@ -156,7 +156,7 @@ main (argc, argv)
program_name = argv[0];
exit_status = 0;
parse_long_options (argc, argv, "printf", usage);
parse_long_options (argc, argv, "printf", version_string, usage);
if (argc == 1)
{

View File

@@ -32,6 +32,7 @@
#include <sys/types.h>
#include "system.h"
#include "version.h"
#include "long-options.h"
void error ();
@@ -68,7 +69,7 @@ main (argc, argv)
program_name = argv[0];
parse_long_options (argc, argv, "pwd", usage);
parse_long_options (argc, argv, "pwd", version_string, usage);
if (argc != 1)
error (0, 0, "ignoring non-option arguments");

View File

@@ -58,6 +58,7 @@
#endif
#include "system.h"
#include "version.h"
#include "long-options.h"
#if defined(GWINSZ_BROKEN) /* Such as for SCO UNIX 3.2.2. */
@@ -642,7 +643,7 @@ main (argc, argv)
program_name = argv[0];
parse_long_options (argc, argv, "stty", usage);
parse_long_options (argc, argv, "stty", version_string, usage);
output_type = changed;
verbose_output = 0;

View File

@@ -44,6 +44,7 @@
# include "filecntl.h"
#else /* TEST_STANDALONE */
# include "system.h"
# include "version.h"
# if !defined (S_IXUGO)
# define S_IXUGO 0111
# endif /* S_IXUGO */
@@ -1135,7 +1136,7 @@ test_command (margc, margv)
if (margv[0] && strcmp (margv[0], "[") == 0)
{
parse_long_options (argc, argv, COMMAND_NAME, usage);
parse_long_options (argc, argv, COMMAND_NAME, version_string, usage);
--margc;
@@ -1152,7 +1153,7 @@ test_command (margc, margv)
if (pos >= argc)
test_exit (SHELL_BOOLEAN (FALSE));
parse_long_options (argc, argv, COMMAND_NAME, usage);
parse_long_options (argc, argv, COMMAND_NAME, version_string, usage);
value = posixtest ();
if (pos != argc)

View File

@@ -32,6 +32,7 @@
#include <getopt.h>
#include "long-options.h"
#include "version.h"
/* The name this program was run with. */
char *program_name;
@@ -64,7 +65,7 @@ main (argc, argv)
{
program_name = argv[0];
parse_long_options (argc, argv, "yes", usage);
parse_long_options (argc, argv, "yes", version_string, usage);
if (argc == 1)
while (1)