Commit Graph

65 Commits

Author SHA1 Message Date
Jim Meyering 6bcd4b08ba (main): Call initialize_main. 2003-06-17 18:13:23 +00:00
Jim Meyering be6a1bab4f (portable_chars_only): Remove unnecessary `const'
in cast to avoid warning from icc.  Reported by Alexandre Duret-Lutz.
2003-02-12 09:20:47 +00:00
Jim Meyering a5f14f167e Remove all uses of `PARAMS'. 2002-12-15 20:54:29 +00:00
Jim Meyering bd385df70a (NEED_PATHCONF_WRAPPER): Undefine before defining,
in case it's already defined.
2002-12-11 10:00:57 +00:00
Jim Meyering 496f29fa8c (NEED_PATHCONF_WRAPPER): Define.
(pathconf_wrapper): Define only if NEED_PATHCONF_WRAPPER is set.
2002-09-02 07:43:38 +00:00
Jim Meyering 4006f4e672 Change exit (0)' to exit (EXIT_SUCCESS)',
`exit (1)' to `exit (EXIT_FAILURE)', and
`usage (1)' to `usage (EXIT_FAILURE)'.
2002-08-31 08:52:10 +00:00
Jim Meyering 2ee11887cd (usage): Use the PACKAGE_BUGREPORT e-mail address, rather than hard-coding it. 2002-07-02 09:09:10 +00:00
Jim Meyering f930c9ca0e (validate_path): Compare the result of the function --
not its (constant) address -- against zero.
2002-05-24 08:24:29 +00:00
Jim Meyering 9f9d6f6c31 Comment fixes to bring us up to date with respect to POSIX 1003.1-2001.
In particular, POSIX.2 is now obsolete.
2002-01-14 09:58:19 +00:00
Jim Meyering 2fae9e5d26 Use new macros, HELP_OPTION_DESCRIPTION and VERSION_OPTION_DESCRIPTION
instead of hard-coding --help and --version descriptions.
Split --help output into smaller pieces.
Use fputs, not printf.
2001-12-15 20:46:30 +00:00
Jim Meyering 1e4a6cbe1c (AUTHORS): Mark string for translation, since it contains the English word `and'. 2001-08-14 07:10:10 +00:00
Jim Meyering 4911e67aa8 Guard the above pathconf-using definitions with `#if HAVE_PATHCONF'
rather than with `#ifdef _POSIX_VERSION'.
2001-08-12 18:46:20 +00:00
Jim Meyering 4d94665d3d (PATH_MAX_FOR): Use pathconf via wrapper.
(NAME_MAX_FOR): Likewise.
(pathconf_wrapper): New function.
(validate_path): Declare length variables to be `long', not `int'.
Adjust corresponding printf-style specs to use %ld.
2001-08-12 18:28:19 +00:00
Jim Meyering c6bd79ad34 Include "closeout.h".
(main): Call atexit with close_stdout.
2000-05-07 14:55:15 +00:00
Jim Meyering 85e0053136 Remove xstrdup declaration. 1999-09-02 21:34:04 +00:00
Jim Meyering 038e5f009e (longopts): Restore accidentally-removed entry for `--portability' long option. 1999-08-30 14:43:52 +00:00
Jim Meyering 8313e867b2 (validate_path): Use IF_LINT macro instead of #ifdef lint. 1999-08-22 10:19:35 +00:00
Jim Meyering 03c1b8518c (PROGRAM_NAME, AUTHORS): Define and use. 1999-03-31 04:16:08 +00:00
Jim Meyering 5b2aa1846b Include long-options.h.
[long_options]: Remove the "help" and "version" entries.
Remove declarations of show_help and show_version.
(main): Use parse_long_options, including author name(s).
Remove the show_version and show_help blocks.
1999-03-06 15:28:54 +00:00
Jim Meyering 86fb9cb9ec (usage): Remove static attribute.
Move function be the first in the file.
1999-01-25 14:29:22 +00:00
Jim Meyering 24a8bf2d3e update bug-reporting address 1998-09-19 17:32:35 +00:00
Jim Meyering 2e308957d4 s/__P/PARAMS/ 1997-12-21 22:30:30 +00:00
Jim Meyering 3858d01133 Don't include limits.h. 1997-12-21 22:21:26 +00:00
Jim Meyering 5db3c9bdb4 update bug-reporting address 1997-10-07 23:51:39 +00:00
Jim Meyering 9080de09fc indent cpp-directives 1997-05-01 20:51:16 +00:00
Jim Meyering 7eb03c4372 update copyrights for 1997 1997-02-09 04:54:16 +00:00
Jim Meyering 899a90bfd9 bracket bug address with <> and append a period 1997-02-01 04:23:31 +00:00
Jim Meyering b8c82a8e39 Compare getopt_long return value against -1, not EOF. Use NULL, not '(int *) 0' as last parameter in getopt_long call. 1997-02-01 03:05:36 +00:00
Jim Meyering 5582e6dad3 change bug-reporting address 1996-11-03 03:16:27 +00:00
Jim Meyering b8e689dc67 change bug-reporting address 1996-11-02 20:44:15 +00:00
Jim Meyering f04044ed86 (main): update --version output to conform to coding standard 1996-10-05 16:37:57 +00:00
Jim Meyering e9d17da073 (usage): Tell where to report bugs. 1996-09-02 15:52:45 +00:00
Jim Meyering e6eece1575 update Copyright years for 1996 1996-04-24 04:45:54 +00:00
Jim Meyering 318a497768 Update FSF's address. 1996-03-24 18:33:12 +00:00
Jim Meyering 1954f681c6 (main): Declare to be of type int, not void. 1996-03-21 22:47:02 +00:00
Jim Meyering 3ee97d4d5b Don't include version.h.
(main): Use PACKAGE_VERSION instead of version_string.
1996-03-16 16:14:26 +00:00
Jim Meyering 182c784a99 (validate_path): Cast path_max to size_t before
comparing with strlen(path).
1996-03-16 05:43:24 +00:00
Jim Meyering 6fc4ae7a28 (main): Initialize for internationalized message support:
call setlocale, bindtextdomain, and textdomain.
1996-03-12 23:49:29 +00:00
Jim Meyering 53398947a1 Protoize and __P-protect forward dcls. 1996-01-06 11:44:05 +00:00
Jim Meyering 57ec0f45c9 s/non-zero/nonzero/g 1995-11-27 05:34:31 +00:00
Jim Meyering f0556f3517 Annotate localizable strings with _(...). From Franc,ois. 1995-08-08 04:37:34 +00:00
Jim Meyering 635b1b5b6e (usage): Add one- and two-line descriptions to --help output.
From Karl.
1995-05-15 04:53:56 +00:00
Jim Meyering 274e5f86b5 Use l?stat, not safe_l?stat. 1995-05-13 02:31:46 +00:00
Jim Meyering 0d6850348c add 1995 to Copyright dates 1995-03-09 22:33:05 +00:00
Jim Meyering a9f1783e20 * src/*.c: Include "error.h" instead of simply declaring
`void error ();'.
1994-12-20 05:26:44 +00:00
Jim Meyering bb705c7c3e (dir_ok): Use safe_stat instead of SAFE_STAT. 1994-12-20 04:49:55 +00:00
Jim Meyering 12042b2fa2 Use strr?chr instead of r?index. 1994-12-04 21:15:46 +00:00
Jim Meyering b902a4439e merge with 1.10t 1994-10-21 05:25:03 +00:00
Jim Meyering ec90359f34 . 1994-10-01 02:52:05 +00:00
Jim Meyering 0a0800fe25 merge with 1.10n2 1994-09-27 22:02:00 +00:00