Jim Meyering
bafd927f03
(WRITTEN_BY): Rename from AUTHORS.
...
Begin each WRITTEN_BY string with `Written by ' and end it with `.'.
Mark each WRITTEN_BY string as translatable.
2003-09-18 22:19:03 +00:00
Jim Meyering
c6ec144494
revert previous change
2003-09-18 19:39:12 +00:00
Jim Meyering
3280bf4b55
Update AUTHORS definition to be a comma-separated list of strings and/or update
...
the call to parse_long_options so that `AUTHORS, NULL' are the last parameters.
2003-09-18 18:22:23 +00:00
Jim Meyering
cc664579f8
[!NICE_PRIORITY]: Include <sys/resource.h> after
...
system.h so the types from time.h and sys/time.h are available.
It appears that this is necessary for OpenBSD, NetBSD, and
Darwin 6.5 (MacOS 10.2.5). Reported by Nelson Beebe.
2003-08-10 17:50:11 +00:00
Jim Meyering
846a7a53eb
[!NICE_PRIORITY]: Include <time.h> before <sys/resource.h>
...
to avoid compilation error on Ultrix. Reported by Christian Krackowizer.
2003-08-02 20:39:06 +00:00
Jim Meyering
4f4e9aa8e1
Don't include headers already included by system.h:
...
Don't include closeout.h.
2003-07-23 07:29:54 +00:00
Jim Meyering
effc1da025
Don't include sys/time.h; system.h already does it.
2003-07-23 07:05:41 +00:00
Jim Meyering
6bcd4b08ba
(main): Call initialize_main.
2003-06-17 18:13:23 +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
7488703199
Change error (1, ...' to error (EXIT_FAILURE, ...'.
2002-08-30 23:04:53 +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
e3fe486f9f
Include posixver.h.
2002-02-24 17:24:06 +00:00
Jim Meyering
7513e6d4f4
Add support for _POSIX2_VERSION, which lets you pick which POSIX
...
version you want the utilities to conform to. Remove warnings about
failure to conform to a future POSIX version.
(usage): Document only the intersection of the
old and new behaviors, to encourage portability.
(main): Parse options using POSIX 1003.1-2001 rules if
conforming to that standard. Do not warn of obsolete options.
2002-02-16 09:03:12 +00:00
Jim Meyering
2efda64d38
(main): Output warnings only if OBSOLETE_OPTION_WARNINGS.
2002-02-12 07:40:24 +00:00
Jim Meyering
6793260cdd
(main): Conform to POSIX 1003.1-2001 if
...
POSIX2_VERSION says to, otherwise warn of obsolete usage if
OBSOLETE_OPTION_WARNINGS is nonzero and if not POSIXLY_CORRECT.
2002-02-11 23:23:42 +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
c6bd79ad34
Include "closeout.h".
...
(main): Call atexit with close_stdout.
2000-05-07 14:55:15 +00:00
Jim Meyering
75789c4643
(main): Call exit explicitly to avoid warning from gcc.
...
Include "xstrtol.h".
(isinteger): Remove function and prototype.
(main): Use xstrtol in place of atoi. Remove associated FIXME comments.
1999-08-29 21:09:34 +00:00
Jim Meyering
678cbc835e
(isinteger): Move definition to precede use. Remove prototype.
1999-08-29 20:49:07 +00:00
Jim Meyering
de8d09d22d
(main): Call exit explicitly to avoid warning from gcc.
1999-08-29 20:47:17 +00:00
Jim Meyering
12bf2f8f8b
[NDEBUG]: Remove definition.
1999-04-25 19:18:20 +00:00
Jim Meyering
39090114f0
(PROGRAM_NAME, AUTHORS): Define and use.
1999-03-31 04:11:35 +00:00
Jim Meyering
ff743d5451
(main): Include author name argument in call to parse_long_options.
1999-03-04 14:02:14 +00:00
Jim Meyering
7082d762aa
(usage): Remove static attribute.
...
Move function be the first in the file.
1999-01-25 14:28:31 +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
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
e4c57a939b
(main): Work around failures induced by new version of
...
getopt.c by not modifying optind before the first getopt_long call
in main. With suggestions from Ulrich Drepper.
1997-01-08 04:47:56 +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
7532e57941
(main): Allow `+' in options like -+8 and -+13.
1996-08-04 14:15:25 +00:00
Jim Meyering
5b8cad3534
(main): Set minus_flag to zero in two places.
...
Otherwise, `nice --1 -3' would mistakenly do the equivalent of `nice --3'.
Thanks to Eric Backus <ericb@lsid.hp.com > for the test cases.
1996-08-03 04:23:43 +00:00
Jim Meyering
e6eece1575
update Copyright years for 1996
1996-04-24 04:45:54 +00:00
Jim Meyering
78732c5421
Remove diagnostic.
1996-04-05 16:04:15 +00:00
Jim Meyering
0e199278c1
(main): Use `if' stmt, not while loop, around getopt invocation.
...
Otherwise, `./nice --a=1 -1 ./nice' (in which old-style option
follows a long option) gets an error.
1996-04-05 13:32:39 +00:00
Jim Meyering
9d22ab92f9
Patch from Frank Korz.
1996-04-05 13:14:59 +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
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
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
0d6850348c
add 1995 to Copyright dates
1995-03-09 22:33:05 +00:00